[03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:47:59]accept exits with 9 [03:47:59]New connection [03:47:59]New thread 3067157860 created [03:47:59]Thread 3067301220 joined [03:47:59]Waiting for new connection... [03:47:59] Sock 9.Parse request [03:47:59]Sock 9.Check first char [03:47:59]Sock 9.First char is OK [03:47:59]request: POST /json_proto HTTP/1.0 [03:47:59]Method: POST [03:47:59]URL: /json_proto [03:47:59]Method is POST - this is cgi request [03:47:59]url: /json_proto [03:47:59]query_string will be loaded in cgi processing [03:47:59]execute_cgi json_proto POST (null) [03:47:59]execute_cgi path=json_proto method=POST [03:47:59]POST find Content-Length [03:47:59]Host: 172.17.56.4:8080 [03:47:59]Content-Length: 677 [03:47:59]Content-Type: application/json [03:47:59] [03:47:59]POST finish read [03:47:59]Found Content-Length = 677 [03:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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" ] } } [03:47:59]execute_script... [03:47: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)458534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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" ] } } [03:47:59]POST & json_proto [03:47:59]process_json_proto [03:47:59]json parsed OK: [03:47:59]protocol is kg_v1.0 [03:47:59]action value=close_receipt [03:47:59]process_action close_receipt [03:47:59]cmd_close_receipt [03:47:59]MH_GetDate [03:47:59]Write to MH i2c: F0 00 00 59 02 4A [03:47:59]Write i2c OK [03:47:59]MH_I2C_Read... [03:47:59]Read from MH i2c: F0 [03:47:59]MH_I2C_Read... [03:47:59]Read from MH i2c: F0 09 00 [03:47:59]MH_I2C_Read... [03:47:59]Read from MH i2c: F0 09 00 59 02 00 F0 F8 91 66 C9 DC B2 64 ED [03:47:59]GetLastDocTimeStamp 1720839276 [03:47:59]current date 1720842480 [03:47:59]FM_GetShiftState [03:47:59]SAM_PROTO_GetShiftState [03:47:59]wFMCommunicate request_size=4 [03:47:59]MH_SAM_APDU [03:47:59]CAPDU: 80 13 01 00 [03:47:59]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [03:47:59]Write i2c OK [03:47:59]MH_I2C_Read... [03:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:59]Read from MH i2c: E2 [03:47:59]MH_I2C_Read... [03:47:59]Read from MH i2c: E2 0E 00 [03:47:59]MH_I2C_Read... [03:47:59]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [03:47:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [03:47:59]wFMCommunicate OK [03:47:59]SAM_PROTO_GetShiftState done [03:47:59]FM_GetShiftState done [03:47:59]opened in 1720831249 [03:47:59]opened+sec_in_day 1720917649 [03:47:59]quantity*price = 50008 [03:47:59]sum+1 = 50009 [03:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 8 13.07.2024 03:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164448 ФПД: 258719313535473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034800&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164448&fm=258719313535473&tin=02508201610067®Number=0000000000090829&sum=50000 [03:48:00]StoreToDocumentArchive [03:48:00]shift 446 fd 164448 [03:48:00]save to /storage/0446/doc_00164448 [03:48:00]save last doc name /storage/0446/doc_00164448 to /storage/kkm_last_doc_name [03:48:00]save OK [03:48:00]Clear old archive folders... [03:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:48:00]tlvbuf is 00B519E0 [03:48:00]SAM_PROTO_ClearQueue [03:48:00]wFMCommunicate request_size=4 [03:48:00]MH_SAM_APDU [03:48:00]CAPDU: 80 09 00 00 [03:48:00]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [03:48:00]Write i2c OK [03:48:00]MH_I2C_Read... [03:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:00]Read from MH i2c: E2 [03:48:00]MH_I2C_Read... [03:48:00]Read from MH i2c: E2 03 00 [03:48:00]MH_I2C_Read... [03:48:00]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [03:48:00]RAPDU: 90 00 [03:48:00]wFMCommunicate OK [03:48:00]SAM_PROTO_ClearQueue done [03:48:00]KKMCreateOFDPacket [03:48:00]OFDProtocolAddRootSTLVToBuf [03:48:00]FM_MakeSignedData [03:48:00]FM_MakeSignedData [03:48:00]SAM_PROTO_SignData [03:48:00]wFMCommunicate request_size=4 [03:48:00]MH_SAM_APDU [03:48:00]CAPDU: 80 0D 01 02 [03:48:00]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [03:48:00]Write i2c OK [03:48:00]MH_I2C_Read... [03:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:00]Read from MH i2c: E2 [03:48:00]MH_I2C_Read... [03:48:00]Read from MH i2c: E2 03 00 [03:48:00]MH_I2C_Read... [03:48:00]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [03:48:00]RAPDU: 90 00 [03:48:00]wFMCommunicate OK [03:48:00]wFMCommunicate request_size=255 [03:48:00]MH_SAM_APDU [03:48:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F0 F8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 82 02 00 35 04 06 00 EB [03:48:00]Write to MH i2c: E2 02 01 69 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F0 F8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 82 02 00 35 04 06 00 EB 00 00 D1 [03:48:00]Write i2c OK [03:48:00]MH_I2C_Read... [03:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:01]Read from MH i2c: E2 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 03 00 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [03:48:01]RAPDU: 90 00 [03:48:01]wFMCommunicate OK [03:48:01]wFMCommunicate request_size=10 [03:48:01]MH_SAM_APDU [03:48:01]CAPDU: 80 0D 02 02 05 4D C8 C7 A1 F1 [03:48:01]Write to MH i2c: E2 0D 00 6A 02 80 0D 02 02 05 00 4D C8 C7 A1 F1 00 00 5E [03:48:01]Write i2c OK [03:48:01]MH_I2C_Read... [03:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:01]Read from MH i2c: E2 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 03 00 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [03:48:01]RAPDU: 90 00 [03:48:01]wFMCommunicate OK [03:48:01]wFMCommunicate request_size=4 [03:48:01]MH_SAM_APDU [03:48:01]CAPDU: 80 0D 03 02 [03:48:01]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [03:48:01]Write i2c OK [03:48:01]MH_I2C_Read... [03:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:01]Read from MH i2c: E2 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 0B 00 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 0B 00 6B 02 00 37 52 35 AD DD 02 4D DA 90 00 5A [03:48:01]RAPDU: 37 52 35 AD DD 02 4D DA 90 00 [03:48:01]wFMCommunicate OK [03:48:01]SAM_PROTO_SignData done [03:48:01]FM_MakeSignedData done [03:48:01]CreateOFDProtocolMessage [03:48:01]wFMCommunicate request_size=4 [03:48:01]MH_SAM_APDU [03:48:01]CAPDU: 80 11 00 00 [03:48:01]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [03:48:01]Write i2c OK [03:48:01]MH_I2C_Read... [03:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:01]Read from MH i2c: E2 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 17 00 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [03:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:48:01]wFMCommunicate OK [03:48:01]CreateOFDProtocolMessage done [03:48:01]OFDSenderStorePacket 164448 [03:48:01]StoreOFDPacket docnum=164448 [03:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 9D 07 01 4D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F0 F8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 82 02 00 35 04 06 00 EB 4D C8 C7 A1 F1 37 52 35 AD DD 02 4D DA [03:48:01]CheckFolder [03:48:01]dirname=/storage/ofd_packets [03:48:01]CheckFolder done [03:48:01]ProducePacketName [03:48:01]name=ofd_packets/00164448 [03:48:01]NVStorageSaveData ofd_packets/00164448 [03:48:01]File name is /storage/ofd_packets/00164448 [03:48:01]Write 301 bytes [03:48:01]NVStorageSaveData done [03:48:01]OFDSenderStorePacket done [03:48:01]KKMCreateOFDPacket done [03:48:01]NVStorageSaveData kkm_last_timestamp [03:48:01]File name is /storage/kkm_last_timestamp [03:48:01]Write 4 bytes [03:48:01]NVStorageSaveData done [03:48:01]ExternCall_PrintAddStr [03:48:01]wPrintStart [03:48:01]Write to MH i2c: 01 00 00 6D 02 6F [03:48:01]Write i2c OK [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: 01 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: 01 07 00 [03:48:01]MH_I2C_Read... [03:48:01]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [03:48:01]RasterBufferAndPrint [03:48:01]line Счет N : (1)458534 [03:48:01]line ИНН: 02508201610067 [03:48:01]line Контрольно-Кассовый Чек [03:48:01]line ПРОДАЖА [03:48:01]line ТРК (МРК, ГНК) : 22 [03:48:01]line Товар: 2710124130 [03:48:01]line Аи-92-К-5 [03:48:01]line 7.600 * 65.80 [03:48:01]line = 500.08 [03:48:01]line НДС 12% НСП 1% [03:48:01]line > о реализуемом товаре [03:48:01]line ОКРУГЛЕНИЕ: -0.08 [03:48:01]line ИТОГО: 500.00 [03:48:01]line Внесено: 500.00 [03:48:01]line СДАЧА: 0.00 [03:48:01]line НСП 1% : 4.42 [03:48:01]line НДС 12% : 53.11 [03:48:01]line Наличными: 500.00 [03:48:01]line Безнал.: 0.00 [03:48:01]line Место: АЗС № 72 "Партнер Нефть" [03:48:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [03:48:01]line СНО: Общий режим [03:48:01]line Чек 8 13.07.2024 03:48 [03:48:01]line Смена: 446 ФФД: 1.0 [03:48:01]line ЗНМ: 0300000160 [03:48:01]line РНМ: 0000000000090829 [03:48:01]line Версия ККМ: 001 [03:48:01]line ФМ: 0000000000874718 [03:48:01]line ФД: 164448 [03:48:01]line ФПД: 258719313535473 [03:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034800&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164448&fm=258719313535473&tin=02508201610067®Number=0000000000090829&sum=50000 [03:48:01]OFD Sender: Processing packet 164448 [packets to send 104, broken 103] [03:48:01]ProducePacketName [03:48:01]name=ofd_packets/00164448 [03:48:01]OFD Sender: To server: pG, [03:48:01]CommunicateWithHost lk.salyk.kg:30040 [03:48:01]ConnectInit lk.salyk.kg [03:48:01]written 0, free lines is 4095 [03:48:01]Connected sock=10 [03:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 9D 07 01 4D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F0 F8 91 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 82 02 00 35 04 06 00 EB 4D C8 C7 A1 F1 37 52 35 AD DD 02 4D DA [03:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 47 69 47 00 E6 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 34 37 31 38 10 04 04 00 60 82 02 00 F4 03 04 00 82 9F 91 66 B6 04 01 00 00 86 6F CF 86 F2 74 64 07 [03:48:01]CommunicateWithHost err = 0 [03:48:01]CheckOFDResponse [03:48:01]1017 (14) - 77093643461234 [03:48:01]1041 (16) - 0000000000874718 [03:48:01]1040 (4) - 164448 [03:48:01]1012 (4) - 12.07.2024 21:26 [03:48:01]1206 (1) - 0 [03:48:01]OFD Sender: Remove packet 164448 [03:48:01]ProducePacketName [03:48:01]name=ofd_packets/00164448 [03:48:01]NVStorageDeleteData [03:48:02]Write to MH i2c: 01 00 00 97 02 99 [03:48:02]Write i2c OK [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: 01 [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: 01 07 00 [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 00 0D AD [03:48:02]RasterBufferAndPrint [03:48:02]line [03:48:02]line [03:48:02]line [03:48:02]line [03:48:02]line [03:48:02]written 0, free lines is 3334 [03:48:02]MH_Cut [03:48:02]Write to MH i2c: D1 01 00 9E 02 01 72 [03:48:02]Write i2c OK [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: D1 [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: D1 01 00 [03:48:02]MH_I2C_Read... [03:48:02]Read from MH i2c: D1 01 00 9E 02 00 71 [03:48:02]Write to MH i2c: 01 00 00 9F 02 A1 [03:48:02]Write i2c OK [03:48:02]MH_I2C_Read... [03:48:02]OFD Sender: No OFD packet to send [03:48:02]*** Cut start [03:48:02]*** Partial cut [03:48:02]*** CUTSNS_PIN = 1 [03:48:02]*** CUTSNS_PIN = 0 [03:48:02]*** Brake cut motor [03:48:03]Read from MH i2c: 01 [03:48:03]MH_I2C_Read... [03:48:03]*** Stop cut motor [03:48:03]*** Cut end [03:48:03]Read from MH i2c: 01 07 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [03:48:03]process_action close_receipt done [03:48:03]requested_data is exist [03:48:03]produce_requested_data [03:48:03]requested_item fm.sn is exist - process it [03:48:03]wFMCommunicate request_size=4 [03:48:03]MH_SAM_APDU [03:48:03]CAPDU: 80 11 00 00 [03:48:03]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [03:48:03]Write i2c OK [03:48:03]MH_I2C_Read... [03:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:03]Read from MH i2c: E2 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 17 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [03:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:48:03]wFMCommunicate OK [03:48:03]requested_item fd.num is exist - process it [03:48:03]SAM_PROTO_GetFieldsCounters [03:48:03]wFMCommunicate request_size=4 [03:48:03]MH_SAM_APDU [03:48:03]CAPDU: 80 13 00 00 [03:48:03]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [03:48:03]Write i2c OK [03:48:03]MH_I2C_Read... [03:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:03]Read from MH i2c: E2 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 62 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 62 00 A1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 82 02 00 0E 04 04 00 BE 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 01 [03:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 82 02 00 0E 04 04 00 BE 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 [03:48:03]wFMCommunicate OK [03:48:03]SAM_PROTO_GetFieldsCounters done [03:48:03]requested_item shift.num is exist - process it [03:48:03]requested_item shift.opened is exist - process it [03:48:03]req_shift_opened [03:48:03]FM_GetShiftState [03:48:03]SAM_PROTO_GetShiftState [03:48:03]wFMCommunicate request_size=4 [03:48:03]MH_SAM_APDU [03:48:03]CAPDU: 80 13 01 00 [03:48:03]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [03:48:03]Write i2c OK [03:48:03]MH_I2C_Read... [03:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:03]Read from MH i2c: E2 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 0E 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 02 [03:48:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [03:48:03]wFMCommunicate OK [03:48:03]SAM_PROTO_GetShiftState done [03:48:03]FM_GetShiftState done [03:48:03]req_shift_opened done [03:48:03]requested_item shift.open_date is exist - process it [03:48:03]req_shift_open_date [03:48:03]req_shift_open_date done [03:48:03]produce_requested_data done [03:48:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164448,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [03:48:03]process_action_free close_receipt [03:48:03]json_value_free [03:48:03]json_value_free done [03:48:03]process_json_proto returns [03:48:03]Send response to host [03:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164448,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [03:48:03]free response buf [03:48:03]execute_script done [03:48:03]execute_script returns [03:48:03]free content buf [03:48:03]Sock 9.Close socket [03:48:03]Sock 9.Thread stoped [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]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:50]accept exits with 7 [05:05:50]New connection [05:05:50]New thread 3067301220 created [05:05:50]Thread 3067157860 joined [05:05:50]Waiting for new connection... [05:05:50] Sock 7.Parse request [05:05:50]Sock 7.Check first char [05:05:50]Sock 7.First char is OK [05:05:50]request: POST /json_proto HTTP/1.0 [05:05:50]Method: POST [05:05:50]URL: /json_proto [05:05:50]Method is POST - this is cgi request [05:05:50]url: /json_proto [05:05:50]query_string will be loaded in cgi processing [05:05:50]execute_cgi json_proto POST (null) [05:05:50]execute_cgi path=json_proto method=POST [05:05:50]POST find Content-Length [05:05:50]Host: 172.17.56.4:8080 [05:05:50]Content-Length: 674 [05:05:50]Content-Type: application/json [05:05:50] [05:05:50]POST finish read [05:05:50]Found Content-Length = 674 [05:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:50]execute_script... [05:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:50]POST & json_proto [05:05:50]process_json_proto [05:05:50]json parsed OK: [05:05:50]protocol is kg_v1.0 [05:05:50]action value=close_receipt [05:05:50]process_action close_receipt [05:05:50]cmd_close_receipt [05:05:50]MH_GetDate [05:05:50]Write to MH i2c: F0 00 00 A3 02 94 [05:05:50]Write i2c OK [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: F0 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: F0 09 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: F0 09 00 A3 02 00 2F 0B 92 66 C9 DC B2 64 8A [05:05:50]GetLastDocTimeStamp 1720842480 [05:05:50]current date 1720847151 [05:05:50]FM_GetShiftState [05:05:50]SAM_PROTO_GetShiftState [05:05:50]wFMCommunicate request_size=4 [05:05:50]MH_SAM_APDU [05:05:50]CAPDU: 80 13 01 00 [05:05:50]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [05:05:50]Write i2c OK [05:05:50]MH_I2C_Read... [05:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:50]Read from MH i2c: E2 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 0E 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 04 [05:05:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:05:50]wFMCommunicate OK [05:05:50]SAM_PROTO_GetShiftState done [05:05:50]FM_GetShiftState done [05:05:50]opened in 1720831249 [05:05:50]opened+sec_in_day 1720917649 [05:05:50]quantity*price = 50042 [05:05:50]sum+1 = 50043 [05:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 9 13.07.2024 05:05 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164449 ФПД: 198057577150841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164449&fm=198057577150841&tin=02508201610067®Number=0000000000090829&sum=50000 [05:05:51]StoreToDocumentArchive [05:05:51]shift 446 fd 164449 [05:05:51]save to /storage/0446/doc_00164449 [05:05:51]save last doc name /storage/0446/doc_00164449 to /storage/kkm_last_doc_name [05:05:51]save OK [05:05:51]Clear old archive folders... [05:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:05:51]tlvbuf is 00BE56C0 [05:05:51]SAM_PROTO_ClearQueue [05:05:51]wFMCommunicate request_size=4 [05:05:51]MH_SAM_APDU [05:05:51]CAPDU: 80 09 00 00 [05:05:51]Write to MH i2c: E2 08 00 B1 02 80 09 00 00 00 00 00 00 25 [05:05:51]Write i2c OK [05:05:51]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [05:05:52]RAPDU: 90 00 [05:05:52]wFMCommunicate OK [05:05:52]SAM_PROTO_ClearQueue done [05:05:52]KKMCreateOFDPacket [05:05:52]OFDProtocolAddRootSTLVToBuf [05:05:52]FM_MakeSignedData [05:05:52]FM_MakeSignedData [05:05:52]SAM_PROTO_SignData [05:05:52]wFMCommunicate request_size=4 [05:05:52]MH_SAM_APDU [05:05:52]CAPDU: 80 0D 01 02 [05:05:52]Write to MH i2c: E2 08 00 B2 02 80 0D 01 02 00 00 00 00 2D [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [05:05:52]RAPDU: 90 00 [05:05:52]wFMCommunicate OK [05:05:52]wFMCommunicate request_size=255 [05:05:52]MH_SAM_APDU [05:05: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2F 0B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 82 02 00 35 04 06 00 B4 21 DF 87 [05:05:52]Write to MH i2c: E2 02 01 B3 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2F 0B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 82 02 00 35 04 06 00 B4 21 DF 87 00 00 1C [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [05:05:52]RAPDU: 90 00 [05:05:52]wFMCommunicate OK [05:05:52]wFMCommunicate request_size=7 [05:05:52]MH_SAM_APDU [05:05:52]CAPDU: 80 0D 02 02 02 F9 79 [05:05:52]Write to MH i2c: E2 0A 00 B4 02 80 0D 02 02 02 00 F9 79 00 00 A6 [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [05:05:52]RAPDU: 90 00 [05:05:52]wFMCommunicate OK [05:05:52]wFMCommunicate request_size=4 [05:05:52]MH_SAM_APDU [05:05:52]CAPDU: 80 0D 03 02 [05:05:52]Write to MH i2c: E2 08 00 B5 02 80 0D 03 02 00 00 00 00 32 [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 0B 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 0B 00 B5 02 00 FE 01 51 95 7E 84 B6 D5 90 00 A5 [05:05:52]RAPDU: FE 01 51 95 7E 84 B6 D5 90 00 [05:05:52]wFMCommunicate OK [05:05:52]SAM_PROTO_SignData done [05:05:52]FM_MakeSignedData done [05:05:52]CreateOFDProtocolMessage [05:05:52]wFMCommunicate request_size=4 [05:05:52]MH_SAM_APDU [05:05:52]CAPDU: 80 11 00 00 [05:05:52]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:52]Read from MH i2c: E2 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 17 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [05:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:05:52]wFMCommunicate OK [05:05:52]CreateOFDProtocolMessage done [05:05:52]OFDSenderStorePacket 164449 [05:05:52]StoreOFDPacket docnum=164449 [05:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 FC 04 01 F0 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2F 0B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 82 02 00 35 04 06 00 B4 21 DF 87 F9 79 FE 01 51 95 7E 84 B6 D5 [05:05:52]CheckFolder [05:05:52]dirname=/storage/ofd_packets [05:05:52]CheckFolder done [05:05:52]ProducePacketName [05:05:52]name=ofd_packets/00164449 [05:05:52]NVStorageSaveData ofd_packets/00164449 [05:05:52]File name is /storage/ofd_packets/00164449 [05:05:52]Write 298 bytes [05:05:52]NVStorageSaveData done [05:05:52]OFDSenderStorePacket done [05:05:52]KKMCreateOFDPacket done [05:05:52]NVStorageSaveData kkm_last_timestamp [05:05:52]File name is /storage/kkm_last_timestamp [05:05:52]Write 4 bytes [05:05:52]NVStorageSaveData done [05:05:52]ExternCall_PrintAddStr [05:05:52]wPrintStart [05:05:52]Write to MH i2c: 01 00 00 B7 02 B9 [05:05:52]Write i2c OK [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: 01 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: 01 07 00 [05:05:52]MH_I2C_Read... [05:05:52]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [05:05:52]RasterBufferAndPrint [05:05:52]line Счет N : (1)458535 [05:05:52]line ИНН: 02508201610067 [05:05:52]line Контрольно-Кассовый Чек [05:05:52]line ПРОДАЖА [05:05:52]line ТРК (МРК, ГНК) : 11 [05:05:52]line Товар: 2710194210 [05:05:52]line ДТ-К-5 [05:05:52]line 6.960 * 71.90 [05:05:52]line = 500.42 [05:05:52]line НДС 12% НСП 1% [05:05:52]line > о реализуемом товаре [05:05:52]line ОКРУГЛЕНИЕ: -0.42 [05:05:52]line ИТОГО: 500.00 [05:05:52]line Внесено: 500.00 [05:05:52]line СДАЧА: 0.00 [05:05:52]line НСП 1% : 4.43 [05:05:52]line НДС 12% : 53.14 [05:05:52]line Наличными: 500.00 [05:05:52]line Безнал.: 0.00 [05:05:52]line Место: АЗС № 72 "Партнер Нефть" [05:05:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:05:52]line СНО: Общий режим [05:05:52]line Чек 9 13.07.2024 05:05 [05:05:52]line Смена: 446 ФФД: 1.0 [05:05:52]line ЗНМ: 0300000160 [05:05:52]line РНМ: 0000000000090829 [05:05:52]line Версия ККМ: 001 [05:05:52]line ФМ: 0000000000874718 [05:05:52]line ФД: 164449 [05:05:52]line ФПД: 198057577150841 [05:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164449&fm=198057577150841&tin=02508201610067®Number=0000000000090829&sum=50000 [05:05:52]OFD Sender: Processing packet 164449 [packets to send 104, broken 103] [05:05:52]ProducePacketName [05:05:52]name=ofd_packets/00164449 [05:05:52]OFD Sender: To server: pG, [05:05:52]CommunicateWithHost lk.salyk.kg:30040 [05:05:52]ConnectInit lk.salyk.kg [05:05:52]written 0, free lines is 4095 [05:05:52]Connected sock=10 [05:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 FC 04 01 F0 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 2F 0B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 82 02 00 35 04 06 00 B4 21 DF 87 F9 79 FE 01 51 95 7E 84 B6 D5 [05:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 76 3E 47 00 F7 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 82 02 00 F4 03 04 00 C2 B1 91 66 B6 04 01 00 00 B5 3B A5 A4 B2 D6 57 F0 [05:05:53]CommunicateWithHost err = 0 [05:05:53]CheckOFDResponse [05:05:53]1017 (14) - 77093643461234 [05:05:53]1041 (16) - 0000000000874718 [05:05:53]1040 (4) - 164449 [05:05:53]1012 (4) - 12.07.2024 22:44 [05:05:53]1206 (1) - 0 [05:05:53]OFD Sender: Remove packet 164449 [05:05:53]ProducePacketName [05:05:53]name=ofd_packets/00164449 [05:05:53]NVStorageDeleteData [05:05:53]Write to MH i2c: 01 00 00 E1 02 E3 [05:05:53]Write i2c OK [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: 01 [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: 01 07 00 [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 EF 0C E5 [05:05:53]RasterBufferAndPrint [05:05:53]line [05:05:53]line [05:05:53]line [05:05:53]line [05:05:53]line [05:05:53]written 0, free lines is 3318 [05:05:53]MH_Cut [05:05:53]Write to MH i2c: D1 01 00 E8 02 01 BC [05:05:53]Write i2c OK [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: D1 [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: D1 01 00 [05:05:53]MH_I2C_Read... [05:05:53]Read from MH i2c: D1 01 00 E8 02 00 BB [05:05:53]Write to MH i2c: 01 00 00 E9 02 EB [05:05:53]Write i2c OK [05:05:53]MH_I2C_Read... [05:05:53]OFD Sender: No OFD packet to send [05:05:53]*** Cut start [05:05:53]*** Partial cut [05:05:53]*** CUTSNS_PIN = 1 [05:05:53]*** CUTSNS_PIN = 0 [05:05:54]*** Brake cut motor [05:05:54]Read from MH i2c: 01 [05:05:54]MH_I2C_Read... [05:05:54]*** Stop cut motor [05:05:54]*** Cut end [05:05:54]Read from MH i2c: 01 07 00 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [05:05:54]process_action close_receipt done [05:05:54]requested_data is exist [05:05:54]produce_requested_data [05:05:54]requested_item fm.sn is exist - process it [05:05:54]wFMCommunicate request_size=4 [05:05:54]MH_SAM_APDU [05:05:54]CAPDU: 80 11 00 00 [05:05:54]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [05:05:54]Write i2c OK [05:05:54]MH_I2C_Read... [05:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:54]Read from MH i2c: E2 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 17 00 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [05:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:05:54]wFMCommunicate OK [05:05:54]requested_item fd.num is exist - process it [05:05:54]SAM_PROTO_GetFieldsCounters [05:05:54]wFMCommunicate request_size=4 [05:05:54]MH_SAM_APDU [05:05:54]CAPDU: 80 13 00 00 [05:05:54]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [05:05:54]Write i2c OK [05:05:54]MH_I2C_Read... [05:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:54]Read from MH i2c: E2 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 62 00 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 62 00 EB 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 82 02 00 0E 04 04 00 BE 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 4F [05:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 82 02 00 0E 04 04 00 BE 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 [05:05:54]wFMCommunicate OK [05:05:54]SAM_PROTO_GetFieldsCounters done [05:05:54]requested_item shift.num is exist - process it [05:05:54]requested_item shift.opened is exist - process it [05:05:54]req_shift_opened [05:05:54]FM_GetShiftState [05:05:54]SAM_PROTO_GetShiftState [05:05:54]wFMCommunicate request_size=4 [05:05:54]MH_SAM_APDU [05:05:54]CAPDU: 80 13 01 00 [05:05:54]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [05:05:54]Write i2c OK [05:05:54]MH_I2C_Read... [05:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:54]Read from MH i2c: E2 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 0E 00 [05:05:54]MH_I2C_Read... [05:05:54]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4C [05:05:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:05:54]wFMCommunicate OK [05:05:54]SAM_PROTO_GetShiftState done [05:05:54]FM_GetShiftState done [05:05:54]req_shift_opened done [05:05:54]requested_item shift.open_date is exist - process it [05:05:54]req_shift_open_date [05:05:54]req_shift_open_date done [05:05:54]produce_requested_data done [05:05:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164449,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:05:54]process_action_free close_receipt [05:05:54]json_value_free [05:05:54]json_value_free done [05:05:54]process_json_proto returns [05:05:54]Send response to host [05:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164449,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:05:54]free response buf [05:05:54]execute_script done [05:05:54]execute_script returns [05:05:54]free content buf [05:05:54]Sock 7.Close socket [05:05:54]Sock 7.Thread stoped [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:29]accept exits with 9 [05:15:29]New connection [05:15:29]New thread 3067157860 created [05:15:29]Thread 3067301220 joined [05:15:29]Waiting for new connection... [05:15:29] Sock 9.Parse request [05:15:29]Sock 9.Check first char [05:15:29]Sock 9.First char is OK [05:15:29]request: POST /json_proto HTTP/1.0 [05:15:29]Method: POST [05:15:29]URL: /json_proto [05:15:29]Method is POST - this is cgi request [05:15:29]url: /json_proto [05:15:29]query_string will be loaded in cgi processing [05:15:29]execute_cgi json_proto POST (null) [05:15:29]execute_cgi path=json_proto method=POST [05:15:29]POST find Content-Length [05:15:29]Host: 172.17.56.4:8080 [05:15:29]Content-Length: 682 [05:15:29]Content-Type: application/json [05:15:29] [05:15:29]POST finish read [05:15:29]Found Content-Length = 682 [05:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:29]execute_script... [05:15: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)458536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:15:29]POST & json_proto [05:15:29]process_json_proto [05:15:29]json parsed OK: [05:15:29]protocol is kg_v1.0 [05:15:29]action value=close_receipt [05:15:29]process_action close_receipt [05:15:29]cmd_close_receipt [05:15:29]MH_GetDate [05:15:29]Write to MH i2c: F0 00 00 ED 02 DE [05:15:29]Write i2c OK [05:15:29]MH_I2C_Read... [05:15:29]Read from MH i2c: F0 [05:15:29]MH_I2C_Read... [05:15:29]Read from MH i2c: F0 09 00 [05:15:29]MH_I2C_Read... [05:15:29]Read from MH i2c: F0 09 00 ED 02 00 73 0D 92 66 C9 DC B2 64 1A [05:15:29]GetLastDocTimeStamp 1720847151 [05:15:29]current date 1720847731 [05:15:29]FM_GetShiftState [05:15:29]SAM_PROTO_GetShiftState [05:15:29]wFMCommunicate request_size=4 [05:15:29]MH_SAM_APDU [05:15:29]CAPDU: 80 13 01 00 [05:15:29]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [05:15:29]Write i2c OK [05:15:29]MH_I2C_Read... [05:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:29]Read from MH i2c: E2 [05:15:29]MH_I2C_Read... [05:15:29]Read from MH i2c: E2 0E 00 [05:15:29]MH_I2C_Read... [05:15:29]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4E [05:15:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:15:29]wFMCommunicate OK [05:15:29]SAM_PROTO_GetShiftState done [05:15:29]FM_GetShiftState done [05:15:29]opened in 1720831249 [05:15:29]opened+sec_in_day 1720917649 [05:15:29]quantity*price = 100016 [05:15:29]sum+1 = 100017 [05:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 10 13.07.2024 05:15 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164450 ФПД: 257835457192023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T051531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164450&fm=257835457192023&tin=02508201610067®Number=0000000000090829&sum=100000 [05:15:31]StoreToDocumentArchive [05:15:31]shift 446 fd 164450 [05:15:31]save to /storage/0446/doc_00164450 [05:15:31]save last doc name /storage/0446/doc_00164450 to /storage/kkm_last_doc_name [05:15:31]save OK [05:15:31]Clear old archive folders... [05:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:15:31]tlvbuf is 00BF3060 [05:15:31]SAM_PROTO_ClearQueue [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 09 00 00 [05:15:31]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [05:15:31]RAPDU: 90 00 [05:15:31]wFMCommunicate OK [05:15:31]SAM_PROTO_ClearQueue done [05:15:31]KKMCreateOFDPacket [05:15:31]OFDProtocolAddRootSTLVToBuf [05:15:31]FM_MakeSignedData [05:15:31]FM_MakeSignedData [05:15:31]SAM_PROTO_SignData [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 0D 01 02 [05:15:31]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [05:15:31]RAPDU: 90 00 [05:15:31]wFMCommunicate OK [05:15:31]wFMCommunicate request_size=255 [05:15:31]MH_SAM_APDU [05:15: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 73 0D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 82 02 00 35 04 06 00 EA [05:15:31]Write to MH i2c: E2 02 01 FD 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 73 0D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 82 02 00 35 04 06 00 EA 00 00 A3 [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [05:15:31]RAPDU: 90 00 [05:15:31]wFMCommunicate OK [05:15:31]wFMCommunicate request_size=10 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 0D 02 02 05 7F FE D6 20 57 [05:15:31]Write to MH i2c: E2 0D 00 FE 02 80 0D 02 02 05 00 7F FE D6 20 57 00 00 4E [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [05:15:31]RAPDU: 90 00 [05:15:31]wFMCommunicate OK [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 0D 03 02 [05:15:31]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 0B 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 0B 00 FF 02 00 8C 89 C9 A0 EE 20 55 FD 90 00 5B [05:15:31]RAPDU: 8C 89 C9 A0 EE 20 55 FD 90 00 [05:15:31]wFMCommunicate OK [05:15:31]SAM_PROTO_SignData done [05:15:31]FM_MakeSignedData done [05:15:31]CreateOFDProtocolMessage [05:15:31]wFMCommunicate request_size=4 [05:15:31]MH_SAM_APDU [05:15:31]CAPDU: 80 11 00 00 [05:15:31]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:31]Read from MH i2c: E2 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 17 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [05:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:15:31]wFMCommunicate OK [05:15:31]CreateOFDProtocolMessage done [05:15:31]OFDSenderStorePacket 164450 [05:15:31]StoreOFDPacket docnum=164450 [05:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 7E 07 01 26 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 73 0D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 82 02 00 35 04 06 00 EA 7F FE D6 20 57 8C 89 C9 A0 EE 20 55 FD [05:15:31]CheckFolder [05:15:31]dirname=/storage/ofd_packets [05:15:31]CheckFolder done [05:15:31]ProducePacketName [05:15:31]name=ofd_packets/00164450 [05:15:31]NVStorageSaveData ofd_packets/00164450 [05:15:31]File name is /storage/ofd_packets/00164450 [05:15:31]Write 301 bytes [05:15:31]NVStorageSaveData done [05:15:31]OFDSenderStorePacket done [05:15:31]KKMCreateOFDPacket done [05:15:31]NVStorageSaveData kkm_last_timestamp [05:15:31]File name is /storage/kkm_last_timestamp [05:15:31]Write 4 bytes [05:15:31]NVStorageSaveData done [05:15:31]ExternCall_PrintAddStr [05:15:31]wPrintStart [05:15:31]Write to MH i2c: 01 00 00 01 03 04 [05:15:31]Write i2c OK [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: 01 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: 01 07 00 [05:15:31]MH_I2C_Read... [05:15:31]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [05:15:31]RasterBufferAndPrint [05:15:31]line Счет N : (1)458536 [05:15:31]line ИНН: 02508201610067 [05:15:31]line Контрольно-Кассовый Чек [05:15:31]line ПРОДАЖА [05:15:31]line ТРК (МРК, ГНК) : 22 [05:15:31]line Товар: 2710124130 [05:15:31]line Аи-92-К-5 [05:15:31]line 15.200 * 65.80 [05:15:31]line = 1000.16 [05:15:31]line НДС 12% НСП 1% [05:15:31]line > о реализуемом товаре [05:15:31]line ОКРУГЛЕНИЕ: -0.16 [05:15:31]line ИТОГО: 1000.00 [05:15:31]line Внесено: 1000.00 [05:15:31]line СДАЧА: 0.00 [05:15:31]line НСП 1% : 8.85 [05:15:31]line НДС 12% : 106.21 [05:15:31]line Наличными: 1000.00 [05:15:31]line Безнал.: 0.00 [05:15:31]line Место: АЗС № 72 "Партнер Нефть" [05:15:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:15:31]line СНО: Общий режим [05:15:31]line Чек 10 13.07.2024 05:15 [05:15:31]line Смена: 446 ФФД: 1.0 [05:15:31]line ЗНМ: 0300000160 [05:15:31]line РНМ: 0000000000090829 [05:15:31]line Версия ККМ: 001 [05:15:31]line ФМ: 0000000000874718 [05:15:31]line ФД: 164450 [05:15:31]line ФПД: 257835457192023 [05:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T051531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164450&fm=257835457192023&tin=02508201610067®Number=0000000000090829&sum=100000 [05:15:31]OFD Sender: Processing packet 164450 [packets to send 104, broken 103] [05:15:31]ProducePacketName [05:15:31]name=ofd_packets/00164450 [05:15:31]OFD Sender: To server: pG, [05:15:31]CommunicateWithHost lk.salyk.kg:30040 [05:15:31]ConnectInit lk.salyk.kg [05:15:31]written 0, free lines is 4095 [05:15:32]Connected sock=10 [05:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 7E 07 01 26 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 73 0D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 82 02 00 35 04 06 00 EA 7F FE D6 20 57 8C 89 C9 A0 EE 20 55 FD [05:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD C7 47 00 5C 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 34 37 31 38 10 04 04 00 62 82 02 00 F4 03 04 00 05 B4 91 66 B6 04 01 00 00 28 B7 1B 2C E7 BA F1 89 [05:15:32]CommunicateWithHost err = 0 [05:15:32]CheckOFDResponse [05:15:32]1017 (14) - 77093643461234 [05:15:32]1041 (16) - 0000000000874718 [05:15:32]1040 (4) - 164450 [05:15:32]1012 (4) - 12.07.2024 22:53 [05:15:32]1206 (1) - 0 [05:15:32]OFD Sender: Remove packet 164450 [05:15:32]ProducePacketName [05:15:32]name=ofd_packets/00164450 [05:15:32]NVStorageDeleteData [05:15:32]Write to MH i2c: 01 00 00 2B 03 2E [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: 01 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: 01 07 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 0A 0D 4C [05:15:32]RasterBufferAndPrint [05:15:32]line [05:15:32]line [05:15:32]line [05:15:32]line [05:15:32]line [05:15:32]written 0, free lines is 3344 [05:15:32]MH_Cut [05:15:32]Write to MH i2c: D1 01 00 32 03 01 07 [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: D1 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: D1 01 00 [05:15:32]MH_I2C_Read... [05:15:32]Read from MH i2c: D1 01 00 32 03 00 06 [05:15:32]Write to MH i2c: 01 00 00 33 03 36 [05:15:32]Write i2c OK [05:15:32]MH_I2C_Read... [05:15:32]OFD Sender: No OFD packet to send [05:15:33]*** Cut start [05:15:33]*** Partial cut [05:15:33]*** CUTSNS_PIN = 1 [05:15:33]*** CUTSNS_PIN = 0 [05:15:33]*** Brake cut motor [05:15:33]Read from MH i2c: 01 [05:15:33]MH_I2C_Read... [05:15:33]*** Stop cut motor [05:15:33]*** Cut end [05:15:33]Read from MH i2c: 01 07 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [05:15:33]process_action close_receipt done [05:15:33]requested_data is exist [05:15:33]produce_requested_data [05:15:33]requested_item fm.sn is exist - process it [05:15:33]wFMCommunicate request_size=4 [05:15:33]MH_SAM_APDU [05:15:33]CAPDU: 80 11 00 00 [05:15:33]Write to MH i2c: E2 08 00 34 03 80 11 00 00 00 00 00 00 B1 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:33]Read from MH i2c: E2 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 17 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 17 00 34 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [05:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:15:33]wFMCommunicate OK [05:15:33]requested_item fd.num is exist - process it [05:15:33]SAM_PROTO_GetFieldsCounters [05:15:33]wFMCommunicate request_size=4 [05:15:33]MH_SAM_APDU [05:15:33]CAPDU: 80 13 00 00 [05:15:33]Write to MH i2c: E2 08 00 35 03 80 13 00 00 00 00 00 00 B4 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:33]Read from MH i2c: E2 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 62 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 62 00 35 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 82 02 00 0E 04 04 00 BE 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 9E [05:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 82 02 00 0E 04 04 00 BE 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 [05:15:33]wFMCommunicate OK [05:15:33]SAM_PROTO_GetFieldsCounters done [05:15:33]requested_item shift.num is exist - process it [05:15:33]requested_item shift.opened is exist - process it [05:15:33]req_shift_opened [05:15:33]FM_GetShiftState [05:15:33]SAM_PROTO_GetShiftState [05:15:33]wFMCommunicate request_size=4 [05:15:33]MH_SAM_APDU [05:15:33]CAPDU: 80 13 01 00 [05:15:33]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [05:15:33]Write i2c OK [05:15:33]MH_I2C_Read... [05:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:33]Read from MH i2c: E2 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 0E 00 [05:15:33]MH_I2C_Read... [05:15:33]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 97 [05:15:33]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:15:33]wFMCommunicate OK [05:15:33]SAM_PROTO_GetShiftState done [05:15:33]FM_GetShiftState done [05:15:33]req_shift_opened done [05:15:33]requested_item shift.open_date is exist - process it [05:15:33]req_shift_open_date [05:15:33]req_shift_open_date done [05:15:33]produce_requested_data done [05:15:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164450,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:15:33]process_action_free close_receipt [05:15:33]json_value_free [05:15:33]json_value_free done [05:15:33]process_json_proto returns [05:15:33]Send response to host [05:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164450,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:15:33]free response buf [05:15:33]execute_script done [05:15:33]execute_script returns [05:15:33]free content buf [05:15:33]Sock 9.Close socket [05:15:33]Sock 9.Thread stoped [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19: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:51]accept exits with 7 [05:25:51]New connection [05:25:51]New thread 3067301220 created [05:25:51]Thread 3067157860 joined [05:25:51]Waiting for new connection... [05:25:51] Sock 7.Parse request [05:25:51]Sock 7.Check first char [05:25:51]Sock 7.First char is OK [05:25:51]request: POST /json_proto HTTP/1.0 [05:25:51]Method: POST [05:25:51]URL: /json_proto [05:25:51]Method is POST - this is cgi request [05:25:51]url: /json_proto [05:25:51]query_string will be loaded in cgi processing [05:25:51]execute_cgi json_proto POST (null) [05:25:51]execute_cgi path=json_proto method=POST [05:25:51]POST find Content-Length [05:25:51]Host: 172.17.56.4:8080 [05:25:51]Content-Length: 677 [05:25:51]Content-Type: application/json [05:25:51] [05:25:51]POST finish read [05:25:51]Found Content-Length = 677 [05:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [05:25:51]execute_script... [05:25: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)458537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [05:25:51]POST & json_proto [05:25:51]process_json_proto [05:25:51]json parsed OK: [05:25:51]protocol is kg_v1.0 [05:25:51]action value=close_receipt [05:25:51]process_action close_receipt [05:25:51]cmd_close_receipt [05:25:51]MH_GetDate [05:25:51]Write to MH i2c: F0 00 00 37 03 29 [05:25:51]Write i2c OK [05:25:51]MH_I2C_Read... [05:25:51]Read from MH i2c: F0 [05:25:51]MH_I2C_Read... [05:25:51]Read from MH i2c: F0 09 00 [05:25:51]MH_I2C_Read... [05:25:51]Read from MH i2c: F0 09 00 37 03 00 E0 0F 92 66 C9 DC B2 64 D4 [05:25:51]GetLastDocTimeStamp 1720847731 [05:25:51]current date 1720848352 [05:25:51]FM_GetShiftState [05:25:51]SAM_PROTO_GetShiftState [05:25:51]wFMCommunicate request_size=4 [05:25:51]MH_SAM_APDU [05:25:51]CAPDU: 80 13 01 00 [05:25:51]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [05:25:51]Write i2c OK [05:25:51]MH_I2C_Read... [05:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:51]Read from MH i2c: E2 [05:25:51]MH_I2C_Read... [05:25:51]Read from MH i2c: E2 0E 00 [05:25:51]MH_I2C_Read... [05:25:51]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 99 [05:25:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:25:51]wFMCommunicate OK [05:25:51]SAM_PROTO_GetShiftState done [05:25:51]FM_GetShiftState done [05:25:51]opened in 1720831249 [05:25:51]opened+sec_in_day 1720917649 [05:25:51]quantity*price = 30004 [05:25:51]sum+1 = 30006 [05:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 11 13.07.2024 05:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164451 ФПД: 57147515317280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164451&fm=57147515317280&tin=02508201610067®Number=0000000000090829&sum=30000 [05:25:52]StoreToDocumentArchive [05:25:52]shift 446 fd 164451 [05:25:52]save to /storage/0446/doc_00164451 [05:25:52]save last doc name /storage/0446/doc_00164451 to /storage/kkm_last_doc_name [05:25:52]save OK [05:25:52]Clear old archive folders... [05:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:52]tlvbuf is 00B70E90 [05:25:52]SAM_PROTO_ClearQueue [05:25:52]wFMCommunicate request_size=4 [05:25:52]MH_SAM_APDU [05:25:52]CAPDU: 80 09 00 00 [05:25:52]Write to MH i2c: E2 08 00 45 03 80 09 00 00 00 00 00 00 BA [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [05:25:52]RAPDU: 90 00 [05:25:52]wFMCommunicate OK [05:25:52]SAM_PROTO_ClearQueue done [05:25:52]KKMCreateOFDPacket [05:25:52]OFDProtocolAddRootSTLVToBuf [05:25:52]FM_MakeSignedData [05:25:52]FM_MakeSignedData [05:25:52]SAM_PROTO_SignData [05:25:52]wFMCommunicate request_size=4 [05:25:52]MH_SAM_APDU [05:25:52]CAPDU: 80 0D 01 02 [05:25:52]Write to MH i2c: E2 08 00 46 03 80 0D 01 02 00 00 00 00 C2 [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [05:25:52]RAPDU: 90 00 [05:25:52]wFMCommunicate OK [05:25:52]wFMCommunicate request_size=255 [05:25:52]MH_SAM_APDU [05:25: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0B 00 00 00 F4 03 04 00 E0 0F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 82 02 00 35 04 06 00 33 [05:25:52]Write to MH i2c: E2 02 01 47 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0B 00 00 00 F4 03 04 00 E0 0F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 82 02 00 35 04 06 00 33 00 00 C7 [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [05:25:52]RAPDU: 90 00 [05:25:52]wFMCommunicate OK [05:25:52]wFMCommunicate request_size=10 [05:25:52]MH_SAM_APDU [05:25:52]CAPDU: 80 0D 02 02 05 F9 B1 59 AC 20 [05:25:52]Write to MH i2c: E2 0D 00 48 03 80 0D 02 02 05 00 F9 B1 59 AC 20 00 00 9E [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [05:25:52]RAPDU: 90 00 [05:25:52]wFMCommunicate OK [05:25:52]wFMCommunicate request_size=4 [05:25:52]MH_SAM_APDU [05:25:52]CAPDU: 80 0D 03 02 [05:25:52]Write to MH i2c: E2 08 00 49 03 80 0D 03 02 00 00 00 00 C7 [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 0B 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 0B 00 49 03 00 19 46 00 27 76 D2 F9 48 90 00 D7 [05:25:52]RAPDU: 19 46 00 27 76 D2 F9 48 90 00 [05:25:52]wFMCommunicate OK [05:25:52]SAM_PROTO_SignData done [05:25:52]FM_MakeSignedData done [05:25:52]CreateOFDProtocolMessage [05:25:52]wFMCommunicate request_size=4 [05:25:52]MH_SAM_APDU [05:25:52]CAPDU: 80 11 00 00 [05:25:52]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:52]Read from MH i2c: E2 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 17 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [05:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:25:52]wFMCommunicate OK [05:25:52]CreateOFDProtocolMessage done [05:25:52]OFDSenderStorePacket 164451 [05:25:52]StoreOFDPacket docnum=164451 [05:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 E2 07 01 48 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0B 00 00 00 F4 03 04 00 E0 0F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 82 02 00 35 04 06 00 33 F9 B1 59 AC 20 19 46 00 27 76 D2 F9 48 [05:25:52]CheckFolder [05:25:52]dirname=/storage/ofd_packets [05:25:52]CheckFolder done [05:25:52]ProducePacketName [05:25:52]name=ofd_packets/00164451 [05:25:52]NVStorageSaveData ofd_packets/00164451 [05:25:52]File name is /storage/ofd_packets/00164451 [05:25:52]Write 301 bytes [05:25:52]NVStorageSaveData done [05:25:52]OFDSenderStorePacket done [05:25:52]KKMCreateOFDPacket done [05:25:52]NVStorageSaveData kkm_last_timestamp [05:25:52]File name is /storage/kkm_last_timestamp [05:25:52]Write 4 bytes [05:25:52]NVStorageSaveData done [05:25:52]OFD Sender: Processing packet 164451 [packets to send 104, broken 103] [05:25:52]ProducePacketName [05:25:52]name=ofd_packets/00164451 [05:25:52]OFD Sender: To server: pG, [05:25:52]CommunicateWithHost lk.salyk.kg:30040 [05:25:52]ConnectInit lk.salyk.kg [05:25:52]ExternCall_PrintAddStr [05:25:52]wPrintStart [05:25:52]Write to MH i2c: 01 00 00 4B 03 4E [05:25:52]Write i2c OK [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: 01 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: 01 07 00 [05:25:52]MH_I2C_Read... [05:25:52]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [05:25:52]RasterBufferAndPrint [05:25:52]line Счет N : (1)458537 [05:25:52]line ИНН: 02508201610067 [05:25:52]line Контрольно-Кассовый Чек [05:25:52]line ПРОДАЖА [05:25:52]line ТРК (МРК, ГНК) : 12 [05:25:52]line Товар: 2710124130 [05:25:52]line Аи-92-К-5 [05:25:52]line 4.560 * 65.80 [05:25:52]line = 300.05 [05:25:52]line НДС 12% НСП 1% [05:25:52]line > о реализуемом товаре [05:25:52]line ОКРУГЛЕНИЕ: -0.05 [05:25:52]line ИТОГО: 300.00 [05:25:52]line Внесено: 300.00 [05:25:52]line СДАЧА: 0.00 [05:25:52]line НСП 1% : 2.65 [05:25:52]line НДС 12% : 31.86 [05:25:52]line Наличными: 300.00 [05:25:52]line Безнал.: 0.00 [05:25:52]line Место: АЗС № 72 "Партнер Нефть" [05:25:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:25:52]line СНО: Общий режим [05:25:52]line Чек 11 13.07.2024 05:25 [05:25:52]line Смена: 446 ФФД: 1.0 [05:25:52]line ЗНМ: 0300000160 [05:25:52]line РНМ: 0000000000090829 [05:25:52]line Версия ККМ: 001 [05:25:52]line ФМ: 0000000000874718 [05:25:52]line ФД: 164451 [05:25:52]line ФПД: 57147515317280 [05:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164451&fm=57147515317280&tin=02508201610067®Number=0000000000090829&sum=30000 [05:25:53]Connected sock=12 [05:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 E2 07 01 48 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 0B 00 00 00 F4 03 04 00 E0 0F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 82 02 00 35 04 06 00 33 F9 B1 59 AC 20 19 46 00 27 76 D2 F9 48 [05:25:53]written 0, free lines is 4095 [05:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4D 42 47 00 F4 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 34 37 31 38 10 04 04 00 63 82 02 00 F4 03 04 00 72 B6 91 66 B6 04 01 00 00 DD B9 2B 92 2C E0 4B 68 [05:25:53]CommunicateWithHost err = 0 [05:25:53]CheckOFDResponse [05:25:53]1017 (14) - 77093643461234 [05:25:53]1041 (16) - 0000000000874718 [05:25:53]1040 (4) - 164451 [05:25:53]1012 (4) - 12.07.2024 23:04 [05:25:53]1206 (1) - 0 [05:25:53]OFD Sender: Remove packet 164451 [05:25:53]ProducePacketName [05:25:53]name=ofd_packets/00164451 [05:25:53]NVStorageDeleteData [05:25:53]Write to MH i2c: 01 00 00 75 03 78 [05:25:53]Write i2c OK [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: 01 [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: 01 07 00 [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 EC 0C 77 [05:25:53]RasterBufferAndPrint [05:25:53]line [05:25:53]line [05:25:53]line [05:25:53]line [05:25:53]line [05:25:53]written 0, free lines is 3314 [05:25:53]MH_Cut [05:25:53]Write to MH i2c: D1 01 00 7C 03 01 51 [05:25:53]Write i2c OK [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: D1 [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: D1 01 00 [05:25:53]MH_I2C_Read... [05:25:53]Read from MH i2c: D1 01 00 7C 03 00 50 [05:25:53]Write to MH i2c: 01 00 00 7D 03 80 [05:25:53]Write i2c OK [05:25:53]MH_I2C_Read... [05:25:53]OFD Sender: No OFD packet to send [05:25:54]*** Cut start [05:25:54]*** Partial cut [05:25:54]*** CUTSNS_PIN = 1 [05:25:54]*** CUTSNS_PIN = 0 [05:25:54]*** Brake cut motor [05:25:54]Read from MH i2c: 01 [05:25:54]MH_I2C_Read... [05:25:54]*** Stop cut motor [05:25:54]*** Cut end [05:25:54]Read from MH i2c: 01 07 00 [05:25:54]MH_I2C_Read... [05:25:54]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [05:25:54]process_action close_receipt done [05:25:54]requested_data is exist [05:25:54]produce_requested_data [05:25:54]requested_item fm.sn is exist - process it [05:25:54]wFMCommunicate request_size=4 [05:25:54]MH_SAM_APDU [05:25:54]CAPDU: 80 11 00 00 [05:25:54]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [05:25:54]Write i2c OK [05:25:54]MH_I2C_Read... [05:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:54]Read from MH i2c: E2 [05:25:54]MH_I2C_Read... [05:25:54]Read from MH i2c: E2 17 00 [05:25:54]MH_I2C_Read... [05:25:54]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [05:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:25:54]wFMCommunicate OK [05:25:54]requested_item fd.num is exist - process it [05:25:54]SAM_PROTO_GetFieldsCounters [05:25:54]wFMCommunicate request_size=4 [05:25:54]MH_SAM_APDU [05:25:54]CAPDU: 80 13 00 00 [05:25:54]Write to MH i2c: E2 08 00 7F 03 80 13 00 00 00 00 00 00 FE [05:25:54]Write i2c OK [05:25:54]MH_I2C_Read... [05:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:54]Read from MH i2c: E2 [05:25:54]MH_I2C_Read... [05:25:54]Read from MH i2c: E2 62 00 [05:25:54]MH_I2C_Read... [05:25:54]Read from MH i2c: E2 62 00 7F 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 82 02 00 0E 04 04 00 BE 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 EC [05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 82 02 00 0E 04 04 00 BE 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 [05:25:55]wFMCommunicate OK [05:25:55]SAM_PROTO_GetFieldsCounters done [05:25:55]requested_item shift.num is exist - process it [05:25:55]requested_item shift.opened is exist - process it [05:25:55]req_shift_opened [05:25:55]FM_GetShiftState [05:25:55]SAM_PROTO_GetShiftState [05:25:55]wFMCommunicate request_size=4 [05:25:55]MH_SAM_APDU [05:25:55]CAPDU: 80 13 01 00 [05:25:55]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [05:25:55]Write i2c OK [05:25:55]MH_I2C_Read... [05:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:55]Read from MH i2c: E2 [05:25:55]MH_I2C_Read... [05:25:55]Read from MH i2c: E2 0E 00 [05:25:55]MH_I2C_Read... [05:25:55]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E1 [05:25:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:25:55]wFMCommunicate OK [05:25:55]SAM_PROTO_GetShiftState done [05:25:55]FM_GetShiftState done [05:25:55]req_shift_opened done [05:25:55]requested_item shift.open_date is exist - process it [05:25:55]req_shift_open_date [05:25:55]req_shift_open_date done [05:25:55]produce_requested_data done [05:25:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164451,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:25:55]process_action_free close_receipt [05:25:55]json_value_free [05:25:55]json_value_free done [05:25:55]process_json_proto returns [05:25:55]Send response to host [05:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164451,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:25:55]free response buf [05:25:55]execute_script done [05:25:55]execute_script returns [05:25:55]free content buf [05:25:55]Sock 7.Close socket [05:25:55]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]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:18]accept exits with 10 [05:44:18]New connection [05:44:18]New thread 3067157860 created [05:44:18]Thread 3067301220 joined [05:44:18]Waiting for new connection... [05:44:18] Sock 10.Parse request [05:44:18]Sock 10.Check first char [05:44:18]Sock 10.First char is OK [05:44:18]request: POST /json_proto HTTP/1.0 [05:44:18]Method: POST [05:44:18]URL: /json_proto [05:44:18]Method is POST - this is cgi request [05:44:18]url: /json_proto [05:44:18]query_string will be loaded in cgi processing [05:44:18]execute_cgi json_proto POST (null) [05:44:18]execute_cgi path=json_proto method=POST [05:44:18]POST find Content-Length [05:44:18]Host: 172.17.56.4:8080 [05:44:18]Content-Length: 679 [05:44:18]Content-Type: application/json [05:44:18] [05:44:18]POST finish read [05:44:18]Found Content-Length = 679 [05:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:18]execute_script... [05:44:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:18]POST & json_proto [05:44:18]process_json_proto [05:44:18]json parsed OK: [05:44:18]protocol is kg_v1.0 [05:44:18]action value=close_receipt [05:44:18]process_action close_receipt [05:44:18]cmd_close_receipt [05:44:18]MH_GetDate [05:44:18]Write to MH i2c: F0 00 00 81 03 73 [05:44:18]Write i2c OK [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 09 00 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 09 00 81 03 00 33 14 92 66 C9 DC B2 64 76 [05:44:18]GetLastDocTimeStamp 1720848352 [05:44:18]current date 1720849459 [05:44:18]FM_GetShiftState [05:44:18]SAM_PROTO_GetShiftState [05:44:18]wFMCommunicate request_size=4 [05:44:18]MH_SAM_APDU [05:44:18]CAPDU: 80 13 01 00 [05:44:18]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [05:44:18]Write i2c OK [05:44:18]MH_I2C_Read... [05:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:18]Read from MH i2c: E2 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: E2 0E 00 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E3 [05:44:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:44:18]wFMCommunicate OK [05:44:18]SAM_PROTO_GetShiftState done [05:44:18]FM_GetShiftState done [05:44:18]opened in 1720831249 [05:44:18]opened+sec_in_day 1720917649 [05:44:18]quantity*price = 300038 [05:44:18]sum+1 = 300040 [05:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 12 13.07.2024 05:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164452 ФПД: 122357606232578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T054419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164452&fm=122357606232578&tin=02508201610067®Number=0000000000090829&sum=300000 [05:44:19]StoreToDocumentArchive [05:44:19]shift 446 fd 164452 [05:44:19]save to /storage/0446/doc_00164452 [05:44:19]save last doc name /storage/0446/doc_00164452 to /storage/kkm_last_doc_name [05:44:19]save OK [05:44:19]Clear old archive folders... [05:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:44:19]tlvbuf is 00BEE500 [05:44:19]SAM_PROTO_ClearQueue [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 09 00 00 [05:44:19]Write to MH i2c: E2 08 00 8F 03 80 09 00 00 00 00 00 00 04 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]SAM_PROTO_ClearQueue done [05:44:19]KKMCreateOFDPacket [05:44:19]OFDProtocolAddRootSTLVToBuf [05:44:19]FM_MakeSignedData [05:44:19]FM_MakeSignedData [05:44:19]SAM_PROTO_SignData [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 01 02 [05:44:19]Write to MH i2c: E2 08 00 90 03 80 0D 01 02 00 00 00 00 0C [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=255 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 0C 00 00 00 F4 03 04 00 33 14 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 82 02 00 35 04 06 00 6F 48 99 A7 [05:44:19]Write to MH i2c: E2 02 01 91 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 0C 00 00 00 F4 03 04 00 33 14 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 82 02 00 35 04 06 00 6F 48 99 A7 00 00 17 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=7 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 02 02 02 B2 02 [05:44:19]Write to MH i2c: E2 0A 00 92 03 80 0D 02 02 02 00 B2 02 00 00 C7 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 03 02 [05:44:19]Write to MH i2c: E2 08 00 93 03 80 0D 03 02 00 00 00 00 11 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 0B 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 0B 00 93 03 00 70 BA 16 48 B2 48 2C CF 90 00 8F [05:44:19]RAPDU: 70 BA 16 48 B2 48 2C CF 90 00 [05:44:19]wFMCommunicate OK [05:44:19]SAM_PROTO_SignData done [05:44:19]FM_MakeSignedData done [05:44:19]CreateOFDProtocolMessage [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 11 00 00 [05:44:19]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 17 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [05:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:44:19]wFMCommunicate OK [05:44:19]CreateOFDProtocolMessage done [05:44:19]OFDSenderStorePacket 164452 [05:44:19]StoreOFDPacket docnum=164452 [05:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3A F9 04 01 7B 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 0C 00 00 00 F4 03 04 00 33 14 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 82 02 00 35 04 06 00 6F 48 99 A7 B2 02 70 BA 16 48 B2 48 2C CF [05:44:19]CheckFolder [05:44:19]dirname=/storage/ofd_packets [05:44:19]CheckFolder done [05:44:19]ProducePacketName [05:44:19]name=ofd_packets/00164452 [05:44:19]NVStorageSaveData ofd_packets/00164452 [05:44:19]File name is /storage/ofd_packets/00164452 [05:44:19]Write 298 bytes [05:44:19]NVStorageSaveData done [05:44:19]OFDSenderStorePacket done [05:44:19]KKMCreateOFDPacket done [05:44:19]NVStorageSaveData kkm_last_timestamp [05:44:19]File name is /storage/kkm_last_timestamp [05:44:19]Write 4 bytes [05:44:19]NVStorageSaveData done [05:44:19]ExternCall_PrintAddStr [05:44:19]wPrintStart [05:44:19]Write to MH i2c: 01 00 00 95 03 98 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 07 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [05:44:19]RasterBufferAndPrint [05:44:19]line Счет N : (1)458538 [05:44:19]line ИНН: 02508201610067 [05:44:19]line Контрольно-Кассовый Чек [05:44:19]line ПРОДАЖА [05:44:19]line ТРК (МРК, ГНК) : 21 [05:44:19]line Товар: 2710194210 [05:44:19]line ДТ-К-5 [05:44:19]line 41.730 * 71.90 [05:44:19]line = 3000.39 [05:44:19]line НДС 12% НСП 1% [05:44:19]line > о реализуемом товаре [05:44:19]line ОКРУГЛЕНИЕ: -0.39 [05:44:19]line ИТОГО: 3000.00 [05:44:19]line Внесено: 3000.00 [05:44:19]line СДАЧА: 0.00 [05:44:19]line НСП 1% : 26.55 [05:44:19]line НДС 12% : 318.62 [05:44:19]line Наличными: 3000.00 [05:44:19]line Безнал.: 0.00 [05:44:19]line Место: АЗС № 72 "Партнер Нефть" [05:44:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:44:19]line СНО: Общий режим [05:44:19]line Чек 12 13.07.2024 05:44 [05:44:19]line Смена: 446 ФФД: 1.0 [05:44:19]line ЗНМ: 0300000160 [05:44:19]line РНМ: 0000000000090829 [05:44:19]line Версия ККМ: 001 [05:44:19]line ФМ: 0000000000874718 [05:44:19]line ФД: 164452 [05:44:19]line ФПД: 122357606232578 [05:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T054419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164452&fm=122357606232578&tin=02508201610067®Number=0000000000090829&sum=300000 [05:44:20]OFD Sender: Processing packet 164452 [packets to send 104, broken 103] [05:44:20]ProducePacketName [05:44:20]name=ofd_packets/00164452 [05:44:20]OFD Sender: To server: pG, [05:44:20]CommunicateWithHost lk.salyk.kg:30040 [05:44:20]ConnectInit lk.salyk.kg [05:44:20]written 0, free lines is 4095 [05:44:20]Connected sock=9 [05:44:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3A F9 04 01 7B 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 0C 00 00 00 F4 03 04 00 33 14 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 82 02 00 35 04 06 00 6F 48 99 A7 B2 02 70 BA 16 48 B2 48 2C CF [05:44:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F6 60 47 00 B3 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 82 02 00 F4 03 04 00 C5 BA 91 66 B6 04 01 00 00 97 DC 34 5E 74 69 2A 7C [05:44:20]CommunicateWithHost err = 0 [05:44:20]CheckOFDResponse [05:44:20]1017 (14) - 77093643461234 [05:44:20]1041 (16) - 0000000000874718 [05:44:20]1040 (4) - 164452 [05:44:20]1012 (4) - 12.07.2024 23:22 [05:44:20]1206 (1) - 0 [05:44:20]OFD Sender: Remove packet 164452 [05:44:20]ProducePacketName [05:44:20]name=ofd_packets/00164452 [05:44:20]NVStorageDeleteData [05:44:20]Write to MH i2c: 01 00 00 BF 03 C2 [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 07 00 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 02 0D D8 [05:44:20]RasterBufferAndPrint [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]written 0, free lines is 3336 [05:44:20]MH_Cut [05:44:20]Write to MH i2c: D1 01 00 C6 03 01 9B [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 01 00 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 01 00 C6 03 00 9A [05:44:20]Write to MH i2c: 01 00 00 C7 03 CA [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:21]OFD Sender: No OFD packet to send [05:44:21]*** Cut start [05:44:21]*** Partial cut [05:44:21]*** CUTSNS_PIN = 1 [05:44:21]*** CUTSNS_PIN = 0 [05:44:21]*** Brake cut motor [05:44:21]Read from MH i2c: 01 [05:44:21]MH_I2C_Read... [05:44:21]*** Stop cut motor [05:44:21]*** Cut end [05:44:21]Read from MH i2c: 01 07 00 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 FF 0F DF [05:44:22]process_action close_receipt done [05:44:22]requested_data is exist [05:44:22]produce_requested_data [05:44:22]requested_item fm.sn is exist - process it [05:44:22]wFMCommunicate request_size=4 [05:44:22]MH_SAM_APDU [05:44:22]CAPDU: 80 11 00 00 [05:44:22]Write to MH i2c: E2 08 00 C8 03 80 11 00 00 00 00 00 00 45 [05:44:22]Write i2c OK [05:44:22]MH_I2C_Read... [05:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:22]Read from MH i2c: E2 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 17 00 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 17 00 C8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [05:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:44:22]wFMCommunicate OK [05:44:22]requested_item fd.num is exist - process it [05:44:22]SAM_PROTO_GetFieldsCounters [05:44:22]wFMCommunicate request_size=4 [05:44:22]MH_SAM_APDU [05:44:22]CAPDU: 80 13 00 00 [05:44:22]Write to MH i2c: E2 08 00 C9 03 80 13 00 00 00 00 00 00 48 [05:44:22]Write i2c OK [05:44:22]MH_I2C_Read... [05:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:22]Read from MH i2c: E2 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 62 00 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 62 00 C9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 82 02 00 0E 04 04 00 BE 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 3A [05:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 82 02 00 0E 04 04 00 BE 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 [05:44:22]wFMCommunicate OK [05:44:22]SAM_PROTO_GetFieldsCounters done [05:44:22]requested_item shift.num is exist - process it [05:44:22]requested_item shift.opened is exist - process it [05:44:22]req_shift_opened [05:44:22]FM_GetShiftState [05:44:22]SAM_PROTO_GetShiftState [05:44:22]wFMCommunicate request_size=4 [05:44:22]MH_SAM_APDU [05:44:22]CAPDU: 80 13 01 00 [05:44:22]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [05:44:22]Write i2c OK [05:44:22]MH_I2C_Read... [05:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:22]Read from MH i2c: E2 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 0E 00 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2B [05:44:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:44:22]wFMCommunicate OK [05:44:22]SAM_PROTO_GetShiftState done [05:44:22]FM_GetShiftState done [05:44:22]req_shift_opened done [05:44:22]requested_item shift.open_date is exist - process it [05:44:22]req_shift_open_date [05:44:22]req_shift_open_date done [05:44:22]produce_requested_data done [05:44:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164452,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:44:22]process_action_free close_receipt [05:44:22]json_value_free [05:44:22]json_value_free done [05:44:22]process_json_proto returns [05:44:22]Send response to host [05:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164452,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:44:22]free response buf [05:44:22]execute_script done [05:44:22]execute_script returns [05:44:22]free content buf [05:44:22]Sock 10.Close socket [05:44:22]Sock 10.Thread stoped [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:54]recv_with_timeout no data received [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:55]recv_with_timeout no data received [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:49]accept exits with 7 [05:55:49]New connection [05:55:49]New thread 3067301220 created [05:55:49]Thread 3067157860 joined [05:55:49]Waiting for new connection... [05:55:49] Sock 7.Parse request [05:55:49]Sock 7.Check first char [05:55:49]Sock 7.First char is OK [05:55:49]request: POST /json_proto HTTP/1.0 [05:55:49]Method: POST [05:55:49]URL: /json_proto [05:55:49]Method is POST - this is cgi request [05:55:49]url: /json_proto [05:55:49]query_string will be loaded in cgi processing [05:55:49]execute_cgi json_proto POST (null) [05:55:49]execute_cgi path=json_proto method=POST [05:55:49]POST find Content-Length [05:55:49]Host: 172.17.56.4:8080 [05:55:49]Content-Length: 682 [05:55:49]Content-Type: application/json [05:55:49] [05:55:49]POST finish read [05:55:49]Found Content-Length = 682 [05:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:49]execute_script... [05:55: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)458539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:49]POST & json_proto [05:55:49]process_json_proto [05:55:49]json parsed OK: [05:55:49]protocol is kg_v1.0 [05:55:49]action value=close_receipt [05:55:49]process_action close_receipt [05:55:49]cmd_close_receipt [05:55:49]MH_GetDate [05:55:49]Write to MH i2c: F0 00 00 CB 03 BD [05:55:49]Write i2c OK [05:55:49]MH_I2C_Read... [05:55:49]Read from MH i2c: F0 [05:55:49]MH_I2C_Read... [05:55:49]Read from MH i2c: F0 09 00 [05:55:49]MH_I2C_Read... [05:55:49]Read from MH i2c: F0 09 00 CB 03 00 E6 16 92 66 C9 DC B2 64 75 [05:55:49]GetLastDocTimeStamp 1720849459 [05:55:49]current date 1720850150 [05:55:49]FM_GetShiftState [05:55:49]SAM_PROTO_GetShiftState [05:55:49]wFMCommunicate request_size=4 [05:55:49]MH_SAM_APDU [05:55:49]CAPDU: 80 13 01 00 [05:55:49]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [05:55:49]Write i2c OK [05:55:49]MH_I2C_Read... [05:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:49]Read from MH i2c: E2 [05:55:49]MH_I2C_Read... [05:55:49]Read from MH i2c: E2 0E 00 [05:55:49]MH_I2C_Read... [05:55:49]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2D [05:55:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:55:49]wFMCommunicate OK [05:55:49]SAM_PROTO_GetShiftState done [05:55:49]FM_GetShiftState done [05:55:49]opened in 1720831249 [05:55:49]opened+sec_in_day 1720917649 [05:55:49]quantity*price = 100016 [05:55:49]sum+1 = 100017 [05:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 13 13.07.2024 05:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164453 ФПД: 56836477689761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164453&fm=56836477689761&tin=02508201610067®Number=0000000000090829&sum=100000 [05:55:50]StoreToDocumentArchive [05:55:50]shift 446 fd 164453 [05:55:50]save to /storage/0446/doc_00164453 [05:55:50]save last doc name /storage/0446/doc_00164453 to /storage/kkm_last_doc_name [05:55:50]save OK [05:55:50]Clear old archive folders... [05:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:55:50]tlvbuf is 00BE22D0 [05:55:50]SAM_PROTO_ClearQueue [05:55:50]wFMCommunicate request_size=4 [05:55:50]MH_SAM_APDU [05:55:50]CAPDU: 80 09 00 00 [05:55:50]Write to MH i2c: E2 08 00 D9 03 80 09 00 00 00 00 00 00 4E [05:55:50]Write i2c OK [05:55:50]MH_I2C_Read... [05:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:55:50]Read from MH i2c: E2 [05:55:50]MH_I2C_Read... [05:55:50]Read from MH i2c: E2 03 00 [05:55:50]MH_I2C_Read... [05:55:50]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [05:55:50]RAPDU: 90 00 [05:55:50]wFMCommunicate OK [05:55:50]SAM_PROTO_ClearQueue done [05:55:50]KKMCreateOFDPacket [05:55:50]OFDProtocolAddRootSTLVToBuf [05:55:50]FM_MakeSignedData [05:55:50]FM_MakeSignedData [05:55:50]SAM_PROTO_SignData [05:55:50]wFMCommunicate request_size=4 [05:55:50]MH_SAM_APDU [05:55:50]CAPDU: 80 0D 01 02 [05:55:50]Write to MH i2c: E2 08 00 DA 03 80 0D 01 02 00 00 00 00 56 [05:55:50]Write i2c OK [05:55:50]MH_I2C_Read... [05:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:55:50]Read from MH i2c: E2 [05:55:50]MH_I2C_Read... [05:55:50]Read from MH i2c: E2 03 00 [05:55:50]MH_I2C_Read... [05:55:50]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [05:55:50]RAPDU: 90 00 [05:55:50]wFMCommunicate OK [05:55:50]wFMCommunicate request_size=255 [05:55:50]MH_SAM_APDU [05:55: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E6 16 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 82 02 00 35 04 06 00 33 [05:55:50]Write to MH i2c: E2 02 01 DB 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E6 16 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 82 02 00 35 04 06 00 33 00 00 4D [05:55:50]Write i2c OK [05:55:50]MH_I2C_Read... [05:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:51]Read from MH i2c: E2 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 03 00 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [05:55:51]RAPDU: 90 00 [05:55:51]wFMCommunicate OK [05:55:51]wFMCommunicate request_size=10 [05:55:51]MH_SAM_APDU [05:55:51]CAPDU: 80 0D 02 02 05 B1 46 10 1F A1 [05:55:51]Write to MH i2c: E2 0D 00 DC 03 80 0D 02 02 05 00 B1 46 10 1F A1 00 00 2A [05:55:51]Write i2c OK [05:55:51]MH_I2C_Read... [05:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:51]Read from MH i2c: E2 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 03 00 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [05:55:51]RAPDU: 90 00 [05:55:51]wFMCommunicate OK [05:55:51]wFMCommunicate request_size=4 [05:55:51]MH_SAM_APDU [05:55:51]CAPDU: 80 0D 03 02 [05:55:51]Write to MH i2c: E2 08 00 DD 03 80 0D 03 02 00 00 00 00 5B [05:55:51]Write i2c OK [05:55:51]MH_I2C_Read... [05:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:55:51]Read from MH i2c: E2 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 0B 00 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 0B 00 DD 03 00 F8 3E A2 A3 3F 44 50 C4 90 00 6E [05:55:51]RAPDU: F8 3E A2 A3 3F 44 50 C4 90 00 [05:55:51]wFMCommunicate OK [05:55:51]SAM_PROTO_SignData done [05:55:51]FM_MakeSignedData done [05:55:51]CreateOFDProtocolMessage [05:55:51]wFMCommunicate request_size=4 [05:55:51]MH_SAM_APDU [05:55:51]CAPDU: 80 11 00 00 [05:55:51]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [05:55:51]Write i2c OK [05:55:51]MH_I2C_Read... [05:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:51]Read from MH i2c: E2 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 17 00 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [05:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:55:51]wFMCommunicate OK [05:55:51]CreateOFDProtocolMessage done [05:55:51]OFDSenderStorePacket 164453 [05:55:51]StoreOFDPacket docnum=164453 [05:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 71 07 01 83 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E6 16 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 82 02 00 35 04 06 00 33 B1 46 10 1F A1 F8 3E A2 A3 3F 44 50 C4 [05:55:51]CheckFolder [05:55:51]dirname=/storage/ofd_packets [05:55:51]CheckFolder done [05:55:51]ProducePacketName [05:55:51]name=ofd_packets/00164453 [05:55:51]NVStorageSaveData ofd_packets/00164453 [05:55:51]File name is /storage/ofd_packets/00164453 [05:55:51]Write 301 bytes [05:55:51]NVStorageSaveData done [05:55:51]OFDSenderStorePacket done [05:55:51]KKMCreateOFDPacket done [05:55:51]NVStorageSaveData kkm_last_timestamp [05:55:51]File name is /storage/kkm_last_timestamp [05:55:51]Write 4 bytes [05:55:51]NVStorageSaveData done [05:55:51]ExternCall_PrintAddStr [05:55:51]wPrintStart [05:55:51]Write to MH i2c: 01 00 00 DF 03 E2 [05:55:51]Write i2c OK [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: 01 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: 01 07 00 [05:55:51]MH_I2C_Read... [05:55:51]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [05:55:51]RasterBufferAndPrint [05:55:51]line Счет N : (1)458539 [05:55:51]line ИНН: 02508201610067 [05:55:51]line Контрольно-Кассовый Чек [05:55:51]line ПРОДАЖА [05:55:51]line ТРК (МРК, ГНК) : 22 [05:55:51]line Товар: 2710124130 [05:55:51]line Аи-92-К-5 [05:55:51]line 15.200 * 65.80 [05:55:51]line = 1000.16 [05:55:51]line НДС 12% НСП 1% [05:55:51]line > о реализуемом товаре [05:55:51]line ОКРУГЛЕНИЕ: -0.16 [05:55:51]line ИТОГО: 1000.00 [05:55:51]line Внесено: 1000.00 [05:55:51]line СДАЧА: 0.00 [05:55:51]line НСП 1% : 8.85 [05:55:51]line НДС 12% : 106.21 [05:55:51]line Наличными: 1000.00 [05:55:51]line Безнал.: 0.00 [05:55:51]line Место: АЗС № 72 "Партнер Нефть" [05:55:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:55:51]line СНО: Общий режим [05:55:51]line Чек 13 13.07.2024 05:55 [05:55:51]line Смена: 446 ФФД: 1.0 [05:55:51]line ЗНМ: 0300000160 [05:55:51]line РНМ: 0000000000090829 [05:55:51]line Версия ККМ: 001 [05:55:51]line ФМ: 0000000000874718 [05:55:51]line ФД: 164453 [05:55:51]line ФПД: 56836477689761 [05:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164453&fm=56836477689761&tin=02508201610067®Number=0000000000090829&sum=100000 [05:55:51]OFD Sender: Processing packet 164453 [packets to send 104, broken 103] [05:55:51]ProducePacketName [05:55:51]name=ofd_packets/00164453 [05:55:51]OFD Sender: To server: pG, [05:55:51]CommunicateWithHost lk.salyk.kg:30040 [05:55:51]ConnectInit lk.salyk.kg [05:55:51]written 0, free lines is 4095 [05:55:51]Connected sock=10 [05:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 71 07 01 83 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E6 16 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 82 02 00 35 04 06 00 33 B1 46 10 1F A1 F8 3E A2 A3 3F 44 50 C4 [05:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9E 5B 47 00 FF BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 82 02 00 F4 03 04 00 78 BD 91 66 B6 04 01 00 00 51 B9 EF A8 37 E5 6A 5D [05:55:51]CommunicateWithHost err = 0 [05:55:51]CheckOFDResponse [05:55:51]1017 (14) - 77093643461234 [05:55:51]1041 (16) - 0000000000874718 [05:55:51]1040 (4) - 164453 [05:55:51]1012 (4) - 12.07.2024 23:34 [05:55:51]1206 (1) - 0 [05:55:51]OFD Sender: Remove packet 164453 [05:55:51]ProducePacketName [05:55:51]name=ofd_packets/00164453 [05:55:51]NVStorageDeleteData [05:55:52]Write to MH i2c: 01 00 00 09 04 0D [05:55:52]Write i2c OK [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: 01 [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: 01 07 00 [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 EE 0C 0E [05:55:52]RasterBufferAndPrint [05:55:52]line [05:55:52]line [05:55:52]line [05:55:52]line [05:55:52]line [05:55:52]written 0, free lines is 3317 [05:55:52]MH_Cut [05:55:52]Write to MH i2c: D1 01 00 10 04 01 E6 [05:55:52]Write i2c OK [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: D1 [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: D1 01 00 [05:55:52]MH_I2C_Read... [05:55:52]Read from MH i2c: D1 01 00 10 04 00 E5 [05:55:52]Write to MH i2c: 01 00 00 11 04 15 [05:55:52]Write i2c OK [05:55:52]MH_I2C_Read... [05:55:52]OFD Sender: No OFD packet to send [05:55:52]*** Cut start [05:55:52]*** Partial cut [05:55:52]*** CUTSNS_PIN = 1 [05:55:52]*** CUTSNS_PIN = 0 [05:55:52]*** Brake cut motor [05:55:53]Read from MH i2c: 01 [05:55:53]MH_I2C_Read... [05:55:53]*** Stop cut motor [05:55:53]*** Cut end [05:55:53]Read from MH i2c: 01 07 00 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [05:55:53]process_action close_receipt done [05:55:53]requested_data is exist [05:55:53]produce_requested_data [05:55:53]requested_item fm.sn is exist - process it [05:55:53]wFMCommunicate request_size=4 [05:55:53]MH_SAM_APDU [05:55:53]CAPDU: 80 11 00 00 [05:55:53]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [05:55:53]Write i2c OK [05:55:53]MH_I2C_Read... [05:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:53]Read from MH i2c: E2 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 17 00 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [05:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:55:53]wFMCommunicate OK [05:55:53]requested_item fd.num is exist - process it [05:55:53]SAM_PROTO_GetFieldsCounters [05:55:53]wFMCommunicate request_size=4 [05:55:53]MH_SAM_APDU [05:55:53]CAPDU: 80 13 00 00 [05:55:53]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [05:55:53]Write i2c OK [05:55:53]MH_I2C_Read... [05:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:55:53]Read from MH i2c: E2 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 62 00 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 62 00 13 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 82 02 00 0E 04 04 00 BE 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 89 [05:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 82 02 00 0E 04 04 00 BE 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 [05:55:53]wFMCommunicate OK [05:55:53]SAM_PROTO_GetFieldsCounters done [05:55:53]requested_item shift.num is exist - process it [05:55:53]requested_item shift.opened is exist - process it [05:55:53]req_shift_opened [05:55:53]FM_GetShiftState [05:55:53]SAM_PROTO_GetShiftState [05:55:53]wFMCommunicate request_size=4 [05:55:53]MH_SAM_APDU [05:55:53]CAPDU: 80 13 01 00 [05:55:53]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [05:55:53]Write i2c OK [05:55:53]MH_I2C_Read... [05:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:53]Read from MH i2c: E2 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 0E 00 [05:55:53]MH_I2C_Read... [05:55:53]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 76 [05:55:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:55:53]wFMCommunicate OK [05:55:53]SAM_PROTO_GetShiftState done [05:55:53]FM_GetShiftState done [05:55:53]req_shift_opened done [05:55:53]requested_item shift.open_date is exist - process it [05:55:53]req_shift_open_date [05:55:53]req_shift_open_date done [05:55:53]produce_requested_data done [05:55:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164453,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:55:53]process_action_free close_receipt [05:55:53]json_value_free [05:55:53]json_value_free done [05:55:53]process_json_proto returns [05:55:53]Send response to host [05:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164453,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:55:53]free response buf [05:55:53]execute_script done [05:55:53]execute_script returns [05:55:53]free content buf [05:55:53]Sock 7.Close socket [05:55:53]Sock 7.Thread stoped [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:11]accept exits with 9 [05:59:11]New connection [05:59:11]New thread 3067157860 created [05:59:11]Thread 3067301220 joined [05:59:11]Waiting for new connection... [05:59:11] Sock 9.Parse request [05:59:11]Sock 9.Check first char [05:59:11]Sock 9.First char is OK [05:59:11]request: POST /json_proto HTTP/1.0 [05:59:11]Method: POST [05:59:11]URL: /json_proto [05:59:11]Method is POST - this is cgi request [05:59:11]url: /json_proto [05:59:11]query_string will be loaded in cgi processing [05:59:11]execute_cgi json_proto POST (null) [05:59:11]execute_cgi path=json_proto method=POST [05:59:11]POST find Content-Length [05:59:11]Host: 172.17.56.4:8080 [05:59:11]Content-Length: 677 [05:59:11]Content-Type: application/json [05:59:11] [05:59:11]POST finish read [05:59:11]Found Content-Length = 677 [05:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:11]execute_script... [05:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:11]POST & json_proto [05:59:11]process_json_proto [05:59:11]json parsed OK: [05:59:11]protocol is kg_v1.0 [05:59:11]action value=close_receipt [05:59:11]process_action close_receipt [05:59:11]cmd_close_receipt [05:59:11]MH_GetDate [05:59:11]Write to MH i2c: F0 00 00 15 04 08 [05:59:11]Write i2c OK [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: F0 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: F0 09 00 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: F0 09 00 15 04 00 B1 17 92 66 C9 DC B2 64 8C [05:59:11]GetLastDocTimeStamp 1720850150 [05:59:11]current date 1720850353 [05:59:11]FM_GetShiftState [05:59:11]SAM_PROTO_GetShiftState [05:59:11]wFMCommunicate request_size=4 [05:59:11]MH_SAM_APDU [05:59:11]CAPDU: 80 13 01 00 [05:59:11]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [05:59:11]Write i2c OK [05:59:11]MH_I2C_Read... [05:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:11]Read from MH i2c: E2 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 0E 00 [05:59:11]MH_I2C_Read... [05:59:11]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 78 [05:59:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:59:12]wFMCommunicate OK [05:59:12]SAM_PROTO_GetShiftState done [05:59:12]FM_GetShiftState done [05:59:12]opened in 1720831249 [05:59:12]opened+sec_in_day 1720917649 [05:59:12]quantity*price = 20003 [05:59:12]sum+1 = 20004 [05:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 14 13.07.2024 05:59 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164454 ФПД: 116851993096182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055913&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164454&fm=116851993096182&tin=02508201610067®Number=0000000000090829&sum=20000 [05:59:13]StoreToDocumentArchive [05:59:13]shift 446 fd 164454 [05:59:13]save to /storage/0446/doc_00164454 [05:59:13]save last doc name /storage/0446/doc_00164454 to /storage/kkm_last_doc_name [05:59:13]save OK [05:59:13]Clear old archive folders... [05:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:59:13]tlvbuf is B6FADAE0 [05:59:13]SAM_PROTO_ClearQueue [05:59:13]wFMCommunicate request_size=4 [05:59:13]MH_SAM_APDU [05:59:13]CAPDU: 80 09 00 00 [05:59:13]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [05:59:13]RAPDU: 90 00 [05:59:13]wFMCommunicate OK [05:59:13]SAM_PROTO_ClearQueue done [05:59:13]KKMCreateOFDPacket [05:59:13]OFDProtocolAddRootSTLVToBuf [05:59:13]FM_MakeSignedData [05:59:13]FM_MakeSignedData [05:59:13]SAM_PROTO_SignData [05:59:13]wFMCommunicate request_size=4 [05:59:13]MH_SAM_APDU [05:59:13]CAPDU: 80 0D 01 02 [05:59:13]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [05:59:13]RAPDU: 90 00 [05:59:13]wFMCommunicate OK [05:59:13]wFMCommunicate request_size=255 [05:59:13]MH_SAM_APDU [05:59: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 17 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 82 02 00 35 04 06 00 6A [05:59:13]Write to MH i2c: E2 02 01 25 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 17 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 82 02 00 35 04 06 00 6A 00 00 9C [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [05:59:13]RAPDU: 90 00 [05:59:13]wFMCommunicate OK [05:59:13]wFMCommunicate request_size=10 [05:59:13]MH_SAM_APDU [05:59:13]CAPDU: 80 0D 02 02 05 46 B9 8A 2F F6 [05:59:13]Write to MH i2c: E2 0D 00 26 04 80 0D 02 02 05 00 46 B9 8A 2F F6 00 00 5C [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [05:59:13]RAPDU: 90 00 [05:59:13]wFMCommunicate OK [05:59:13]wFMCommunicate request_size=4 [05:59:13]MH_SAM_APDU [05:59:13]CAPDU: 80 0D 03 02 [05:59:13]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 0B 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 0B 00 27 04 00 33 09 9F 0A F9 C6 3A AA 90 00 2F [05:59:13]RAPDU: 33 09 9F 0A F9 C6 3A AA 90 00 [05:59:13]wFMCommunicate OK [05:59:13]SAM_PROTO_SignData done [05:59:13]FM_MakeSignedData done [05:59:13]CreateOFDProtocolMessage [05:59:13]wFMCommunicate request_size=4 [05:59:13]MH_SAM_APDU [05:59:13]CAPDU: 80 11 00 00 [05:59:13]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:13]Read from MH i2c: E2 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 17 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [05:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:59:13]wFMCommunicate OK [05:59:13]CreateOFDProtocolMessage done [05:59:13]OFDSenderStorePacket 164454 [05:59:13]StoreOFDPacket docnum=164454 [05:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E AF 07 01 E2 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 17 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 82 02 00 35 04 06 00 6A 46 B9 8A 2F F6 33 09 9F 0A F9 C6 3A AA [05:59:13]CheckFolder [05:59:13]dirname=/storage/ofd_packets [05:59:13]CheckFolder done [05:59:13]ProducePacketName [05:59:13]name=ofd_packets/00164454 [05:59:13]NVStorageSaveData ofd_packets/00164454 [05:59:13]File name is /storage/ofd_packets/00164454 [05:59:13]Write 301 bytes [05:59:13]NVStorageSaveData done [05:59:13]OFDSenderStorePacket done [05:59:13]KKMCreateOFDPacket done [05:59:13]NVStorageSaveData kkm_last_timestamp [05:59:13]File name is /storage/kkm_last_timestamp [05:59:13]Write 4 bytes [05:59:13]NVStorageSaveData done [05:59:13]ExternCall_PrintAddStr [05:59:13]wPrintStart [05:59:13]Write to MH i2c: 01 00 00 29 04 2D [05:59:13]Write i2c OK [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 07 00 [05:59:13]MH_I2C_Read... [05:59:13]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [05:59:13]RasterBufferAndPrint [05:59:13]line Счет N : (1)458540 [05:59:13]line ИНН: 02508201610067 [05:59:13]line Контрольно-Кассовый Чек [05:59:13]line ПРОДАЖА [05:59:13]line ТРК (МРК, ГНК) : 12 [05:59:13]line Товар: 2710124130 [05:59:13]line Аи-92-К-5 [05:59:13]line 3.040 * 65.80 [05:59:13]line = 200.03 [05:59:13]line НДС 12% НСП 1% [05:59:13]line > о реализуемом товаре [05:59:13]line ОКРУГЛЕНИЕ: -0.03 [05:59:13]line ИТОГО: 200.00 [05:59:13]line Внесено: 200.00 [05:59:13]line СДАЧА: 0.00 [05:59:13]line НСП 1% : 1.77 [05:59:13]line НДС 12% : 21.24 [05:59:13]line Наличными: 200.00 [05:59:13]line Безнал.: 0.00 [05:59:13]line Место: АЗС № 72 "Партнер Нефть" [05:59:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:59:13]line СНО: Общий режим [05:59:13]line Чек 14 13.07.2024 05:59 [05:59:13]line Смена: 446 ФФД: 1.0 [05:59:13]line ЗНМ: 0300000160 [05:59:13]line РНМ: 0000000000090829 [05:59:13]line Версия ККМ: 001 [05:59:13]line ФМ: 0000000000874718 [05:59:13]line ФД: 164454 [05:59:13]line ФПД: 116851993096182 [05:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055913&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164454&fm=116851993096182&tin=02508201610067®Number=0000000000090829&sum=20000 [05:59:13]OFD Sender: Processing packet 164454 [packets to send 104, broken 103] [05:59:13]ProducePacketName [05:59:13]name=ofd_packets/00164454 [05:59:13]OFD Sender: To server: pG, [05:59:13]CommunicateWithHost lk.salyk.kg:30040 [05:59:13]ConnectInit lk.salyk.kg [05:59:13]written 0, free lines is 4095 [05:59:14]Connected sock=10 [05:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E AF 07 01 E2 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B1 17 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 82 02 00 35 04 06 00 6A 46 B9 8A 2F F6 33 09 9F 0A F9 C6 3A AA [05:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 77 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 34 37 31 38 10 04 04 00 66 82 02 00 F4 03 04 00 43 BE 91 66 B6 04 01 00 00 5A 2B 51 2E 12 78 21 38 [05:59:14]CommunicateWithHost err = 0 [05:59:14]CheckOFDResponse [05:59:14]1017 (14) - 77093643461234 [05:59:14]1041 (16) - 0000000000874718 [05:59:14]1040 (4) - 164454 [05:59:14]1012 (4) - 12.07.2024 23:37 [05:59:14]1206 (1) - 0 [05:59:14]OFD Sender: Remove packet 164454 [05:59:14]ProducePacketName [05:59:14]name=ofd_packets/00164454 [05:59:14]NVStorageDeleteData [05:59:14]Write to MH i2c: 01 00 00 53 04 57 [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: 01 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: 01 07 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 F2 0C 5C [05:59:14]RasterBufferAndPrint [05:59:14]line [05:59:14]line [05:59:14]line [05:59:14]line [05:59:14]line [05:59:14]written 0, free lines is 3320 [05:59:14]MH_Cut [05:59:14]Write to MH i2c: D1 01 00 5A 04 01 30 [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: D1 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: D1 01 00 [05:59:14]MH_I2C_Read... [05:59:14]Read from MH i2c: D1 01 00 5A 04 00 2F [05:59:14]Write to MH i2c: 01 00 00 5B 04 5F [05:59:14]Write i2c OK [05:59:14]MH_I2C_Read... [05:59:14]OFD Sender: No OFD packet to send [05:59:15]*** Cut start [05:59:15]*** Partial cut [05:59:15]*** CUTSNS_PIN = 1 [05:59:15]*** CUTSNS_PIN = 0 [05:59:15]*** Brake cut motor [05:59:15]Read from MH i2c: 01 [05:59:15]MH_I2C_Read... [05:59:15]*** Stop cut motor [05:59:15]*** Cut end [05:59:15]Read from MH i2c: 01 07 00 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [05:59:15]process_action close_receipt done [05:59:15]requested_data is exist [05:59:15]produce_requested_data [05:59:15]requested_item fm.sn is exist - process it [05:59:15]wFMCommunicate request_size=4 [05:59:15]MH_SAM_APDU [05:59:15]CAPDU: 80 11 00 00 [05:59:15]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [05:59:15]Write i2c OK [05:59:15]MH_I2C_Read... [05:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:15]Read from MH i2c: E2 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 17 00 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [05:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:59:15]wFMCommunicate OK [05:59:15]requested_item fd.num is exist - process it [05:59:15]SAM_PROTO_GetFieldsCounters [05:59:15]wFMCommunicate request_size=4 [05:59:15]MH_SAM_APDU [05:59:15]CAPDU: 80 13 00 00 [05:59:15]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [05:59:15]Write i2c OK [05:59:15]MH_I2C_Read... [05:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:15]Read from MH i2c: E2 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 62 00 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 82 02 00 0E 04 04 00 BE 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 D7 [05:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 82 02 00 0E 04 04 00 BE 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 [05:59:15]wFMCommunicate OK [05:59:15]SAM_PROTO_GetFieldsCounters done [05:59:15]requested_item shift.num is exist - process it [05:59:15]requested_item shift.opened is exist - process it [05:59:15]req_shift_opened [05:59:15]FM_GetShiftState [05:59:15]SAM_PROTO_GetShiftState [05:59:15]wFMCommunicate request_size=4 [05:59:15]MH_SAM_APDU [05:59:15]CAPDU: 80 13 01 00 [05:59:15]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [05:59:15]Write i2c OK [05:59:15]MH_I2C_Read... [05:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:15]Read from MH i2c: E2 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 0E 00 [05:59:15]MH_I2C_Read... [05:59:15]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C0 [05:59:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [05:59:15]wFMCommunicate OK [05:59:15]SAM_PROTO_GetShiftState done [05:59:15]FM_GetShiftState done [05:59:15]req_shift_opened done [05:59:15]requested_item shift.open_date is exist - process it [05:59:15]req_shift_open_date [05:59:15]req_shift_open_date done [05:59:15]produce_requested_data done [05:59:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164454,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [05:59:15]process_action_free close_receipt [05:59:15]json_value_free [05:59:15]json_value_free done [05:59:15]process_json_proto returns [05:59:15]Send response to host [05:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164454,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [05:59:15]free response buf [05:59:15]execute_script done [05:59:15]execute_script returns [05:59:15]free content buf [05:59:15]Sock 9.Close socket [05:59:15]Sock 9.Thread stoped [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:02]accept exits with 7 [06:01:02]New connection [06:01:02]New thread 3067301220 created [06:01:02]Thread 3067157860 joined [06:01:02]Waiting for new connection... [06:01:02] Sock 7.Parse request [06:01:02]Sock 7.Check first char [06:01:02]Sock 7.First char is OK [06:01:02]request: POST /json_proto HTTP/1.0 [06:01:02]Method: POST [06:01:02]URL: /json_proto [06:01:02]Method is POST - this is cgi request [06:01:02]url: /json_proto [06:01:02]query_string will be loaded in cgi processing [06:01:02]execute_cgi json_proto POST (null) [06:01:02]execute_cgi path=json_proto method=POST [06:01:02]POST find Content-Length [06:01:02]Host: 172.17.56.4:8080 [06:01:02]Content-Length: 674 [06:01:02]Content-Type: application/json [06:01:02] [06:01:02]POST finish read [06:01:02]Found Content-Length = 674 [06:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.740, "sum" : 268.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 268.00, "payments": [ { "type": 0, "sum" : 268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:02]execute_script... [06:01: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)458541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.740, "sum" : 268.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 268.00, "payments": [ { "type": 0, "sum" : 268.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:02]POST & json_proto [06:01:02]process_json_proto [06:01:02]json parsed OK: [06:01:02]protocol is kg_v1.0 [06:01:02]action value=close_receipt [06:01:02]process_action close_receipt [06:01:02]cmd_close_receipt [06:01:02]MH_GetDate [06:01:02]Write to MH i2c: F0 00 00 5F 04 52 [06:01:02]Write i2c OK [06:01:02]MH_I2C_Read... [06:01:02]Read from MH i2c: F0 [06:01:02]MH_I2C_Read... [06:01:02]Read from MH i2c: F0 09 00 [06:01:02]MH_I2C_Read... [06:01:02]Read from MH i2c: F0 09 00 5F 04 00 20 18 92 66 C9 DC B2 64 46 [06:01:02]GetLastDocTimeStamp 1720850353 [06:01:02]current date 1720850464 [06:01:02]FM_GetShiftState [06:01:02]SAM_PROTO_GetShiftState [06:01:02]wFMCommunicate request_size=4 [06:01:02]MH_SAM_APDU [06:01:02]CAPDU: 80 13 01 00 [06:01:02]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [06:01:02]Write i2c OK [06:01:02]MH_I2C_Read... [06:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:02]Read from MH i2c: E2 [06:01:02]MH_I2C_Read... [06:01:02]Read from MH i2c: E2 0E 00 [06:01:02]MH_I2C_Read... [06:01:02]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C2 [06:01:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:01:02]wFMCommunicate OK [06:01:02]SAM_PROTO_GetShiftState done [06:01:02]FM_GetShiftState done [06:01:02]opened in 1720831249 [06:01:02]opened+sec_in_day 1720917649 [06:01:02]quantity*price = 26890 [06:01:02]sum+1 = 26892 [06:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.91 ИТОГО: 268.00 Внесено: 500.00 СДАЧА: 232.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 15 13.07.2024 06:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164455 ФПД: 225144963999594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164455&fm=225144963999594&tin=02508201610067®Number=0000000000090829&sum=26800 [06:01:03]StoreToDocumentArchive [06:01:03]shift 446 fd 164455 [06:01:03]save to /storage/0446/doc_00164455 [06:01:03]save last doc name /storage/0446/doc_00164455 to /storage/kkm_last_doc_name [06:01:03]save OK [06:01:03]Clear old archive folders... [06:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:01:03]tlvbuf is 00BE7600 [06:01:03]SAM_PROTO_ClearQueue [06:01:03]wFMCommunicate request_size=4 [06:01:03]MH_SAM_APDU [06:01:03]CAPDU: 80 09 00 00 [06:01:03]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [06:01:03]Write i2c OK [06:01:03]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [06:01:04]RAPDU: 90 00 [06:01:04]wFMCommunicate OK [06:01:04]SAM_PROTO_ClearQueue done [06:01:04]KKMCreateOFDPacket [06:01:04]OFDProtocolAddRootSTLVToBuf [06:01:04]FM_MakeSignedData [06:01:04]FM_MakeSignedData [06:01:04]SAM_PROTO_SignData [06:01:04]wFMCommunicate request_size=4 [06:01:04]MH_SAM_APDU [06:01:04]CAPDU: 80 0D 01 02 [06:01:04]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [06:01:04]RAPDU: 90 00 [06:01:04]wFMCommunicate OK [06:01:04]wFMCommunicate request_size=255 [06:01:04]MH_SAM_APDU [06:01: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 9C 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 0B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 82 02 00 35 04 06 00 CC C4 A5 9A [06:01:04]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 0B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 82 02 00 35 04 06 00 CC C4 A5 9A 00 00 A7 [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [06:01:04]RAPDU: 90 00 [06:01:04]wFMCommunicate OK [06:01:04]wFMCommunicate request_size=7 [06:01:04]MH_SAM_APDU [06:01:04]CAPDU: 80 0D 02 02 02 27 6A [06:01:04]Write to MH i2c: E2 0A 00 70 04 80 0D 02 02 02 00 27 6A 00 00 83 [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [06:01:04]RAPDU: 90 00 [06:01:04]wFMCommunicate OK [06:01:04]wFMCommunicate request_size=4 [06:01:04]MH_SAM_APDU [06:01:04]CAPDU: 80 0D 03 02 [06:01:04]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 0B 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 0B 00 71 04 00 03 7F 77 23 68 FA AF AC 90 00 CA [06:01:04]RAPDU: 03 7F 77 23 68 FA AF AC 90 00 [06:01:04]wFMCommunicate OK [06:01:04]SAM_PROTO_SignData done [06:01:04]FM_MakeSignedData done [06:01:04]CreateOFDProtocolMessage [06:01:04]wFMCommunicate request_size=4 [06:01:04]MH_SAM_APDU [06:01:04]CAPDU: 80 11 00 00 [06:01:04]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:04]Read from MH i2c: E2 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 17 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [06:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:01:04]wFMCommunicate OK [06:01:04]CreateOFDProtocolMessage done [06:01:04]OFDSenderStorePacket 164455 [06:01:04]StoreOFDPacket docnum=164455 [06:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3A 7D 04 01 9E 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 0B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 82 02 00 35 04 06 00 CC C4 A5 9A 27 6A 03 7F 77 23 68 FA AF AC [06:01:04]CheckFolder [06:01:04]dirname=/storage/ofd_packets [06:01:04]CheckFolder done [06:01:04]ProducePacketName [06:01:04]name=ofd_packets/00164455 [06:01:04]NVStorageSaveData ofd_packets/00164455 [06:01:04]File name is /storage/ofd_packets/00164455 [06:01:04]Write 298 bytes [06:01:04]NVStorageSaveData done [06:01:04]OFDSenderStorePacket done [06:01:04]KKMCreateOFDPacket done [06:01:04]NVStorageSaveData kkm_last_timestamp [06:01:04]File name is /storage/kkm_last_timestamp [06:01:04]Write 4 bytes [06:01:04]NVStorageSaveData done [06:01:04]ExternCall_PrintAddStr [06:01:04]wPrintStart [06:01:04]Write to MH i2c: 01 00 00 73 04 77 [06:01:04]Write i2c OK [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: 01 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: 01 07 00 [06:01:04]MH_I2C_Read... [06:01:04]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [06:01:04]RasterBufferAndPrint [06:01:04]line Счет N : (1)458541 [06:01:04]line ИНН: 02508201610067 [06:01:04]line Контрольно-Кассовый Чек [06:01:04]line ПРОДАЖА [06:01:04]line ТРК (МРК, ГНК) : 11 [06:01:04]line Товар: 2710194210 [06:01:04]line ДТ-К-5 [06:01:04]line 3.740 * 71.90 [06:01:04]line = 268.91 [06:01:04]line НДС 12% НСП 1% [06:01:04]line > о реализуемом товаре [06:01:04]line ОКРУГЛЕНИЕ: -0.91 [06:01:04]line ИТОГО: 268.00 [06:01:04]line Внесено: 500.00 [06:01:04]line СДАЧА: 232.00 [06:01:04]line НСП 1% : 2.38 [06:01:04]line НДС 12% : 28.56 [06:01:04]line Наличными: 268.00 [06:01:04]line Безнал.: 0.00 [06:01:04]line Место: АЗС № 72 "Партнер Нефть" [06:01:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:01:04]line СНО: Общий режим [06:01:04]line Чек 15 13.07.2024 06:01 [06:01:04]line Смена: 446 ФФД: 1.0 [06:01:04]line ЗНМ: 0300000160 [06:01:04]line РНМ: 0000000000090829 [06:01:04]line Версия ККМ: 001 [06:01:04]line ФМ: 0000000000874718 [06:01:04]line ФД: 164455 [06:01:04]line ФПД: 225144963999594 [06:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164455&fm=225144963999594&tin=02508201610067®Number=0000000000090829&sum=26800 [06:01:04]OFD Sender: Processing packet 164455 [packets to send 104, broken 103] [06:01:04]ProducePacketName [06:01:04]name=ofd_packets/00164455 [06:01:04]OFD Sender: To server: pG, [06:01:04]CommunicateWithHost lk.salyk.kg:30040 [06:01:04]ConnectInit lk.salyk.kg [06:01:04]written 0, free lines is 4095 [06:01:04]Connected sock=10 [06:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3A 7D 04 01 9E 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 0B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 20 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 82 02 00 35 04 06 00 CC C4 A5 9A 27 6A 03 7F 77 23 68 FA AF AC [06:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 51 47 00 02 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 34 37 31 38 10 04 04 00 67 82 02 00 F4 03 04 00 B2 BE 91 66 B6 04 01 00 00 C9 BF 85 81 9F 6E 43 22 [06:01:05]CommunicateWithHost err = 0 [06:01:05]CheckOFDResponse [06:01:05]1017 (14) - 77093643461234 [06:01:05]1041 (16) - 0000000000874718 [06:01:05]1040 (4) - 164455 [06:01:05]1012 (4) - 12.07.2024 23:39 [06:01:05]1206 (1) - 0 [06:01:05]OFD Sender: Remove packet 164455 [06:01:05]ProducePacketName [06:01:05]name=ofd_packets/00164455 [06:01:05]NVStorageDeleteData [06:01:05]Write to MH i2c: 01 00 00 9D 04 A1 [06:01:05]Write i2c OK [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: 01 [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: 01 07 00 [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FB 0C AF [06:01:05]RasterBufferAndPrint [06:01:05]line [06:01:05]line [06:01:05]line [06:01:05]line [06:01:05]line [06:01:05]written 0, free lines is 3329 [06:01:05]MH_Cut [06:01:05]Write to MH i2c: D1 01 00 A4 04 01 7A [06:01:05]Write i2c OK [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: D1 [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: D1 01 00 [06:01:05]MH_I2C_Read... [06:01:05]Read from MH i2c: D1 01 00 A4 04 00 79 [06:01:05]Write to MH i2c: 01 00 00 A5 04 A9 [06:01:05]Write i2c OK [06:01:05]MH_I2C_Read... [06:01:05]OFD Sender: No OFD packet to send [06:01:05]*** Cut start [06:01:05]*** Partial cut [06:01:05]*** CUTSNS_PIN = 1 [06:01:05]*** CUTSNS_PIN = 0 [06:01:06]*** Brake cut motor [06:01:06]Read from MH i2c: 01 [06:01:06]MH_I2C_Read... [06:01:06]*** Stop cut motor [06:01:06]*** Cut end [06:01:06]Read from MH i2c: 01 07 00 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 FF 0F BE [06:01:06]process_action close_receipt done [06:01:06]requested_data is exist [06:01:06]produce_requested_data [06:01:06]requested_item fm.sn is exist - process it [06:01:06]wFMCommunicate request_size=4 [06:01:06]MH_SAM_APDU [06:01:06]CAPDU: 80 11 00 00 [06:01:06]Write to MH i2c: E2 08 00 A6 04 80 11 00 00 00 00 00 00 24 [06:01:06]Write i2c OK [06:01:06]MH_I2C_Read... [06:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:06]Read from MH i2c: E2 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 17 00 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 17 00 A6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [06:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:01:06]wFMCommunicate OK [06:01:06]requested_item fd.num is exist - process it [06:01:06]SAM_PROTO_GetFieldsCounters [06:01:06]wFMCommunicate request_size=4 [06:01:06]MH_SAM_APDU [06:01:06]CAPDU: 80 13 00 00 [06:01:06]Write to MH i2c: E2 08 00 A7 04 80 13 00 00 00 00 00 00 27 [06:01:06]Write i2c OK [06:01:06]MH_I2C_Read... [06:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:06]Read from MH i2c: E2 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 62 00 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 62 00 A7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 82 02 00 0E 04 04 00 BE 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 25 [06:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 82 02 00 0E 04 04 00 BE 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 [06:01:06]wFMCommunicate OK [06:01:06]SAM_PROTO_GetFieldsCounters done [06:01:06]requested_item shift.num is exist - process it [06:01:06]requested_item shift.opened is exist - process it [06:01:06]req_shift_opened [06:01:06]FM_GetShiftState [06:01:06]SAM_PROTO_GetShiftState [06:01:06]wFMCommunicate request_size=4 [06:01:06]MH_SAM_APDU [06:01:06]CAPDU: 80 13 01 00 [06:01:06]Write to MH i2c: E2 08 00 A8 04 80 13 01 00 00 00 00 00 29 [06:01:06]Write i2c OK [06:01:06]MH_I2C_Read... [06:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:06]Read from MH i2c: E2 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 0E 00 [06:01:06]MH_I2C_Read... [06:01:06]Read from MH i2c: E2 0E 00 A8 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0A [06:01:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:01:06]wFMCommunicate OK [06:01:06]SAM_PROTO_GetShiftState done [06:01:06]FM_GetShiftState done [06:01:06]req_shift_opened done [06:01:06]requested_item shift.open_date is exist - process it [06:01:06]req_shift_open_date [06:01:06]req_shift_open_date done [06:01:06]produce_requested_data done [06:01:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164455,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:01:06]process_action_free close_receipt [06:01:06]json_value_free [06:01:06]json_value_free done [06:01:06]process_json_proto returns [06:01:06]Send response to host [06:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164455,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:01:06]free response buf [06:01:06]execute_script done [06:01:06]execute_script returns [06:01:06]free content buf [06:01:06]Sock 7.Close socket [06:01:06]Sock 7.Thread stoped [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]accept exits with 9 [06:01:25]New connection [06:01:25]New thread 3067157860 created [06:01:25]Thread 3067301220 joined [06:01:25]Waiting for new connection... [06:01:25] Sock 9.Parse request [06:01:25]Sock 9.Check first char [06:01:25]Sock 9.First char is OK [06:01:25]request: POST /json_proto HTTP/1.0 [06:01:25]Method: POST [06:01:25]URL: /json_proto [06:01:25]Method is POST - this is cgi request [06:01:25]url: /json_proto [06:01:25]query_string will be loaded in cgi processing [06:01:25]execute_cgi json_proto POST (null) [06:01:25]execute_cgi path=json_proto method=POST [06:01:25]POST find Content-Length [06:01:25]Host: 172.17.56.4:8080 [06:01:25]Content-Length: 674 [06:01:25]Content-Type: application/json [06:01:25] [06:01:25]POST finish read [06:01:25]Found Content-Length = 674 [06:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [06:01:25]execute_script... [06:01: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)458542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [06:01:25]POST & json_proto [06:01:25]process_json_proto [06:01:25]json parsed OK: [06:01:25]protocol is kg_v1.0 [06:01:25]action value=close_receipt [06:01:25]process_action close_receipt [06:01:25]cmd_close_receipt [06:01:25]MH_GetDate [06:01:25]Write to MH i2c: F0 00 00 A9 04 9C [06:01:25]Write i2c OK [06:01:25]MH_I2C_Read... [06:01:25]Read from MH i2c: F0 [06:01:25]MH_I2C_Read... [06:01:25]Read from MH i2c: F0 09 00 [06:01:25]MH_I2C_Read... [06:01:25]Read from MH i2c: F0 09 00 A9 04 00 36 18 92 66 C9 DC B2 64 A6 [06:01:25]GetLastDocTimeStamp 1720850464 [06:01:25]current date 1720850486 [06:01:25]FM_GetShiftState [06:01:25]SAM_PROTO_GetShiftState [06:01:25]wFMCommunicate request_size=4 [06:01:25]MH_SAM_APDU [06:01:25]CAPDU: 80 13 01 00 [06:01:25]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [06:01:25]Write i2c OK [06:01:25]MH_I2C_Read... [06:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:25]Read from MH i2c: E2 [06:01:25]MH_I2C_Read... [06:01:25]Read from MH i2c: E2 0E 00 [06:01:25]MH_I2C_Read... [06:01:25]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0C [06:01:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:01:25]wFMCommunicate OK [06:01:25]SAM_PROTO_GetShiftState done [06:01:25]FM_GetShiftState done [06:01:25]opened in 1720831249 [06:01:25]opened+sec_in_day 1720917649 [06:01:25]quantity*price = 30054 [06:01:25]sum+1 = 30055 [06:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 16 13.07.2024 06:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164456 ФПД: 233828455279984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164456&fm=233828455279984&tin=02508201610067®Number=0000000000090829&sum=30000 [06:01:26]StoreToDocumentArchive [06:01:26]shift 446 fd 164456 [06:01:26]save to /storage/0446/doc_00164456 [06:01:26]save last doc name /storage/0446/doc_00164456 to /storage/kkm_last_doc_name [06:01:26]save OK [06:01:26]Clear old archive folders... [06:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:01:26]tlvbuf is 00C02260 [06:01:26]SAM_PROTO_ClearQueue [06:01:26]wFMCommunicate request_size=4 [06:01:26]MH_SAM_APDU [06:01:26]CAPDU: 80 09 00 00 [06:01:26]Write to MH i2c: E2 08 00 B7 04 80 09 00 00 00 00 00 00 2D [06:01:26]Write i2c OK [06:01:26]MH_I2C_Read... [06:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:26]Read from MH i2c: E2 [06:01:26]MH_I2C_Read... [06:01:26]Read from MH i2c: E2 03 00 [06:01:26]MH_I2C_Read... [06:01:26]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [06:01:26]RAPDU: 90 00 [06:01:26]wFMCommunicate OK [06:01:26]SAM_PROTO_ClearQueue done [06:01:26]KKMCreateOFDPacket [06:01:26]OFDProtocolAddRootSTLVToBuf [06:01:26]FM_MakeSignedData [06:01:26]FM_MakeSignedData [06:01:26]SAM_PROTO_SignData [06:01:26]wFMCommunicate request_size=4 [06:01:26]MH_SAM_APDU [06:01:26]CAPDU: 80 0D 01 02 [06:01:26]Write to MH i2c: E2 08 00 B8 04 80 0D 01 02 00 00 00 00 35 [06:01:26]Write i2c OK [06:01:26]MH_I2C_Read... [06:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:26]Read from MH i2c: E2 [06:01:26]MH_I2C_Read... [06:01:26]Read from MH i2c: E2 03 00 [06:01:26]MH_I2C_Read... [06:01:26]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [06:01:26]RAPDU: 90 00 [06:01:26]wFMCommunicate OK [06:01:26]wFMCommunicate request_size=255 [06:01:26]MH_SAM_APDU [06:01:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 36 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 82 02 00 35 04 06 00 D4 AA 6E 03 [06:01:26]Write to MH i2c: E2 02 01 B9 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 36 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 82 02 00 35 04 06 00 D4 AA 6E 03 00 00 D2 [06:01:26]Write i2c OK [06:01:26]MH_I2C_Read... [06:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:27]Read from MH i2c: E2 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 03 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [06:01:27]RAPDU: 90 00 [06:01:27]wFMCommunicate OK [06:01:27]wFMCommunicate request_size=7 [06:01:27]MH_SAM_APDU [06:01:27]CAPDU: 80 0D 02 02 02 ED 70 [06:01:27]Write to MH i2c: E2 0A 00 BA 04 80 0D 02 02 02 00 ED 70 00 00 99 [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:27]Read from MH i2c: E2 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 03 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [06:01:27]RAPDU: 90 00 [06:01:27]wFMCommunicate OK [06:01:27]wFMCommunicate request_size=4 [06:01:27]MH_SAM_APDU [06:01:27]CAPDU: 80 0D 03 02 [06:01:27]Write to MH i2c: E2 08 00 BB 04 80 0D 03 02 00 00 00 00 3A [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:27]Read from MH i2c: E2 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 0B 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 0B 00 BB 04 00 22 50 3B 13 6A 31 A8 E3 90 00 21 [06:01:27]RAPDU: 22 50 3B 13 6A 31 A8 E3 90 00 [06:01:27]wFMCommunicate OK [06:01:27]SAM_PROTO_SignData done [06:01:27]FM_MakeSignedData done [06:01:27]CreateOFDProtocolMessage [06:01:27]wFMCommunicate request_size=4 [06:01:27]MH_SAM_APDU [06:01:27]CAPDU: 80 11 00 00 [06:01:27]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:27]Read from MH i2c: E2 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 17 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [06:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:01:27]wFMCommunicate OK [06:01:27]CreateOFDProtocolMessage done [06:01:27]OFDSenderStorePacket 164456 [06:01:27]StoreOFDPacket docnum=164456 [06:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 0F 04 01 44 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 36 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 82 02 00 35 04 06 00 D4 AA 6E 03 ED 70 22 50 3B 13 6A 31 A8 E3 [06:01:27]CheckFolder [06:01:27]dirname=/storage/ofd_packets [06:01:27]CheckFolder done [06:01:27]ProducePacketName [06:01:27]name=ofd_packets/00164456 [06:01:27]NVStorageSaveData ofd_packets/00164456 [06:01:27]File name is /storage/ofd_packets/00164456 [06:01:27]Write 298 bytes [06:01:27]NVStorageSaveData done [06:01:27]OFDSenderStorePacket done [06:01:27]KKMCreateOFDPacket done [06:01:27]NVStorageSaveData kkm_last_timestamp [06:01:27]File name is /storage/kkm_last_timestamp [06:01:27]Write 4 bytes [06:01:27]NVStorageSaveData done [06:01:27]ExternCall_PrintAddStr [06:01:27]wPrintStart [06:01:27]Write to MH i2c: 01 00 00 BD 04 C1 [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 07 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [06:01:27]RasterBufferAndPrint [06:01:27]line Счет N : (1)458542 [06:01:27]line ИНН: 02508201610067 [06:01:27]line Контрольно-Кассовый Чек [06:01:27]line ПРОДАЖА [06:01:27]line ТРК (МРК, ГНК) : 21 [06:01:27]line Товар: 2710194210 [06:01:27]line ДТ-К-5 [06:01:27]line 4.180 * 71.90 [06:01:27]line = 300.54 [06:01:27]line НДС 12% НСП 1% [06:01:27]line > о реализуемом товаре [06:01:27]line ОКРУГЛЕНИЕ: -0.54 [06:01:27]line ИТОГО: 300.00 [06:01:27]line Внесено: 300.00 [06:01:27]line СДАЧА: 0.00 [06:01:27]line НСП 1% : 2.66 [06:01:27]line НДС 12% : 31.92 [06:01:27]line Наличными: 300.00 [06:01:27]line Безнал.: 0.00 [06:01:27]line Место: АЗС № 72 "Партнер Нефть" [06:01:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:01:27]line СНО: Общий режим [06:01:27]line Чек 16 13.07.2024 06:01 [06:01:27]line Смена: 446 ФФД: 1.0 [06:01:27]line ЗНМ: 0300000160 [06:01:27]line РНМ: 0000000000090829 [06:01:27]line Версия ККМ: 001 [06:01:27]line ФМ: 0000000000874718 [06:01:27]line ФД: 164456 [06:01:27]line ФПД: 233828455279984 [06:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164456&fm=233828455279984&tin=02508201610067®Number=0000000000090829&sum=30000 [06:01:27]OFD Sender: Processing packet 164456 [packets to send 104, broken 103] [06:01:27]ProducePacketName [06:01:27]name=ofd_packets/00164456 [06:01:27]OFD Sender: To server: pG, [06:01:27]CommunicateWithHost lk.salyk.kg:30040 [06:01:27]ConnectInit lk.salyk.kg [06:01:27]written 0, free lines is 4095 [06:01:27]Connected sock=10 [06:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 0F 04 01 44 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 36 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 82 02 00 35 04 06 00 D4 AA 6E 03 ED 70 22 50 3B 13 6A 31 A8 E3 [06:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A 3A 47 00 1E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 82 02 00 F4 03 04 00 C8 BE 91 66 B6 04 01 00 00 93 57 27 45 43 5F A5 11 [06:01:27]CommunicateWithHost err = 0 [06:01:27]CheckOFDResponse [06:01:27]1017 (14) - 77093643461234 [06:01:27]1041 (16) - 0000000000874718 [06:01:27]1040 (4) - 164456 [06:01:27]1012 (4) - 12.07.2024 23:39 [06:01:27]1206 (1) - 0 [06:01:27]OFD Sender: Remove packet 164456 [06:01:27]ProducePacketName [06:01:27]name=ofd_packets/00164456 [06:01:27]NVStorageDeleteData [06:01:27]Write to MH i2c: 01 00 00 E7 04 EB [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 07 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 F5 0C F3 [06:01:27]RasterBufferAndPrint [06:01:27]line [06:01:27]line [06:01:27]line [06:01:27]line [06:01:27]line [06:01:27]written 0, free lines is 3325 [06:01:27]MH_Cut [06:01:27]Write to MH i2c: D1 01 00 EE 04 01 C4 [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: D1 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: D1 01 00 [06:01:27]MH_I2C_Read... [06:01:27]Read from MH i2c: D1 01 00 EE 04 00 C3 [06:01:27]Write to MH i2c: 01 00 00 EF 04 F3 [06:01:27]Write i2c OK [06:01:27]MH_I2C_Read... [06:01:28]OFD Sender: No OFD packet to send [06:01:28]*** Cut start [06:01:28]*** Partial cut [06:01:28]*** CUTSNS_PIN = 1 [06:01:28]*** CUTSNS_PIN = 0 [06:01:28]*** Brake cut motor [06:01:29]Read from MH i2c: 01 [06:01:29]MH_I2C_Read... [06:01:29]*** Stop cut motor [06:01:29]*** Cut end [06:01:29]Read from MH i2c: 01 07 00 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [06:01:29]process_action close_receipt done [06:01:29]requested_data is exist [06:01:29]produce_requested_data [06:01:29]requested_item fm.sn is exist - process it [06:01:29]wFMCommunicate request_size=4 [06:01:29]MH_SAM_APDU [06:01:29]CAPDU: 80 11 00 00 [06:01:29]Write to MH i2c: E2 08 00 F0 04 80 11 00 00 00 00 00 00 6E [06:01:29]Write i2c OK [06:01:29]MH_I2C_Read... [06:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:29]Read from MH i2c: E2 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 17 00 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 17 00 F0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [06:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:01:29]wFMCommunicate OK [06:01:29]requested_item fd.num is exist - process it [06:01:29]SAM_PROTO_GetFieldsCounters [06:01:29]wFMCommunicate request_size=4 [06:01:29]MH_SAM_APDU [06:01:29]CAPDU: 80 13 00 00 [06:01:29]Write to MH i2c: E2 08 00 F1 04 80 13 00 00 00 00 00 00 71 [06:01:29]Write i2c OK [06:01:29]MH_I2C_Read... [06:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:29]Read from MH i2c: E2 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 62 00 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 62 00 F1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 82 02 00 0E 04 04 00 BE 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 73 [06:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 82 02 00 0E 04 04 00 BE 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 [06:01:29]wFMCommunicate OK [06:01:29]SAM_PROTO_GetFieldsCounters done [06:01:29]requested_item shift.num is exist - process it [06:01:29]requested_item shift.opened is exist - process it [06:01:29]req_shift_opened [06:01:29]FM_GetShiftState [06:01:29]SAM_PROTO_GetShiftState [06:01:29]wFMCommunicate request_size=4 [06:01:29]MH_SAM_APDU [06:01:29]CAPDU: 80 13 01 00 [06:01:29]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [06:01:29]Write i2c OK [06:01:29]MH_I2C_Read... [06:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:29]Read from MH i2c: E2 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 0E 00 [06:01:29]MH_I2C_Read... [06:01:29]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 54 [06:01:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:01:29]wFMCommunicate OK [06:01:29]SAM_PROTO_GetShiftState done [06:01:29]FM_GetShiftState done [06:01:29]req_shift_opened done [06:01:29]requested_item shift.open_date is exist - process it [06:01:29]req_shift_open_date [06:01:29]req_shift_open_date done [06:01:29]produce_requested_data done [06:01:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164456,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:01:29]process_action_free close_receipt [06:01:29]json_value_free [06:01:29]json_value_free done [06:01:29]process_json_proto returns [06:01:29]Send response to host [06:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164456,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:01:29]free response buf [06:01:29]execute_script done [06:01:29]execute_script returns [06:01:29]free content buf [06:01:29]Sock 9.Close socket [06:01:29]Sock 9.Thread stoped [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:24]accept exits with 7 [06:02:24]New connection [06:02:24]New thread 3067301220 created [06:02:24]Thread 3067157860 joined [06:02:24]Waiting for new connection... [06:02:24] Sock 7.Parse request [06:02:24]Sock 7.Check first char [06:02:24]Sock 7.First char is OK [06:02:24]request: POST /json_proto HTTP/1.0 [06:02:24]Method: POST [06:02:24]URL: /json_proto [06:02:24]Method is POST - this is cgi request [06:02:24]url: /json_proto [06:02:24]query_string will be loaded in cgi processing [06:02:24]execute_cgi json_proto POST (null) [06:02:24]execute_cgi path=json_proto method=POST [06:02:24]POST find Content-Length [06:02:24]Host: 172.17.56.4:8080 [06:02:24]Content-Length: 674 [06:02:24]Content-Type: application/json [06:02:24] [06:02:24]POST finish read [06:02:24]Found Content-Length = 674 [06:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.230, "sum" : 232.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 232.00, "total" : 232.00, "payments": [ { "type": 0, "sum" : 232.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:24]execute_script... [06:02: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)458543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.230, "sum" : 232.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 232.00, "total" : 232.00, "payments": [ { "type": 0, "sum" : 232.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:02:24]POST & json_proto [06:02:24]process_json_proto [06:02:24]json parsed OK: [06:02:24]protocol is kg_v1.0 [06:02:24]action value=close_receipt [06:02:24]process_action close_receipt [06:02:24]cmd_close_receipt [06:02:24]MH_GetDate [06:02:24]Write to MH i2c: F0 00 00 F3 04 E6 [06:02:24]Write i2c OK [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: F0 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: F0 09 00 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: F0 09 00 F3 04 00 71 18 92 66 C9 DC B2 64 2B [06:02:24]GetLastDocTimeStamp 1720850486 [06:02:24]current date 1720850545 [06:02:24]FM_GetShiftState [06:02:24]SAM_PROTO_GetShiftState [06:02:24]wFMCommunicate request_size=4 [06:02:24]MH_SAM_APDU [06:02:24]CAPDU: 80 13 01 00 [06:02:24]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [06:02:24]Write i2c OK [06:02:24]MH_I2C_Read... [06:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:24]Read from MH i2c: E2 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: E2 0E 00 [06:02:24]MH_I2C_Read... [06:02:24]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 56 [06:02:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:02:24]wFMCommunicate OK [06:02:24]SAM_PROTO_GetShiftState done [06:02:24]FM_GetShiftState done [06:02:24]opened in 1720831249 [06:02:24]opened+sec_in_day 1720917649 [06:02:24]quantity*price = 23223 [06:02:24]sum+1 = 23225 [06:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 232.00 Внесено: 232.00 СДАЧА: 0.00 НСП 1% : 2.05 НДС 12% : 24.66 Наличными: 232.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 17 13.07.2024 06:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164457 ФПД: 97500448816294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164457&fm=97500448816294&tin=02508201610067®Number=0000000000090829&sum=23200 [06:02:25]StoreToDocumentArchive [06:02:25]shift 446 fd 164457 [06:02:25]save to /storage/0446/doc_00164457 [06:02:25]save last doc name /storage/0446/doc_00164457 to /storage/kkm_last_doc_name [06:02:25]save OK [06:02:25]Clear old archive folders... [06:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:02:25]tlvbuf is 00BEE0E0 [06:02:25]SAM_PROTO_ClearQueue [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 09 00 00 [06:02:25]Write to MH i2c: E2 08 00 01 05 80 09 00 00 00 00 00 00 78 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [06:02:25]RAPDU: 90 00 [06:02:25]wFMCommunicate OK [06:02:25]SAM_PROTO_ClearQueue done [06:02:25]KKMCreateOFDPacket [06:02:25]OFDProtocolAddRootSTLVToBuf [06:02:25]FM_MakeSignedData [06:02:25]FM_MakeSignedData [06:02:25]SAM_PROTO_SignData [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 0D 01 02 [06:02:25]Write to MH i2c: E2 08 00 02 05 80 0D 01 02 00 00 00 00 80 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [06:02:25]RAPDU: 90 00 [06:02:25]wFMCommunicate OK [06:02:25]wFMCommunicate request_size=255 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 0C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 09 00 00 00 00 07 04 06 00 A0 5A 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 71 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 82 02 00 35 04 06 00 58 AD 17 9D [06:02:25]Write to MH i2c: E2 02 01 03 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 9E 0C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 09 00 00 00 00 07 04 06 00 A0 5A 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 71 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 82 02 00 35 04 06 00 58 AD 17 9D 00 00 34 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [06:02:25]RAPDU: 90 00 [06:02:25]wFMCommunicate OK [06:02:25]wFMCommunicate request_size=7 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 0D 02 02 02 FC A6 [06:02:25]Write to MH i2c: E2 0A 00 04 05 80 0D 02 02 02 00 FC A6 00 00 29 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [06:02:25]RAPDU: 90 00 [06:02:25]wFMCommunicate OK [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 0D 03 02 [06:02:25]Write to MH i2c: E2 08 00 05 05 80 0D 03 02 00 00 00 00 85 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 0B 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 0B 00 05 05 00 79 14 B2 3D 21 BC E4 14 90 00 D7 [06:02:25]RAPDU: 79 14 B2 3D 21 BC E4 14 90 00 [06:02:25]wFMCommunicate OK [06:02:25]SAM_PROTO_SignData done [06:02:25]FM_MakeSignedData done [06:02:25]CreateOFDProtocolMessage [06:02:25]wFMCommunicate request_size=4 [06:02:25]MH_SAM_APDU [06:02:25]CAPDU: 80 11 00 00 [06:02:25]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:25]Read from MH i2c: E2 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 17 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [06:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:02:25]wFMCommunicate OK [06:02:25]CreateOFDProtocolMessage done [06:02:25]OFDSenderStorePacket 164457 [06:02:25]StoreOFDPacket docnum=164457 [06:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 F3 04 01 70 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 0C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 09 00 00 00 00 07 04 06 00 A0 5A 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 71 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 82 02 00 35 04 06 00 58 AD 17 9D FC A6 79 14 B2 3D 21 BC E4 14 [06:02:25]CheckFolder [06:02:25]dirname=/storage/ofd_packets [06:02:25]CheckFolder done [06:02:25]ProducePacketName [06:02:25]name=ofd_packets/00164457 [06:02:25]NVStorageSaveData ofd_packets/00164457 [06:02:25]File name is /storage/ofd_packets/00164457 [06:02:25]Write 298 bytes [06:02:25]NVStorageSaveData done [06:02:25]OFDSenderStorePacket done [06:02:25]KKMCreateOFDPacket done [06:02:25]NVStorageSaveData kkm_last_timestamp [06:02:25]File name is /storage/kkm_last_timestamp [06:02:25]Write 4 bytes [06:02:25]NVStorageSaveData done [06:02:25]ExternCall_PrintAddStr [06:02:25]wPrintStart [06:02:25]Write to MH i2c: 01 00 00 07 05 0C [06:02:25]Write i2c OK [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: 01 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: 01 07 00 [06:02:25]MH_I2C_Read... [06:02:25]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [06:02:25]RasterBufferAndPrint [06:02:25]line Счет N : (1)458543 [06:02:25]line ИНН: 02508201610067 [06:02:25]line Контрольно-Кассовый Чек [06:02:25]line ПРОДАЖА [06:02:25]line ТРК (МРК, ГНК) : 11 [06:02:25]line Товар: 2710194210 [06:02:25]line ДТ-К-5 [06:02:25]line 3.230 * 71.90 [06:02:25]line = 232.24 [06:02:25]line НДС 12% НСП 1% [06:02:25]line > о реализуемом товаре [06:02:25]line ОКРУГЛЕНИЕ: -0.24 [06:02:25]line ИТОГО: 232.00 [06:02:25]line Внесено: 232.00 [06:02:25]line СДАЧА: 0.00 [06:02:25]line НСП 1% : 2.05 [06:02:25]line НДС 12% : 24.66 [06:02:25]line Наличными: 232.00 [06:02:25]line Безнал.: 0.00 [06:02:25]line Место: АЗС № 72 "Партнер Нефть" [06:02:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:02:25]line СНО: Общий режим [06:02:25]line Чек 17 13.07.2024 06:02 [06:02:25]line Смена: 446 ФФД: 1.0 [06:02:25]line ЗНМ: 0300000160 [06:02:25]line РНМ: 0000000000090829 [06:02:25]line Версия ККМ: 001 [06:02:25]line ФМ: 0000000000874718 [06:02:25]line ФД: 164457 [06:02:25]line ФПД: 97500448816294 [06:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164457&fm=97500448816294&tin=02508201610067®Number=0000000000090829&sum=23200 [06:02:26]OFD Sender: Processing packet 164457 [packets to send 104, broken 103] [06:02:26]ProducePacketName [06:02:26]name=ofd_packets/00164457 [06:02:26]OFD Sender: To server: pG, [06:02:26]CommunicateWithHost lk.salyk.kg:30040 [06:02:26]ConnectInit lk.salyk.kg [06:02:26]written 0, free lines is 4095 [06:02:26]Connected sock=10 [06:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 F3 04 01 70 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 0C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 09 00 00 00 00 07 04 06 00 A0 5A 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 71 18 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 82 02 00 35 04 06 00 58 AD 17 9D FC A6 79 14 B2 3D 21 BC E4 14 [06:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E1 1D 47 00 9D 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 82 02 00 F4 03 04 00 03 BF 91 66 B6 04 01 00 00 E6 AC 07 5B 22 1B 46 A6 [06:02:26]CommunicateWithHost err = 0 [06:02:26]CheckOFDResponse [06:02:26]1017 (14) - 77093643461234 [06:02:26]1041 (16) - 0000000000874718 [06:02:26]1040 (4) - 164457 [06:02:26]1012 (4) - 12.07.2024 23:40 [06:02:26]1206 (1) - 0 [06:02:26]OFD Sender: Remove packet 164457 [06:02:26]ProducePacketName [06:02:26]name=ofd_packets/00164457 [06:02:26]NVStorageDeleteData [06:02:26]Write to MH i2c: 01 00 00 31 05 36 [06:02:26]Write i2c OK [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: 01 [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: 01 07 00 [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 F3 0C 3C [06:02:26]RasterBufferAndPrint [06:02:26]line [06:02:26]line [06:02:26]line [06:02:26]line [06:02:26]line [06:02:26]written 0, free lines is 3321 [06:02:26]MH_Cut [06:02:26]Write to MH i2c: D1 01 00 38 05 01 0F [06:02:26]Write i2c OK [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: D1 [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: D1 01 00 [06:02:26]MH_I2C_Read... [06:02:26]Read from MH i2c: D1 01 00 38 05 00 0E [06:02:26]Write to MH i2c: 01 00 00 39 05 3E [06:02:26]Write i2c OK [06:02:26]MH_I2C_Read... [06:02:27]OFD Sender: No OFD packet to send [06:02:27]*** Cut start [06:02:27]*** Partial cut [06:02:27]*** CUTSNS_PIN = 1 [06:02:27]*** CUTSNS_PIN = 0 [06:02:27]*** Brake cut motor [06:02:28]Read from MH i2c: 01 [06:02:28]MH_I2C_Read... [06:02:28]*** Stop cut motor [06:02:28]*** Cut end [06:02:28]Read from MH i2c: 01 07 00 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [06:02:28]process_action close_receipt done [06:02:28]requested_data is exist [06:02:28]produce_requested_data [06:02:28]requested_item fm.sn is exist - process it [06:02:28]wFMCommunicate request_size=4 [06:02:28]MH_SAM_APDU [06:02:28]CAPDU: 80 11 00 00 [06:02:28]Write to MH i2c: E2 08 00 3A 05 80 11 00 00 00 00 00 00 B9 [06:02:28]Write i2c OK [06:02:28]MH_I2C_Read... [06:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:02:28]Read from MH i2c: E2 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 17 00 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 17 00 3A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [06:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:02:28]wFMCommunicate OK [06:02:28]requested_item fd.num is exist - process it [06:02:28]SAM_PROTO_GetFieldsCounters [06:02:28]wFMCommunicate request_size=4 [06:02:28]MH_SAM_APDU [06:02:28]CAPDU: 80 13 00 00 [06:02:28]Write to MH i2c: E2 08 00 3B 05 80 13 00 00 00 00 00 00 BC [06:02:28]Write i2c OK [06:02:28]MH_I2C_Read... [06:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:02:28]Read from MH i2c: E2 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 62 00 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 62 00 3B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 82 02 00 0E 04 04 00 BE 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 C2 [06:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 82 02 00 0E 04 04 00 BE 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 [06:02:28]wFMCommunicate OK [06:02:28]SAM_PROTO_GetFieldsCounters done [06:02:28]requested_item shift.num is exist - process it [06:02:28]requested_item shift.opened is exist - process it [06:02:28]req_shift_opened [06:02:28]FM_GetShiftState [06:02:28]SAM_PROTO_GetShiftState [06:02:28]wFMCommunicate request_size=4 [06:02:28]MH_SAM_APDU [06:02:28]CAPDU: 80 13 01 00 [06:02:28]Write to MH i2c: E2 08 00 3C 05 80 13 01 00 00 00 00 00 BE [06:02:28]Write i2c OK [06:02:28]MH_I2C_Read... [06:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:02:28]Read from MH i2c: E2 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 0E 00 [06:02:28]MH_I2C_Read... [06:02:28]Read from MH i2c: E2 0E 00 3C 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9F [06:02:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:02:28]wFMCommunicate OK [06:02:28]SAM_PROTO_GetShiftState done [06:02:28]FM_GetShiftState done [06:02:28]req_shift_opened done [06:02:28]requested_item shift.open_date is exist - process it [06:02:28]req_shift_open_date [06:02:28]req_shift_open_date done [06:02:28]produce_requested_data done [06:02:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164457,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:02:28]process_action_free close_receipt [06:02:28]json_value_free [06:02:28]json_value_free done [06:02:28]process_json_proto returns [06:02:28]Send response to host [06:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164457,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:02:28]free response buf [06:02:28]execute_script done [06:02:28]execute_script returns [06:02:28]free content buf [06:02:28]Sock 7.Close socket [06:02:28]Sock 7.Thread stoped [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:53]accept exits with 9 [06:17:53]New connection [06:17:53]New thread 3067157860 created [06:17:53]Thread 3067301220 joined [06:17:53]Waiting for new connection... [06:17:53] Sock 9.Parse request [06:17:53]Sock 9.Check first char [06:17:53]Sock 9.First char is OK [06:17:53]request: POST /json_proto HTTP/1.0 [06:17:53]Method: POST [06:17:53]URL: /json_proto [06:17:53]Method is POST - this is cgi request [06:17:53]url: /json_proto [06:17:53]query_string will be loaded in cgi processing [06:17:53]execute_cgi json_proto POST (null) [06:17:53]execute_cgi path=json_proto method=POST [06:17:53]POST find Content-Length [06:17:53]Host: 172.17.56.4:8080 [06:17:53]Content-Length: 790 [06:17:53]Content-Type: application/json [06:17:53] [06:17:53]POST finish read [06:17:53]Found Content-Length = 790 [06:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:53]execute_script... [06:17: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)458544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:53]POST & json_proto [06:17:53]process_json_proto [06:17:53]json parsed OK: [06:17:53]protocol is kg_v1.0 [06:17:53]action value=close_receipt [06:17:53]process_action close_receipt [06:17:53]cmd_close_receipt [06:17:53]MH_GetDate [06:17:53]Write to MH i2c: F0 00 00 3D 05 31 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: F0 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: F0 09 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: F0 09 00 3D 05 00 13 1C 92 66 C9 DC B2 64 1C [06:17:53]GetLastDocTimeStamp 1720850545 [06:17:53]current date 1720851475 [06:17:53]FM_GetShiftState [06:17:53]SAM_PROTO_GetShiftState [06:17:53]wFMCommunicate request_size=4 [06:17:53]MH_SAM_APDU [06:17:53]CAPDU: 80 13 01 00 [06:17:53]Write to MH i2c: E2 08 00 3E 05 80 13 01 00 00 00 00 00 C0 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 0E 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 0E 00 3E 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A1 [06:17:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:17:53]wFMCommunicate OK [06:17:53]SAM_PROTO_GetShiftState done [06:17:53]FM_GetShiftState done [06:17:53]opened in 1720831249 [06:17:53]opened+sec_in_day 1720917649 [06:17:53]quantity*price = 20022 [06:17:53]sum+1 = 20024 [06:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 18 13.07.2024 06:17 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164458 ФПД: 65585442742853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061755&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164458&fm=65585442742853&tin=02508201610067®Number=0000000000090829&sum=20023 [06:17:55]StoreToDocumentArchive [06:17:55]shift 446 fd 164458 [06:17:55]save to /storage/0446/doc_00164458 [06:17:55]save last doc name /storage/0446/doc_00164458 to /storage/kkm_last_doc_name [06:17:55]save OK [06:17:55]Clear old archive folders... [06:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:17:55]tlvbuf is 00C00A00 [06:17:55]SAM_PROTO_ClearQueue [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 09 00 00 [06:17:55]Write to MH i2c: E2 08 00 4B 05 80 09 00 00 00 00 00 00 C2 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]SAM_PROTO_ClearQueue done [06:17:55]KKMCreateOFDPacket [06:17:55]OFDProtocolAddRootSTLVToBuf [06:17:55]FM_MakeSignedData [06:17:55]FM_MakeSignedData [06:17:55]SAM_PROTO_SignData [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 01 02 [06:17:55]Write to MH i2c: E2 08 00 4C 05 80 0D 01 02 00 00 00 00 CA [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=255 [06:17:55]MH_SAM_APDU [06:17: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 13 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 82 02 00 35 04 06 00 3B [06:17:55]Write to MH i2c: E2 02 01 4D 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 13 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 82 02 00 35 04 06 00 3B 00 00 2D [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=10 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 02 02 05 A6 4D 04 62 45 [06:17:55]Write to MH i2c: E2 0D 00 4E 05 80 0D 02 02 05 00 A6 4D 04 62 45 00 00 75 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 03 02 [06:17:55]Write to MH i2c: E2 08 00 4F 05 80 0D 03 02 00 00 00 00 CF [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 0B 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 0B 00 4F 05 00 33 96 39 13 20 E6 F7 59 90 00 3B [06:17:55]RAPDU: 33 96 39 13 20 E6 F7 59 90 00 [06:17:55]wFMCommunicate OK [06:17:55]SAM_PROTO_SignData done [06:17:55]FM_MakeSignedData done [06:17:55]CreateOFDProtocolMessage [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 11 00 00 [06:17:55]Write to MH i2c: E2 08 00 50 05 80 11 00 00 00 00 00 00 CF [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 50 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [06:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:17:55]wFMCommunicate OK [06:17:55]CreateOFDProtocolMessage done [06:17:55]OFDSenderStorePacket 164458 [06:17:55]StoreOFDPacket docnum=164458 [06:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 88 3F 07 01 C7 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 13 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 82 02 00 35 04 06 00 3B A6 4D 04 62 45 33 96 39 13 20 E6 F7 59 [06:17:55]CheckFolder [06:17:55]dirname=/storage/ofd_packets [06:17:55]CheckFolder done [06:17:55]ProducePacketName [06:17:55]name=ofd_packets/00164458 [06:17:55]NVStorageSaveData ofd_packets/00164458 [06:17:55]File name is /storage/ofd_packets/00164458 [06:17:55]Write 301 bytes [06:17:55]NVStorageSaveData done [06:17:55]OFDSenderStorePacket done [06:17:55]KKMCreateOFDPacket done [06:17:55]NVStorageSaveData kkm_last_timestamp [06:17:55]File name is /storage/kkm_last_timestamp [06:17:55]Write 4 bytes [06:17:55]NVStorageSaveData done [06:17:55]ExternCall_PrintAddStr [06:17:55]wPrintStart [06:17:55]Write to MH i2c: 01 00 00 51 05 56 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 07 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [06:17:55]RasterBufferAndPrint [06:17:55]line Счет N : (1)458544 [06:17:55]line ИНН: 02508201610067 [06:17:55]line Контрольно-Кассовый Чек [06:17:55]line ПРОДАЖА [06:17:55]line ТРК (МРК, ГНК) : 12 [06:17:55]line Товар: 2710124130 [06:17:55]line Аи-92-К-5 [06:17:55]line 3.070 * 65.22 [06:17:55]line = 200.23 [06:17:55]line НДС 12% НСП 1% [06:17:55]line > о реализуемом товаре [06:17:55]line ИТОГО: 200.23 [06:17:55]line НСП 1% : 1.77 [06:17:55]line НДС 12% : 21.26 [06:17:55]line Наличными: 0.00 [06:17:55]line Безнал.: 200.23 [06:17:55]line Место: АЗС № 72 "Партнер Нефть" [06:17:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:17:55]line СНО: Общий режим [06:17:55]line Чек 18 13.07.2024 06:17 [06:17:55]line Смена: 446 ФФД: 1.0 [06:17:55]line ЗНМ: 0300000160 [06:17:55]line РНМ: 0000000000090829 [06:17:55]line Версия ККМ: 001 [06:17:55]line Платежная система: KICB Банк [06:17:55]line ФМ: 0000000000874718 [06:17:55]line ФД: 164458 [06:17:55]line ФПД: 65585442742853 [06:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061755&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164458&fm=65585442742853&tin=02508201610067®Number=0000000000090829&sum=20023 [06:17:55]written 0, free lines is 4095 [06:17:55]OFD Sender: Processing packet 164458 [packets to send 104, broken 103] [06:17:55]ProducePacketName [06:17:55]name=ofd_packets/00164458 [06:17:55]OFD Sender: To server: pG, [06:17:55]CommunicateWithHost lk.salyk.kg:30040 [06:17:55]ConnectInit lk.salyk.kg [06:17:56]Connected sock=10 [06:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 88 3F 07 01 C7 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 13 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 82 02 00 35 04 06 00 3B A6 4D 04 62 45 33 96 39 13 20 E6 F7 59 [06:17:56]Write to MH i2c: 01 00 00 7A 05 7F [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 07 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 10 0D A3 [06:17:56]RasterBufferAndPrint [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]written 0, free lines is 3350 [06:17:56]MH_Cut [06:17:56]Write to MH i2c: D1 01 00 81 05 01 58 [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 01 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 01 00 81 05 00 57 [06:17:56]Write to MH i2c: 01 00 00 82 05 87 [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 03 47 00 90 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 34 37 31 38 10 04 04 00 6A 82 02 00 F4 03 04 00 A5 C2 91 66 B6 04 01 00 00 67 C7 A1 8A 3B A4 67 6C [06:17:56]CommunicateWithHost err = 0 [06:17:56]CheckOFDResponse [06:17:56]1017 (14) - 77093643461234 [06:17:56]1041 (16) - 0000000000874718 [06:17:56]1040 (4) - 164458 [06:17:56]1012 (4) - 12.07.2024 23:56 [06:17:56]1206 (1) - 0 [06:17:56]OFD Sender: Remove packet 164458 [06:17:56]ProducePacketName [06:17:56]name=ofd_packets/00164458 [06:17:56]NVStorageDeleteData [06:17:56]*** Cut start [06:17:56]*** Partial cut [06:17:56]*** CUTSNS_PIN = 1 [06:17:56]OFD Sender: No OFD packet to send [06:17:56]*** CUTSNS_PIN = 0 [06:17:56]*** Brake cut motor [06:17:57]Read from MH i2c: 01 [06:17:57]MH_I2C_Read... [06:17:57]*** Stop cut motor [06:17:57]*** Cut end [06:17:57]Read from MH i2c: 01 07 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [06:17:57]process_action close_receipt done [06:17:57]requested_data is exist [06:17:57]produce_requested_data [06:17:57]requested_item fm.sn is exist - process it [06:17:57]wFMCommunicate request_size=4 [06:17:57]MH_SAM_APDU [06:17:57]CAPDU: 80 11 00 00 [06:17:57]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [06:17:57]Write i2c OK [06:17:57]MH_I2C_Read... [06:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:57]Read from MH i2c: E2 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 17 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [06:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:17:57]wFMCommunicate OK [06:17:57]requested_item fd.num is exist - process it [06:17:57]SAM_PROTO_GetFieldsCounters [06:17:57]wFMCommunicate request_size=4 [06:17:57]MH_SAM_APDU [06:17:57]CAPDU: 80 13 00 00 [06:17:57]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [06:17:57]Write i2c OK [06:17:57]MH_I2C_Read... [06:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:57]Read from MH i2c: E2 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 62 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 62 00 84 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 82 02 00 0E 04 04 00 BE 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 0F [06:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 82 02 00 0E 04 04 00 BE 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 [06:17:57]wFMCommunicate OK [06:17:57]SAM_PROTO_GetFieldsCounters done [06:17:57]requested_item shift.num is exist - process it [06:17:57]requested_item shift.opened is exist - process it [06:17:57]req_shift_opened [06:17:57]FM_GetShiftState [06:17:57]SAM_PROTO_GetShiftState [06:17:57]wFMCommunicate request_size=4 [06:17:57]MH_SAM_APDU [06:17:57]CAPDU: 80 13 01 00 [06:17:57]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [06:17:57]Write i2c OK [06:17:57]MH_I2C_Read... [06:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:57]Read from MH i2c: E2 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 0E 00 [06:17:57]MH_I2C_Read... [06:17:57]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E8 [06:17:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:17:57]wFMCommunicate OK [06:17:57]SAM_PROTO_GetShiftState done [06:17:57]FM_GetShiftState done [06:17:57]req_shift_opened done [06:17:57]requested_item shift.open_date is exist - process it [06:17:57]req_shift_open_date [06:17:57]req_shift_open_date done [06:17:57]produce_requested_data done [06:17:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164458,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:17:57]process_action_free close_receipt [06:17:57]json_value_free [06:17:57]json_value_free done [06:17:57]process_json_proto returns [06:17:57]Send response to host [06:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164458,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:17:57]free response buf [06:17:57]execute_script done [06:17:57]execute_script returns [06:17:57]free content buf [06:17:57]Sock 9.Close socket [06:17:57]Sock 9.Thread stoped [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:18]accept exits with 7 [06:18:18]New connection [06:18:18]New thread 3067301220 created [06:18:18]Thread 3067157860 joined [06:18:18]Waiting for new connection... [06:18:18] Sock 7.Parse request [06:18:18]Sock 7.Check first char [06:18:18]Sock 7.First char is OK [06:18:18]request: POST /json_proto HTTP/1.0 [06:18:18]Method: POST [06:18:18]URL: /json_proto [06:18:18]Method is POST - this is cgi request [06:18:18]url: /json_proto [06:18:18]query_string will be loaded in cgi processing [06:18:18]execute_cgi json_proto POST (null) [06:18:18]execute_cgi path=json_proto method=POST [06:18:18]POST find Content-Length [06:18:18]Host: 172.17.56.4:8080 [06:18:18]Content-Length: 677 [06:18:18]Content-Type: application/json [06:18:18] [06:18:18]POST finish read [06:18:18]Found Content-Length = 677 [06:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:18]execute_script... [06:18:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:18]POST & json_proto [06:18:18]process_json_proto [06:18:18]json parsed OK: [06:18:18]protocol is kg_v1.0 [06:18:18]action value=close_receipt [06:18:18]process_action close_receipt [06:18:18]cmd_close_receipt [06:18:18]MH_GetDate [06:18:18]Write to MH i2c: F0 00 00 86 05 7A [06:18:18]Write i2c OK [06:18:18]MH_I2C_Read... [06:18:18]Read from MH i2c: F0 [06:18:18]MH_I2C_Read... [06:18:18]Read from MH i2c: F0 09 00 [06:18:18]MH_I2C_Read... [06:18:18]Read from MH i2c: F0 09 00 86 05 00 2B 1C 92 66 C9 DC B2 64 7D [06:18:18]GetLastDocTimeStamp 1720851475 [06:18:18]current date 1720851499 [06:18:18]FM_GetShiftState [06:18:18]SAM_PROTO_GetShiftState [06:18:18]wFMCommunicate request_size=4 [06:18:18]MH_SAM_APDU [06:18:18]CAPDU: 80 13 01 00 [06:18:18]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [06:18:18]Write i2c OK [06:18:18]MH_I2C_Read... [06:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:18]Read from MH i2c: E2 [06:18:18]MH_I2C_Read... [06:18:18]Read from MH i2c: E2 0E 00 [06:18:18]MH_I2C_Read... [06:18:18]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EA [06:18:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:18:18]wFMCommunicate OK [06:18:18]SAM_PROTO_GetShiftState done [06:18:18]FM_GetShiftState done [06:18:18]opened in 1720831249 [06:18:18]opened+sec_in_day 1720917649 [06:18:18]quantity*price = 29017 [06:18:18]sum+1 = 29019 [06:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 19 13.07.2024 06:18 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164459 ФПД: 198584865599804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164459&fm=198584865599804&tin=02508201610067®Number=0000000000090829&sum=29000 [06:18:19]StoreToDocumentArchive [06:18:19]shift 446 fd 164459 [06:18:19]save to /storage/0446/doc_00164459 [06:18:19]save last doc name /storage/0446/doc_00164459 to /storage/kkm_last_doc_name [06:18:19]save OK [06:18:19]Clear old archive folders... [06:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:18:19]tlvbuf is 00BE4580 [06:18:19]SAM_PROTO_ClearQueue [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 09 00 00 [06:18:19]Write to MH i2c: E2 08 00 94 05 80 09 00 00 00 00 00 00 0B [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_ClearQueue done [06:18:19]KKMCreateOFDPacket [06:18:19]OFDProtocolAddRootSTLVToBuf [06:18:19]FM_MakeSignedData [06:18:19]FM_MakeSignedData [06:18:19]SAM_PROTO_SignData [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 01 02 [06:18:19]Write to MH i2c: E2 08 00 95 05 80 0D 01 02 00 00 00 00 13 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=255 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 82 02 00 35 04 06 00 B4 [06:18:19]Write to MH i2c: E2 02 01 96 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 82 02 00 35 04 06 00 B4 00 00 44 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=10 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 02 02 05 9C A4 5F 31 3C [06:18:19]Write to MH i2c: E2 0D 00 97 05 80 0D 02 02 05 00 9C A4 5F 31 3C 00 00 2C [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [06:18:19]RAPDU: 90 00 [06:18:19]wFMCommunicate OK [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 0D 03 02 [06:18:19]Write to MH i2c: E2 08 00 98 05 80 0D 03 02 00 00 00 00 18 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0B 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 0B 00 98 05 00 27 FD 9D 5C F1 15 BB B5 90 00 AC [06:18:19]RAPDU: 27 FD 9D 5C F1 15 BB B5 90 00 [06:18:19]wFMCommunicate OK [06:18:19]SAM_PROTO_SignData done [06:18:19]FM_MakeSignedData done [06:18:19]CreateOFDProtocolMessage [06:18:19]wFMCommunicate request_size=4 [06:18:19]MH_SAM_APDU [06:18:19]CAPDU: 80 11 00 00 [06:18:19]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:19]Read from MH i2c: E2 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [06:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:18:19]wFMCommunicate OK [06:18:19]CreateOFDProtocolMessage done [06:18:19]OFDSenderStorePacket 164459 [06:18:19]StoreOFDPacket docnum=164459 [06:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 AD 07 01 A0 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 82 02 00 35 04 06 00 B4 9C A4 5F 31 3C 27 FD 9D 5C F1 15 BB B5 [06:18:19]CheckFolder [06:18:19]dirname=/storage/ofd_packets [06:18:19]CheckFolder done [06:18:19]ProducePacketName [06:18:19]name=ofd_packets/00164459 [06:18:19]NVStorageSaveData ofd_packets/00164459 [06:18:19]File name is /storage/ofd_packets/00164459 [06:18:19]Write 301 bytes [06:18:19]NVStorageSaveData done [06:18:19]OFDSenderStorePacket done [06:18:19]KKMCreateOFDPacket done [06:18:19]NVStorageSaveData kkm_last_timestamp [06:18:19]File name is /storage/kkm_last_timestamp [06:18:19]Write 4 bytes [06:18:19]NVStorageSaveData done [06:18:19]ExternCall_PrintAddStr [06:18:19]wPrintStart [06:18:19]Write to MH i2c: 01 00 00 9A 05 9F [06:18:19]Write i2c OK [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 07 00 [06:18:19]MH_I2C_Read... [06:18:19]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [06:18:19]RasterBufferAndPrint [06:18:19]line Счет N : (1)458545 [06:18:19]line ИНН: 02508201610067 [06:18:19]line Контрольно-Кассовый Чек [06:18:19]line ПРОДАЖА [06:18:19]line ТРК (МРК, ГНК) : 12 [06:18:19]line Товар: 2710124130 [06:18:19]line Аи-92-К-5 [06:18:19]line 4.410 * 65.80 [06:18:19]line = 290.18 [06:18:19]line НДС 12% НСП 1% [06:18:19]line > о реализуемом товаре [06:18:19]line ОКРУГЛЕНИЕ: -0.18 [06:18:19]line ИТОГО: 290.00 [06:18:19]line Внесено: 290.00 [06:18:19]line СДАЧА: 0.00 [06:18:19]line НСП 1% : 2.57 [06:18:19]line НДС 12% : 30.82 [06:18:19]line Наличными: 290.00 [06:18:19]line Безнал.: 0.00 [06:18:19]line Место: АЗС № 72 "Партнер Нефть" [06:18:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:18:19]line СНО: Общий режим [06:18:19]line Чек 19 13.07.2024 06:18 [06:18:19]line Смена: 446 ФФД: 1.0 [06:18:19]line ЗНМ: 0300000160 [06:18:19]line РНМ: 0000000000090829 [06:18:19]line Версия ККМ: 001 [06:18:19]line ФМ: 0000000000874718 [06:18:19]line ФД: 164459 [06:18:19]line ФПД: 198584865599804 [06:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164459&fm=198584865599804&tin=02508201610067®Number=0000000000090829&sum=29000 [06:18:20]OFD Sender: Processing packet 164459 [packets to send 104, broken 103] [06:18:20]ProducePacketName [06:18:20]name=ofd_packets/00164459 [06:18:20]OFD Sender: To server: pG, [06:18:20]CommunicateWithHost lk.salyk.kg:30040 [06:18:20]ConnectInit lk.salyk.kg [06:18:20]written 0, free lines is 4095 [06:18:20]Connected sock=10 [06:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 AD 07 01 A0 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2B 1C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 82 02 00 35 04 06 00 B4 9C A4 5F 31 3C 27 FD 9D 5C F1 15 BB B5 [06:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9F 2E 47 00 5F 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 82 02 00 F4 03 04 00 BD C2 91 66 B6 04 01 00 00 72 B9 65 03 04 1C DD 23 [06:18:20]CommunicateWithHost err = 0 [06:18:20]CheckOFDResponse [06:18:20]1017 (14) - 77093643461234 [06:18:20]1041 (16) - 0000000000874718 [06:18:20]1040 (4) - 164459 [06:18:20]1012 (4) - 12.07.2024 23:56 [06:18:20]1206 (1) - 0 [06:18:20]OFD Sender: Remove packet 164459 [06:18:20]ProducePacketName [06:18:20]name=ofd_packets/00164459 [06:18:20]NVStorageDeleteData [06:18:20]Write to MH i2c: 01 00 00 C4 05 C9 [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 07 00 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 12 0D EF [06:18:20]RasterBufferAndPrint [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]line [06:18:20]written 0, free lines is 3352 [06:18:20]MH_Cut [06:18:20]Write to MH i2c: D1 01 00 CB 05 01 A2 [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 01 00 [06:18:20]MH_I2C_Read... [06:18:20]Read from MH i2c: D1 01 00 CB 05 00 A1 [06:18:20]Write to MH i2c: 01 00 00 CC 05 D1 [06:18:20]Write i2c OK [06:18:20]MH_I2C_Read... [06:18:20]OFD Sender: No OFD packet to send [06:18:21]*** Cut start [06:18:21]*** Partial cut [06:18:21]*** CUTSNS_PIN = 1 [06:18:21]*** CUTSNS_PIN = 0 [06:18:21]*** Brake cut motor [06:18:21]Read from MH i2c: 01 [06:18:21]MH_I2C_Read... [06:18:21]*** Stop cut motor [06:18:21]*** Cut end [06:18:21]Read from MH i2c: 01 07 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 FF 0F E6 [06:18:21]process_action close_receipt done [06:18:21]requested_data is exist [06:18:21]produce_requested_data [06:18:21]requested_item fm.sn is exist - process it [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 11 00 00 [06:18:21]Write to MH i2c: E2 08 00 CD 05 80 11 00 00 00 00 00 00 4C [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:21]Read from MH i2c: E2 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 17 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 17 00 CD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [06:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:18:21]wFMCommunicate OK [06:18:21]requested_item fd.num is exist - process it [06:18:21]SAM_PROTO_GetFieldsCounters [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 13 00 00 [06:18:21]Write to MH i2c: E2 08 00 CE 05 80 13 00 00 00 00 00 00 4F [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:21]Read from MH i2c: E2 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 62 00 [06:18:21]MH_I2C_Read... [06:18:21]Read from MH i2c: E2 62 00 CE 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 82 02 00 0E 04 04 00 BE 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 5D [06:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 82 02 00 0E 04 04 00 BE 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 [06:18:21]wFMCommunicate OK [06:18:21]SAM_PROTO_GetFieldsCounters done [06:18:21]requested_item shift.num is exist - process it [06:18:21]requested_item shift.opened is exist - process it [06:18:21]req_shift_opened [06:18:21]FM_GetShiftState [06:18:21]SAM_PROTO_GetShiftState [06:18:21]wFMCommunicate request_size=4 [06:18:21]MH_SAM_APDU [06:18:21]CAPDU: 80 13 01 00 [06:18:21]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [06:18:21]Write i2c OK [06:18:21]MH_I2C_Read... [06:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:22]Read from MH i2c: E2 [06:18:22]MH_I2C_Read... [06:18:22]Read from MH i2c: E2 0E 00 [06:18:22]MH_I2C_Read... [06:18:22]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 32 [06:18:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:18:22]wFMCommunicate OK [06:18:22]SAM_PROTO_GetShiftState done [06:18:22]FM_GetShiftState done [06:18:22]req_shift_opened done [06:18:22]requested_item shift.open_date is exist - process it [06:18:22]req_shift_open_date [06:18:22]req_shift_open_date done [06:18:22]produce_requested_data done [06:18:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164459,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:18:22]process_action_free close_receipt [06:18:22]json_value_free [06:18:22]json_value_free done [06:18:22]process_json_proto returns [06:18:22]Send response to host [06:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164459,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:18:22]free response buf [06:18:22]execute_script done [06:18:22]execute_script returns [06:18:22]free content buf [06:18:22]Sock 7.Close socket [06:18:22]Sock 7.Thread stoped [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20: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:27]accept exits with 9 [06:25:27]New connection [06:25:27]New thread 3067157860 created [06:25:27]Thread 3067301220 joined [06:25:27]Waiting for new connection... [06:25:27] Sock 9.Parse request [06:25:27]Sock 9.Check first char [06:25:27]Sock 9.First char is OK [06:25:27]request: POST /json_proto HTTP/1.0 [06:25:27]Method: POST [06:25:27]URL: /json_proto [06:25:27]Method is POST - this is cgi request [06:25:27]url: /json_proto [06:25:27]query_string will be loaded in cgi processing [06:25:27]execute_cgi json_proto POST (null) [06:25:27]execute_cgi path=json_proto method=POST [06:25:27]POST find Content-Length [06:25:27]Host: 172.17.56.4:8080 [06:25:27]Content-Length: 674 [06:25:27]Content-Type: application/json [06:25:27] [06:25:27]POST finish read [06:25:27]Found Content-Length = 674 [06:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [06:25:27]execute_script... [06:25: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)458546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [06:25:27]POST & json_proto [06:25:27]process_json_proto [06:25:27]json parsed OK: [06:25:27]protocol is kg_v1.0 [06:25:27]action value=close_receipt [06:25:27]process_action close_receipt [06:25:27]cmd_close_receipt [06:25:27]MH_GetDate [06:25:27]Write to MH i2c: F0 00 00 D0 05 C4 [06:25:27]Write i2c OK [06:25:27]MH_I2C_Read... [06:25:27]Read from MH i2c: F0 [06:25:27]MH_I2C_Read... [06:25:27]Read from MH i2c: F0 09 00 [06:25:27]MH_I2C_Read... [06:25:27]Read from MH i2c: F0 09 00 D0 05 00 D8 1D 92 66 C9 DC B2 64 75 [06:25:27]GetLastDocTimeStamp 1720851499 [06:25:27]current date 1720851928 [06:25:27]FM_GetShiftState [06:25:27]SAM_PROTO_GetShiftState [06:25:27]wFMCommunicate request_size=4 [06:25:27]MH_SAM_APDU [06:25:27]CAPDU: 80 13 01 00 [06:25:27]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [06:25:27]Write i2c OK [06:25:27]MH_I2C_Read... [06:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:27]Read from MH i2c: E2 [06:25:27]MH_I2C_Read... [06:25:27]Read from MH i2c: E2 0E 00 [06:25:27]MH_I2C_Read... [06:25:27]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 34 [06:25:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:25:27]wFMCommunicate OK [06:25:27]SAM_PROTO_GetShiftState done [06:25:27]FM_GetShiftState done [06:25:27]opened in 1720831249 [06:25:27]opened+sec_in_day 1720917649 [06:25:27]quantity*price = 70030 [06:25:27]sum+1 = 70032 [06:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 20 13.07.2024 06:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164460 ФПД: 57001175640815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164460&fm=57001175640815&tin=02508201610067®Number=0000000000090829&sum=70000 [06:25:28]StoreToDocumentArchive [06:25:28]shift 446 fd 164460 [06:25:28]save to /storage/0446/doc_00164460 [06:25:28]save last doc name /storage/0446/doc_00164460 to /storage/kkm_last_doc_name [06:25:28]save OK [06:25:28]Clear old archive folders... [06:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:25:28]tlvbuf is 00BED990 [06:25:28]SAM_PROTO_ClearQueue [06:25:28]wFMCommunicate request_size=4 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 09 00 00 [06:25:28]Write to MH i2c: E2 08 00 DE 05 80 09 00 00 00 00 00 00 55 [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [06:25:28]RAPDU: 90 00 [06:25:28]wFMCommunicate OK [06:25:28]SAM_PROTO_ClearQueue done [06:25:28]KKMCreateOFDPacket [06:25:28]OFDProtocolAddRootSTLVToBuf [06:25:28]FM_MakeSignedData [06:25:28]FM_MakeSignedData [06:25:28]SAM_PROTO_SignData [06:25:28]wFMCommunicate request_size=4 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 0D 01 02 [06:25:28]Write to MH i2c: E2 08 00 DF 05 80 0D 01 02 00 00 00 00 5D [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [06:25:28]RAPDU: 90 00 [06:25:28]wFMCommunicate OK [06:25:28]wFMCommunicate request_size=255 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 1D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 82 02 00 35 04 06 00 33 D7 9E D3 [06:25:28]Write to MH i2c: E2 02 01 E0 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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 1D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 82 02 00 35 04 06 00 33 D7 9E D3 00 00 8C [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [06:25:28]RAPDU: 90 00 [06:25:28]wFMCommunicate OK [06:25:28]wFMCommunicate request_size=7 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 0D 02 02 02 6A EF [06:25:28]Write to MH i2c: E2 0A 00 E1 05 80 0D 02 02 02 00 6A EF 00 00 BD [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [06:25:28]RAPDU: 90 00 [06:25:28]wFMCommunicate OK [06:25:28]wFMCommunicate request_size=4 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 0D 03 02 [06:25:28]Write to MH i2c: E2 08 00 E2 05 80 0D 03 02 00 00 00 00 62 [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 0B 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 0B 00 E2 05 00 42 C1 BE F4 62 60 92 BB 90 00 27 [06:25:28]RAPDU: 42 C1 BE F4 62 60 92 BB 90 00 [06:25:28]wFMCommunicate OK [06:25:28]SAM_PROTO_SignData done [06:25:28]FM_MakeSignedData done [06:25:28]CreateOFDProtocolMessage [06:25:28]wFMCommunicate request_size=4 [06:25:28]MH_SAM_APDU [06:25:28]CAPDU: 80 11 00 00 [06:25:28]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:28]Read from MH i2c: E2 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 17 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [06:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:25:28]wFMCommunicate OK [06:25:28]CreateOFDProtocolMessage done [06:25:28]OFDSenderStorePacket 164460 [06:25:28]StoreOFDPacket docnum=164460 [06:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5F EE 04 01 5B 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 1D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 82 02 00 35 04 06 00 33 D7 9E D3 6A EF 42 C1 BE F4 62 60 92 BB [06:25:28]CheckFolder [06:25:28]dirname=/storage/ofd_packets [06:25:28]CheckFolder done [06:25:28]ProducePacketName [06:25:28]name=ofd_packets/00164460 [06:25:28]NVStorageSaveData ofd_packets/00164460 [06:25:28]File name is /storage/ofd_packets/00164460 [06:25:28]Write 298 bytes [06:25:28]NVStorageSaveData done [06:25:28]OFDSenderStorePacket done [06:25:28]KKMCreateOFDPacket done [06:25:28]NVStorageSaveData kkm_last_timestamp [06:25:28]File name is /storage/kkm_last_timestamp [06:25:28]Write 4 bytes [06:25:28]NVStorageSaveData done [06:25:28]ExternCall_PrintAddStr [06:25:28]wPrintStart [06:25:28]Write to MH i2c: 01 00 00 E4 05 E9 [06:25:28]Write i2c OK [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: 01 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: 01 07 00 [06:25:28]MH_I2C_Read... [06:25:28]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [06:25:28]RasterBufferAndPrint [06:25:28]line Счет N : (1)458546 [06:25:28]line ИНН: 02508201610067 [06:25:28]line Контрольно-Кассовый Чек [06:25:28]line ПРОДАЖА [06:25:28]line ТРК (МРК, ГНК) : 21 [06:25:28]line Товар: 2710194210 [06:25:28]line ДТ-К-5 [06:25:28]line 9.740 * 71.90 [06:25:28]line = 700.31 [06:25:28]line НДС 12% НСП 1% [06:25:28]line > о реализуемом товаре [06:25:28]line ОКРУГЛЕНИЕ: -0.31 [06:25:28]line ИТОГО: 700.00 [06:25:28]line Внесено: 700.00 [06:25:28]line СДАЧА: 0.00 [06:25:28]line НСП 1% : 6.20 [06:25:28]line НДС 12% : 74.37 [06:25:28]line Наличными: 700.00 [06:25:28]line Безнал.: 0.00 [06:25:28]line Место: АЗС № 72 "Партнер Нефть" [06:25:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:25:28]line СНО: Общий режим [06:25:28]line Чек 20 13.07.2024 06:25 [06:25:28]line Смена: 446 ФФД: 1.0 [06:25:28]line ЗНМ: 0300000160 [06:25:28]line РНМ: 0000000000090829 [06:25:28]line Версия ККМ: 001 [06:25:28]line ФМ: 0000000000874718 [06:25:28]line ФД: 164460 [06:25:28]line ФПД: 57001175640815 [06:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164460&fm=57001175640815&tin=02508201610067®Number=0000000000090829&sum=70000 [06:25:29]OFD Sender: Processing packet 164460 [packets to send 104, broken 103] [06:25:29]ProducePacketName [06:25:29]name=ofd_packets/00164460 [06:25:29]OFD Sender: To server: pG, [06:25:29]CommunicateWithHost lk.salyk.kg:30040 [06:25:29]ConnectInit lk.salyk.kg [06:25:29]written 0, free lines is 4095 [06:25:29]Connected sock=10 [06:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5F EE 04 01 5B 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 1D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 82 02 00 35 04 06 00 33 D7 9E D3 6A EF 42 C1 BE F4 62 60 92 BB [06:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 62 47 00 C5 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 34 37 31 38 10 04 04 00 6C 82 02 00 F4 03 04 00 6A C4 91 66 B6 04 01 00 00 B9 53 E7 B4 80 AC 06 1D [06:25:29]CommunicateWithHost err = 0 [06:25:29]CheckOFDResponse [06:25:29]1017 (14) - 77093643461234 [06:25:29]1041 (16) - 0000000000874718 [06:25:29]1040 (4) - 164460 [06:25:29]1012 (4) - 13.07.2024 00:03 [06:25:29]1206 (1) - 0 [06:25:29]OFD Sender: Remove packet 164460 [06:25:29]ProducePacketName [06:25:29]name=ofd_packets/00164460 [06:25:29]NVStorageDeleteData [06:25:29]Write to MH i2c: 01 00 00 0E 06 14 [06:25:29]Write i2c OK [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: 01 [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: 01 07 00 [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 FF 0C 26 [06:25:29]RasterBufferAndPrint [06:25:29]line [06:25:29]line [06:25:29]line [06:25:29]line [06:25:29]line [06:25:29]written 0, free lines is 3333 [06:25:29]MH_Cut [06:25:29]Write to MH i2c: D1 01 00 15 06 01 ED [06:25:29]Write i2c OK [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: D1 [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: D1 01 00 [06:25:29]MH_I2C_Read... [06:25:29]Read from MH i2c: D1 01 00 15 06 00 EC [06:25:29]Write to MH i2c: 01 00 00 16 06 1C [06:25:29]Write i2c OK [06:25:29]MH_I2C_Read... [06:25:29]OFD Sender: No OFD packet to send [06:25:30]*** Cut start [06:25:30]*** Partial cut [06:25:30]*** CUTSNS_PIN = 1 [06:25:30]*** CUTSNS_PIN = 0 [06:25:30]*** Brake cut motor [06:25:30]Read from MH i2c: 01 [06:25:30]MH_I2C_Read... [06:25:30]*** Stop cut motor [06:25:30]*** Cut end [06:25:30]Read from MH i2c: 01 07 00 [06:25:30]MH_I2C_Read... [06:25:30]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 FF 0F 31 [06:25:30]process_action close_receipt done [06:25:30]requested_data is exist [06:25:30]produce_requested_data [06:25:30]requested_item fm.sn is exist - process it [06:25:30]wFMCommunicate request_size=4 [06:25:30]MH_SAM_APDU [06:25:30]CAPDU: 80 11 00 00 [06:25:30]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [06:25:30]Write i2c OK [06:25:30]MH_I2C_Read... [06:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:30]Read from MH i2c: E2 [06:25:30]MH_I2C_Read... [06:25:30]Read from MH i2c: E2 17 00 [06:25:30]MH_I2C_Read... [06:25:30]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [06:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:25:30]wFMCommunicate OK [06:25:30]requested_item fd.num is exist - process it [06:25:30]SAM_PROTO_GetFieldsCounters [06:25:30]wFMCommunicate request_size=4 [06:25:30]MH_SAM_APDU [06:25:30]CAPDU: 80 13 00 00 [06:25:30]Write to MH i2c: E2 08 00 18 06 80 13 00 00 00 00 00 00 9A [06:25:30]Write i2c OK [06:25:30]MH_I2C_Read... [06:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:30]Read from MH i2c: E2 [06:25:30]MH_I2C_Read... [06:25:30]Read from MH i2c: E2 62 00 [06:25:30]MH_I2C_Read... [06:25:30]Read from MH i2c: E2 62 00 18 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 82 02 00 0E 04 04 00 BE 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 AC [06:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:25:30]wFMCommunicate OK [06:25:30]SAM_PROTO_GetFieldsCounters done [06:25:30]requested_item shift.num is exist - process it [06:25:30]requested_item shift.opened is exist - process it [06:25:30]req_shift_opened [06:25:30]FM_GetShiftState [06:25:30]SAM_PROTO_GetShiftState [06:25:30]wFMCommunicate request_size=4 [06:25:30]MH_SAM_APDU [06:25:30]CAPDU: 80 13 01 00 [06:25:30]Write to MH i2c: E2 08 00 19 06 80 13 01 00 00 00 00 00 9C [06:25:30]Write i2c OK [06:25:30]MH_I2C_Read... [06:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:31]Read from MH i2c: E2 [06:25:31]MH_I2C_Read... [06:25:31]Read from MH i2c: E2 0E 00 [06:25:31]MH_I2C_Read... [06:25:31]Read from MH i2c: E2 0E 00 19 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7D [06:25:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:25:31]wFMCommunicate OK [06:25:31]SAM_PROTO_GetShiftState done [06:25:31]FM_GetShiftState done [06:25:31]req_shift_opened done [06:25:31]requested_item shift.open_date is exist - process it [06:25:31]req_shift_open_date [06:25:31]req_shift_open_date done [06:25:31]produce_requested_data done [06:25:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164460,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:25:31]process_action_free close_receipt [06:25:31]json_value_free [06:25:31]json_value_free done [06:25:31]process_json_proto returns [06:25:31]Send response to host [06:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164460,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:25:31]free response buf [06:25:31]execute_script done [06:25:31]execute_script returns [06:25:31]free content buf [06:25:31]Sock 9.Close socket [06:25:31]Sock 9.Thread stoped [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:07]accept exits with 7 [06:26:07]New connection [06:26:07]New thread 3067301220 created [06:26:07]Thread 3067157860 joined [06:26:07]Waiting for new connection... [06:26:07] Sock 7.Parse request [06:26:07]Sock 7.Check first char [06:26:07]Sock 7.First char is OK [06:26:07]request: POST /json_proto HTTP/1.0 [06:26:07]Method: POST [06:26:07]URL: /json_proto [06:26:07]Method is POST - this is cgi request [06:26:07]url: /json_proto [06:26:07]query_string will be loaded in cgi processing [06:26:07]execute_cgi json_proto POST (null) [06:26:07]execute_cgi path=json_proto method=POST [06:26:07]POST find Content-Length [06:26:07]Host: 172.17.56.4:8080 [06:26:07]Content-Length: 677 [06:26:07]Content-Type: application/json [06:26:07] [06:26:07]POST finish read [06:26:07]Found Content-Length = 677 [06:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:07]execute_script... [06: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)458547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:07]POST & json_proto [06:26:07]process_json_proto [06:26:07]json parsed OK: [06:26:07]protocol is kg_v1.0 [06:26:07]action value=close_receipt [06:26:07]process_action close_receipt [06:26:07]cmd_close_receipt [06:26:07]MH_GetDate [06:26:07]Write to MH i2c: F0 00 00 1A 06 0F [06:26:07]Write i2c OK [06:26:07]MH_I2C_Read... [06:26:07]Read from MH i2c: F0 [06:26:07]MH_I2C_Read... [06:26:07]Read from MH i2c: F0 09 00 [06:26:07]MH_I2C_Read... [06:26:07]Read from MH i2c: F0 09 00 1A 06 00 01 1E 92 66 C9 DC B2 64 EA [06:26:07]GetLastDocTimeStamp 1720851928 [06:26:07]current date 1720851969 [06:26:07]FM_GetShiftState [06:26:07]SAM_PROTO_GetShiftState [06:26:07]wFMCommunicate request_size=4 [06:26:07]MH_SAM_APDU [06:26:07]CAPDU: 80 13 01 00 [06:26:07]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [06:26:07]Write i2c OK [06:26:07]MH_I2C_Read... [06:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:07]Read from MH i2c: E2 [06:26:07]MH_I2C_Read... [06:26:07]Read from MH i2c: E2 0E 00 [06:26:07]MH_I2C_Read... [06:26:07]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7F [06:26:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:26:07]wFMCommunicate OK [06:26:07]SAM_PROTO_GetShiftState done [06:26:07]FM_GetShiftState done [06:26:07]opened in 1720831249 [06:26:07]opened+sec_in_day 1720917649 [06:26:07]quantity*price = 40006 [06:26:07]sum+1 = 40007 [06:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 21 13.07.2024 06:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164461 ФПД: 217668196865505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164461&fm=217668196865505&tin=02508201610067®Number=0000000000090829&sum=40000 [06:26:08]StoreToDocumentArchive [06:26:08]shift 446 fd 164461 [06:26:08]save to /storage/0446/doc_00164461 [06:26:08]save last doc name /storage/0446/doc_00164461 to /storage/kkm_last_doc_name [06:26:08]save OK [06:26:08]Clear old archive folders... [06:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:08]tlvbuf is 00B6B0D0 [06:26:08]SAM_PROTO_ClearQueue [06:26:08]wFMCommunicate request_size=4 [06:26:08]MH_SAM_APDU [06:26:08]CAPDU: 80 09 00 00 [06:26:08]Write to MH i2c: E2 08 00 28 06 80 09 00 00 00 00 00 00 A0 [06:26:08]Write i2c OK [06:26:08]MH_I2C_Read... [06:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:08]Read from MH i2c: E2 [06:26:08]MH_I2C_Read... [06:26:08]Read from MH i2c: E2 03 00 [06:26:08]MH_I2C_Read... [06:26:08]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [06:26:08]RAPDU: 90 00 [06:26:08]wFMCommunicate OK [06:26:08]SAM_PROTO_ClearQueue done [06:26:08]KKMCreateOFDPacket [06:26:08]OFDProtocolAddRootSTLVToBuf [06:26:08]FM_MakeSignedData [06:26:08]FM_MakeSignedData [06:26:08]SAM_PROTO_SignData [06:26:08]wFMCommunicate request_size=4 [06:26:08]MH_SAM_APDU [06:26:08]CAPDU: 80 0D 01 02 [06:26:08]Write to MH i2c: E2 08 00 29 06 80 0D 01 02 00 00 00 00 A8 [06:26:08]Write i2c OK [06:26:08]MH_I2C_Read... [06:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:09]Read from MH i2c: E2 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [06:26:09]RAPDU: 90 00 [06:26:09]wFMCommunicate OK [06:26:09]wFMCommunicate request_size=255 [06:26:09]MH_SAM_APDU [06:26: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 1E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 82 02 00 35 04 06 00 C5 [06:26:09]Write to MH i2c: E2 02 01 2A 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 1E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 82 02 00 35 04 06 00 C5 00 00 A2 [06:26:09]Write i2c OK [06:26:09]MH_I2C_Read... [06:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:09]Read from MH i2c: E2 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [06:26:09]RAPDU: 90 00 [06:26:09]wFMCommunicate OK [06:26:09]wFMCommunicate request_size=10 [06:26:09]MH_SAM_APDU [06:26:09]CAPDU: 80 0D 02 02 05 F7 D3 8D 95 E1 [06:26:09]Write to MH i2c: E2 0D 00 2B 06 80 0D 02 02 05 00 F7 D3 8D 95 E1 00 00 82 [06:26:09]Write i2c OK [06:26:09]MH_I2C_Read... [06:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:09]Read from MH i2c: E2 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [06:26:09]RAPDU: 90 00 [06:26:09]wFMCommunicate OK [06:26:09]wFMCommunicate request_size=4 [06:26:09]MH_SAM_APDU [06:26:09]CAPDU: 80 0D 03 02 [06:26:09]Write to MH i2c: E2 08 00 2C 06 80 0D 03 02 00 00 00 00 AD [06:26:09]Write i2c OK [06:26:09]MH_I2C_Read... [06:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:09]Read from MH i2c: E2 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 0B 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 0B 00 2C 06 00 91 B4 76 7C 51 D0 78 1C 90 00 9A [06:26:09]RAPDU: 91 B4 76 7C 51 D0 78 1C 90 00 [06:26:09]wFMCommunicate OK [06:26:09]SAM_PROTO_SignData done [06:26:09]FM_MakeSignedData done [06:26:09]CreateOFDProtocolMessage [06:26:09]wFMCommunicate request_size=4 [06:26:09]MH_SAM_APDU [06:26:09]CAPDU: 80 11 00 00 [06:26:09]Write to MH i2c: E2 08 00 2D 06 80 11 00 00 00 00 00 00 AD [06:26:09]Write i2c OK [06:26:09]MH_I2C_Read... [06:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:09]Read from MH i2c: E2 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 17 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: E2 17 00 2D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [06:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:09]wFMCommunicate OK [06:26:09]CreateOFDProtocolMessage done [06:26:09]OFDSenderStorePacket 164461 [06:26:09]StoreOFDPacket docnum=164461 [06:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7E 2E 07 01 75 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 1E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 82 02 00 35 04 06 00 C5 F7 D3 8D 95 E1 91 B4 76 7C 51 D0 78 1C [06:26:09]CheckFolder [06:26:09]dirname=/storage/ofd_packets [06:26:09]CheckFolder done [06:26:09]ProducePacketName [06:26:09]name=ofd_packets/00164461 [06:26:09]NVStorageSaveData ofd_packets/00164461 [06:26:09]File name is /storage/ofd_packets/00164461 [06:26:09]Write 301 bytes [06:26:09]NVStorageSaveData done [06:26:09]OFDSenderStorePacket done [06:26:09]KKMCreateOFDPacket done [06:26:09]NVStorageSaveData kkm_last_timestamp [06:26:09]File name is /storage/kkm_last_timestamp [06:26:09]Write 4 bytes [06:26:09]NVStorageSaveData done [06:26:09]ExternCall_PrintAddStr [06:26:09]wPrintStart [06:26:09]Write to MH i2c: 01 00 00 2E 06 34 [06:26:09]OFD Sender: Processing packet 164461 [packets to send 104, broken 103] [06:26:09]ProducePacketName [06:26:09]name=ofd_packets/00164461 [06:26:09]OFD Sender: To server: pG, [06:26:09]CommunicateWithHost lk.salyk.kg:30040 [06:26:09]ConnectInit lk.salyk.kg [06:26:09]Write i2c OK [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: 01 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: 01 07 00 [06:26:09]MH_I2C_Read... [06:26:09]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [06:26:09]RasterBufferAndPrint [06:26:09]line Счет N : (1)458547 [06:26:09]line ИНН: 02508201610067 [06:26:09]line Контрольно-Кассовый Чек [06:26:09]line ПРОДАЖА [06:26:09]line ТРК (МРК, ГНК) : 12 [06:26:09]line Товар: 2710124130 [06:26:09]line Аи-92-К-5 [06:26:09]line 6.080 * 65.80 [06:26:09]line = 400.06 [06:26:09]line НДС 12% НСП 1% [06:26:09]line > о реализуемом товаре [06:26:09]line ОКРУГЛЕНИЕ: -0.06 [06:26:09]line ИТОГО: 400.00 [06:26:09]line Внесено: 400.00 [06:26:09]line СДАЧА: 0.00 [06:26:09]line НСП 1% : 3.54 [06:26:09]line НДС 12% : 42.48 [06:26:09]line Наличными: 400.00 [06:26:09]line Безнал.: 0.00 [06:26:09]line Место: АЗС № 72 "Партнер Нефть" [06:26:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:26:09]line СНО: Общий режим [06:26:09]line Чек 21 13.07.2024 06:26 [06:26:09]line Смена: 446 ФФД: 1.0 [06:26:09]line ЗНМ: 0300000160 [06:26:09]line РНМ: 0000000000090829 [06:26:09]line Версия ККМ: 001 [06:26:09]line ФМ: 0000000000874718 [06:26:09]line ФД: 164461 [06:26:09]line ФПД: 217668196865505 [06:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164461&fm=217668196865505&tin=02508201610067®Number=0000000000090829&sum=40000 [06:26:09]Connected sock=10 [06: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 34 37 31 38 0F 01 00 00 7E 2E 07 01 75 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 1E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 82 02 00 35 04 06 00 C5 F7 D3 8D 95 E1 91 B4 76 7C 51 D0 78 1C [06:26:09]written 0, free lines is 4095 [06:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 33 47 00 7E 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 34 37 31 38 10 04 04 00 6D 82 02 00 F4 03 04 00 93 C4 91 66 B6 04 01 00 00 86 A6 1C DE 1A E8 45 41 [06:26:10]CommunicateWithHost err = 0 [06:26:10]CheckOFDResponse [06:26:10]1017 (14) - 77093643461234 [06:26:10]1041 (16) - 0000000000874718 [06:26:10]1040 (4) - 164461 [06:26:10]1012 (4) - 13.07.2024 00:04 [06:26:10]1206 (1) - 0 [06:26:10]OFD Sender: Remove packet 164461 [06:26:10]ProducePacketName [06:26:10]name=ofd_packets/00164461 [06:26:10]NVStorageDeleteData [06:26:10]Write to MH i2c: 01 00 00 58 06 5E [06:26:10]Write i2c OK [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: 01 [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: 01 07 00 [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: 01 07 00 58 06 00 00 00 00 00 04 0D 76 [06:26:10]RasterBufferAndPrint [06:26:10]line [06:26:10]line [06:26:10]line [06:26:10]line [06:26:10]line [06:26:10]written 0, free lines is 3339 [06:26:10]MH_Cut [06:26:10]Write to MH i2c: D1 01 00 5F 06 01 37 [06:26:10]Write i2c OK [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: D1 [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: D1 01 00 [06:26:10]MH_I2C_Read... [06:26:10]Read from MH i2c: D1 01 00 5F 06 00 36 [06:26:10]Write to MH i2c: 01 00 00 60 06 66 [06:26:10]Write i2c OK [06:26:10]MH_I2C_Read... [06:26:10]OFD Sender: No OFD packet to send [06:26:10]*** Cut start [06:26:10]*** Partial cut [06:26:10]*** CUTSNS_PIN = 1 [06:26:11]*** CUTSNS_PIN = 0 [06:26:11]*** Brake cut motor [06:26:11]Read from MH i2c: 01 [06:26:11]MH_I2C_Read... [06:26:11]*** Stop cut motor [06:26:11]*** Cut end [06:26:11]Read from MH i2c: 01 07 00 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 FF 0F 7B [06:26:11]process_action close_receipt done [06:26:11]requested_data is exist [06:26:11]produce_requested_data [06:26:11]requested_item fm.sn is exist - process it [06:26:11]wFMCommunicate request_size=4 [06:26:11]MH_SAM_APDU [06:26:11]CAPDU: 80 11 00 00 [06:26:11]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [06:26:11]Write i2c OK [06:26:11]MH_I2C_Read... [06:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:11]Read from MH i2c: E2 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 17 00 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [06:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:11]wFMCommunicate OK [06:26:11]requested_item fd.num is exist - process it [06:26:11]SAM_PROTO_GetFieldsCounters [06:26:11]wFMCommunicate request_size=4 [06:26:11]MH_SAM_APDU [06:26:11]CAPDU: 80 13 00 00 [06:26:11]Write to MH i2c: E2 08 00 62 06 80 13 00 00 00 00 00 00 E4 [06:26:11]Write i2c OK [06:26:11]MH_I2C_Read... [06:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:11]Read from MH i2c: E2 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 62 00 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 62 00 62 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 82 02 00 0E 04 04 00 BE 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 FA [06: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:26:11]wFMCommunicate OK [06:26:11]SAM_PROTO_GetFieldsCounters done [06:26:11]requested_item shift.num is exist - process it [06:26:11]requested_item shift.opened is exist - process it [06:26:11]req_shift_opened [06:26:11]FM_GetShiftState [06:26:11]SAM_PROTO_GetShiftState [06:26:11]wFMCommunicate request_size=4 [06:26:11]MH_SAM_APDU [06:26:11]CAPDU: 80 13 01 00 [06:26:11]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [06:26:11]Write i2c OK [06:26:11]MH_I2C_Read... [06:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:11]Read from MH i2c: E2 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 0E 00 [06:26:11]MH_I2C_Read... [06:26:11]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [06:26:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:26:11]wFMCommunicate OK [06:26:11]SAM_PROTO_GetShiftState done [06:26:11]FM_GetShiftState done [06:26:11]req_shift_opened done [06:26:11]requested_item shift.open_date is exist - process it [06:26:11]req_shift_open_date [06:26:11]req_shift_open_date done [06:26:11]produce_requested_data done [06:26:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164461,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:26:11]process_action_free close_receipt [06:26:11]json_value_free [06:26:11]json_value_free done [06:26:11]process_json_proto returns [06:26:11]Send response to host [06:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164461,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:26:11]free response buf [06:26:11]execute_script done [06:26:11]execute_script returns [06:26:11]free content buf [06:26:11]Sock 7.Close socket [06:26:11]Sock 7.Thread stoped [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]accept exits with 9 [06:40:51]New connection [06:40:51]New thread 3067157860 created [06:40:51]Thread 3067301220 joined [06:40:51]Waiting for new connection... [06:40:51] Sock 9.Parse request [06:40:51]Sock 9.Check first char [06:40:51]Sock 9.First char is OK [06:40:51]request: POST /json_proto HTTP/1.0 [06:40:51]Method: POST [06:40:51]URL: /json_proto [06:40:51]Method is POST - this is cgi request [06:40:51]url: /json_proto [06:40:51]query_string will be loaded in cgi processing [06:40:51]execute_cgi json_proto POST (null) [06:40:51]execute_cgi path=json_proto method=POST [06:40:51]POST find Content-Length [06:40:51]Host: 172.17.56.4:8080 [06:40:51]Content-Length: 677 [06:40:51]Content-Type: application/json [06:40:51] [06:40:51]POST finish read [06:40:51]Found Content-Length = 677 [06:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:51]execute_script... [06:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:51]POST & json_proto [06:40:51]process_json_proto [06:40:51]json parsed OK: [06:40:51]protocol is kg_v1.0 [06:40:51]action value=close_receipt [06:40:51]process_action close_receipt [06:40:51]cmd_close_receipt [06:40:51]MH_GetDate [06:40:51]Write to MH i2c: F0 00 00 64 06 59 [06:40:51]Write i2c OK [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 09 00 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 09 00 64 06 00 74 21 92 66 C9 DC B2 64 AA [06:40:51]GetLastDocTimeStamp 1720851969 [06:40:51]current date 1720852852 [06:40:51]FM_GetShiftState [06:40:51]SAM_PROTO_GetShiftState [06:40:51]wFMCommunicate request_size=4 [06:40:51]MH_SAM_APDU [06:40:51]CAPDU: 80 13 01 00 [06:40:51]Write to MH i2c: E2 08 00 65 06 80 13 01 00 00 00 00 00 E8 [06:40:51]Write i2c OK [06:40:51]MH_I2C_Read... [06:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:51]Read from MH i2c: E2 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: E2 0E 00 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: E2 0E 00 65 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C9 [06:40:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:40:51]wFMCommunicate OK [06:40:51]SAM_PROTO_GetShiftState done [06:40:51]FM_GetShiftState done [06:40:51]opened in 1720831249 [06:40:51]opened+sec_in_day 1720917649 [06:40:51]quantity*price = 40006 [06:40:51]sum+1 = 40007 [06:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 22 13.07.2024 06:40 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164462 ФПД: 16065456769707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164462&fm=16065456769707&tin=02508201610067®Number=0000000000090829&sum=40000 [06:40:52]StoreToDocumentArchive [06:40:52]shift 446 fd 164462 [06:40:52]save to /storage/0446/doc_00164462 [06:40:52]save last doc name /storage/0446/doc_00164462 to /storage/kkm_last_doc_name [06:40:52]save OK [06:40:52]Clear old archive folders... [06:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:52]tlvbuf is 00BF1D10 [06:40:52]SAM_PROTO_ClearQueue [06:40:52]wFMCommunicate request_size=4 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 09 00 00 [06:40:52]Write to MH i2c: E2 08 00 72 06 80 09 00 00 00 00 00 00 EA [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]SAM_PROTO_ClearQueue done [06:40:52]KKMCreateOFDPacket [06:40:52]OFDProtocolAddRootSTLVToBuf [06:40:52]FM_MakeSignedData [06:40:52]FM_MakeSignedData [06:40:52]SAM_PROTO_SignData [06:40:52]wFMCommunicate request_size=4 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 0D 01 02 [06:40:52]Write to MH i2c: E2 08 00 73 06 80 0D 01 02 00 00 00 00 F2 [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]wFMCommunicate request_size=255 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 21 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 82 02 00 35 04 06 00 0E [06:40:52]Write to MH i2c: E2 02 01 74 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 21 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 82 02 00 35 04 06 00 0E 00 00 AD [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]wFMCommunicate request_size=10 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 0D 02 02 05 9C 87 D8 0A AB [06:40:52]Write to MH i2c: E2 0D 00 75 06 80 0D 02 02 05 00 9C 87 D8 0A AB 00 00 AF [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]wFMCommunicate request_size=4 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 0D 03 02 [06:40:52]Write to MH i2c: E2 08 00 76 06 80 0D 03 02 00 00 00 00 F7 [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 0B 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 0B 00 76 06 00 AF 22 6B D6 C4 18 AE 7C 90 00 10 [06:40:53]RAPDU: AF 22 6B D6 C4 18 AE 7C 90 00 [06:40:53]wFMCommunicate OK [06:40:53]SAM_PROTO_SignData done [06:40:53]FM_MakeSignedData done [06:40:53]CreateOFDProtocolMessage [06:40:53]wFMCommunicate request_size=4 [06:40:53]MH_SAM_APDU [06:40:53]CAPDU: 80 11 00 00 [06:40:53]Write to MH i2c: E2 08 00 77 06 80 11 00 00 00 00 00 00 F7 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 17 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 17 00 77 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [06:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:40:53]wFMCommunicate OK [06:40:53]CreateOFDProtocolMessage done [06:40:53]OFDSenderStorePacket 164462 [06:40:53]StoreOFDPacket docnum=164462 [06:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 88 07 01 6F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 21 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 82 02 00 35 04 06 00 0E 9C 87 D8 0A AB AF 22 6B D6 C4 18 AE 7C [06:40:53]CheckFolder [06:40:53]dirname=/storage/ofd_packets [06:40:53]CheckFolder done [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00164462 [06:40:53]NVStorageSaveData ofd_packets/00164462 [06:40:53]File name is /storage/ofd_packets/00164462 [06:40:53]Write 301 bytes [06:40:53]NVStorageSaveData done [06:40:53]OFDSenderStorePacket done [06:40:53]KKMCreateOFDPacket done [06:40:53]NVStorageSaveData kkm_last_timestamp [06:40:53]File name is /storage/kkm_last_timestamp [06:40:53]Write 4 bytes [06:40:53]NVStorageSaveData done [06:40:53]ExternCall_PrintAddStr [06:40:53]wPrintStart [06:40:53]Write to MH i2c: 01 00 00 78 06 7E [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [06:40:53]RasterBufferAndPrint [06:40:53]line Счет N : (1)458548 [06:40:53]line ИНН: 02508201610067 [06:40:53]line Контрольно-Кассовый Чек [06:40:53]line ПРОДАЖА [06:40:53]line ТРК (МРК, ГНК) : 12 [06:40:53]line Товар: 2710124130 [06:40:53]OFD Sender: Processing packet 164462 [packets to send 104, broken 103] [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00164462 [06:40:53]OFD Sender: To server: pG, [06:40:53]CommunicateWithHost lk.salyk.kg:30040 [06:40:53]ConnectInit lk.salyk.kg [06:40:53]line Аи-92-К-5 [06:40:53]line 6.080 * 65.80 [06:40:53]line = 400.06 [06:40:53]line НДС 12% НСП 1% [06:40:53]line > о реализуемом товаре [06:40:53]line ОКРУГЛЕНИЕ: -0.06 [06:40:53]line ИТОГО: 400.00 [06:40:53]line Внесено: 400.00 [06:40:53]line СДАЧА: 0.00 [06:40:53]line НСП 1% : 3.54 [06:40:53]line НДС 12% : 42.48 [06:40:53]line Наличными: 400.00 [06:40:53]line Безнал.: 0.00 [06:40:53]line Место: АЗС № 72 "Партнер Нефть" [06:40:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:40:53]line СНО: Общий режим [06:40:53]line Чек 22 13.07.2024 06:40 [06:40:53]line Смена: 446 ФФД: 1.0 [06:40:53]line ЗНМ: 0300000160 [06:40:53]line РНМ: 0000000000090829 [06:40:53]line Версия ККМ: 001 [06:40:53]line ФМ: 0000000000874718 [06:40:53]line ФД: 164462 [06:40:53]line ФПД: 16065456769707 [06:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164462&fm=16065456769707&tin=02508201610067®Number=0000000000090829&sum=40000 [06:40:53]written 0, free lines is 4095 [06:40:53]Connected sock=11 [06:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 88 07 01 6F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 74 21 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 82 02 00 35 04 06 00 0E 9C 87 D8 0A AB AF 22 6B D6 C4 18 AE 7C [06:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 85 47 00 46 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 82 02 00 F4 03 04 00 06 C8 91 66 B6 04 01 00 00 D6 FA 6A A0 8A 4E 70 94 [06:40:53]CommunicateWithHost err = 0 [06:40:53]CheckOFDResponse [06:40:53]1017 (14) - 77093643461234 [06:40:53]1041 (16) - 0000000000874718 [06:40:53]1040 (4) - 164462 [06:40:53]1012 (4) - 13.07.2024 00:19 [06:40:53]1206 (1) - 0 [06:40:53]OFD Sender: Remove packet 164462 [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00164462 [06:40:53]NVStorageDeleteData [06:40:53]Write to MH i2c: 01 00 00 A2 06 A8 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 A2 06 00 00 00 00 00 08 0D C4 [06:40:53]RasterBufferAndPrint [06:40:53]line [06:40:53]line [06:40:53]line [06:40:53]line [06:40:53]line [06:40:53]written 0, free lines is 3342 [06:40:53]MH_Cut [06:40:53]Write to MH i2c: D1 01 00 A9 06 01 81 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: D1 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: D1 01 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: D1 01 00 A9 06 00 80 [06:40:53]Write to MH i2c: 01 00 00 AA 06 B0 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]OFD Sender: No OFD packet to send [06:40:54]*** Cut start [06:40:54]*** Partial cut [06:40:54]*** CUTSNS_PIN = 1 [06:40:54]*** CUTSNS_PIN = 0 [06:40:54]*** Brake cut motor [06:40:54]Read from MH i2c: 01 [06:40:54]MH_I2C_Read... [06:40:54]*** Stop cut motor [06:40:54]*** Cut end [06:40:54]Read from MH i2c: 01 07 00 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [06:40:54]process_action close_receipt done [06:40:54]requested_data is exist [06:40:54]produce_requested_data [06:40:54]requested_item fm.sn is exist - process it [06:40:54]wFMCommunicate request_size=4 [06:40:54]MH_SAM_APDU [06:40:54]CAPDU: 80 11 00 00 [06:40:54]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [06:40:54]Write i2c OK [06:40:54]MH_I2C_Read... [06:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:54]Read from MH i2c: E2 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: E2 17 00 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [06:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:40:54]wFMCommunicate OK [06:40:54]requested_item fd.num is exist - process it [06:40:54]SAM_PROTO_GetFieldsCounters [06:40:54]wFMCommunicate request_size=4 [06:40:54]MH_SAM_APDU [06:40:54]CAPDU: 80 13 00 00 [06:40:54]Write to MH i2c: E2 08 00 AC 06 80 13 00 00 00 00 00 00 2E [06:40:54]Write i2c OK [06:40:54]MH_I2C_Read... [06:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:54]Read from MH i2c: E2 [06:40:55]MH_I2C_Read... [06:40:55]Read from MH i2c: E2 62 00 [06:40:55]MH_I2C_Read... [06:40:55]Read from MH i2c: E2 62 00 AC 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 82 02 00 0E 04 04 00 BE 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 48 [06:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:55]wFMCommunicate OK [06:40:55]SAM_PROTO_GetFieldsCounters done [06:40:55]requested_item shift.num is exist - process it [06:40:55]requested_item shift.opened is exist - process it [06:40:55]req_shift_opened [06:40:55]FM_GetShiftState [06:40:55]SAM_PROTO_GetShiftState [06:40:55]wFMCommunicate request_size=4 [06:40:55]MH_SAM_APDU [06:40:55]CAPDU: 80 13 01 00 [06:40:55]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [06:40:55]Write i2c OK [06:40:55]MH_I2C_Read... [06:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:55]Read from MH i2c: E2 [06:40:55]MH_I2C_Read... [06:40:55]Read from MH i2c: E2 0E 00 [06:40:55]MH_I2C_Read... [06:40:55]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 11 [06:40:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:40:55]wFMCommunicate OK [06:40:55]SAM_PROTO_GetShiftState done [06:40:55]FM_GetShiftState done [06:40:55]req_shift_opened done [06:40:55]requested_item shift.open_date is exist - process it [06:40:55]req_shift_open_date [06:40:55]req_shift_open_date done [06:40:55]produce_requested_data done [06:40:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164462,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:40:55]process_action_free close_receipt [06:40:55]json_value_free [06:40:55]json_value_free done [06:40:55]process_json_proto returns [06:40:55]Send response to host [06:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164462,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:40:55]free response buf [06:40:55]execute_script done [06:40:55]execute_script returns [06:40:55]free content buf [06:40:55]Sock 9.Close socket [06:40:55]Sock 9.Thread stoped [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:16]accept exits with 7 [06:44:16]New connection [06:44:16]New thread 3067301220 created [06:44:16]Thread 3067157860 joined [06:44:16]Waiting for new connection... [06:44:16] Sock 7.Parse request [06:44:16]Sock 7.Check first char [06:44:16]Sock 7.First char is OK [06:44:16]request: POST /json_proto HTTP/1.0 [06:44:16]Method: POST [06:44:16]URL: /json_proto [06:44:16]Method is POST - this is cgi request [06:44:16]url: /json_proto [06:44:16]query_string will be loaded in cgi processing [06:44:16]execute_cgi json_proto POST (null) [06:44:16]execute_cgi path=json_proto method=POST [06:44:16]POST find Content-Length [06:44:16]Host: 172.17.56.4:8080 [06:44:16]Content-Length: 677 [06:44:16]Content-Type: application/json [06:44:16] [06:44:16]POST finish read [06:44:16]Found Content-Length = 677 [06:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [06:44:16]execute_script... [06:44: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)458549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [06:44:16]POST & json_proto [06:44:16]process_json_proto [06:44:16]json parsed OK: [06:44:16]protocol is kg_v1.0 [06:44:16]action value=close_receipt [06:44:16]process_action close_receipt [06:44:16]cmd_close_receipt [06:44:16]MH_GetDate [06:44:16]Write to MH i2c: F0 00 00 AE 06 A3 [06:44:16]Write i2c OK [06:44:16]MH_I2C_Read... [06:44:16]Read from MH i2c: F0 [06:44:16]MH_I2C_Read... [06:44:16]Read from MH i2c: F0 09 00 [06:44:16]MH_I2C_Read... [06:44:16]Read from MH i2c: F0 09 00 AE 06 00 42 22 92 66 C9 DC B2 64 C3 [06:44:16]GetLastDocTimeStamp 1720852852 [06:44:16]current date 1720853058 [06:44:16]FM_GetShiftState [06:44:16]SAM_PROTO_GetShiftState [06:44:16]wFMCommunicate request_size=4 [06:44:16]MH_SAM_APDU [06:44:16]CAPDU: 80 13 01 00 [06:44:16]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [06:44:16]Write i2c OK [06:44:16]MH_I2C_Read... [06:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:16]Read from MH i2c: E2 [06:44:16]MH_I2C_Read... [06:44:16]Read from MH i2c: E2 0E 00 [06:44:16]MH_I2C_Read... [06:44:16]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 13 [06:44:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:44:16]wFMCommunicate OK [06:44:16]SAM_PROTO_GetShiftState done [06:44:16]FM_GetShiftState done [06:44:16]opened in 1720831249 [06:44:16]opened+sec_in_day 1720917649 [06:44:16]quantity*price = 25004 [06:44:16]sum+1 = 25005 [06:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 23 13.07.2024 06:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164463 ФПД: 62778022567263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164463&fm=62778022567263&tin=02508201610067®Number=0000000000090829&sum=25000 [06:44:17]StoreToDocumentArchive [06:44:17]shift 446 fd 164463 [06:44:17]save to /storage/0446/doc_00164463 [06:44:17]save last doc name /storage/0446/doc_00164463 to /storage/kkm_last_doc_name [06:44:17]save OK [06:44:17]Clear old archive folders... [06:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:44:17]tlvbuf is 00BE4DA0 [06:44:17]SAM_PROTO_ClearQueue [06:44:17]wFMCommunicate request_size=4 [06:44:17]MH_SAM_APDU [06:44:17]CAPDU: 80 09 00 00 [06:44:17]Write to MH i2c: E2 08 00 BC 06 80 09 00 00 00 00 00 00 34 [06:44:17]Write i2c OK [06:44:17]MH_I2C_Read... [06:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:17]Read from MH i2c: E2 [06:44:17]MH_I2C_Read... [06:44:17]Read from MH i2c: E2 03 00 [06:44:17]MH_I2C_Read... [06:44:17]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [06:44:17]RAPDU: 90 00 [06:44:17]wFMCommunicate OK [06:44:17]SAM_PROTO_ClearQueue done [06:44:17]KKMCreateOFDPacket [06:44:17]OFDProtocolAddRootSTLVToBuf [06:44:17]FM_MakeSignedData [06:44:17]FM_MakeSignedData [06:44:17]SAM_PROTO_SignData [06:44:17]wFMCommunicate request_size=4 [06:44:17]MH_SAM_APDU [06:44:17]CAPDU: 80 0D 01 02 [06:44:17]Write to MH i2c: E2 08 00 BD 06 80 0D 01 02 00 00 00 00 3C [06:44:17]Write i2c OK [06:44:17]MH_I2C_Read... [06:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:17]Read from MH i2c: E2 [06:44:17]MH_I2C_Read... [06:44:17]Read from MH i2c: E2 03 00 [06:44:17]MH_I2C_Read... [06:44:17]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [06:44:17]RAPDU: 90 00 [06:44:17]wFMCommunicate OK [06:44:17]wFMCommunicate request_size=255 [06:44:17]MH_SAM_APDU [06:44: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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 22 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 82 02 00 35 04 06 00 39 [06:44:17]Write to MH i2c: E2 02 01 BE 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 22 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 82 02 00 35 04 06 00 39 00 00 C2 [06:44:18]Write i2c OK [06:44:18]MH_I2C_Read... [06:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:18]Read from MH i2c: E2 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 03 00 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [06:44:18]RAPDU: 90 00 [06:44:18]wFMCommunicate OK [06:44:18]wFMCommunicate request_size=10 [06:44:18]MH_SAM_APDU [06:44:18]CAPDU: 80 0D 02 02 05 18 A5 BC 1D 5F [06:44:18]Write to MH i2c: E2 0D 00 BF 06 80 0D 02 02 05 00 18 A5 BC 1D 5F 00 00 3E [06:44:18]Write i2c OK [06:44:18]MH_I2C_Read... [06:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:18]Read from MH i2c: E2 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 03 00 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [06:44:18]RAPDU: 90 00 [06:44:18]wFMCommunicate OK [06:44:18]wFMCommunicate request_size=4 [06:44:18]MH_SAM_APDU [06:44:18]CAPDU: 80 0D 03 02 [06:44:18]Write to MH i2c: E2 08 00 C0 06 80 0D 03 02 00 00 00 00 41 [06:44:18]Write i2c OK [06:44:18]MH_I2C_Read... [06:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:18]Read from MH i2c: E2 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 0B 00 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 0B 00 C0 06 00 0A 77 15 3B 24 95 C9 16 90 00 AB [06:44:18]RAPDU: 0A 77 15 3B 24 95 C9 16 90 00 [06:44:18]wFMCommunicate OK [06:44:18]SAM_PROTO_SignData done [06:44:18]FM_MakeSignedData done [06:44:18]CreateOFDProtocolMessage [06:44:18]wFMCommunicate request_size=4 [06:44:18]MH_SAM_APDU [06:44:18]CAPDU: 80 11 00 00 [06:44:18]Write to MH i2c: E2 08 00 C1 06 80 11 00 00 00 00 00 00 41 [06:44:18]Write i2c OK [06:44:18]MH_I2C_Read... [06:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:18]Read from MH i2c: E2 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 17 00 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: E2 17 00 C1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [06:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:44:18]wFMCommunicate OK [06:44:18]CreateOFDProtocolMessage done [06:44:18]OFDSenderStorePacket 164463 [06:44:18]StoreOFDPacket docnum=164463 [06:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 2D 07 01 BF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 22 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 82 02 00 35 04 06 00 39 18 A5 BC 1D 5F 0A 77 15 3B 24 95 C9 16 [06:44:18]CheckFolder [06:44:18]dirname=/storage/ofd_packets [06:44:18]CheckFolder done [06:44:18]ProducePacketName [06:44:18]name=ofd_packets/00164463 [06:44:18]NVStorageSaveData ofd_packets/00164463 [06:44:18]File name is /storage/ofd_packets/00164463 [06:44:18]Write 301 bytes [06:44:18]NVStorageSaveData done [06:44:18]OFDSenderStorePacket done [06:44:18]KKMCreateOFDPacket done [06:44:18]NVStorageSaveData kkm_last_timestamp [06:44:18]File name is /storage/kkm_last_timestamp [06:44:18]Write 4 bytes [06:44:18]NVStorageSaveData done [06:44:18]ExternCall_PrintAddStr [06:44:18]wPrintStart [06:44:18]Write to MH i2c: 01 00 00 C2 06 C8 [06:44:18]Write i2c OK [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: 01 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: 01 07 00 [06:44:18]MH_I2C_Read... [06:44:18]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 FF 0F DD [06:44:18]RasterBufferAndPrint [06:44:18]line Счет N : (1)458549 [06:44:18]line ИНН: 02508201610067 [06:44:18]line Контрольно-Кассовый Чек [06:44:18]line ПРОДАЖА [06:44:18]line ТРК (МРК, ГНК) : 12 [06:44:18]line Товар: 2710124130 [06:44:18]line Аи-92-К-5 [06:44:18]line 3.800 * 65.80 [06:44:18]line = 250.04 [06:44:18]line НДС 12% НСП 1% [06:44:18]line > о реализуемом товаре [06:44:18]line ОКРУГЛЕНИЕ: -0.04 [06:44:18]line ИТОГО: 250.00 [06:44:18]line Внесено: 250.00 [06:44:18]line СДАЧА: 0.00 [06:44:18]line НСП 1% : 2.21 [06:44:18]line НДС 12% : 26.55 [06:44:18]line Наличными: 250.00 [06:44:18]line Безнал.: 0.00 [06:44:18]line Место: АЗС № 72 "Партнер Нефть" [06:44:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:44:18]line СНО: Общий режим [06:44:18]line Чек 23 13.07.2024 06:44 [06:44:18]line Смена: 446 ФФД: 1.0 [06:44:18]line ЗНМ: 0300000160 [06:44:18]line РНМ: 0000000000090829 [06:44:18]line Версия ККМ: 001 [06:44:18]line ФМ: 0000000000874718 [06:44:18]line ФД: 164463 [06:44:18]line ФПД: 62778022567263 [06:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164463&fm=62778022567263&tin=02508201610067®Number=0000000000090829&sum=25000 [06:44:18]written 0, free lines is 4095 [06:44:18]OFD Sender: Processing packet 164463 [packets to send 104, broken 103] [06:44:18]ProducePacketName [06:44:18]name=ofd_packets/00164463 [06:44:18]OFD Sender: To server: pG, [06:44:18]CommunicateWithHost lk.salyk.kg:30040 [06:44:18]ConnectInit lk.salyk.kg [06:44:18]Connected sock=10 [06:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 2D 07 01 BF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 22 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 82 02 00 35 04 06 00 39 18 A5 BC 1D 5F 0A 77 15 3B 24 95 C9 16 [06:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 C6 47 00 BD 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 82 02 00 F4 03 04 00 D4 C8 91 66 B6 04 01 00 00 F8 D1 7B A8 D6 6A BE 8E [06:44:19]CommunicateWithHost err = 0 [06:44:19]CheckOFDResponse [06:44:19]1017 (14) - 77093643461234 [06:44:19]1041 (16) - 0000000000874718 [06:44:19]1040 (4) - 164463 [06:44:19]1012 (4) - 13.07.2024 00:22 [06:44:19]1206 (1) - 0 [06:44:19]OFD Sender: Remove packet 164463 [06:44:19]ProducePacketName [06:44:19]name=ofd_packets/00164463 [06:44:19]NVStorageDeleteData [06:44:19]Write to MH i2c: 01 00 00 EC 06 F2 [06:44:19]Write i2c OK [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: 01 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: 01 07 00 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 F4 0C F9 [06:44:19]RasterBufferAndPrint [06:44:19]line [06:44:19]line [06:44:19]line [06:44:19]line [06:44:19]line [06:44:19]written 0, free lines is 3323 [06:44:19]MH_Cut [06:44:19]Write to MH i2c: D1 01 00 F3 06 01 CB [06:44:19]Write i2c OK [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: D1 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: D1 01 00 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: D1 01 00 F3 06 00 CA [06:44:19]Write to MH i2c: 01 00 00 F4 06 FA [06:44:19]Write i2c OK [06:44:19]MH_I2C_Read... [06:44:19]OFD Sender: No OFD packet to send [06:44:19]*** Cut start [06:44:19]*** Partial cut [06:44:19]*** CUTSNS_PIN = 1 [06:44:19]*** CUTSNS_PIN = 0 [06:44:20]*** Brake cut motor [06:44:20]Read from MH i2c: 01 [06:44:20]MH_I2C_Read... [06:44:20]*** Stop cut motor [06:44:20]*** Cut end [06:44:20]Read from MH i2c: 01 07 00 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [06:44:20]process_action close_receipt done [06:44:20]requested_data is exist [06:44:20]produce_requested_data [06:44:20]requested_item fm.sn is exist - process it [06:44:20]wFMCommunicate request_size=4 [06:44:20]MH_SAM_APDU [06:44:20]CAPDU: 80 11 00 00 [06:44:20]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [06:44:20]Write i2c OK [06:44:20]MH_I2C_Read... [06:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:20]Read from MH i2c: E2 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 17 00 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [06:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:44:20]wFMCommunicate OK [06:44:20]requested_item fd.num is exist - process it [06:44:20]SAM_PROTO_GetFieldsCounters [06:44:20]wFMCommunicate request_size=4 [06:44:20]MH_SAM_APDU [06:44:20]CAPDU: 80 13 00 00 [06:44:20]Write to MH i2c: E2 08 00 F6 06 80 13 00 00 00 00 00 00 78 [06:44:20]Write i2c OK [06:44:20]MH_I2C_Read... [06:44:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:20]Read from MH i2c: E2 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 62 00 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 62 00 F6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 82 02 00 0E 04 04 00 BE 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 96 [06:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 82 02 00 0E 04 04 00 BE 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 [06:44:20]wFMCommunicate OK [06:44:20]SAM_PROTO_GetFieldsCounters done [06:44:20]requested_item shift.num is exist - process it [06:44:20]requested_item shift.opened is exist - process it [06:44:20]req_shift_opened [06:44:20]FM_GetShiftState [06:44:20]SAM_PROTO_GetShiftState [06:44:20]wFMCommunicate request_size=4 [06:44:20]MH_SAM_APDU [06:44:20]CAPDU: 80 13 01 00 [06:44:20]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [06:44:20]Write i2c OK [06:44:20]MH_I2C_Read... [06:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:20]Read from MH i2c: E2 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 0E 00 [06:44:20]MH_I2C_Read... [06:44:20]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5B [06:44:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:44:20]wFMCommunicate OK [06:44:20]SAM_PROTO_GetShiftState done [06:44:20]FM_GetShiftState done [06:44:20]req_shift_opened done [06:44:20]requested_item shift.open_date is exist - process it [06:44:20]req_shift_open_date [06:44:20]req_shift_open_date done [06:44:20]produce_requested_data done [06:44:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164463,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:44:20]process_action_free close_receipt [06:44:20]json_value_free [06:44:20]json_value_free done [06:44:20]process_json_proto returns [06:44:20]Send response to host [06:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164463,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:44:20]free response buf [06:44:20]execute_script done [06:44:20]execute_script returns [06:44:20]free content buf [06:44:20]Sock 7.Close socket [06:44:20]Sock 7.Thread stoped [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:15]accept exits with 9 [06:46:15]New connection [06:46:15]New thread 3067157860 created [06:46:15]Thread 3067301220 joined [06:46:15]Waiting for new connection... [06:46:15] Sock 9.Parse request [06:46:15]Sock 9.Check first char [06:46:15]Sock 9.First char is OK [06:46:15]request: POST /json_proto HTTP/1.0 [06:46:15]Method: POST [06:46:15]URL: /json_proto [06:46:15]Method is POST - this is cgi request [06:46:15]url: /json_proto [06:46:15]query_string will be loaded in cgi processing [06:46:15]execute_cgi json_proto POST (null) [06:46:15]execute_cgi path=json_proto method=POST [06:46:15]POST find Content-Length [06:46:15]Host: 172.17.56.4:8080 [06:46:15]Content-Length: 1196 [06:46:15]Content-Type: application/json [06:46:15] [06:46:15]POST finish read [06:46:15]Found Content-Length = 1196 [06:46:15]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458550\u000A13.07.2024 06:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3845337\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:15]execute_script... [06:46:15]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458550\u000A13.07.2024 06:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3845337\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:15]POST & json_proto [06:46:15]process_json_proto [06:46:15]json parsed OK: [06:46:15]protocol is kg_v1.0 [06:46:15]action value=print_text [06:46:15]process_action print_text [06:46:15]cmd_print_text [06:46:15]ExternCall_PrintAddStr [06:46:15]wPrintStart [06:46:15]Write to MH i2c: 01 00 00 F8 06 FE [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 07 00 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 07 00 F8 06 00 00 00 00 00 FF 0F 13 [06:46:15]RasterBufferAndPrint [06:46:15]line *****ТОВАРНЫЙ ЧЕК***** [06:46:15]line АЗС 72 [06:46:15]line Партнер нефть [06:46:15]line 02508201610067 [06:46:15]line Кассир : Женишбеков Т. [06:46:15]line Счет N : (1)458550 [06:46:15]line 13.07.2024 06:11 [06:46:15]line ПРОДАЖА [06:46:15]line ТРК (МРК, ГНК): 22 [06:46:15]line Вид ГСМ : 2710124130 [06:46:15]line Аи-92-К-5 [06:46:15]line 10.000 x 65.80 [06:46:15]line ИТОГ: 658.00 [06:46:15]line Тип оплаты: Талоны: Партнер нефть [06:46:15]line 3845337 [06:46:15]line ______________________ [06:46:15]line (подпись) [06:46:15]written 0, free lines is 4095 [06:46:15]Write to MH i2c: 01 00 00 0D 07 14 [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 07 00 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 F6 0D 1E [06:46:15]RasterBufferAndPrint [06:46:15]line [06:46:15]line [06:46:15]line [06:46:15]line [06:46:15]line [06:46:15]written 0, free lines is 3576 [06:46:15]MH_Cut [06:46:15]Write to MH i2c: D1 01 00 14 07 01 ED [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: D1 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: D1 01 00 [06:46:15]MH_I2C_Read... [06:46:15]Read from MH i2c: D1 01 00 14 07 00 EC [06:46:15]Write to MH i2c: 01 00 00 15 07 1C [06:46:15]Write i2c OK [06:46:15]MH_I2C_Read... [06:46:16]*** Cut start [06:46:16]*** Partial cut [06:46:16]*** CUTSNS_PIN = 1 [06:46:16]*** CUTSNS_PIN = 0 [06:46:16]*** Brake cut motor [06:46:16]Read from MH i2c: 01 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: 01 07 00 [06:46:16]MH_I2C_Read... [06:46:16]*** Stop cut motor [06:46:16]*** Cut end [06:46:16]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [06:46:16]process_action print_text done [06:46:16]requested_data is exist [06:46:16]produce_requested_data [06:46:16]requested_item fm.sn is exist - process it [06:46:16]wFMCommunicate request_size=4 [06:46:16]MH_SAM_APDU [06:46:16]CAPDU: 80 11 00 00 [06:46:16]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [06:46:16]Write i2c OK [06:46:16]MH_I2C_Read... [06:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:16]Read from MH i2c: E2 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 17 00 [06:46:16]MH_I2C_Read... [06:46:16]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [06:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:46:16]wFMCommunicate OK [06:46:16]requested_item fd.num is exist - process it [06:46:16]SAM_PROTO_GetFieldsCounters [06:46:16]wFMCommunicate request_size=4 [06:46:16]MH_SAM_APDU [06:46:16]CAPDU: 80 13 00 00 [06:46:16]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [06:46:16]Write i2c OK [06:46:16]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 62 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 62 00 17 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 82 02 00 0E 04 04 00 BE 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 B8 [06:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 82 02 00 0E 04 04 00 BE 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 [06:46:17]wFMCommunicate OK [06:46:17]SAM_PROTO_GetFieldsCounters done [06:46:17]requested_item shift.num is exist - process it [06:46:17]requested_item shift.opened is exist - process it [06:46:17]req_shift_opened [06:46:17]FM_GetShiftState [06:46:17]SAM_PROTO_GetShiftState [06:46:17]wFMCommunicate request_size=4 [06:46:17]MH_SAM_APDU [06:46:17]CAPDU: 80 13 01 00 [06:46:17]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [06:46:17]Write i2c OK [06:46:17]MH_I2C_Read... [06:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:17]Read from MH i2c: E2 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 0E 00 [06:46:17]MH_I2C_Read... [06:46:17]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7D [06:46:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [06:46:17]wFMCommunicate OK [06:46:17]SAM_PROTO_GetShiftState done [06:46:17]FM_GetShiftState done [06:46:17]req_shift_opened done [06:46:17]requested_item shift.open_date is exist - process it [06:46:17]req_shift_open_date [06:46:17]req_shift_open_date done [06:46:17]produce_requested_data done [06:46:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164463,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [06:46:17]process_action_free print_text [06:46:17]json_value_free [06:46:17]json_value_free done [06:46:17]process_json_proto returns [06:46:17]Send response to host [06:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164463,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [06:46:17]free response buf [06:46:17]execute_script done [06:46:17]execute_script returns [06:46:17]free content buf [06:46:17]Sock 9.Close socket [06:46:17]Sock 9.Thread stoped [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:04]accept exits with 7 [07:08:04]New connection [07:08:04]New thread 3067301220 created [07:08:04]Thread 3067157860 joined [07:08:04]Waiting for new connection... [07:08:04] Sock 7.Parse request [07:08:04]Sock 7.Check first char [07:08:04]Sock 7.First char is OK [07:08:04]request: POST /json_proto HTTP/1.0 [07:08:04]Method: POST [07:08:04]URL: /json_proto [07:08:04]Method is POST - this is cgi request [07:08:04]url: /json_proto [07:08:04]query_string will be loaded in cgi processing [07:08:04]execute_cgi json_proto POST (null) [07:08:04]execute_cgi path=json_proto method=POST [07:08:04]POST find Content-Length [07:08:04]Host: 172.17.56.4:8080 [07:08:04]Content-Length: 682 [07:08:04]Content-Type: application/json [07:08:04] [07:08:04]POST finish read [07:08:04]Found Content-Length = 682 [07:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.520, "sum" : 1350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:04]execute_script... [07:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.520, "sum" : 1350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:04]POST & json_proto [07:08:04]process_json_proto [07:08:04]json parsed OK: [07:08:04]protocol is kg_v1.0 [07:08:04]action value=close_receipt [07:08:04]process_action close_receipt [07:08:04]cmd_close_receipt [07:08:04]MH_GetDate [07:08:04]Write to MH i2c: F0 00 00 19 07 0F [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 09 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: F0 09 00 19 07 00 D6 27 92 66 C9 DC B2 64 C8 [07:08:04]GetLastDocTimeStamp 1720853058 [07:08:04]current date 1720854486 [07:08:04]FM_GetShiftState [07:08:04]SAM_PROTO_GetShiftState [07:08:04]wFMCommunicate request_size=4 [07:08:04]MH_SAM_APDU [07:08:04]CAPDU: 80 13 01 00 [07:08:04]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 0E 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7F [07:08:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:08:05]wFMCommunicate OK [07:08:05]SAM_PROTO_GetShiftState done [07:08:05]FM_GetShiftState done [07:08:05]opened in 1720831249 [07:08:05]opened+sec_in_day 1720917649 [07:08:05]quantity*price = 135021 [07:08:05]sum+1 = 135023 [07:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.39 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 24 13.07.2024 07:08 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164464 ФПД: 268130540579173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164464&fm=268130540579173&tin=02508201610067®Number=0000000000090829&sum=135000 [07:08:06]StoreToDocumentArchive [07:08:06]shift 446 fd 164464 [07:08:06]save to /storage/0446/doc_00164464 [07:08:06]save last doc name /storage/0446/doc_00164464 to /storage/kkm_last_doc_name [07:08:06]save OK [07:08:06]Clear old archive folders... [07:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:06]tlvbuf is 00B7C000 [07:08:06]SAM_PROTO_ClearQueue [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 09 00 00 [07:08:06]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]SAM_PROTO_ClearQueue done [07:08:06]KKMCreateOFDPacket [07:08:06]OFDProtocolAddRootSTLVToBuf [07:08:06]FM_MakeSignedData [07:08:06]FM_MakeSignedData [07:08:06]SAM_PROTO_SignData [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 01 02 [07:08:06]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]wFMCommunicate request_size=255 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 D6 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 82 02 00 35 04 06 00 F3 [07:08:06]Write to MH i2c: E2 02 01 29 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 D6 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 82 02 00 35 04 06 00 F3 00 00 EB [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]wFMCommunicate request_size=10 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 02 02 05 DD 01 9F E9 65 [07:08:06]Write to MH i2c: E2 0D 00 2A 07 80 0D 02 02 05 00 DD 01 9F E9 65 00 00 80 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [07:08:06]RAPDU: 90 00 [07:08:06]wFMCommunicate OK [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 0D 03 02 [07:08:06]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0B 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0B 00 2B 07 00 6A 8F B4 82 C0 E4 2F A1 90 00 51 [07:08:06]RAPDU: 6A 8F B4 82 C0 E4 2F A1 90 00 [07:08:06]wFMCommunicate OK [07:08:06]SAM_PROTO_SignData done [07:08:06]FM_MakeSignedData done [07:08:06]CreateOFDProtocolMessage [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 11 00 00 [07:08:06]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 17 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [07:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:08:06]wFMCommunicate OK [07:08:06]CreateOFDProtocolMessage done [07:08:06]OFDSenderStorePacket 164464 [07:08:06]StoreOFDPacket docnum=164464 [07:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 0B 07 01 25 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 D6 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 82 02 00 35 04 06 00 F3 DD 01 9F E9 65 6A 8F B4 82 C0 E4 2F A1 [07:08:06]CheckFolder [07:08:06]dirname=/storage/ofd_packets [07:08:06]CheckFolder done [07:08:06]ProducePacketName [07:08:06]name=ofd_packets/00164464 [07:08:06]NVStorageSaveData ofd_packets/00164464 [07:08:06]File name is /storage/ofd_packets/00164464 [07:08:06]Write 301 bytes [07:08:06]NVStorageSaveData done [07:08:06]OFDSenderStorePacket done [07:08:06]KKMCreateOFDPacket done [07:08:06]NVStorageSaveData kkm_last_timestamp [07:08:06]File name is /storage/kkm_last_timestamp [07:08:06]Write 4 bytes [07:08:06]NVStorageSaveData done [07:08:06]ExternCall_PrintAddStr [07:08:06]wPrintStart [07:08:06]Write to MH i2c: 01 00 00 2D 07 34 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 07 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [07:08:06]RasterBufferAndPrint [07:08:06]line Счет N : (1)458552 [07:08:06]line ИНН: 02508201610067 [07:08:06]line Контрольно-Кассовый Чек [07:08:06]line ПРОДАЖА [07:08:06]line ТРК (МРК, ГНК) : 12 [07:08:06]line Товар: 2710124130 [07:08:06]line Аи-92-К-5 [07:08:06]line 20.520 * 65.80 [07:08:06]line = 1350.22 [07:08:06]line НДС 12% НСП 1% [07:08:06]line > о реализуемом товаре [07:08:06]line ОКРУГЛЕНИЕ: -0.22 [07:08:06]line ИТОГО: 1350.00 [07:08:06]line Внесено: 1350.00 [07:08:06]line СДАЧА: 0.00 [07:08:06]line НСП 1% : 11.95 [07:08:06]line НДС 12% : 143.39 [07:08:06]line Наличными: 1350.00 [07:08:06]line Безнал.: 0.00 [07:08:06]line Место: АЗС № 72 "Партнер Нефть" [07:08:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:08:06]line СНО: Общий режим [07:08:06]line Чек 24 13.07.2024 07:08 [07:08:06]line Смена: 446 ФФД: 1.0 [07:08:06]line ЗНМ: 0300000160 [07:08:06]line РНМ: 0000000000090829 [07:08:06]line Версия ККМ: 001 [07:08:06]line ФМ: 0000000000874718 [07:08:06]line ФД: 164464 [07:08:06]line ФПД: 268130540579173 [07:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164464&fm=268130540579173&tin=02508201610067®Number=0000000000090829&sum=135000 [07:08:07]OFD Sender: Processing packet 164464 [packets to send 104, broken 103] [07:08:07]ProducePacketName [07:08:07]name=ofd_packets/00164464 [07:08:07]OFD Sender: To server: pG, [07:08:07]CommunicateWithHost lk.salyk.kg:30040 [07:08:07]ConnectInit lk.salyk.kg [07:08:07]written 0, free lines is 4095 [07:08:07]Connected sock=10 [07:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 0B 07 01 25 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 D6 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 82 02 00 35 04 06 00 F3 DD 01 9F E9 65 6A 8F B4 82 C0 E4 2F A1 [07:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 0B 47 00 33 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 82 02 00 F4 03 04 00 68 CE 91 66 B6 04 01 00 00 13 77 46 88 81 8A 5D A0 [07:08:07]CommunicateWithHost err = 0 [07:08:07]CheckOFDResponse [07:08:07]1017 (14) - 77093643461234 [07:08:07]1041 (16) - 0000000000874718 [07:08:07]1040 (4) - 164464 [07:08:07]1012 (4) - 13.07.2024 00:46 [07:08:07]1206 (1) - 0 [07:08:07]OFD Sender: Remove packet 164464 [07:08:07]ProducePacketName [07:08:07]name=ofd_packets/00164464 [07:08:07]NVStorageDeleteData [07:08:07]Write to MH i2c: 01 00 00 57 07 5E [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 07 00 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 01 0D 73 [07:08:07]RasterBufferAndPrint [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]line [07:08:07]written 0, free lines is 3335 [07:08:07]MH_Cut [07:08:07]Write to MH i2c: D1 01 00 5E 07 01 37 [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 01 00 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: D1 01 00 5E 07 00 36 [07:08:07]Write to MH i2c: 01 00 00 5F 07 66 [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]OFD Sender: No OFD packet to send [07:08:08]*** Cut start [07:08:08]*** Partial cut [07:08:08]*** CUTSNS_PIN = 1 [07:08:08]*** CUTSNS_PIN = 0 [07:08:08]*** Brake cut motor [07:08:08]Read from MH i2c: 01 [07:08:08]MH_I2C_Read... [07:08:08]*** Stop cut motor [07:08:08]*** Cut end [07:08:08]Read from MH i2c: 01 07 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [07:08:08]process_action close_receipt done [07:08:08]requested_data is exist [07:08:08]produce_requested_data [07:08:08]requested_item fm.sn is exist - process it [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 11 00 00 [07:08:08]Write to MH i2c: E2 08 00 60 07 80 11 00 00 00 00 00 00 E1 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 60 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [07:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:08:08]wFMCommunicate OK [07:08:08]requested_item fd.num is exist - process it [07:08:08]SAM_PROTO_GetFieldsCounters [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 00 00 [07:08:08]Write to MH i2c: E2 08 00 61 07 80 13 00 00 00 00 00 00 E4 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 61 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 82 02 00 0E 04 04 00 BE 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 06 [07:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetFieldsCounters done [07:08:08]requested_item shift.num is exist - process it [07:08:08]requested_item shift.opened is exist - process it [07:08:08]req_shift_opened [07:08:08]FM_GetShiftState [07:08:08]SAM_PROTO_GetShiftState [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 01 00 [07:08:08]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [07:08:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:08:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetShiftState done [07:08:08]FM_GetShiftState done [07:08:08]req_shift_opened done [07:08:08]requested_item shift.open_date is exist - process it [07:08:08]req_shift_open_date [07:08:08]req_shift_open_date done [07:08:08]produce_requested_data done [07:08:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164464,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:08:08]process_action_free close_receipt [07:08:08]json_value_free [07:08:08]json_value_free done [07:08:08]process_json_proto returns [07:08:08]Send response to host [07:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164464,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:08:08]free response buf [07:08:08]execute_script done [07:08:08]execute_script returns [07:08:08]free content buf [07:08:08]Sock 7.Close socket [07:08:08]Sock 7.Thread stoped [07:08:09]accept exits with 9 [07:08:09]New connection [07:08:09]New thread 3067157860 created [07:08:09]Thread 3067301220 joined [07:08:09]Waiting for new connection... [07:08:09] Sock 9.Parse request [07:08:09]Sock 9.Check first char [07:08:09]Sock 9.First char is OK [07:08:09]request: POST /json_proto HTTP/1.0 [07:08:09]Method: POST [07:08:09]URL: /json_proto [07:08:09]Method is POST - this is cgi request [07:08:09]url: /json_proto [07:08:09]query_string will be loaded in cgi processing [07:08:09]execute_cgi json_proto POST (null) [07:08:09]execute_cgi path=json_proto method=POST [07:08:09]POST find Content-Length [07:08:09]Host: 172.17.56.4:8080 [07:08:09]Content-Length: 682 [07:08:09]Content-Type: application/json [07:08:09] [07:08:09]POST finish read [07:08:09]Found Content-Length = 682 [07:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 28.880, "sum" : 1900.30, "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" ] } } [07:08:09]execute_script... [07:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 28.880, "sum" : 1900.30, "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" ] } } [07:08:09]POST & json_proto [07:08:09]process_json_proto [07:08:09]json parsed OK: [07:08:09]protocol is kg_v1.0 [07:08:09]action value=close_receipt [07:08:09]process_action close_receipt [07:08:09]cmd_close_receipt [07:08:09]MH_GetDate [07:08:09]Write to MH i2c: F0 00 00 63 07 59 [07:08:09]Write i2c OK [07:08:09]MH_I2C_Read... [07:08:09]Read from MH i2c: F0 [07:08:09]MH_I2C_Read... [07:08:09]Read from MH i2c: F0 09 00 [07:08:09]MH_I2C_Read... [07:08:09]Read from MH i2c: F0 09 00 63 07 00 DB 27 92 66 C9 DC B2 64 17 [07:08:09]GetLastDocTimeStamp 1720854486 [07:08:09]current date 1720854491 [07:08:09]FM_GetShiftState [07:08:09]SAM_PROTO_GetShiftState [07:08:09]wFMCommunicate request_size=4 [07:08:09]MH_SAM_APDU [07:08:09]CAPDU: 80 13 01 00 [07:08:09]Write to MH i2c: E2 08 00 64 07 80 13 01 00 00 00 00 00 E8 [07:08:09]Write i2c OK [07:08:09]MH_I2C_Read... [07:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:09]Read from MH i2c: E2 [07:08:09]MH_I2C_Read... [07:08:09]Read from MH i2c: E2 0E 00 [07:08:09]MH_I2C_Read... [07:08:09]Read from MH i2c: E2 0E 00 64 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C9 [07:08:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:08:09]wFMCommunicate OK [07:08:09]SAM_PROTO_GetShiftState done [07:08:09]FM_GetShiftState done [07:08:09]opened in 1720831249 [07:08:09]opened+sec_in_day 1720917649 [07:08:09]quantity*price = 190030 [07:08:09]sum+1 = 190031 [07:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.80 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 25 13.07.2024 07:08 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164465 ФПД: 40257890211172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070811&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164465&fm=40257890211172&tin=02508201610067®Number=0000000000090829&sum=190000 [07:08:10]StoreToDocumentArchive [07:08:10]shift 446 fd 164465 [07:08:10]save to /storage/0446/doc_00164465 [07:08:10]save last doc name /storage/0446/doc_00164465 to /storage/kkm_last_doc_name [07:08:10]save OK [07:08:10]Clear old archive folders... [07:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:10]tlvbuf is 00B9BE70 [07:08:10]SAM_PROTO_ClearQueue [07:08:10]wFMCommunicate request_size=4 [07:08:10]MH_SAM_APDU [07:08:10]CAPDU: 80 09 00 00 [07:08:10]Write to MH i2c: E2 08 00 71 07 80 09 00 00 00 00 00 00 EA [07:08:10]Write i2c OK [07:08:10]MH_I2C_Read... [07:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:10]Read from MH i2c: E2 [07:08:10]MH_I2C_Read... [07:08:10]Read from MH i2c: E2 03 00 [07:08:10]MH_I2C_Read... [07:08:10]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [07:08:10]RAPDU: 90 00 [07:08:10]wFMCommunicate OK [07:08:10]SAM_PROTO_ClearQueue done [07:08:10]KKMCreateOFDPacket [07:08:10]OFDProtocolAddRootSTLVToBuf [07:08:10]FM_MakeSignedData [07:08:10]FM_MakeSignedData [07:08:10]SAM_PROTO_SignData [07:08:10]wFMCommunicate request_size=4 [07:08:10]MH_SAM_APDU [07:08:10]CAPDU: 80 0D 01 02 [07:08:10]Write to MH i2c: E2 08 00 72 07 80 0D 01 02 00 00 00 00 F2 [07:08:10]Write i2c OK [07:08:10]MH_I2C_Read... [07:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:10]Read from MH i2c: E2 [07:08:10]MH_I2C_Read... [07:08:10]Read from MH i2c: E2 03 00 [07:08:10]MH_I2C_Read... [07:08:10]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [07:08:10]RAPDU: 90 00 [07:08:10]wFMCommunicate OK [07:08:10]wFMCommunicate request_size=255 [07:08:10]MH_SAM_APDU [07:08: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 D0 70 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 4E 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 D4 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 19 00 00 00 F4 03 04 00 DB 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 82 02 00 35 04 06 00 24 [07:08:10]Write to MH i2c: E2 02 01 73 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 D0 70 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 4E 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 D4 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 19 00 00 00 F4 03 04 00 DB 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 82 02 00 35 04 06 00 24 00 00 1A [07:08:10]Write i2c OK [07:08:10]MH_I2C_Read... [07:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:11]Read from MH i2c: E2 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 03 00 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [07:08:11]RAPDU: 90 00 [07:08:11]wFMCommunicate OK [07:08:11]wFMCommunicate request_size=10 [07:08:11]MH_SAM_APDU [07:08:11]CAPDU: 80 0D 02 02 05 9D 45 3E D5 64 [07:08:11]Write to MH i2c: E2 0D 00 74 07 80 0D 02 02 05 00 9D 45 3E D5 64 00 00 58 [07:08:11]Write i2c OK [07:08:11]MH_I2C_Read... [07:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:11]Read from MH i2c: E2 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 03 00 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [07:08:11]RAPDU: 90 00 [07:08:11]wFMCommunicate OK [07:08:11]wFMCommunicate request_size=4 [07:08:11]MH_SAM_APDU [07:08:11]CAPDU: 80 0D 03 02 [07:08:11]Write to MH i2c: E2 08 00 75 07 80 0D 03 02 00 00 00 00 F7 [07:08:11]Write i2c OK [07:08:11]MH_I2C_Read... [07:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:11]Read from MH i2c: E2 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 0B 00 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 0B 00 75 07 00 69 37 6C 49 82 30 74 74 90 00 E7 [07:08:11]RAPDU: 69 37 6C 49 82 30 74 74 90 00 [07:08:11]wFMCommunicate OK [07:08:11]SAM_PROTO_SignData done [07:08:11]FM_MakeSignedData done [07:08:11]CreateOFDProtocolMessage [07:08:11]wFMCommunicate request_size=4 [07:08:11]MH_SAM_APDU [07:08:11]CAPDU: 80 11 00 00 [07:08:11]Write to MH i2c: E2 08 00 76 07 80 11 00 00 00 00 00 00 F7 [07:08:11]Write i2c OK [07:08:11]MH_I2C_Read... [07:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:11]Read from MH i2c: E2 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 17 00 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: E2 17 00 76 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [07:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:08:11]wFMCommunicate OK [07:08:11]CreateOFDProtocolMessage done [07:08:11]OFDSenderStorePacket 164465 [07:08:11]StoreOFDPacket docnum=164465 [07:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 69 07 01 8F 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 D0 70 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 4E 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 D4 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 19 00 00 00 F4 03 04 00 DB 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 82 02 00 35 04 06 00 24 9D 45 3E D5 64 69 37 6C 49 82 30 74 74 [07:08:11]CheckFolder [07:08:11]dirname=/storage/ofd_packets [07:08:11]CheckFolder done [07:08:11]ProducePacketName [07:08:11]name=ofd_packets/00164465 [07:08:11]NVStorageSaveData ofd_packets/00164465 [07:08:11]File name is /storage/ofd_packets/00164465 [07:08:11]Write 301 bytes [07:08:11]NVStorageSaveData done [07:08:11]OFDSenderStorePacket done [07:08:11]KKMCreateOFDPacket done [07:08:11]NVStorageSaveData kkm_last_timestamp [07:08:11]File name is /storage/kkm_last_timestamp [07:08:11]Write 4 bytes [07:08:11]NVStorageSaveData done [07:08:11]ExternCall_PrintAddStr [07:08:11]wPrintStart [07:08:11]Write to MH i2c: 01 00 00 77 07 7E [07:08:11]Write i2c OK [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: 01 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: 01 07 00 [07:08:11]MH_I2C_Read... [07:08:11]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [07:08:11]RasterBufferAndPrint [07:08:11]line Счет N : (1)458551 [07:08:11]line ИНН: 02508201610067 [07:08:11]line Контрольно-Кассовый Чек [07:08:11]line ПРОДАЖА [07:08:11]line ТРК (МРК, ГНК) : 22 [07:08:11]line Товар: 2710124130 [07:08:11]line Аи-92-К-5 [07:08:11]line 28.880 * 65.80 [07:08:11]line = 1900.30 [07:08:11]line НДС 12% НСП 1% [07:08:11]line > о реализуемом товаре [07:08:11]line ОКРУГЛЕНИЕ: -0.30 [07:08:11]line ИТОГО: 1900.00 [07:08:11]line Внесено: 1900.00 [07:08:11]line СДАЧА: 0.00 [07:08:11]line НСП 1% : 16.82 [07:08:11]line НДС 12% : 201.80 [07:08:11]line Наличными: 1900.00 [07:08:11]line Безнал.: 0.00 [07:08:11]line Место: АЗС № 72 "Партнер Нефть" [07:08:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:08:11]line СНО: Общий режим [07:08:11]line Чек 25 13.07.2024 07:08 [07:08:11]line Смена: 446 ФФД: 1.0 [07:08:11]line ЗНМ: 0300000160 [07:08:11]line РНМ: 0000000000090829 [07:08:11]line Версия ККМ: 001 [07:08:11]line ФМ: 0000000000874718 [07:08:11]line ФД: 164465 [07:08:11]line ФПД: 40257890211172 [07:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070811&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164465&fm=40257890211172&tin=02508201610067®Number=0000000000090829&sum=190000 [07:08:11]written 0, free lines is 4095 [07:08:11]OFD Sender: Processing packet 164465 [packets to send 104, broken 103] [07:08:11]ProducePacketName [07:08:11]name=ofd_packets/00164465 [07:08:11]OFD Sender: To server: pG, [07:08:11]CommunicateWithHost lk.salyk.kg:30040 [07:08:11]ConnectInit lk.salyk.kg [07:08:11]Connected sock=10 [07:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 69 07 01 8F 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 D0 70 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 4E 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 D4 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 19 00 00 00 F4 03 04 00 DB 27 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 82 02 00 35 04 06 00 24 9D 45 3E D5 64 69 37 6C 49 82 30 74 74 [07:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DA 3D 47 00 12 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 34 37 31 38 10 04 04 00 71 82 02 00 F4 03 04 00 6D CE 91 66 B6 04 01 00 00 E2 FD 22 51 C8 60 74 79 [07:08:12]CommunicateWithHost err = 0 [07:08:12]CheckOFDResponse [07:08:12]1017 (14) - 77093643461234 [07:08:12]1041 (16) - 0000000000874718 [07:08:12]1040 (4) - 164465 [07:08:12]1012 (4) - 13.07.2024 00:46 [07:08:12]1206 (1) - 0 [07:08:12]OFD Sender: Remove packet 164465 [07:08:12]ProducePacketName [07:08:12]name=ofd_packets/00164465 [07:08:12]NVStorageDeleteData [07:08:12]Write to MH i2c: 01 00 00 A1 07 A8 [07:08:12]Write i2c OK [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: 01 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: 01 07 00 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 0D 0D C9 [07:08:12]RasterBufferAndPrint [07:08:12]line [07:08:12]line [07:08:12]line [07:08:12]line [07:08:12]line [07:08:12]written 0, free lines is 3353 [07:08:12]MH_Cut [07:08:12]Write to MH i2c: D1 01 00 A8 07 01 81 [07:08:12]Write i2c OK [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: D1 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: D1 01 00 [07:08:12]MH_I2C_Read... [07:08:12]Read from MH i2c: D1 01 00 A8 07 00 80 [07:08:12]Write to MH i2c: 01 00 00 A9 07 B0 [07:08:12]Write i2c OK [07:08:12]MH_I2C_Read... [07:08:12]OFD Sender: No OFD packet to send [07:08:12]*** Cut start [07:08:12]*** Partial cut [07:08:12]*** CUTSNS_PIN = 1 [07:08:12]*** CUTSNS_PIN = 0 [07:08:13]*** Brake cut motor [07:08:13]Read from MH i2c: 01 [07:08:13]MH_I2C_Read... [07:08:13]*** Stop cut motor [07:08:13]*** Cut end [07:08:13]Read from MH i2c: 01 07 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [07:08:13]process_action close_receipt done [07:08:13]requested_data is exist [07:08:13]produce_requested_data [07:08:13]requested_item fm.sn is exist - process it [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 11 00 00 [07:08:13]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 17 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [07:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:08:13]wFMCommunicate OK [07:08:13]requested_item fd.num is exist - process it [07:08:13]SAM_PROTO_GetFieldsCounters [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 13 00 00 [07:08:13]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 62 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 62 00 AB 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 82 02 00 0E 04 04 00 BE 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 54 [07:08: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:13]wFMCommunicate OK [07:08:13]SAM_PROTO_GetFieldsCounters done [07:08:13]requested_item shift.num is exist - process it [07:08:13]requested_item shift.opened is exist - process it [07:08:13]req_shift_opened [07:08:13]FM_GetShiftState [07:08:13]SAM_PROTO_GetShiftState [07:08:13]wFMCommunicate request_size=4 [07:08:13]MH_SAM_APDU [07:08:13]CAPDU: 80 13 01 00 [07:08:13]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [07:08:13]Write i2c OK [07:08:13]MH_I2C_Read... [07:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:13]Read from MH i2c: E2 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 0E 00 [07:08:13]MH_I2C_Read... [07:08:13]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 11 [07:08:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:08:13]wFMCommunicate OK [07:08:13]SAM_PROTO_GetShiftState done [07:08:13]FM_GetShiftState done [07:08:13]req_shift_opened done [07:08:13]requested_item shift.open_date is exist - process it [07:08:13]req_shift_open_date [07:08:13]req_shift_open_date done [07:08:13]produce_requested_data done [07:08:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164465,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:08:13]process_action_free close_receipt [07:08:13]json_value_free [07:08:13]json_value_free done [07:08:13]process_json_proto returns [07:08:13]Send response to host [07:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164465,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:08:13]free response buf [07:08:13]execute_script done [07:08:13]execute_script returns [07:08:13]free content buf [07:08:13]Sock 9.Close socket [07:08:13]Sock 9.Thread stoped [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:36]accept exits with 7 [07:10:36]New connection [07:10:36]New thread 3067301220 created [07:10:36]Thread 3067157860 joined [07:10:36]Waiting for new connection... [07:10:36] Sock 7.Parse request [07:10:36]Sock 7.Check first char [07:10:36]Sock 7.First char is OK [07:10:36]request: POST /json_proto HTTP/1.0 [07:10:36]Method: POST [07:10:36]URL: /json_proto [07:10:36]Method is POST - this is cgi request [07:10:36]url: /json_proto [07:10:36]query_string will be loaded in cgi processing [07:10:36]execute_cgi json_proto POST (null) [07:10:36]execute_cgi path=json_proto method=POST [07:10:36]POST find Content-Length [07:10:36]Host: 172.17.56.4:8080 [07:10:36]Content-Length: 790 [07:10:36]Content-Type: application/json [07:10:36] [07:10:36]POST finish read [07:10:36]Found Content-Length = 790 [07:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:36]execute_script... [07:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:36]POST & json_proto [07:10:36]process_json_proto [07:10:36]json parsed OK: [07:10:36]protocol is kg_v1.0 [07:10:36]action value=close_receipt [07:10:36]process_action close_receipt [07:10:36]cmd_close_receipt [07:10:36]MH_GetDate [07:10:36]Write to MH i2c: F0 00 00 AD 07 A3 [07:10:36]Write i2c OK [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 09 00 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: F0 09 00 AD 07 00 6E 28 92 66 C9 DC B2 64 F5 [07:10:36]GetLastDocTimeStamp 1720854491 [07:10:36]current date 1720854638 [07:10:36]FM_GetShiftState [07:10:36]SAM_PROTO_GetShiftState [07:10:36]wFMCommunicate request_size=4 [07:10:36]MH_SAM_APDU [07:10:36]CAPDU: 80 13 01 00 [07:10:36]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [07:10:36]Write i2c OK [07:10:36]MH_I2C_Read... [07:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:36]Read from MH i2c: E2 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: E2 0E 00 [07:10:36]MH_I2C_Read... [07:10:36]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 13 [07:10:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:10:36]wFMCommunicate OK [07:10:36]SAM_PROTO_GetShiftState done [07:10:36]FM_GetShiftState done [07:10:36]opened in 1720831249 [07:10:36]opened+sec_in_day 1720917649 [07:10:36]quantity*price = 50023 [07:10:36]sum+1 = 50025 [07:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 26 13.07.2024 07:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164466 ФПД: 35372106310835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164466&fm=35372106310835&tin=02508201610067®Number=0000000000090829&sum=50024 [07:10:37]StoreToDocumentArchive [07:10:37]shift 446 fd 164466 [07:10:37]save to /storage/0446/doc_00164466 [07:10:37]save last doc name /storage/0446/doc_00164466 to /storage/kkm_last_doc_name [07:10:37]save OK [07:10:37]Clear old archive folders... [07:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:37]tlvbuf is 00B6B810 [07:10:37]SAM_PROTO_ClearQueue [07:10:37]wFMCommunicate request_size=4 [07:10:37]MH_SAM_APDU [07:10:37]CAPDU: 80 09 00 00 [07:10:37]Write to MH i2c: E2 08 00 BB 07 80 09 00 00 00 00 00 00 34 [07:10:37]Write i2c OK [07:10:37]MH_I2C_Read... [07:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:37]Read from MH i2c: E2 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 03 00 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [07:10:37]RAPDU: 90 00 [07:10:37]wFMCommunicate OK [07:10:37]SAM_PROTO_ClearQueue done [07:10:37]KKMCreateOFDPacket [07:10:37]OFDProtocolAddRootSTLVToBuf [07:10:37]FM_MakeSignedData [07:10:37]FM_MakeSignedData [07:10:37]SAM_PROTO_SignData [07:10:37]wFMCommunicate request_size=4 [07:10:37]MH_SAM_APDU [07:10:37]CAPDU: 80 0D 01 02 [07:10:37]Write to MH i2c: E2 08 00 BC 07 80 0D 01 02 00 00 00 00 3C [07:10:37]Write i2c OK [07:10:37]MH_I2C_Read... [07:10:37]OFD Sender: No OFD packet to send [07:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:37]Read from MH i2c: E2 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 03 00 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [07:10:37]RAPDU: 90 00 [07:10:37]wFMCommunicate OK [07:10:37]wFMCommunicate request_size=255 [07:10:37]MH_SAM_APDU [07:10:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 6E 28 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 82 02 00 35 04 06 00 20 [07:10:37]Write to MH i2c: E2 02 01 BD 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 6E 28 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 82 02 00 35 04 06 00 20 00 00 80 [07:10:37]Write i2c OK [07:10:37]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=10 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 02 02 05 2B B5 D4 E4 B3 [07:10:38]Write to MH i2c: E2 0D 00 BE 07 80 0D 02 02 05 00 2B B5 D4 E4 B3 00 00 94 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 03 02 [07:10:38]Write to MH i2c: E2 08 00 BF 07 80 0D 03 02 00 00 00 00 41 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 0B 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 0B 00 BF 07 00 9D 0A C9 4D D3 1E 00 C9 90 00 B9 [07:10:38]RAPDU: 9D 0A C9 4D D3 1E 00 C9 90 00 [07:10:38]wFMCommunicate OK [07:10:38]SAM_PROTO_SignData done [07:10:38]FM_MakeSignedData done [07:10:38]CreateOFDProtocolMessage [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 11 00 00 [07:10:38]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 17 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [07:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:10:38]wFMCommunicate OK [07:10:38]CreateOFDProtocolMessage done [07:10:38]OFDSenderStorePacket 164466 [07:10:38]StoreOFDPacket docnum=164466 [07:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 43 07 01 9D 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 6E 28 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 82 02 00 35 04 06 00 20 2B B5 D4 E4 B3 9D 0A C9 4D D3 1E 00 C9 [07:10:38]CheckFolder [07:10:38]dirname=/storage/ofd_packets [07:10:38]CheckFolder done [07:10:38]ProducePacketName [07:10:38]name=ofd_packets/00164466 [07:10:38]NVStorageSaveData ofd_packets/00164466 [07:10:38]File name is /storage/ofd_packets/00164466 [07:10:38]Write 301 bytes [07:10:38]NVStorageSaveData done [07:10:38]OFDSenderStorePacket done [07:10:38]KKMCreateOFDPacket done [07:10:38]NVStorageSaveData kkm_last_timestamp [07:10:38]File name is /storage/kkm_last_timestamp [07:10:38]Write 4 bytes [07:10:38]NVStorageSaveData done [07:10:38]ExternCall_PrintAddStr [07:10:38]wPrintStart [07:10:38]Write to MH i2c: 01 00 00 C1 07 C8 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 07 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: 01 07 00 C1 07 00 00 00 00 00 FF 0F DD [07:10:38]RasterBufferAndPrint [07:10:38]line Счет N : (1)458553 [07:10:38]line ИНН: 02508201610067 [07:10:38]line Контрольно-Кассовый Чек [07:10:38]line ПРОДАЖА [07:10:38]line ТРК (МРК, ГНК) : 12 [07:10:38]line Товар: 2710124130 [07:10:38]line Аи-92-К-5 [07:10:38]line 7.670 * 65.22 [07:10:38]line = 500.24 [07:10:38]line НДС 12% НСП 1% [07:10:38]line > о реализуемом товаре [07:10:38]line ИТОГО: 500.24 [07:10:38]line НСП 1% : 4.43 [07:10:38]line НДС 12% : 53.12 [07:10:38]line Наличными: 0.00 [07:10:38]line Безнал.: 500.24 [07:10:38]line Место: АЗС № 72 "Партнер Нефть" [07:10:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:10:38]line СНО: Общий режим [07:10:38]line Чек 26 13.07.2024 07:10 [07:10:38]line Смена: 446 ФФД: 1.0 [07:10:38]line ЗНМ: 0300000160 [07:10:38]line РНМ: 0000000000090829 [07:10:38]line Версия ККМ: 001 [07:10:38]line Платежная система: KICB Банк [07:10:38]line ФМ: 0000000000874718 [07:10:38]line ФД: 164466 [07:10:38]line ФПД: 35372106310835 [07:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164466&fm=35372106310835&tin=02508201610067®Number=0000000000090829&sum=50024 [07:10:38]OFD Sender: Processing packet 164466 [packets to send 104, broken 103] [07:10:38]ProducePacketName [07:10:38]name=ofd_packets/00164466 [07:10:38]OFD Sender: To server: pG, [07:10:38]CommunicateWithHost lk.salyk.kg:30040 [07:10:38]ConnectInit lk.salyk.kg [07:10:38]written 0, free lines is 4095 [07:10:38]Connected sock=10 [07:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 43 07 01 9D 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 6E 28 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 82 02 00 35 04 06 00 20 2B B5 D4 E4 B3 9D 0A C9 4D D3 1E 00 C9 [07:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3D 5D 47 00 10 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 82 02 00 F4 03 04 00 00 CF 91 66 B6 04 01 00 00 04 25 BC 33 1A 3F 1F BE [07:10:38]CommunicateWithHost err = 0 [07:10:38]CheckOFDResponse [07:10:38]1017 (14) - 77093643461234 [07:10:38]1041 (16) - 0000000000874718 [07:10:38]1040 (4) - 164466 [07:10:38]1012 (4) - 13.07.2024 00:49 [07:10:38]1206 (1) - 0 [07:10:38]OFD Sender: Remove packet 164466 [07:10:38]ProducePacketName [07:10:38]name=ofd_packets/00164466 [07:10:38]NVStorageDeleteData [07:10:39]Write to MH i2c: 01 00 00 EA 07 F1 [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 0B 0D 10 [07:10:39]RasterBufferAndPrint [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]line [07:10:39]written 0, free lines is 3345 [07:10:39]MH_Cut [07:10:39]Write to MH i2c: D1 01 00 F1 07 01 CA [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 01 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: D1 01 00 F1 07 00 C9 [07:10:39]Write to MH i2c: 01 00 00 F2 07 F9 [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]OFD Sender: No OFD packet to send [07:10:39]*** Cut start [07:10:39]*** Partial cut [07:10:39]*** CUTSNS_PIN = 1 [07:10:39]*** CUTSNS_PIN = 0 [07:10:39]*** Brake cut motor [07:10:40]Read from MH i2c: 01 [07:10:40]MH_I2C_Read... [07:10:40]*** Stop cut motor [07:10:40]*** Cut end [07:10:40]Read from MH i2c: 01 07 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 FF 0F 0E [07:10:40]process_action close_receipt done [07:10:40]requested_data is exist [07:10:40]produce_requested_data [07:10:40]requested_item fm.sn is exist - process it [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 11 00 00 [07:10:40]Write to MH i2c: E2 08 00 F3 07 80 11 00 00 00 00 00 00 74 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 17 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 17 00 F3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [07:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:10:40]wFMCommunicate OK [07:10:40]requested_item fd.num is exist - process it [07:10:40]SAM_PROTO_GetFieldsCounters [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 13 00 00 [07:10:40]Write to MH i2c: E2 08 00 F4 07 80 13 00 00 00 00 00 00 77 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 62 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 62 00 F4 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 82 02 00 0E 04 04 00 BE 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 A1 [07:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:40]wFMCommunicate OK [07:10:40]SAM_PROTO_GetFieldsCounters done [07:10:40]requested_item shift.num is exist - process it [07:10:40]requested_item shift.opened is exist - process it [07:10:40]req_shift_opened [07:10:40]FM_GetShiftState [07:10:40]SAM_PROTO_GetShiftState [07:10:40]wFMCommunicate request_size=4 [07:10:40]MH_SAM_APDU [07:10:40]CAPDU: 80 13 01 00 [07:10:40]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:40]Read from MH i2c: E2 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 0E 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [07:10:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:10:40]wFMCommunicate OK [07:10:40]SAM_PROTO_GetShiftState done [07:10:40]FM_GetShiftState done [07:10:40]req_shift_opened done [07:10:40]requested_item shift.open_date is exist - process it [07:10:40]req_shift_open_date [07:10:40]req_shift_open_date done [07:10:40]produce_requested_data done [07:10:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164466,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:10:40]process_action_free close_receipt [07:10:40]json_value_free [07:10:40]json_value_free done [07:10:40]process_json_proto returns [07:10:40]Send response to host [07:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164466,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:10:40]free response buf [07:10:40]execute_script done [07:10:40]execute_script returns [07:10:40]free content buf [07:10:40]Sock 7.Close socket [07:10:40]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]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:27:59]accept exits with 9 [07:27:59]New connection [07:27:59]New thread 3067157860 created [07:27:59]Thread 3067301220 joined [07:27:59]Waiting for new connection... [07:27:59] Sock 9.Parse request [07:27:59]Sock 9.Check first char [07:27:59]Sock 9.First char is OK [07:27:59]request: POST /json_proto HTTP/1.0 [07:27:59]Method: POST [07:27:59]URL: /json_proto [07:27:59]Method is POST - this is cgi request [07:27:59]url: /json_proto [07:27:59]query_string will be loaded in cgi processing [07:27:59]execute_cgi json_proto POST (null) [07:27:59]execute_cgi path=json_proto method=POST [07:27:59]POST find Content-Length [07:27:59]Host: 172.17.56.4:8080 [07:27:59]Content-Length: 682 [07:27:59]Content-Type: application/json [07:27:59] [07:27:59]POST finish read [07:27:59]Found Content-Length = 682 [07:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:59]execute_script... [07:27: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)458554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:59]POST & json_proto [07:27:59]process_json_proto [07:27:59]json parsed OK: [07:27:59]protocol is kg_v1.0 [07:27:59]action value=close_receipt [07:27:59]process_action close_receipt [07:27:59]cmd_close_receipt [07:27:59]MH_GetDate [07:27:59]Write to MH i2c: F0 00 00 F6 07 EC [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: F0 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: F0 09 00 [07:27:59]MH_I2C_Read... [07:27:59]Read from MH i2c: F0 09 00 F6 07 00 81 2C 92 66 C9 DC B2 64 55 [07:27:59]GetLastDocTimeStamp 1720854638 [07:27:59]current date 1720855681 [07:27:59]FM_GetShiftState [07:27:59]SAM_PROTO_GetShiftState [07:27:59]wFMCommunicate request_size=4 [07:27:59]MH_SAM_APDU [07:27:59]CAPDU: 80 13 01 00 [07:27:59]Write to MH i2c: E2 08 00 F7 07 80 13 01 00 00 00 00 00 7B [07:27:59]Write i2c OK [07:27:59]MH_I2C_Read... [07:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:00]Read from MH i2c: E2 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: E2 0E 00 [07:28:00]MH_I2C_Read... [07:28:00]Read from MH i2c: E2 0E 00 F7 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5C [07:28:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:28:00]wFMCommunicate OK [07:28:00]SAM_PROTO_GetShiftState done [07:28:00]FM_GetShiftState done [07:28:00]opened in 1720831249 [07:28:00]opened+sec_in_day 1720917649 [07:28:00]quantity*price = 150024 [07:28:00]sum+1 = 150025 [07:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 27 13.07.2024 07:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164467 ФПД: 269369952508819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T072801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164467&fm=269369952508819&tin=02508201610067®Number=0000000000090829&sum=150000 [07:28:01]StoreToDocumentArchive [07:28:01]shift 446 fd 164467 [07:28:01]save to /storage/0446/doc_00164467 [07:28:01]save last doc name /storage/0446/doc_00164467 to /storage/kkm_last_doc_name [07:28:01]save OK [07:28:01]Clear old archive folders... [07:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:01]tlvbuf is 00B6B700 [07:28:01]SAM_PROTO_ClearQueue [07:28:01]wFMCommunicate request_size=4 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 09 00 00 [07:28:01]Write to MH i2c: E2 08 00 04 08 80 09 00 00 00 00 00 00 7E [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [07:28:01]RAPDU: 90 00 [07:28:01]wFMCommunicate OK [07:28:01]SAM_PROTO_ClearQueue done [07:28:01]KKMCreateOFDPacket [07:28:01]OFDProtocolAddRootSTLVToBuf [07:28:01]FM_MakeSignedData [07:28:01]FM_MakeSignedData [07:28:01]SAM_PROTO_SignData [07:28:01]wFMCommunicate request_size=4 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 0D 01 02 [07:28:01]Write to MH i2c: E2 08 00 05 08 80 0D 01 02 00 00 00 00 86 [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [07:28:01]RAPDU: 90 00 [07:28:01]wFMCommunicate OK [07:28:01]wFMCommunicate request_size=255 [07:28:01]MH_SAM_APDU [07:28: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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 1B 00 00 00 F4 03 04 00 81 2C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 82 02 00 35 04 06 00 F4 [07:28:01]Write to MH i2c: E2 02 01 06 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 1B 00 00 00 F4 03 04 00 81 2C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 82 02 00 35 04 06 00 F4 00 00 AF [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [07:28:01]RAPDU: 90 00 [07:28:01]wFMCommunicate OK [07:28:01]wFMCommunicate request_size=10 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 0D 02 02 05 FD 94 55 1B 93 [07:28:01]Write to MH i2c: E2 0D 00 07 08 80 0D 02 02 05 00 FD 94 55 1B 93 00 00 27 [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [07:28:01]RAPDU: 90 00 [07:28:01]wFMCommunicate OK [07:28:01]wFMCommunicate request_size=4 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 0D 03 02 [07:28:01]Write to MH i2c: E2 08 00 08 08 80 0D 03 02 00 00 00 00 8B [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 0B 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 0B 00 08 08 00 5F 6A F6 D7 33 19 16 5C 90 00 E0 [07:28:01]RAPDU: 5F 6A F6 D7 33 19 16 5C 90 00 [07:28:01]wFMCommunicate OK [07:28:01]SAM_PROTO_SignData done [07:28:01]FM_MakeSignedData done [07:28:01]CreateOFDProtocolMessage [07:28:01]wFMCommunicate request_size=4 [07:28:01]MH_SAM_APDU [07:28:01]CAPDU: 80 11 00 00 [07:28:01]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:01]Read from MH i2c: E2 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 17 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [07:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:28:01]wFMCommunicate OK [07:28:01]CreateOFDProtocolMessage done [07:28:01]OFDSenderStorePacket 164467 [07:28:01]StoreOFDPacket docnum=164467 [07:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F C3 07 01 A4 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 1B 00 00 00 F4 03 04 00 81 2C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 82 02 00 35 04 06 00 F4 FD 94 55 1B 93 5F 6A F6 D7 33 19 16 5C [07:28:01]CheckFolder [07:28:01]dirname=/storage/ofd_packets [07:28:01]CheckFolder done [07:28:01]ProducePacketName [07:28:01]name=ofd_packets/00164467 [07:28:01]NVStorageSaveData ofd_packets/00164467 [07:28:01]File name is /storage/ofd_packets/00164467 [07:28:01]Write 301 bytes [07:28:01]NVStorageSaveData done [07:28:01]OFDSenderStorePacket done [07:28:01]KKMCreateOFDPacket done [07:28:01]NVStorageSaveData kkm_last_timestamp [07:28:01]File name is /storage/kkm_last_timestamp [07:28:01]Write 4 bytes [07:28:01]NVStorageSaveData done [07:28:01]ExternCall_PrintAddStr [07:28:01]wPrintStart [07:28:01]Write to MH i2c: 01 00 00 0A 08 12 [07:28:01]Write i2c OK [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: 01 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: 01 07 00 [07:28:01]MH_I2C_Read... [07:28:01]Read from MH i2c: 01 07 00 0A 08 00 00 00 00 00 FF 0F 27 [07:28:01]RasterBufferAndPrint [07:28:01]line Счет N : (1)458554 [07:28:01]line ИНН: 02508201610067 [07:28:01]line Контрольно-Кассовый Чек [07:28:01]line ПРОДАЖА [07:28:01]line ТРК (МРК, ГНК) : 12 [07:28:01]line Товар: 2710124130 [07:28:01]line Аи-92-К-5 [07:28:01]line 22.800 * 65.80 [07:28:01]line = 1500.24 [07:28:01]line НДС 12% НСП 1% [07:28:01]line > о реализуемом товаре [07:28:01]line ОКРУГЛЕНИЕ: -0.24 [07:28:01]line ИТОГО: 1500.00 [07:28:01]line Внесено: 1500.00 [07:28:01]line СДАЧА: 0.00 [07:28:01]line НСП 1% : 13.28 [07:28:01]line НДС 12% : 159.32 [07:28:01]line Наличными: 1500.00 [07:28:01]line Безнал.: 0.00 [07:28:01]line Место: АЗС № 72 "Партнер Нефть" [07:28:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:28:01]line СНО: Общий режим [07:28:01]line Чек 27 13.07.2024 07:28 [07:28:01]line Смена: 446 ФФД: 1.0 [07:28:01]line ЗНМ: 0300000160 [07:28:01]line РНМ: 0000000000090829 [07:28:01]line Версия ККМ: 001 [07:28:01]line ФМ: 0000000000874718 [07:28:01]line ФД: 164467 [07:28:01]line ФПД: 269369952508819 [07:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T072801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164467&fm=269369952508819&tin=02508201610067®Number=0000000000090829&sum=150000 [07:28:02]OFD Sender: Processing packet 164467 [packets to send 104, broken 103] [07:28:02]ProducePacketName [07:28:02]name=ofd_packets/00164467 [07:28:02]OFD Sender: To server: pG, [07:28:02]CommunicateWithHost lk.salyk.kg:30040 [07:28:02]ConnectInit lk.salyk.kg [07:28:02]written 0, free lines is 4095 [07:28:02]Connected sock=10 [07:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F C3 07 01 A4 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 1B 00 00 00 F4 03 04 00 81 2C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 82 02 00 35 04 06 00 F4 FD 94 55 1B 93 5F 6A F6 D7 33 19 16 5C [07:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E9 CE 47 00 C0 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 82 02 00 F4 03 04 00 13 D3 91 66 B6 04 01 00 00 CB E3 7A AB 6E 24 18 B4 [07:28:02]CommunicateWithHost err = 0 [07:28:02]CheckOFDResponse [07:28:02]1017 (14) - 77093643461234 [07:28:02]1041 (16) - 0000000000874718 [07:28:02]1040 (4) - 164467 [07:28:02]1012 (4) - 13.07.2024 01:06 [07:28:02]1206 (1) - 0 [07:28:02]OFD Sender: Remove packet 164467 [07:28:02]ProducePacketName [07:28:02]name=ofd_packets/00164467 [07:28:02]NVStorageDeleteData [07:28:02]Write to MH i2c: 01 00 00 34 08 3C [07:28:02]Write i2c OK [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: 01 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: 01 07 00 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 11 0D 61 [07:28:02]RasterBufferAndPrint [07:28:02]line [07:28:02]line [07:28:02]line [07:28:02]line [07:28:02]line [07:28:02]written 0, free lines is 3351 [07:28:02]MH_Cut [07:28:02]Write to MH i2c: D1 01 00 3B 08 01 15 [07:28:02]Write i2c OK [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: D1 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: D1 01 00 [07:28:02]MH_I2C_Read... [07:28:02]Read from MH i2c: D1 01 00 3B 08 00 14 [07:28:02]Write to MH i2c: 01 00 00 3C 08 44 [07:28:02]Write i2c OK [07:28:02]MH_I2C_Read... [07:28:02]OFD Sender: No OFD packet to send [07:28:03]*** Cut start [07:28:03]*** Partial cut [07:28:03]*** CUTSNS_PIN = 1 [07:28:03]*** CUTSNS_PIN = 0 [07:28:03]*** Brake cut motor [07:28:03]Read from MH i2c: 01 [07:28:03]MH_I2C_Read... [07:28:03]*** Stop cut motor [07:28:03]*** Cut end [07:28:03]Read from MH i2c: 01 07 00 [07:28:03]MH_I2C_Read... [07:28:03]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [07:28:03]process_action close_receipt done [07:28:03]requested_data is exist [07:28:03]produce_requested_data [07:28:03]requested_item fm.sn is exist - process it [07:28:03]wFMCommunicate request_size=4 [07:28:03]MH_SAM_APDU [07:28:03]CAPDU: 80 11 00 00 [07:28:03]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [07:28:03]Write i2c OK [07:28:03]MH_I2C_Read... [07:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:03]Read from MH i2c: E2 [07:28:03]MH_I2C_Read... [07:28:03]Read from MH i2c: E2 17 00 [07:28:03]MH_I2C_Read... [07:28:03]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [07:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:28:03]wFMCommunicate OK [07:28:03]requested_item fd.num is exist - process it [07:28:03]SAM_PROTO_GetFieldsCounters [07:28:03]wFMCommunicate request_size=4 [07:28:03]MH_SAM_APDU [07:28:03]CAPDU: 80 13 00 00 [07:28:03]Write to MH i2c: E2 08 00 3E 08 80 13 00 00 00 00 00 00 C2 [07:28:03]Write i2c OK [07:28:03]MH_I2C_Read... [07:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:03]Read from MH i2c: E2 [07:28:03]MH_I2C_Read... [07:28:03]Read from MH i2c: E2 62 00 [07:28:03]MH_I2C_Read... [07:28:03]Read from MH i2c: E2 62 00 3E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 82 02 00 0E 04 04 00 BE 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 F0 [07:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 82 02 00 0E 04 04 00 BE 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 [07:28:03]wFMCommunicate OK [07:28:03]SAM_PROTO_GetFieldsCounters done [07:28:03]requested_item shift.num is exist - process it [07:28:03]requested_item shift.opened is exist - process it [07:28:03]req_shift_opened [07:28:03]FM_GetShiftState [07:28:03]SAM_PROTO_GetShiftState [07:28:03]wFMCommunicate request_size=4 [07:28:03]MH_SAM_APDU [07:28:03]CAPDU: 80 13 01 00 [07:28:03]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [07:28:03]Write i2c OK [07:28:03]MH_I2C_Read... [07:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:04]Read from MH i2c: E2 [07:28:04]MH_I2C_Read... [07:28:04]Read from MH i2c: E2 0E 00 [07:28:04]MH_I2C_Read... [07:28:04]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A5 [07:28:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:28:04]wFMCommunicate OK [07:28:04]SAM_PROTO_GetShiftState done [07:28:04]FM_GetShiftState done [07:28:04]req_shift_opened done [07:28:04]requested_item shift.open_date is exist - process it [07:28:04]req_shift_open_date [07:28:04]req_shift_open_date done [07:28:04]produce_requested_data done [07:28:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164467,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:28:04]process_action_free close_receipt [07:28:04]json_value_free [07:28:04]json_value_free done [07:28:04]process_json_proto returns [07:28:04]Send response to host [07:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164467,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:28:04]free response buf [07:28:04]execute_script done [07:28:04]execute_script returns [07:28:04]free content buf [07:28:04]Sock 9.Close socket [07:28:04]Sock 9.Thread stoped [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:15]accept exits with 7 [07:31:15]New connection [07:31:15]New thread 3067301220 created [07:31:15]Thread 3067157860 joined [07:31:15]Waiting for new connection... [07:31:15] Sock 7.Parse request [07:31:15]Sock 7.Check first char [07:31:15]Sock 7.First char is OK [07:31:15]request: POST /json_proto HTTP/1.0 [07:31:15]Method: POST [07:31:15]URL: /json_proto [07:31:15]Method is POST - this is cgi request [07:31:15]url: /json_proto [07:31:15]query_string will be loaded in cgi processing [07:31:15]execute_cgi json_proto POST (null) [07:31:15]execute_cgi path=json_proto method=POST [07:31:15]POST find Content-Length [07:31:15]Host: 172.17.56.4:8080 [07:31:15]Content-Length: 790 [07:31:15]Content-Type: application/json [07:31:15] [07:31:15]POST finish read [07:31:15]Found Content-Length = 790 [07:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:15]execute_script... [07:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:15]POST & json_proto [07:31:15]process_json_proto [07:31:15]json parsed OK: [07:31:15]protocol is kg_v1.0 [07:31:15]action value=close_receipt [07:31:15]process_action close_receipt [07:31:15]cmd_close_receipt [07:31:15]MH_GetDate [07:31:15]Write to MH i2c: F0 00 00 40 08 37 [07:31:15]Write i2c OK [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: F0 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: F0 09 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: F0 09 00 40 08 00 45 2D 92 66 C9 DC B2 64 65 [07:31:15]GetLastDocTimeStamp 1720855681 [07:31:15]current date 1720855877 [07:31:15]FM_GetShiftState [07:31:15]SAM_PROTO_GetShiftState [07:31:15]wFMCommunicate request_size=4 [07:31:15]MH_SAM_APDU [07:31:15]CAPDU: 80 13 01 00 [07:31:15]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [07:31:15]Write i2c OK [07:31:15]MH_I2C_Read... [07:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:15]Read from MH i2c: E2 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 0E 00 [07:31:15]MH_I2C_Read... [07:31:15]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A7 [07:31:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:31:15]wFMCommunicate OK [07:31:15]SAM_PROTO_GetShiftState done [07:31:15]FM_GetShiftState done [07:31:15]opened in 1720831249 [07:31:15]opened+sec_in_day 1720917649 [07:31:15]quantity*price = 40045 [07:31:15]sum+1 = 40046 [07:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 28 13.07.2024 07:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164468 ФПД: 21414717371005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073117&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164468&fm=21414717371005&tin=02508201610067®Number=0000000000090829&sum=40045 [07:31:16]StoreToDocumentArchive [07:31:16]shift 446 fd 164468 [07:31:16]save to /storage/0446/doc_00164468 [07:31:16]save last doc name /storage/0446/doc_00164468 to /storage/kkm_last_doc_name [07:31:16]save OK [07:31:16]Clear old archive folders... [07:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:16]tlvbuf is 00B53030 [07:31:16]SAM_PROTO_ClearQueue [07:31:16]wFMCommunicate request_size=4 [07:31:16]MH_SAM_APDU [07:31:16]CAPDU: 80 09 00 00 [07:31:16]Write to MH i2c: E2 08 00 4E 08 80 09 00 00 00 00 00 00 C8 [07:31:16]Write i2c OK [07:31:16]MH_I2C_Read... [07:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:16]Read from MH i2c: E2 [07:31:16]MH_I2C_Read... [07:31:16]Read from MH i2c: E2 03 00 [07:31:16]MH_I2C_Read... [07:31:16]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [07:31:16]RAPDU: 90 00 [07:31:16]wFMCommunicate OK [07:31:16]SAM_PROTO_ClearQueue done [07:31:16]KKMCreateOFDPacket [07:31:16]OFDProtocolAddRootSTLVToBuf [07:31:16]FM_MakeSignedData [07:31:16]FM_MakeSignedData [07:31:16]SAM_PROTO_SignData [07:31:16]wFMCommunicate request_size=4 [07:31:16]MH_SAM_APDU [07:31:16]CAPDU: 80 0D 01 02 [07:31:16]Write to MH i2c: E2 08 00 4F 08 80 0D 01 02 00 00 00 00 D0 [07:31:16]Write i2c OK [07:31:16]MH_I2C_Read... [07:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:16]Read from MH i2c: E2 [07:31:16]MH_I2C_Read... [07:31:16]Read from MH i2c: E2 03 00 [07:31:16]MH_I2C_Read... [07:31:16]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [07:31:16]RAPDU: 90 00 [07:31:16]wFMCommunicate OK [07:31:16]wFMCommunicate request_size=255 [07:31:16]MH_SAM_APDU [07:31: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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 82 02 00 35 04 06 00 13 [07:31:16]Write to MH i2c: E2 02 01 50 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 82 02 00 35 04 06 00 13 00 00 01 [07:31:16]Write i2c OK [07:31:16]MH_I2C_Read... [07:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:17]Read from MH i2c: E2 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 03 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [07:31:17]RAPDU: 90 00 [07:31:17]wFMCommunicate OK [07:31:17]wFMCommunicate request_size=10 [07:31:17]MH_SAM_APDU [07:31:17]CAPDU: 80 0D 02 02 05 7A 00 9F 32 7D [07:31:17]Write to MH i2c: E2 0D 00 51 08 80 0D 02 02 05 00 7A 00 9F 32 7D 00 00 A5 [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:17]Read from MH i2c: E2 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 03 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [07:31:17]RAPDU: 90 00 [07:31:17]wFMCommunicate OK [07:31:17]wFMCommunicate request_size=4 [07:31:17]MH_SAM_APDU [07:31:17]CAPDU: 80 0D 03 02 [07:31:17]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:17]Read from MH i2c: E2 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 0B 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 0B 00 52 08 00 7A 8E 53 D8 5F AA 08 9F 90 00 B9 [07:31:17]RAPDU: 7A 8E 53 D8 5F AA 08 9F 90 00 [07:31:17]wFMCommunicate OK [07:31:17]SAM_PROTO_SignData done [07:31:17]FM_MakeSignedData done [07:31:17]CreateOFDProtocolMessage [07:31:17]wFMCommunicate request_size=4 [07:31:17]MH_SAM_APDU [07:31:17]CAPDU: 80 11 00 00 [07:31:17]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:17]Read from MH i2c: E2 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 17 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [07:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:31:17]wFMCommunicate OK [07:31:17]CreateOFDProtocolMessage done [07:31:17]OFDSenderStorePacket 164468 [07:31:17]StoreOFDPacket docnum=164468 [07:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 84 07 01 63 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 82 02 00 35 04 06 00 13 7A 00 9F 32 7D 7A 8E 53 D8 5F AA 08 9F [07:31:17]CheckFolder [07:31:17]dirname=/storage/ofd_packets [07:31:17]CheckFolder done [07:31:17]ProducePacketName [07:31:17]name=ofd_packets/00164468 [07:31:17]NVStorageSaveData ofd_packets/00164468 [07:31:17]File name is /storage/ofd_packets/00164468 [07:31:17]Write 301 bytes [07:31:17]NVStorageSaveData done [07:31:17]OFDSenderStorePacket done [07:31:17]KKMCreateOFDPacket done [07:31:17]NVStorageSaveData kkm_last_timestamp [07:31:17]File name is /storage/kkm_last_timestamp [07:31:17]Write 4 bytes [07:31:17]NVStorageSaveData done [07:31:17]ExternCall_PrintAddStr [07:31:17]wPrintStart [07:31:17]Write to MH i2c: 01 00 00 54 08 5C [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 07 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [07:31:17]RasterBufferAndPrint [07:31:17]line Счет N : (1)458555 [07:31:17]line ИНН: 02508201610067 [07:31:17]line Контрольно-Кассовый Чек [07:31:17]line ПРОДАЖА [07:31:17]line ТРК (МРК, ГНК) : 22 [07:31:17]line Товар: 2710124130 [07:31:17]line Аи-92-К-5 [07:31:17]line 6.140 * 65.22 [07:31:17]line = 400.45 [07:31:17]line НДС 12% НСП 1% [07:31:17]line > о реализуемом товаре [07:31:17]line ИТОГО: 400.45 [07:31:17]line НСП 1% : 3.54 [07:31:17]line НДС 12% : 42.53 [07:31:17]line Наличными: 0.00 [07:31:17]line Безнал.: 400.45 [07:31:17]line Место: АЗС № 72 "Партнер Нефть" [07:31:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:31:17]line СНО: Общий режим [07:31:17]line Чек 28 13.07.2024 07:31 [07:31:17]line Смена: 446 ФФД: 1.0 [07:31:17]line ЗНМ: 0300000160 [07:31:17]line РНМ: 0000000000090829 [07:31:17]line Версия ККМ: 001 [07:31:17]line Платежная система: KICB Банк [07:31:17]line ФМ: 0000000000874718 [07:31:17]line ФД: 164468 [07:31:17]line ФПД: 21414717371005 [07:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073117&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164468&fm=21414717371005&tin=02508201610067®Number=0000000000090829&sum=40045 [07:31:17]written 0, free lines is 4095 [07:31:17]OFD Sender: Processing packet 164468 [packets to send 104, broken 103] [07:31:17]ProducePacketName [07:31:17]name=ofd_packets/00164468 [07:31:17]OFD Sender: To server: pG, [07:31:17]CommunicateWithHost lk.salyk.kg:30040 [07:31:17]ConnectInit lk.salyk.kg [07:31:17]Connected sock=10 [07:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 84 07 01 63 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 82 02 00 35 04 06 00 13 7A 00 9F 32 7D 7A 8E 53 D8 5F AA 08 9F [07:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AC BD 47 00 55 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 82 02 00 F4 03 04 00 D6 D3 91 66 B6 04 01 00 00 78 A8 21 8C 1D 5E FE 4C [07:31:17]CommunicateWithHost err = 0 [07:31:17]CheckOFDResponse [07:31:17]1017 (14) - 77093643461234 [07:31:17]1041 (16) - 0000000000874718 [07:31:17]1040 (4) - 164468 [07:31:17]1012 (4) - 13.07.2024 01:09 [07:31:17]1206 (1) - 0 [07:31:17]OFD Sender: Remove packet 164468 [07:31:17]ProducePacketName [07:31:17]name=ofd_packets/00164468 [07:31:17]NVStorageDeleteData [07:31:17]Write to MH i2c: 01 00 00 7D 08 85 [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 07 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: 01 07 00 7D 08 00 00 00 00 00 08 0D A1 [07:31:17]RasterBufferAndPrint [07:31:17]line [07:31:17]line [07:31:17]line [07:31:17]line [07:31:17]line [07:31:17]written 0, free lines is 3342 [07:31:17]MH_Cut [07:31:17]Write to MH i2c: D1 01 00 84 08 01 5E [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: D1 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: D1 01 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: D1 01 00 84 08 00 5D [07:31:17]Write to MH i2c: 01 00 00 85 08 8D [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:18]OFD Sender: No OFD packet to send [07:31:18]*** Cut start [07:31:18]*** Partial cut [07:31:18]*** CUTSNS_PIN = 1 [07:31:18]*** CUTSNS_PIN = 0 [07:31:18]*** Brake cut motor [07:31:19]Read from MH i2c: 01 [07:31:19]MH_I2C_Read... [07:31:19]*** Stop cut motor [07:31:19]*** Cut end [07:31:19]Read from MH i2c: 01 07 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: 01 07 00 85 08 00 00 00 00 00 FF 0F A2 [07:31:19]process_action close_receipt done [07:31:19]requested_data is exist [07:31:19]produce_requested_data [07:31:19]requested_item fm.sn is exist - process it [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 11 00 00 [07:31:19]Write to MH i2c: E2 08 00 86 08 80 11 00 00 00 00 00 00 08 [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 17 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 17 00 86 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [07:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:31:19]wFMCommunicate OK [07:31:19]requested_item fd.num is exist - process it [07:31:19]SAM_PROTO_GetFieldsCounters [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 13 00 00 [07:31:19]Write to MH i2c: E2 08 00 87 08 80 13 00 00 00 00 00 00 0B [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 62 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 62 00 87 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 82 02 00 0E 04 04 00 BE 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 3D [07:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 82 02 00 0E 04 04 00 BE 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 [07:31:19]wFMCommunicate OK [07:31:19]SAM_PROTO_GetFieldsCounters done [07:31:19]requested_item shift.num is exist - process it [07:31:19]requested_item shift.opened is exist - process it [07:31:19]req_shift_opened [07:31:19]FM_GetShiftState [07:31:19]SAM_PROTO_GetShiftState [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 13 01 00 [07:31:19]Write to MH i2c: E2 08 00 88 08 80 13 01 00 00 00 00 00 0D [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 0E 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 0E 00 88 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EE [07:31:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:31:19]wFMCommunicate OK [07:31:19]SAM_PROTO_GetShiftState done [07:31:19]FM_GetShiftState done [07:31:19]req_shift_opened done [07:31:19]requested_item shift.open_date is exist - process it [07:31:19]req_shift_open_date [07:31:19]req_shift_open_date done [07:31:19]produce_requested_data done [07:31:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164468,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:31:19]process_action_free close_receipt [07:31:19]json_value_free [07:31:19]json_value_free done [07:31:19]process_json_proto returns [07:31:19]Send response to host [07:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164468,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:31:19]free response buf [07:31:19]execute_script done [07:31:19]execute_script returns [07:31:19]free content buf [07:31:19]Sock 7.Close socket [07:31:19]Sock 7.Thread stoped [07:31:23]accept exits with 9 [07:31:23]New connection [07:31:23]New thread 3067157860 created [07:31:23]Thread 3067301220 joined [07:31:23]Waiting for new connection... [07:31:23] Sock 9.Parse request [07:31:23]Sock 9.Check first char [07:31:23]Sock 9.First char is OK [07:31:23]request: POST /json_proto HTTP/1.0 [07:31:23]Method: POST [07:31:23]URL: /json_proto [07:31:23]Method is POST - this is cgi request [07:31:23]url: /json_proto [07:31:23]query_string will be loaded in cgi processing [07:31:23]execute_cgi json_proto POST (null) [07:31:23]execute_cgi path=json_proto method=POST [07:31:23]POST find Content-Length [07:31:23]Host: 172.17.56.4:8080 [07:31:23]Content-Length: 682 [07:31:23]Content-Type: application/json [07:31:23] [07:31:23]POST finish read [07:31:23]Found Content-Length = 682 [07:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:23]execute_script... [07:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:23]POST & json_proto [07:31:23]process_json_proto [07:31:23]json parsed OK: [07:31:23]protocol is kg_v1.0 [07:31:23]action value=close_receipt [07:31:23]process_action close_receipt [07:31:23]cmd_close_receipt [07:31:23]MH_GetDate [07:31:23]Write to MH i2c: F0 00 00 89 08 80 [07:31:23]Write i2c OK [07:31:23]MH_I2C_Read... [07:31:23]Read from MH i2c: F0 [07:31:23]MH_I2C_Read... [07:31:23]Read from MH i2c: F0 09 00 [07:31:23]MH_I2C_Read... [07:31:23]Read from MH i2c: F0 09 00 89 08 00 4C 2D 92 66 C9 DC B2 64 B5 [07:31:23]GetLastDocTimeStamp 1720855877 [07:31:23]current date 1720855884 [07:31:23]FM_GetShiftState [07:31:23]SAM_PROTO_GetShiftState [07:31:23]wFMCommunicate request_size=4 [07:31:23]MH_SAM_APDU [07:31:23]CAPDU: 80 13 01 00 [07:31:23]Write to MH i2c: E2 08 00 8A 08 80 13 01 00 00 00 00 00 0F [07:31:23]Write i2c OK [07:31:23]MH_I2C_Read... [07:31:23]OFD Sender: No OFD packet to send [07:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:23]Read from MH i2c: E2 [07:31:23]MH_I2C_Read... [07:31:23]Read from MH i2c: E2 0E 00 [07:31:23]MH_I2C_Read... [07:31:23]Read from MH i2c: E2 0E 00 8A 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F0 [07:31:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:31:23]wFMCommunicate OK [07:31:23]SAM_PROTO_GetShiftState done [07:31:23]FM_GetShiftState done [07:31:23]opened in 1720831249 [07:31:23]opened+sec_in_day 1720917649 [07:31:23]quantity*price = 100016 [07:31:23]sum+1 = 100017 [07:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 29 13.07.2024 07:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164469 ФПД: 173981588164221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073125&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164469&fm=173981588164221&tin=02508201610067®Number=0000000000090829&sum=100000 [07:31:24]StoreToDocumentArchive [07:31:24]shift 446 fd 164469 [07:31:24]save to /storage/0446/doc_00164469 [07:31:24]save last doc name /storage/0446/doc_00164469 to /storage/kkm_last_doc_name [07:31:24]save OK [07:31:24]Clear old archive folders... [07:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:24]tlvbuf is 00BF29B0 [07:31:24]SAM_PROTO_ClearQueue [07:31:24]wFMCommunicate request_size=4 [07:31:24]MH_SAM_APDU [07:31:24]CAPDU: 80 09 00 00 [07:31:24]Write to MH i2c: E2 08 00 97 08 80 09 00 00 00 00 00 00 11 [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:24]Read from MH i2c: E2 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [07:31:24]RAPDU: 90 00 [07:31:24]wFMCommunicate OK [07:31:24]SAM_PROTO_ClearQueue done [07:31:24]KKMCreateOFDPacket [07:31:24]OFDProtocolAddRootSTLVToBuf [07:31:24]FM_MakeSignedData [07:31:24]FM_MakeSignedData [07:31:24]SAM_PROTO_SignData [07:31:24]wFMCommunicate request_size=4 [07:31:24]MH_SAM_APDU [07:31:24]CAPDU: 80 0D 01 02 [07:31:24]Write to MH i2c: E2 08 00 98 08 80 0D 01 02 00 00 00 00 19 [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:24]Read from MH i2c: E2 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [07:31:24]RAPDU: 90 00 [07:31:24]wFMCommunicate OK [07:31:24]wFMCommunicate request_size=255 [07:31:24]MH_SAM_APDU [07:31: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4D 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 82 02 00 35 04 06 00 9E [07:31:24]Write to MH i2c: E2 02 01 99 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4D 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 82 02 00 35 04 06 00 9E 00 00 19 [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:24]Read from MH i2c: E2 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [07:31:24]RAPDU: 90 00 [07:31:24]wFMCommunicate OK [07:31:24]wFMCommunicate request_size=10 [07:31:24]MH_SAM_APDU [07:31:24]CAPDU: 80 0D 02 02 05 3C 3E C2 8E 7D [07:31:24]Write to MH i2c: E2 0D 00 9A 08 80 0D 02 02 05 00 3C 3E C2 8E 7D 00 00 6D [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:24]Read from MH i2c: E2 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [07:31:24]RAPDU: 90 00 [07:31:24]wFMCommunicate OK [07:31:24]wFMCommunicate request_size=4 [07:31:24]MH_SAM_APDU [07:31:24]CAPDU: 80 0D 03 02 [07:31:24]Write to MH i2c: E2 08 00 9B 08 80 0D 03 02 00 00 00 00 1E [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:24]Read from MH i2c: E2 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 0B 00 [07:31:24]MH_I2C_Read... [07:31:24]Read from MH i2c: E2 0B 00 9B 08 00 BD 2C 03 A9 16 88 5C A9 90 00 57 [07:31:24]RAPDU: BD 2C 03 A9 16 88 5C A9 90 00 [07:31:24]wFMCommunicate OK [07:31:24]SAM_PROTO_SignData done [07:31:24]FM_MakeSignedData done [07:31:24]CreateOFDProtocolMessage [07:31:24]wFMCommunicate request_size=4 [07:31:24]MH_SAM_APDU [07:31:24]CAPDU: 80 11 00 00 [07:31:24]Write to MH i2c: E2 08 00 9C 08 80 11 00 00 00 00 00 00 1E [07:31:24]Write i2c OK [07:31:24]MH_I2C_Read... [07:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:25]Read from MH i2c: E2 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: E2 17 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: E2 17 00 9C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [07:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:31:25]wFMCommunicate OK [07:31:25]CreateOFDProtocolMessage done [07:31:25]OFDSenderStorePacket 164469 [07:31:25]StoreOFDPacket docnum=164469 [07:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA C7 07 01 F1 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4D 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 82 02 00 35 04 06 00 9E 3C 3E C2 8E 7D BD 2C 03 A9 16 88 5C A9 [07:31:25]CheckFolder [07:31:25]dirname=/storage/ofd_packets [07:31:25]CheckFolder done [07:31:25]ProducePacketName [07:31:25]name=ofd_packets/00164469 [07:31:25]NVStorageSaveData ofd_packets/00164469 [07:31:25]File name is /storage/ofd_packets/00164469 [07:31:25]Write 301 bytes [07:31:25]NVStorageSaveData done [07:31:25]OFDSenderStorePacket done [07:31:25]KKMCreateOFDPacket done [07:31:25]NVStorageSaveData kkm_last_timestamp [07:31:25]File name is /storage/kkm_last_timestamp [07:31:25]Write 4 bytes [07:31:25]NVStorageSaveData done [07:31:25]ExternCall_PrintAddStr [07:31:25]wPrintStart [07:31:25]Write to MH i2c: 01 00 00 9D 08 A5 [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 07 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 FF 0F BA [07:31:25]RasterBufferAndPrint [07:31:25]line Счет N : (1)458556 [07:31:25]line ИНН: 02508201610067 [07:31:25]line Контрольно-Кассовый Чек [07:31:25]line ПРОДАЖА [07:31:25]line ТРК (МРК, ГНК) : 12 [07:31:25]line Товар: 2710124130 [07:31:25]line Аи-92-К-5 [07:31:25]line 15.200 * 65.80 [07:31:25]line = 1000.16 [07:31:25]line НДС 12% НСП 1% [07:31:25]line > о реализуемом товаре [07:31:25]line ОКРУГЛЕНИЕ: -0.16 [07:31:25]line ИТОГО: 1000.00 [07:31:25]line Внесено: 1000.00 [07:31:25]line СДАЧА: 0.00 [07:31:25]line НСП 1% : 8.85 [07:31:25]line НДС 12% : 106.21 [07:31:25]line Наличными: 1000.00 [07:31:25]line Безнал.: 0.00 [07:31:25]line Место: АЗС № 72 "Партнер Нефть" [07:31:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:31:25]line СНО: Общий режим [07:31:25]line Чек 29 13.07.2024 07:31 [07:31:25]line Смена: 446 ФФД: 1.0 [07:31:25]line ЗНМ: 0300000160 [07:31:25]line РНМ: 0000000000090829 [07:31:25]line Версия ККМ: 001 [07:31:25]line ФМ: 0000000000874718 [07:31:25]line ФД: 164469 [07:31:25]line ФПД: 173981588164221 [07:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073125&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164469&fm=173981588164221&tin=02508201610067®Number=0000000000090829&sum=100000 [07:31:25]written 0, free lines is 4095 [07:31:25]OFD Sender: Processing packet 164469 [packets to send 104, broken 103] [07:31:25]ProducePacketName [07:31:25]name=ofd_packets/00164469 [07:31:25]OFD Sender: To server: pG, [07:31:25]CommunicateWithHost lk.salyk.kg:30040 [07:31:25]ConnectInit lk.salyk.kg [07:31:25]Connected sock=10 [07:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA C7 07 01 F1 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4D 2D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 82 02 00 35 04 06 00 9E 3C 3E C2 8E 7D BD 2C 03 A9 16 88 5C A9 [07:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 DB 47 00 3E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 82 02 00 F4 03 04 00 DE D3 91 66 B6 04 01 00 00 79 DE 7B C6 47 7C 45 AB [07:31:25]CommunicateWithHost err = 0 [07:31:25]CheckOFDResponse [07:31:25]1017 (14) - 77093643461234 [07:31:25]1041 (16) - 0000000000874718 [07:31:25]1040 (4) - 164469 [07:31:25]1012 (4) - 13.07.2024 01:09 [07:31:25]1206 (1) - 0 [07:31:25]OFD Sender: Remove packet 164469 [07:31:25]ProducePacketName [07:31:25]name=ofd_packets/00164469 [07:31:25]NVStorageDeleteData [07:31:25]Write to MH i2c: 01 00 00 C7 08 CF [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 07 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 0A 0D ED [07:31:25]RasterBufferAndPrint [07:31:25]line [07:31:25]line [07:31:25]line [07:31:25]line [07:31:25]line [07:31:25]written 0, free lines is 3347 [07:31:25]MH_Cut [07:31:25]Write to MH i2c: D1 01 00 CE 08 01 A8 [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: D1 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: D1 01 00 [07:31:25]MH_I2C_Read... [07:31:25]Read from MH i2c: D1 01 00 CE 08 00 A7 [07:31:25]Write to MH i2c: 01 00 00 CF 08 D7 [07:31:25]Write i2c OK [07:31:25]MH_I2C_Read... [07:31:25]OFD Sender: No OFD packet to send [07:31:26]*** Cut start [07:31:26]*** Partial cut [07:31:26]*** CUTSNS_PIN = 1 [07:31:26]*** CUTSNS_PIN = 0 [07:31:26]*** Brake cut motor [07:31:26]Read from MH i2c: 01 [07:31:26]MH_I2C_Read... [07:31:26]*** Stop cut motor [07:31:26]*** Cut end [07:31:26]Read from MH i2c: 01 07 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [07:31:26]process_action close_receipt done [07:31:26]requested_data is exist [07:31:26]produce_requested_data [07:31:26]requested_item fm.sn is exist - process it [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 11 00 00 [07:31:26]Write to MH i2c: E2 08 00 D0 08 80 11 00 00 00 00 00 00 52 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 17 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 17 00 D0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [07:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:31:26]wFMCommunicate OK [07:31:26]requested_item fd.num is exist - process it [07:31:26]SAM_PROTO_GetFieldsCounters [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 00 00 [07:31:26]Write to MH i2c: E2 08 00 D1 08 80 13 00 00 00 00 00 00 55 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:26]Read from MH i2c: E2 62 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 62 00 D1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 82 02 00 0E 04 04 00 BE 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 8B [07:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 82 02 00 0E 04 04 00 BE 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 [07:31:26]wFMCommunicate OK [07:31:26]SAM_PROTO_GetFieldsCounters done [07:31:26]requested_item shift.num is exist - process it [07:31:26]requested_item shift.opened is exist - process it [07:31:26]req_shift_opened [07:31:26]FM_GetShiftState [07:31:26]SAM_PROTO_GetShiftState [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 01 00 [07:31:26]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0E 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 38 [07:31:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_GetShiftState done [07:31:27]FM_GetShiftState done [07:31:27]req_shift_opened done [07:31:27]requested_item shift.open_date is exist - process it [07:31:27]req_shift_open_date [07:31:27]req_shift_open_date done [07:31:27]produce_requested_data done [07:31:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164469,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:31:27]process_action_free close_receipt [07:31:27]json_value_free [07:31:27]json_value_free done [07:31:27]process_json_proto returns [07:31:27]Send response to host [07:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164469,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:31:27]free response buf [07:31:27]execute_script done [07:31:27]execute_script returns [07:31:27]free content buf [07:31:27]Sock 9.Close socket [07:31:27]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]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:31]accept exits with 7 [07:38:31]New connection [07:38:31]New thread 3067301220 created [07:38:31]Thread 3067157860 joined [07:38:31]Waiting for new connection... [07:38:31] Sock 7.Parse request [07:38:31]Sock 7.Check first char [07:38:31]Sock 7.First char is OK [07:38:31]request: POST /json_proto HTTP/1.0 [07:38:31]Method: POST [07:38:31]URL: /json_proto [07:38:31]Method is POST - this is cgi request [07:38:31]url: /json_proto [07:38:31]query_string will be loaded in cgi processing [07:38:31]execute_cgi json_proto POST (null) [07:38:31]execute_cgi path=json_proto method=POST [07:38:31]POST find Content-Length [07:38:31]Host: 172.17.56.4:8080 [07:38:31]Content-Length: 678 [07:38:31]Content-Type: application/json [07:38:31] [07:38:31]POST finish read [07:38:31]Found Content-Length = 678 [07:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "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" ] } } [07:38:31]execute_script... [07:38: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)458557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "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" ] } } [07:38:31]POST & json_proto [07:38:31]process_json_proto [07:38:31]json parsed OK: [07:38:31]protocol is kg_v1.0 [07:38:31]action value=close_receipt [07:38:31]process_action close_receipt [07:38:31]cmd_close_receipt [07:38:31]MH_GetDate [07:38:31]Write to MH i2c: F0 00 00 D3 08 CA [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 09 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: F0 09 00 D3 08 00 F9 2E 92 66 C9 DC B2 64 AD [07:38:31]GetLastDocTimeStamp 1720855885 [07:38:31]current date 1720856313 [07:38:31]FM_GetShiftState [07:38:31]SAM_PROTO_GetShiftState [07:38:31]wFMCommunicate request_size=4 [07:38:31]MH_SAM_APDU [07:38:31]CAPDU: 80 13 01 00 [07:38:31]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [07:38:31]Write i2c OK [07:38:31]MH_I2C_Read... [07:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:31]Read from MH i2c: E2 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0E 00 [07:38:31]MH_I2C_Read... [07:38:31]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3A [07:38:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:38:31]wFMCommunicate OK [07:38:31]SAM_PROTO_GetShiftState done [07:38:31]FM_GetShiftState done [07:38:31]opened in 1720831249 [07:38:31]opened+sec_in_day 1720917649 [07:38:31]quantity*price = 90014 [07:38:31]sum+1 = 90015 [07:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 30 13.07.2024 07:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164470 ФПД: 165522837510160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164470&fm=165522837510160&tin=02508201610067®Number=0000000000090829&sum=90000 [07:38:32]StoreToDocumentArchive [07:38:32]shift 446 fd 164470 [07:38:32]save to /storage/0446/doc_00164470 [07:38:32]save last doc name /storage/0446/doc_00164470 to /storage/kkm_last_doc_name [07:38:32]save OK [07:38:32]Clear old archive folders... [07:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:32]tlvbuf is 00B8C0D0 [07:38:32]SAM_PROTO_ClearQueue [07:38:32]wFMCommunicate request_size=4 [07:38:32]MH_SAM_APDU [07:38:32]CAPDU: 80 09 00 00 [07:38:32]Write to MH i2c: E2 08 00 E1 08 80 09 00 00 00 00 00 00 5B [07:38:32]Write i2c OK [07:38:32]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [07:38:33]RAPDU: 90 00 [07:38:33]wFMCommunicate OK [07:38:33]SAM_PROTO_ClearQueue done [07:38:33]KKMCreateOFDPacket [07:38:33]OFDProtocolAddRootSTLVToBuf [07:38:33]FM_MakeSignedData [07:38:33]FM_MakeSignedData [07:38:33]SAM_PROTO_SignData [07:38:33]wFMCommunicate request_size=4 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 0D 01 02 [07:38:33]Write to MH i2c: E2 08 00 E2 08 80 0D 01 02 00 00 00 00 63 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [07:38:33]RAPDU: 90 00 [07:38:33]wFMCommunicate OK [07:38:33]wFMCommunicate request_size=255 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 2E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 82 02 00 35 04 06 00 96 [07:38:33]Write to MH i2c: E2 02 01 E3 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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 2E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 82 02 00 35 04 06 00 96 00 00 EB [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [07:38:33]RAPDU: 90 00 [07:38:33]wFMCommunicate OK [07:38:33]wFMCommunicate request_size=10 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 0D 02 02 05 8A C9 EE 98 10 [07:38:33]Write to MH i2c: E2 0D 00 E4 08 80 0D 02 02 05 00 8A C9 EE 98 10 00 00 59 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [07:38:33]RAPDU: 90 00 [07:38:33]wFMCommunicate OK [07:38:33]wFMCommunicate request_size=4 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 0D 03 02 [07:38:33]Write to MH i2c: E2 08 00 E5 08 80 0D 03 02 00 00 00 00 68 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 0B 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 0B 00 E5 08 00 9A 79 F5 81 92 86 04 11 90 00 1F [07:38:33]RAPDU: 9A 79 F5 81 92 86 04 11 90 00 [07:38:33]wFMCommunicate OK [07:38:33]SAM_PROTO_SignData done [07:38:33]FM_MakeSignedData done [07:38:33]CreateOFDProtocolMessage [07:38:33]wFMCommunicate request_size=4 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 11 00 00 [07:38:33]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 17 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [07:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:38:33]wFMCommunicate OK [07:38:33]CreateOFDProtocolMessage done [07:38:33]OFDSenderStorePacket 164470 [07:38:33]StoreOFDPacket docnum=164470 [07:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 7D 07 01 62 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 2E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 82 02 00 35 04 06 00 96 8A C9 EE 98 10 9A 79 F5 81 92 86 04 11 [07:38:33]CheckFolder [07:38:33]dirname=/storage/ofd_packets [07:38:33]CheckFolder done [07:38:33]ProducePacketName [07:38:33]name=ofd_packets/00164470 [07:38:33]NVStorageSaveData ofd_packets/00164470 [07:38:33]File name is /storage/ofd_packets/00164470 [07:38:33]Write 301 bytes [07:38:33]NVStorageSaveData done [07:38:33]OFDSenderStorePacket done [07:38:33]KKMCreateOFDPacket done [07:38:33]NVStorageSaveData kkm_last_timestamp [07:38:33]File name is /storage/kkm_last_timestamp [07:38:33]Write 4 bytes [07:38:33]NVStorageSaveData done [07:38:33]ExternCall_PrintAddStr [07:38:33]wPrintStart [07:38:33]Write to MH i2c: 01 00 00 E7 08 EF [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 07 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [07:38:33]RasterBufferAndPrint [07:38:33]line Счет N : (1)458557 [07:38:33]line ИНН: 02508201610067 [07:38:33]line Контрольно-Кассовый Чек [07:38:33]line ПРОДАЖА [07:38:33]line ТРК (МРК, ГНК) : 22 [07:38:33]line Товар: 2710124130 [07:38:33]line Аи-92-К-5 [07:38:33]line 13.680 * 65.80 [07:38:33]line = 900.14 [07:38:33]line НДС 12% НСП 1% [07:38:33]line > о реализуемом товаре [07:38:33]line ОКРУГЛЕНИЕ: -0.14 [07:38:33]line ИТОГО: 900.00 [07:38:33]line Внесено: 900.00 [07:38:33]line СДАЧА: 0.00 [07:38:33]line НСП 1% : 7.97 [07:38:33]line НДС 12% : 95.59 [07:38:33]line Наличными: 900.00 [07:38:33]line Безнал.: 0.00 [07:38:33]line Место: АЗС № 72 "Партнер Нефть" [07:38:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:38:33]line СНО: Общий режим [07:38:33]line Чек 30 13.07.2024 07:38 [07:38:33]line Смена: 446 ФФД: 1.0 [07:38:33]line ЗНМ: 0300000160 [07:38:33]line РНМ: 0000000000090829 [07:38:33]line Версия ККМ: 001 [07:38:33]line ФМ: 0000000000874718 [07:38:33]line ФД: 164470 [07:38:33]line ФПД: 165522837510160 [07:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164470&fm=165522837510160&tin=02508201610067®Number=0000000000090829&sum=90000 [07:38:33]written 0, free lines is 4095 [07:38:33]OFD Sender: Processing packet 164470 [packets to send 104, broken 103] [07:38:33]ProducePacketName [07:38:33]name=ofd_packets/00164470 [07:38:33]OFD Sender: To server: pG, [07:38:33]CommunicateWithHost lk.salyk.kg:30040 [07:38:33]ConnectInit lk.salyk.kg [07:38:33]Connected sock=9 [07:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 7D 07 01 62 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 F9 2E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 82 02 00 35 04 06 00 96 8A C9 EE 98 10 9A 79 F5 81 92 86 04 11 [07:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A 32 47 00 C0 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 34 37 31 38 10 04 04 00 76 82 02 00 F4 03 04 00 8B D5 91 66 B6 04 01 00 00 FD 63 E9 35 6A 55 EF 4B [07:38:34]CommunicateWithHost err = 0 [07:38:34]CheckOFDResponse [07:38:34]1017 (14) - 77093643461234 [07:38:34]1041 (16) - 0000000000874718 [07:38:34]1040 (4) - 164470 [07:38:34]1012 (4) - 13.07.2024 01:16 [07:38:34]1206 (1) - 0 [07:38:34]OFD Sender: Remove packet 164470 [07:38:34]ProducePacketName [07:38:34]name=ofd_packets/00164470 [07:38:34]NVStorageDeleteData [07:38:34]Write to MH i2c: 01 00 00 11 09 1A [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: 01 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: 01 07 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FB 0C 28 [07:38:34]RasterBufferAndPrint [07:38:34]line [07:38:34]line [07:38:34]line [07:38:34]line [07:38:34]line [07:38:34]written 0, free lines is 3332 [07:38:34]MH_Cut [07:38:34]Write to MH i2c: D1 01 00 18 09 01 F3 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: D1 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: D1 01 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: D1 01 00 18 09 00 F2 [07:38:34]Write to MH i2c: 01 00 00 19 09 22 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]OFD Sender: No OFD packet to send [07:38:34]*** Cut start [07:38:34]*** Partial cut [07:38:34]*** CUTSNS_PIN = 1 [07:38:35]*** CUTSNS_PIN = 0 [07:38:35]*** Brake cut motor [07:38:35]Read from MH i2c: 01 [07:38:35]MH_I2C_Read... [07:38:35]*** Stop cut motor [07:38:35]*** Cut end [07:38:35]Read from MH i2c: 01 07 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [07:38:35]process_action close_receipt done [07:38:35]requested_data is exist [07:38:35]produce_requested_data [07:38:35]requested_item fm.sn is exist - process it [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 11 00 00 [07:38:35]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 17 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 17 00 1A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [07:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:38:35]wFMCommunicate OK [07:38:35]requested_item fd.num is exist - process it [07:38:35]SAM_PROTO_GetFieldsCounters [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 13 00 00 [07:38:35]Write to MH i2c: E2 08 00 1B 09 80 13 00 00 00 00 00 00 A0 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 62 00 1B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 82 02 00 0E 04 04 00 BE 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 DA [07:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 82 02 00 0E 04 04 00 BE 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 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetFieldsCounters done [07:38:35]requested_item shift.num is exist - process it [07:38:35]requested_item shift.opened is exist - process it [07:38:35]req_shift_opened [07:38:35]FM_GetShiftState [07:38:35]SAM_PROTO_GetShiftState [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 13 01 00 [07:38:35]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 83 [07:38:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_GetShiftState done [07:38:35]FM_GetShiftState done [07:38:35]req_shift_opened done [07:38:35]requested_item shift.open_date is exist - process it [07:38:35]req_shift_open_date [07:38:35]req_shift_open_date done [07:38:35]produce_requested_data done [07:38:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164470,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:38:35]process_action_free close_receipt [07:38:35]json_value_free [07:38:35]json_value_free done [07:38:35]process_json_proto returns [07:38:35]Send response to host [07:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164470,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:38:35]free response buf [07:38:35]execute_script done [07:38:35]execute_script returns [07:38:35]free content buf [07:38:35]Sock 7.Close socket [07:38:35]Sock 7.Thread stoped [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:09]accept exits with 10 [07:49:09]New connection [07:49:09]New thread 3067157860 created [07:49:09]Thread 3067301220 joined [07:49:09]Waiting for new connection... [07:49:09] Sock 10.Parse request [07:49:09]Sock 10.Check first char [07:49:09]Sock 10.First char is OK [07:49:09]request: POST /json_proto HTTP/1.0 [07:49:09]Method: POST [07:49:09]URL: /json_proto [07:49:09]Method is POST - this is cgi request [07:49:09]url: /json_proto [07:49:09]query_string will be loaded in cgi processing [07:49:09]execute_cgi json_proto POST (null) [07:49:09]execute_cgi path=json_proto method=POST [07:49:09]POST find Content-Length [07:49:09]Host: 172.17.56.4:8080 [07:49:09]Content-Length: 677 [07:49:09]Content-Type: application/json [07:49:09] [07:49:09]POST finish read [07:49:09]Found Content-Length = 677 [07:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.360, "sum" : 155.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 155.00, "total" : 155.00, "payments": [ { "type": 0, "sum" : 155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:09]execute_script... [07:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.360, "sum" : 155.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 155.00, "total" : 155.00, "payments": [ { "type": 0, "sum" : 155.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:09]POST & json_proto [07:49:09]process_json_proto [07:49:09]json parsed OK: [07:49:09]protocol is kg_v1.0 [07:49:09]action value=close_receipt [07:49:09]process_action close_receipt [07:49:09]cmd_close_receipt [07:49:09]MH_GetDate [07:49:09]Write to MH i2c: F0 00 00 1D 09 15 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: F0 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: F0 09 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: F0 09 00 1D 09 00 77 31 92 66 C9 DC B2 64 79 [07:49:09]GetLastDocTimeStamp 1720856313 [07:49:09]current date 1720856951 [07:49:09]FM_GetShiftState [07:49:09]SAM_PROTO_GetShiftState [07:49:09]wFMCommunicate request_size=4 [07:49:09]MH_SAM_APDU [07:49:09]CAPDU: 80 13 01 00 [07:49:09]Write to MH i2c: E2 08 00 1E 09 80 13 01 00 00 00 00 00 A4 [07:49:09]Write i2c OK [07:49:09]MH_I2C_Read... [07:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:09]Read from MH i2c: E2 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 0E 00 [07:49:09]MH_I2C_Read... [07:49:09]Read from MH i2c: E2 0E 00 1E 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 85 [07:49:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:49:09]wFMCommunicate OK [07:49:09]SAM_PROTO_GetShiftState done [07:49:09]FM_GetShiftState done [07:49:09]opened in 1720831249 [07:49:09]opened+sec_in_day 1720917649 [07:49:09]quantity*price = 15528 [07:49:09]sum+1 = 15530 [07:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 155.00 Внесено: 155.00 СДАЧА: 0.00 НСП 1% : 1.37 НДС 12% : 16.49 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 31 13.07.2024 07:49 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164471 ФПД: 63029296073134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164471&fm=63029296073134&tin=02508201610067®Number=0000000000090829&sum=15500 [07:49:11]StoreToDocumentArchive [07:49:11]shift 446 fd 164471 [07:49:11]save to /storage/0446/doc_00164471 [07:49:11]save last doc name /storage/0446/doc_00164471 to /storage/kkm_last_doc_name [07:49:11]save OK [07:49:11]Clear old archive folders... [07:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:11]tlvbuf is 00B6A970 [07:49:11]SAM_PROTO_ClearQueue [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 09 00 00 [07:49:11]Write to MH i2c: E2 08 00 2B 09 80 09 00 00 00 00 00 00 A6 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [07:49:11]RAPDU: 90 00 [07:49:11]wFMCommunicate OK [07:49:11]SAM_PROTO_ClearQueue done [07:49:11]KKMCreateOFDPacket [07:49:11]OFDProtocolAddRootSTLVToBuf [07:49:11]FM_MakeSignedData [07:49:11]FM_MakeSignedData [07:49:11]SAM_PROTO_SignData [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 0D 01 02 [07:49:11]Write to MH i2c: E2 08 00 2C 09 80 0D 01 02 00 00 00 00 AE [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [07:49:11]RAPDU: 90 00 [07:49:11]wFMCommunicate OK [07:49:11]wFMCommunicate request_size=255 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A9 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 77 31 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 82 02 00 35 04 06 00 39 [07:49:11]Write to MH i2c: E2 02 01 2D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A9 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 77 31 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 82 02 00 35 04 06 00 39 00 00 F3 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [07:49:11]RAPDU: 90 00 [07:49:11]wFMCommunicate OK [07:49:11]wFMCommunicate request_size=10 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 0D 02 02 05 53 26 CD 89 AE [07:49:11]Write to MH i2c: E2 0D 00 2E 09 80 0D 02 02 05 00 53 26 CD 89 AE 00 00 38 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [07:49:11]RAPDU: 90 00 [07:49:11]wFMCommunicate OK [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 0D 03 02 [07:49:11]Write to MH i2c: E2 08 00 2F 09 80 0D 03 02 00 00 00 00 B3 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 0B 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 0B 00 2F 09 00 AF 2D 37 9D D6 98 64 9C 90 00 D2 [07:49:11]RAPDU: AF 2D 37 9D D6 98 64 9C 90 00 [07:49:11]wFMCommunicate OK [07:49:11]SAM_PROTO_SignData done [07:49:11]FM_MakeSignedData done [07:49:11]CreateOFDProtocolMessage [07:49:11]wFMCommunicate request_size=4 [07:49:11]MH_SAM_APDU [07:49:11]CAPDU: 80 11 00 00 [07:49:11]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:11]Read from MH i2c: E2 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 17 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [07:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:49:11]wFMCommunicate OK [07:49:11]CreateOFDProtocolMessage done [07:49:11]OFDSenderStorePacket 164471 [07:49:11]StoreOFDPacket docnum=164471 [07:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 0A 07 01 F2 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A9 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 77 31 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 82 02 00 35 04 06 00 39 53 26 CD 89 AE AF 2D 37 9D D6 98 64 9C [07:49:11]CheckFolder [07:49:11]dirname=/storage/ofd_packets [07:49:11]CheckFolder done [07:49:11]ProducePacketName [07:49:11]name=ofd_packets/00164471 [07:49:11]NVStorageSaveData ofd_packets/00164471 [07:49:11]File name is /storage/ofd_packets/00164471 [07:49:11]Write 301 bytes [07:49:11]NVStorageSaveData done [07:49:11]OFDSenderStorePacket done [07:49:11]KKMCreateOFDPacket done [07:49:11]NVStorageSaveData kkm_last_timestamp [07:49:11]File name is /storage/kkm_last_timestamp [07:49:11]Write 4 bytes [07:49:11]NVStorageSaveData done [07:49:11]ExternCall_PrintAddStr [07:49:11]wPrintStart [07:49:11]Write to MH i2c: 01 00 00 31 09 3A [07:49:11]Write i2c OK [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: 01 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: 01 07 00 [07:49:11]MH_I2C_Read... [07:49:11]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [07:49:11]RasterBufferAndPrint [07:49:11]line Счет N : (1)458558 [07:49:11]line ИНН: 02508201610067 [07:49:11]line Контрольно-Кассовый Чек [07:49:11]line ПРОДАЖА [07:49:11]line ТРК (МРК, ГНК) : 22 [07:49:11]line Товар: 2710124130 [07:49:11]line Аи-92-К-5 [07:49:11]line 2.360 * 65.80 [07:49:11]line = 155.29 [07:49:11]line НДС 12% НСП 1% [07:49:11]line > о реализуемом товаре [07:49:11]line ОКРУГЛЕНИЕ: -0.29 [07:49:11]line ИТОГО: 155.00 [07:49:11]line Внесено: 155.00 [07:49:11]line СДАЧА: 0.00 [07:49:11]line НСП 1% : 1.37 [07:49:11]line НДС 12% : 16.49 [07:49:11]line Наличными: 155.00 [07:49:11]line Безнал.: 0.00 [07:49:11]line Место: АЗС № 72 "Партнер Нефть" [07:49:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:49:11]line СНО: Общий режим [07:49:11]line Чек 31 13.07.2024 07:49 [07:49:11]line Смена: 446 ФФД: 1.0 [07:49:11]line ЗНМ: 0300000160 [07:49:11]line РНМ: 0000000000090829 [07:49:11]line Версия ККМ: 001 [07:49:11]line ФМ: 0000000000874718 [07:49:11]line ФД: 164471 [07:49:11]line ФПД: 63029296073134 [07:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164471&fm=63029296073134&tin=02508201610067®Number=0000000000090829&sum=15500 [07:49:11]written 0, free lines is 4095 [07:49:11]OFD Sender: Processing packet 164471 [packets to send 104, broken 103] [07:49:11]ProducePacketName [07:49:11]name=ofd_packets/00164471 [07:49:11]OFD Sender: To server: pG, [07:49:11]CommunicateWithHost lk.salyk.kg:30040 [07:49:11]ConnectInit lk.salyk.kg [07:49:12]Connected sock=7 [07:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 0A 07 01 F2 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A9 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 77 31 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 82 02 00 35 04 06 00 39 53 26 CD 89 AE AF 2D 37 9D D6 98 64 9C [07:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 85 47 00 8C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 82 02 00 F4 03 04 00 09 D8 91 66 B6 04 01 00 00 2B 0A 3E 1A 05 45 CB 72 [07:49:12]CommunicateWithHost err = 0 [07:49:12]CheckOFDResponse [07:49:12]1017 (14) - 77093643461234 [07:49:12]1041 (16) - 0000000000874718 [07:49:12]1040 (4) - 164471 [07:49:12]1012 (4) - 13.07.2024 01:27 [07:49:12]1206 (1) - 0 [07:49:12]OFD Sender: Remove packet 164471 [07:49:12]ProducePacketName [07:49:12]name=ofd_packets/00164471 [07:49:12]NVStorageDeleteData [07:49:12]Write to MH i2c: 01 00 00 5B 09 64 [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: 01 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: 01 07 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 F2 0C 69 [07:49:12]RasterBufferAndPrint [07:49:12]line [07:49:12]line [07:49:12]line [07:49:12]line [07:49:12]line [07:49:12]written 0, free lines is 3320 [07:49:12]MH_Cut [07:49:12]Write to MH i2c: D1 01 00 62 09 01 3D [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: D1 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: D1 01 00 [07:49:12]MH_I2C_Read... [07:49:12]Read from MH i2c: D1 01 00 62 09 00 3C [07:49:12]Write to MH i2c: 01 00 00 63 09 6C [07:49:12]Write i2c OK [07:49:12]MH_I2C_Read... [07:49:12]OFD Sender: No OFD packet to send [07:49:13]*** Cut start [07:49:13]*** Partial cut [07:49:13]*** CUTSNS_PIN = 1 [07:49:13]*** CUTSNS_PIN = 0 [07:49:13]*** Brake cut motor [07:49:13]Read from MH i2c: 01 [07:49:13]MH_I2C_Read... [07:49:13]*** Stop cut motor [07:49:13]*** Cut end [07:49:13]Read from MH i2c: 01 07 00 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: 01 07 00 63 09 00 00 00 00 00 FF 0F 81 [07:49:13]process_action close_receipt done [07:49:13]requested_data is exist [07:49:13]produce_requested_data [07:49:13]requested_item fm.sn is exist - process it [07:49:13]wFMCommunicate request_size=4 [07:49:13]MH_SAM_APDU [07:49:13]CAPDU: 80 11 00 00 [07:49:13]Write to MH i2c: E2 08 00 64 09 80 11 00 00 00 00 00 00 E7 [07:49:13]Write i2c OK [07:49:13]MH_I2C_Read... [07:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:13]Read from MH i2c: E2 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 17 00 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 17 00 64 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [07:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:49:13]wFMCommunicate OK [07:49:13]requested_item fd.num is exist - process it [07:49:13]SAM_PROTO_GetFieldsCounters [07:49:13]wFMCommunicate request_size=4 [07:49:13]MH_SAM_APDU [07:49:13]CAPDU: 80 13 00 00 [07:49:13]Write to MH i2c: E2 08 00 65 09 80 13 00 00 00 00 00 00 EA [07:49:13]Write i2c OK [07:49:13]MH_I2C_Read... [07:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:13]Read from MH i2c: E2 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 62 00 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 62 00 65 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 82 02 00 0E 04 04 00 BE 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 28 [07:49: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 82 02 00 0E 04 04 00 BE 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 [07:49:13]wFMCommunicate OK [07:49:13]SAM_PROTO_GetFieldsCounters done [07:49:13]requested_item shift.num is exist - process it [07:49:13]requested_item shift.opened is exist - process it [07:49:13]req_shift_opened [07:49:13]FM_GetShiftState [07:49:13]SAM_PROTO_GetShiftState [07:49:13]wFMCommunicate request_size=4 [07:49:13]MH_SAM_APDU [07:49:13]CAPDU: 80 13 01 00 [07:49:13]Write to MH i2c: E2 08 00 66 09 80 13 01 00 00 00 00 00 EC [07:49:13]Write i2c OK [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 [07:49:13]MH_I2C_Read... [07:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:13]Read from MH i2c: E2 0E 00 [07:49:13]MH_I2C_Read... [07:49:13]Read from MH i2c: E2 0E 00 66 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CD [07:49:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [07:49:13]wFMCommunicate OK [07:49:13]SAM_PROTO_GetShiftState done [07:49:13]FM_GetShiftState done [07:49:13]req_shift_opened done [07:49:13]requested_item shift.open_date is exist - process it [07:49:13]req_shift_open_date [07:49:13]req_shift_open_date done [07:49:13]produce_requested_data done [07:49:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164471,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [07:49:13]process_action_free close_receipt [07:49:13]json_value_free [07:49:13]json_value_free done [07:49:13]process_json_proto returns [07:49:13]Send response to host [07:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164471,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [07:49:13]free response buf [07:49:13]execute_script done [07:49:13]execute_script returns [07:49:13]free content buf [07:49:13]Sock 10.Close socket [07:49:13]Sock 10.Thread stoped [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51: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:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]accept exits with 9 [08:00:58]New connection [08:00:58]New thread 3067301220 created [08:00:58]Thread 3067157860 joined [08:00:58]Waiting for new connection... [08:00:58] Sock 9.Parse request [08:00:58]Sock 9.Check first char [08:00:58]Sock 9.First char is OK [08:00:58]request: POST /json_proto HTTP/1.0 [08:00:58]Method: POST [08:00:58]URL: /json_proto [08:00:58]Method is POST - this is cgi request [08:00:58]url: /json_proto [08:00:58]query_string will be loaded in cgi processing [08:00:58]execute_cgi json_proto POST (null) [08:00:58]execute_cgi path=json_proto method=POST [08:00:58]POST find Content-Length [08:00:58]Host: 172.17.56.4:8080 [08:00:58]Content-Length: 677 [08:00:58]Content-Type: application/json [08:00:58] [08:00:58]POST finish read [08:00:58]Found Content-Length = 677 [08:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:00:58]execute_script... [08:00: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)458559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:00:58]POST & json_proto [08:00:58]process_json_proto [08:00:58]json parsed OK: [08:00:58]protocol is kg_v1.0 [08:00:58]action value=close_receipt [08:00:58]process_action close_receipt [08:00:58]cmd_close_receipt [08:00:58]MH_GetDate [08:00:58]Write to MH i2c: F0 00 00 67 09 5F [08:00:58]Write i2c OK [08:00:58]MH_I2C_Read... [08:00:58]Read from MH i2c: F0 [08:00:58]MH_I2C_Read... [08:00:58]Read from MH i2c: F0 09 00 [08:00:58]MH_I2C_Read... [08:00:58]Read from MH i2c: F0 09 00 67 09 00 3C 34 92 66 C9 DC B2 64 8B [08:00:58]GetLastDocTimeStamp 1720856951 [08:00:58]current date 1720857660 [08:00:58]FM_GetShiftState [08:00:58]SAM_PROTO_GetShiftState [08:00:58]wFMCommunicate request_size=4 [08:00:58]MH_SAM_APDU [08:00:58]CAPDU: 80 13 01 00 [08:00:58]Write to MH i2c: E2 08 00 68 09 80 13 01 00 00 00 00 00 EE [08:00:58]Write i2c OK [08:00:58]MH_I2C_Read... [08:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:58]Read from MH i2c: E2 [08:00:58]MH_I2C_Read... [08:00:58]Read from MH i2c: E2 0E 00 [08:00:58]MH_I2C_Read... [08:00:58]Read from MH i2c: E2 0E 00 68 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CF [08:00:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:00:58]wFMCommunicate OK [08:00:58]SAM_PROTO_GetShiftState done [08:00:58]FM_GetShiftState done [08:00:58]opened in 1720831249 [08:00:58]opened+sec_in_day 1720917649 [08:00:58]quantity*price = 50008 [08:00:58]sum+1 = 50009 [08:00:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 32 13.07.2024 08:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164472 ФПД: 159499187379046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164472&fm=159499187379046&tin=02508201610067®Number=0000000000090829&sum=50000 [08:00:59]StoreToDocumentArchive [08:00:59]shift 446 fd 164472 [08:00:59]save to /storage/0446/doc_00164472 [08:00:59]save last doc name /storage/0446/doc_00164472 to /storage/kkm_last_doc_name [08:00:59]save OK [08:00:59]Clear old archive folders... [08:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:59]tlvbuf is 00B8C4F0 [08:00:59]SAM_PROTO_ClearQueue [08:00:59]wFMCommunicate request_size=4 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 09 00 00 [08:00:59]Write to MH i2c: E2 08 00 75 09 80 09 00 00 00 00 00 00 F0 [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [08:00:59]RAPDU: 90 00 [08:00:59]wFMCommunicate OK [08:00:59]SAM_PROTO_ClearQueue done [08:00:59]KKMCreateOFDPacket [08:00:59]OFDProtocolAddRootSTLVToBuf [08:00:59]FM_MakeSignedData [08:00:59]FM_MakeSignedData [08:00:59]SAM_PROTO_SignData [08:00:59]wFMCommunicate request_size=4 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 0D 01 02 [08:00:59]Write to MH i2c: E2 08 00 76 09 80 0D 01 02 00 00 00 00 F8 [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [08:00:59]RAPDU: 90 00 [08:00:59]wFMCommunicate OK [08:00:59]wFMCommunicate request_size=255 [08:00:59]MH_SAM_APDU [08:00: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 3C 34 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 82 02 00 35 04 06 00 91 [08:00:59]Write to MH i2c: E2 02 01 77 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 3C 34 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 82 02 00 35 04 06 00 91 00 00 45 [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [08:00:59]RAPDU: 90 00 [08:00:59]wFMCommunicate OK [08:00:59]wFMCommunicate request_size=10 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 0D 02 02 05 10 4C 67 DB 66 [08:00:59]Write to MH i2c: E2 0D 00 78 09 80 0D 02 02 05 00 10 4C 67 DB 66 00 00 09 [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 03 00 78 09 00 90 00 F5 [08:00:59]RAPDU: 90 00 [08:00:59]wFMCommunicate OK [08:00:59]wFMCommunicate request_size=4 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 0D 03 02 [08:00:59]Write to MH i2c: E2 08 00 79 09 80 0D 03 02 00 00 00 00 FD [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 0B 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 0B 00 79 09 00 1D C4 51 3D C9 E6 0E 2E 90 00 58 [08:00:59]RAPDU: 1D C4 51 3D C9 E6 0E 2E 90 00 [08:00:59]wFMCommunicate OK [08:00:59]SAM_PROTO_SignData done [08:00:59]FM_MakeSignedData done [08:00:59]CreateOFDProtocolMessage [08:00:59]wFMCommunicate request_size=4 [08:00:59]MH_SAM_APDU [08:00:59]CAPDU: 80 11 00 00 [08:00:59]Write to MH i2c: E2 08 00 7A 09 80 11 00 00 00 00 00 00 FD [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:59]Read from MH i2c: E2 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 17 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: E2 17 00 7A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 53 [08:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:00:59]wFMCommunicate OK [08:00:59]CreateOFDProtocolMessage done [08:00:59]OFDSenderStorePacket 164472 [08:00:59]StoreOFDPacket docnum=164472 [08:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 9F 07 01 9A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 3C 34 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 82 02 00 35 04 06 00 91 10 4C 67 DB 66 1D C4 51 3D C9 E6 0E 2E [08:00:59]CheckFolder [08:00:59]dirname=/storage/ofd_packets [08:00:59]CheckFolder done [08:00:59]ProducePacketName [08:00:59]name=ofd_packets/00164472 [08:00:59]NVStorageSaveData ofd_packets/00164472 [08:00:59]File name is /storage/ofd_packets/00164472 [08:00:59]Write 301 bytes [08:00:59]NVStorageSaveData done [08:00:59]OFDSenderStorePacket done [08:00:59]KKMCreateOFDPacket done [08:00:59]NVStorageSaveData kkm_last_timestamp [08:00:59]File name is /storage/kkm_last_timestamp [08:00:59]Write 4 bytes [08:00:59]NVStorageSaveData done [08:00:59]ExternCall_PrintAddStr [08:00:59]wPrintStart [08:00:59]Write to MH i2c: 01 00 00 7B 09 84 [08:00:59]Write i2c OK [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: 01 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: 01 07 00 [08:00:59]MH_I2C_Read... [08:00:59]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [08:00:59]RasterBufferAndPrint [08:00:59]line Счет N : (1)458559 [08:00:59]line ИНН: 02508201610067 [08:00:59]line Контрольно-Кассовый Чек [08:00:59]line ПРОДАЖА [08:00:59]line ТРК (МРК, ГНК) : 12 [08:00:59]line Товар: 2710124130 [08:00:59]line Аи-92-К-5 [08:00:59]line 7.600 * 65.80 [08:00:59]line = 500.08 [08:00:59]line НДС 12% НСП 1% [08:00:59]line > о реализуемом товаре [08:00:59]line ОКРУГЛЕНИЕ: -0.08 [08:00:59]line ИТОГО: 500.00 [08:00:59]line Внесено: 500.00 [08:00:59]line СДАЧА: 0.00 [08:00:59]line НСП 1% : 4.42 [08:00:59]line НДС 12% : 53.11 [08:00:59]line Наличными: 500.00 [08:00:59]line Безнал.: 0.00 [08:00:59]line Место: АЗС № 72 "Партнер Нефть" [08:00:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:00:59]line СНО: Общий режим [08:00:59]line Чек 32 13.07.2024 08:01 [08:00:59]line Смена: 446 ФФД: 1.0 [08:00:59]line ЗНМ: 0300000160 [08:00:59]line РНМ: 0000000000090829 [08:00:59]line Версия ККМ: 001 [08:00:59]line ФМ: 0000000000874718 [08:00:59]line ФД: 164472 [08:00:59]line ФПД: 159499187379046 [08:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164472&fm=159499187379046&tin=02508201610067®Number=0000000000090829&sum=50000 [08:01:00]OFD Sender: Processing packet 164472 [packets to send 104, broken 103] [08:01:00]ProducePacketName [08:01:00]name=ofd_packets/00164472 [08:01:00]OFD Sender: To server: pG, [08:01:00]CommunicateWithHost lk.salyk.kg:30040 [08:01:00]ConnectInit lk.salyk.kg [08:01:00]written 0, free lines is 4095 [08:01:00]Connected sock=10 [08:01:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 9F 07 01 9A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 3C 34 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 82 02 00 35 04 06 00 91 10 4C 67 DB 66 1D C4 51 3D C9 E6 0E 2E [08:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 80 47 00 97 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 34 37 31 38 10 04 04 00 78 82 02 00 F4 03 04 00 CD DA 91 66 B6 04 01 00 00 97 A6 EF 75 07 12 67 BD [08:01:00]CommunicateWithHost err = 0 [08:01:00]CheckOFDResponse [08:01:00]1017 (14) - 77093643461234 [08:01:00]1041 (16) - 0000000000874718 [08:01:00]1040 (4) - 164472 [08:01:00]1012 (4) - 13.07.2024 01:39 [08:01:00]1206 (1) - 0 [08:01:00]OFD Sender: Remove packet 164472 [08:01:00]ProducePacketName [08:01:00]name=ofd_packets/00164472 [08:01:00]NVStorageDeleteData [08:01:00]Write to MH i2c: 01 00 00 A5 09 AE [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: 01 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: 01 07 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 FE 0C BF [08:01:00]RasterBufferAndPrint [08:01:00]line [08:01:00]line [08:01:00]line [08:01:00]line [08:01:00]line [08:01:00]written 0, free lines is 3332 [08:01:00]MH_Cut [08:01:00]Write to MH i2c: D1 01 00 AC 09 01 87 [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: D1 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: D1 01 00 [08:01:00]MH_I2C_Read... [08:01:00]Read from MH i2c: D1 01 00 AC 09 00 86 [08:01:00]Write to MH i2c: 01 00 00 AD 09 B6 [08:01:00]Write i2c OK [08:01:00]MH_I2C_Read... [08:01:01]OFD Sender: No OFD packet to send [08:01:01]*** Cut start [08:01:01]*** Partial cut [08:01:01]*** CUTSNS_PIN = 1 [08:01:01]*** CUTSNS_PIN = 0 [08:01:01]*** Brake cut motor [08:01:01]Read from MH i2c: 01 [08:01:01]MH_I2C_Read... [08:01:01]*** Stop cut motor [08:01:01]*** Cut end [08:01:01]Read from MH i2c: 01 07 00 [08:01:01]MH_I2C_Read... [08:01:01]Read from MH i2c: 01 07 00 AD 09 00 00 00 00 00 FF 0F CB [08:01:01]process_action close_receipt done [08:01:01]requested_data is exist [08:01:01]produce_requested_data [08:01:01]requested_item fm.sn is exist - process it [08:01:01]wFMCommunicate request_size=4 [08:01:01]MH_SAM_APDU [08:01:01]CAPDU: 80 11 00 00 [08:01:01]Write to MH i2c: E2 08 00 AE 09 80 11 00 00 00 00 00 00 31 [08:01:01]Write i2c OK [08:01:01]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 17 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 17 00 AE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [08:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:01:02]wFMCommunicate OK [08:01:02]requested_item fd.num is exist - process it [08:01:02]SAM_PROTO_GetFieldsCounters [08:01:02]wFMCommunicate request_size=4 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 13 00 00 [08:01:02]Write to MH i2c: E2 08 00 AF 09 80 13 00 00 00 00 00 00 34 [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 62 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 62 00 AF 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 82 02 00 0E 04 04 00 BE 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 76 [08:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:02]wFMCommunicate OK [08:01:02]SAM_PROTO_GetFieldsCounters done [08:01:02]requested_item shift.num is exist - process it [08:01:02]requested_item shift.opened is exist - process it [08:01:02]req_shift_opened [08:01:02]FM_GetShiftState [08:01:02]SAM_PROTO_GetShiftState [08:01:02]wFMCommunicate request_size=4 [08:01:02]MH_SAM_APDU [08:01:02]CAPDU: 80 13 01 00 [08:01:02]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [08:01:02]Write i2c OK [08:01:02]MH_I2C_Read... [08:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:02]Read from MH i2c: E2 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0E 00 [08:01:02]MH_I2C_Read... [08:01:02]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [08:01:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:01:02]wFMCommunicate OK [08:01:02]SAM_PROTO_GetShiftState done [08:01:02]FM_GetShiftState done [08:01:02]req_shift_opened done [08:01:02]requested_item shift.open_date is exist - process it [08:01:02]req_shift_open_date [08:01:02]req_shift_open_date done [08:01:02]produce_requested_data done [08:01:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164472,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:01:02]process_action_free close_receipt [08:01:02]json_value_free [08:01:02]json_value_free done [08:01:02]process_json_proto returns [08:01:02]Send response to host [08:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164472,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:01:02]free response buf [08:01:02]execute_script done [08:01:02]execute_script returns [08:01:02]free content buf [08:01:02]Sock 9.Close socket [08:01:02]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:47]accept exits with 7 [08:09:47]New connection [08:09:47]New thread 3067157860 created [08:09:47]Thread 3067301220 joined [08:09:47]Waiting for new connection... [08:09:47] Sock 7.Parse request [08:09:47]Sock 7.Check first char [08:09:47]Sock 7.First char is OK [08:09:47]request: POST /json_proto HTTP/1.0 [08:09:47]Method: POST [08:09:47]URL: /json_proto [08:09:47]Method is POST - this is cgi request [08:09:47]url: /json_proto [08:09:47]query_string will be loaded in cgi processing [08:09:47]execute_cgi json_proto POST (null) [08:09:47]execute_cgi path=json_proto method=POST [08:09:47]POST find Content-Length [08:09:47]Host: 172.17.56.4:8080 [08:09:47]Content-Length: 682 [08:09:47]Content-Type: application/json [08:09:47] [08:09:47]POST finish read [08:09:47]Found Content-Length = 682 [08:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:47]execute_script... [08:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:47]POST & json_proto [08:09:47]process_json_proto [08:09:47]json parsed OK: [08:09:47]protocol is kg_v1.0 [08:09:47]action value=close_receipt [08:09:47]process_action close_receipt [08:09:47]cmd_close_receipt [08:09:47]MH_GetDate [08:09:47]Write to MH i2c: F0 00 00 B1 09 A9 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 09 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 09 00 B1 09 00 4D 36 92 66 C9 DC B2 64 E8 [08:09:47]GetLastDocTimeStamp 1720857660 [08:09:47]current date 1720858189 [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 B2 09 80 13 01 00 00 00 00 00 38 [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 B2 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 19 [08:09:47]RAPDU: 09 00 01 11 CD 91 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]opened in 1720831249 [08:09:47]opened+sec_in_day 1720917649 [08:09:47]quantity*price = 100016 [08:09:47]sum+1 = 100017 [08:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 33 13.07.2024 08:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164473 ФПД: 6108257314964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164473&fm=6108257314964&tin=02508201610067®Number=0000000000090829&sum=100000 [08:09:48]StoreToDocumentArchive [08:09:48]shift 446 fd 164473 [08:09:48]save to /storage/0446/doc_00164473 [08:09:48]save last doc name /storage/0446/doc_00164473 to /storage/kkm_last_doc_name [08:09:48]save OK [08:09:48]Clear old archive folders... [08:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:48]tlvbuf is 00B8D220 [08:09:48]SAM_PROTO_ClearQueue [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 09 00 00 [08:09:48]Write to MH i2c: E2 08 00 BF 09 80 09 00 00 00 00 00 00 3A [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [08:09:48]RAPDU: 90 00 [08:09:48]wFMCommunicate OK [08:09:48]SAM_PROTO_ClearQueue done [08:09:48]KKMCreateOFDPacket [08:09:48]OFDProtocolAddRootSTLVToBuf [08:09:48]FM_MakeSignedData [08:09:48]FM_MakeSignedData [08:09:48]SAM_PROTO_SignData [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 0D 01 02 [08:09:48]Write to MH i2c: E2 08 00 C0 09 80 0D 01 02 00 00 00 00 42 [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [08:09:48]RAPDU: 90 00 [08:09:48]wFMCommunicate OK [08:09:48]wFMCommunicate request_size=255 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 36 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 82 02 00 35 04 06 00 05 [08:09:48]Write to MH i2c: E2 02 01 C1 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 36 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 82 02 00 35 04 06 00 05 00 00 BA [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 C1 09 00 90 00 3E [08:09:48]RAPDU: 90 00 [08:09:48]wFMCommunicate OK [08:09:48]wFMCommunicate request_size=10 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 0D 02 02 05 8E 30 81 E8 94 [08:09:48]Write to MH i2c: E2 0D 00 C2 09 80 0D 02 02 05 00 8E 30 81 E8 94 00 00 0A [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [08:09:48]RAPDU: 90 00 [08:09:48]wFMCommunicate OK [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 0D 03 02 [08:09:48]Write to MH i2c: E2 08 00 C3 09 80 0D 03 02 00 00 00 00 47 [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0B 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0B 00 C3 09 00 E1 24 FA CB E1 E0 CA 33 90 00 D0 [08:09:48]RAPDU: E1 24 FA CB E1 E0 CA 33 90 00 [08:09:48]wFMCommunicate OK [08:09:48]SAM_PROTO_SignData done [08:09:48]FM_MakeSignedData done [08:09:48]CreateOFDProtocolMessage [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 11 00 00 [08:09:48]Write to MH i2c: E2 08 00 C4 09 80 11 00 00 00 00 00 00 47 [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 17 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 17 00 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [08:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:09:48]wFMCommunicate OK [08:09:48]CreateOFDProtocolMessage done [08:09:48]OFDSenderStorePacket 164473 [08:09:48]StoreOFDPacket docnum=164473 [08:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB F2 07 01 87 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 36 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 82 02 00 35 04 06 00 05 8E 30 81 E8 94 E1 24 FA CB E1 E0 CA 33 [08:09:48]CheckFolder [08:09:48]dirname=/storage/ofd_packets [08:09:48]CheckFolder done [08:09:48]ProducePacketName [08:09:48]name=ofd_packets/00164473 [08:09:48]NVStorageSaveData ofd_packets/00164473 [08:09:48]File name is /storage/ofd_packets/00164473 [08:09:48]Write 301 bytes [08:09:48]NVStorageSaveData done [08:09:48]OFDSenderStorePacket done [08:09:48]KKMCreateOFDPacket done [08:09:48]NVStorageSaveData kkm_last_timestamp [08:09:48]File name is /storage/kkm_last_timestamp [08:09:48]Write 4 bytes [08:09:48]NVStorageSaveData done [08:09:48]ExternCall_PrintAddStr [08:09:48]wPrintStart [08:09:48]Write to MH i2c: 01 00 00 C5 09 CE [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: 01 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: 01 07 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [08:09:48]RasterBufferAndPrint [08:09:48]line Счет N : (1)458560 [08:09:48]line ИНН: 02508201610067 [08:09:48]line Контрольно-Кассовый Чек [08:09:48]line ПРОДАЖА [08:09:48]line ТРК (МРК, ГНК) : 22 [08:09:48]line Товар: 2710124130 [08:09:48]line Аи-92-К-5 [08:09:48]line 15.200 * 65.80 [08:09:48]line = 1000.16 [08:09:48]line НДС 12% НСП 1% [08:09:48]line > о реализуемом товаре [08:09:48]line ОКРУГЛЕНИЕ: -0.16 [08:09:48]line ИТОГО: 1000.00 [08:09:48]line Внесено: 1000.00 [08:09:48]line СДАЧА: 0.00 [08:09:48]line НСП 1% : 8.85 [08:09:48]line НДС 12% : 106.21 [08:09:48]line Наличными: 1000.00 [08:09:48]line Безнал.: 0.00 [08:09:48]line Место: АЗС № 72 "Партнер Нефть" [08:09:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:09:48]line СНО: Общий режим [08:09:48]line Чек 33 13.07.2024 08:09 [08:09:48]line Смена: 446 ФФД: 1.0 [08:09:48]line ЗНМ: 0300000160 [08:09:48]line РНМ: 0000000000090829 [08:09:48]line Версия ККМ: 001 [08:09:48]line ФМ: 0000000000874718 [08:09:48]line ФД: 164473 [08:09:48]line ФПД: 6108257314964 [08:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164473&fm=6108257314964&tin=02508201610067®Number=0000000000090829&sum=100000 [08:09:48]OFD Sender: Processing packet 164473 [packets to send 104, broken 103] [08:09:48]ProducePacketName [08:09:48]name=ofd_packets/00164473 [08:09:48]OFD Sender: To server: pG, [08:09:48]CommunicateWithHost lk.salyk.kg:30040 [08:09:48]ConnectInit lk.salyk.kg [08:09:48]written 0, free lines is 4095 [08:09:48]Connected sock=11 [08:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB F2 07 01 87 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 36 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 82 02 00 35 04 06 00 05 8E 30 81 E8 94 E1 24 FA CB E1 E0 CA 33 [08:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 02 47 00 16 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 34 37 31 38 10 04 04 00 79 82 02 00 F4 03 04 00 DE DC 91 66 B6 04 01 00 00 39 98 A5 F5 B7 05 00 96 [08:09:49]CommunicateWithHost err = 0 [08:09:49]CheckOFDResponse [08:09:49]1017 (14) - 77093643461234 [08:09:49]1041 (16) - 0000000000874718 [08:09:49]1040 (4) - 164473 [08:09:49]1012 (4) - 13.07.2024 01:48 [08:09:49]1206 (1) - 0 [08:09:49]OFD Sender: Remove packet 164473 [08:09:49]ProducePacketName [08:09:49]name=ofd_packets/00164473 [08:09:49]NVStorageDeleteData [08:09:49]Write to MH i2c: 01 00 00 EF 09 F8 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 07 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 07 00 EF 09 00 00 00 00 00 02 0D 0E [08:09:49]RasterBufferAndPrint [08:09:49]line [08:09:49]line [08:09:49]line [08:09:49]line [08:09:49]line [08:09:49]written 0, free lines is 3336 [08:09:49]MH_Cut [08:09:49]Write to MH i2c: D1 01 00 F6 09 01 D1 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: D1 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: D1 01 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: D1 01 00 F6 09 00 D0 [08:09:49]Write to MH i2c: 01 00 00 F7 09 00 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]OFD Sender: No OFD packet to send [08:09:49]*** Cut start [08:09:50]*** Partial cut [08:09:50]*** CUTSNS_PIN = 1 [08:09:50]*** CUTSNS_PIN = 0 [08:09:50]*** Brake cut motor [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]*** Stop cut motor [08:09:50]*** Cut end [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 FF 0F 15 [08:09:50]process_action close_receipt done [08:09:50]requested_data is exist [08:09:50]produce_requested_data [08:09:50]requested_item fm.sn is exist - process it [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 11 00 00 [08:09:50]Write to MH i2c: E2 08 00 F8 09 80 11 00 00 00 00 00 00 7B [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 F8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [08:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:09:50]wFMCommunicate OK [08:09:50]requested_item fd.num is exist - process it [08:09:50]SAM_PROTO_GetFieldsCounters [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 13 00 00 [08:09:50]Write to MH i2c: E2 08 00 F9 09 80 13 00 00 00 00 00 00 7E [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 62 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 62 00 F9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 82 02 00 0E 04 04 00 BE 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 C4 [08:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:50]wFMCommunicate OK [08:09:50]SAM_PROTO_GetFieldsCounters done [08:09:50]requested_item shift.num is exist - process it [08:09:50]requested_item shift.opened is exist - process it [08:09:50]req_shift_opened [08:09:50]FM_GetShiftState [08:09:50]SAM_PROTO_GetShiftState [08:09:50]wFMCommunicate request_size=4 [08:09:50]MH_SAM_APDU [08:09:50]CAPDU: 80 13 01 00 [08:09:50]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0E 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 61 [08:09:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:09:50]wFMCommunicate OK [08:09:50]SAM_PROTO_GetShiftState done [08:09:50]FM_GetShiftState done [08:09:50]req_shift_opened done [08:09:50]requested_item shift.open_date is exist - process it [08:09:50]req_shift_open_date [08:09:50]req_shift_open_date done [08:09:50]produce_requested_data done [08:09:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164473,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:09:50]process_action_free close_receipt [08:09:50]json_value_free [08:09:50]json_value_free done [08:09:50]process_json_proto returns [08:09:50]Send response to host [08:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164473,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:09:50]free response buf [08:09:50]execute_script done [08:09:50]execute_script returns [08:09:50]free content buf [08:09:50]Sock 7.Close socket [08:09:50]Sock 7.Thread stoped [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:17]accept exits with 9 [08:13:17]New connection [08:13:17]New thread 3067301220 created [08:13:17]Thread 3067157860 joined [08:13:17]Waiting for new connection... [08:13:17] Sock 9.Parse request [08:13:17]Sock 9.Check first char [08:13:17]Sock 9.First char is OK [08:13:17]request: POST /json_proto HTTP/1.0 [08:13:17]Method: POST [08:13:17]URL: /json_proto [08:13:17]Method is POST - this is cgi request [08:13:17]url: /json_proto [08:13:17]query_string will be loaded in cgi processing [08:13:17]execute_cgi json_proto POST (null) [08:13:17]execute_cgi path=json_proto method=POST [08:13:17]POST find Content-Length [08:13:17]Host: 172.17.56.4:8080 [08:13:17]Content-Length: 677 [08:13:17]Content-Type: application/json [08:13:17] [08:13:17]POST finish read [08:13:17]Found Content-Length = 677 [08:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:13:17]execute_script... [08:13: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)458561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:13:17]POST & json_proto [08:13:17]process_json_proto [08:13:17]json parsed OK: [08:13:17]protocol is kg_v1.0 [08:13:17]action value=close_receipt [08:13:17]process_action close_receipt [08:13:17]cmd_close_receipt [08:13:17]MH_GetDate [08:13:17]Write to MH i2c: F0 00 00 FB 09 F3 [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 09 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 09 00 FB 09 00 1F 37 92 66 C9 DC B2 64 05 [08:13:17]GetLastDocTimeStamp 1720858189 [08:13:17]current date 1720858399 [08:13:17]FM_GetShiftState [08:13:17]SAM_PROTO_GetShiftState [08:13:17]wFMCommunicate request_size=4 [08:13:17]MH_SAM_APDU [08:13:17]CAPDU: 80 13 01 00 [08:13:17]Write to MH i2c: E2 08 00 FC 09 80 13 01 00 00 00 00 00 82 [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:17]Read from MH i2c: E2 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 FC 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 63 [08:13:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:13:17]wFMCommunicate OK [08:13:17]SAM_PROTO_GetShiftState done [08:13:17]FM_GetShiftState done [08:13:17]opened in 1720831249 [08:13:17]opened+sec_in_day 1720917649 [08:13:17]quantity*price = 50008 [08:13:17]sum+1 = 50009 [08:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 34 13.07.2024 08:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164474 ФПД: 111958866522798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164474&fm=111958866522798&tin=02508201610067®Number=0000000000090829&sum=50000 [08:13:18]StoreToDocumentArchive [08:13:18]shift 446 fd 164474 [08:13:18]save to /storage/0446/doc_00164474 [08:13:18]save last doc name /storage/0446/doc_00164474 to /storage/kkm_last_doc_name [08:13:18]save OK [08:13:18]Clear old archive folders... [08:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:18]tlvbuf is 00B6B830 [08:13:18]SAM_PROTO_ClearQueue [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 09 00 00 [08:13:18]Write to MH i2c: E2 08 00 09 0A 80 09 00 00 00 00 00 00 85 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]SAM_PROTO_ClearQueue done [08:13:18]KKMCreateOFDPacket [08:13:18]OFDProtocolAddRootSTLVToBuf [08:13:18]FM_MakeSignedData [08:13:18]FM_MakeSignedData [08:13:18]SAM_PROTO_SignData [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 01 02 [08:13:18]Write to MH i2c: E2 08 00 0A 0A 80 0D 01 02 00 00 00 00 8D [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=255 [08:13:18]MH_SAM_APDU [08:13: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 22 00 00 00 F4 03 04 00 1F 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 82 02 00 35 04 06 00 65 [08:13:18]Write to MH i2c: E2 02 01 0B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 22 00 00 00 F4 03 04 00 1F 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 82 02 00 35 04 06 00 65 00 00 98 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=10 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 02 02 05 D3 74 77 F2 AE [08:13:18]Write to MH i2c: E2 0D 00 0C 0A 80 0D 02 02 05 00 D3 74 77 F2 AE 00 00 F8 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 03 02 [08:13:18]Write to MH i2c: E2 08 00 0D 0A 80 0D 03 02 00 00 00 00 92 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0B 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0B 00 0D 0A 00 6B AF A1 E9 CC 58 C3 6C 90 00 8A [08:13:18]RAPDU: 6B AF A1 E9 CC 58 C3 6C 90 00 [08:13:18]wFMCommunicate OK [08:13:18]SAM_PROTO_SignData done [08:13:18]FM_MakeSignedData done [08:13:18]CreateOFDProtocolMessage [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 11 00 00 [08:13:18]Write to MH i2c: E2 08 00 0E 0A 80 11 00 00 00 00 00 00 92 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 0E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [08:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:13:19]wFMCommunicate OK [08:13:19]CreateOFDProtocolMessage done [08:13:19]OFDSenderStorePacket 164474 [08:13:19]StoreOFDPacket docnum=164474 [08:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 17 07 01 FF 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 22 00 00 00 F4 03 04 00 1F 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 82 02 00 35 04 06 00 65 D3 74 77 F2 AE 6B AF A1 E9 CC 58 C3 6C [08:13:19]CheckFolder [08:13:19]dirname=/storage/ofd_packets [08:13:19]CheckFolder done [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00164474 [08:13:19]NVStorageSaveData ofd_packets/00164474 [08:13:19]File name is /storage/ofd_packets/00164474 [08:13:19]Write 301 bytes [08:13:19]NVStorageSaveData done [08:13:19]OFDSenderStorePacket done [08:13:19]KKMCreateOFDPacket done [08:13:19]NVStorageSaveData kkm_last_timestamp [08:13:19]File name is /storage/kkm_last_timestamp [08:13:19]Write 4 bytes [08:13:19]NVStorageSaveData done [08:13:19]ExternCall_PrintAddStr [08:13:19]wPrintStart [08:13:19]Write to MH i2c: 01 00 00 0F 0A 19 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [08:13:19]RasterBufferAndPrint [08:13:19]line Счет N : (1)458561 [08:13:19]line ИНН: 02508201610067 [08:13:19]line Контрольно-Кассовый Чек [08:13:19]line ПРОДАЖА [08:13:19]line ТРК (МРК, ГНК) : 12 [08:13:19]line Товар: 2710124130 [08:13:19]line Аи-92-К-5 [08:13:19]line 7.600 * 65.80 [08:13:19]line = 500.08 [08:13:19]line НДС 12% НСП 1% [08:13:19]line > о реализуемом товаре [08:13:19]line ОКРУГЛЕНИЕ: -0.08 [08:13:19]line ИТОГО: 500.00 [08:13:19]line Внесено: 500.00 [08:13:19]line СДАЧА: 0.00 [08:13:19]line НСП 1% : 4.42 [08:13:19]line НДС 12% : 53.11 [08:13:19]line Наличными: 500.00 [08:13:19]line Безнал.: 0.00 [08:13:19]line Место: АЗС № 72 "Партнер Нефть" [08:13:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:13:19]line СНО: Общий режим [08:13:19]line Чек 34 13.07.2024 08:13 [08:13:19]line Смена: 446 ФФД: 1.0 [08:13:19]line ЗНМ: 0300000160 [08:13:19]line РНМ: 0000000000090829 [08:13:19]line Версия ККМ: 001 [08:13:19]line ФМ: 0000000000874718 [08:13:19]line ФД: 164474 [08:13:19]line ФПД: 111958866522798 [08:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164474&fm=111958866522798&tin=02508201610067®Number=0000000000090829&sum=50000 [08:13:19]written 0, free lines is 4095 [08:13:19]OFD Sender: Processing packet 164474 [packets to send 104, broken 103] [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00164474 [08:13:19]OFD Sender: To server: pG, [08:13:19]CommunicateWithHost lk.salyk.kg:30040 [08:13:19]ConnectInit lk.salyk.kg [08:13:19]Connected sock=10 [08:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 17 07 01 FF 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 22 00 00 00 F4 03 04 00 1F 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 82 02 00 35 04 06 00 65 D3 74 77 F2 AE 6B AF A1 E9 CC 58 C3 6C [08:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 34 47 00 A2 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 34 37 31 38 10 04 04 00 7A 82 02 00 F4 03 04 00 B0 DD 91 66 B6 04 01 00 00 9A E8 5A 75 0B 8E 4D 47 [08:13:19]CommunicateWithHost err = 0 [08:13:19]CheckOFDResponse [08:13:19]1017 (14) - 77093643461234 [08:13:19]1041 (16) - 0000000000874718 [08:13:19]1040 (4) - 164474 [08:13:19]1012 (4) - 13.07.2024 01:51 [08:13:19]1206 (1) - 0 [08:13:19]OFD Sender: Remove packet 164474 [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00164474 [08:13:19]NVStorageDeleteData [08:13:19]Write to MH i2c: 01 00 00 39 0A 43 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 39 0A 00 00 00 00 00 FE 0C 54 [08:13:19]RasterBufferAndPrint [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]written 0, free lines is 3332 [08:13:19]MH_Cut [08:13:19]Write to MH i2c: D1 01 00 40 0A 01 1C [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 01 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 01 00 40 0A 00 1B [08:13:19]Write to MH i2c: 01 00 00 41 0A 4B [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:20]OFD Sender: No OFD packet to send [08:13:20]*** Cut start [08:13:20]*** Partial cut [08:13:20]*** CUTSNS_PIN = 1 [08:13:20]*** CUTSNS_PIN = 0 [08:13:20]*** Brake cut motor [08:13:21]Read from MH i2c: 01 [08:13:21]MH_I2C_Read... [08:13:21]*** Stop cut motor [08:13:21]*** Cut end [08:13:21]Read from MH i2c: 01 07 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 07 00 41 0A 00 00 00 00 00 FF 0F 60 [08:13:21]process_action close_receipt done [08:13:21]requested_data is exist [08:13:21]produce_requested_data [08:13:21]requested_item fm.sn is exist - process it [08:13:21]wFMCommunicate request_size=4 [08:13:21]MH_SAM_APDU [08:13:21]CAPDU: 80 11 00 00 [08:13:21]Write to MH i2c: E2 08 00 42 0A 80 11 00 00 00 00 00 00 C6 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 17 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 17 00 42 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [08:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:13:21]wFMCommunicate OK [08:13:21]requested_item fd.num is exist - process it [08:13:21]SAM_PROTO_GetFieldsCounters [08:13:21]wFMCommunicate request_size=4 [08:13:21]MH_SAM_APDU [08:13:21]CAPDU: 80 13 00 00 [08:13:21]Write to MH i2c: E2 08 00 43 0A 80 13 00 00 00 00 00 00 C9 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 62 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 62 00 43 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 82 02 00 0E 04 04 00 BE 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 13 [08:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:21]wFMCommunicate OK [08:13:21]SAM_PROTO_GetFieldsCounters done [08:13:21]requested_item shift.num is exist - process it [08:13:21]requested_item shift.opened is exist - process it [08:13:21]req_shift_opened [08:13:21]FM_GetShiftState [08:13:21]SAM_PROTO_GetShiftState [08:13:21]wFMCommunicate request_size=4 [08:13:21]MH_SAM_APDU [08:13:21]CAPDU: 80 13 01 00 [08:13:21]Write to MH i2c: E2 08 00 44 0A 80 13 01 00 00 00 00 00 CB [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 44 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [08:13:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:13:21]wFMCommunicate OK [08:13:21]SAM_PROTO_GetShiftState done [08:13:21]FM_GetShiftState done [08:13:21]req_shift_opened done [08:13:21]requested_item shift.open_date is exist - process it [08:13:21]req_shift_open_date [08:13:21]req_shift_open_date done [08:13:21]produce_requested_data done [08:13:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164474,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:13:21]process_action_free close_receipt [08:13:21]json_value_free [08:13:21]json_value_free done [08:13:21]process_json_proto returns [08:13:21]Send response to host [08:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164474,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:13:21]free response buf [08:13:21]execute_script done [08:13:21]execute_script returns [08:13:21]free content buf [08:13:21]Sock 9.Close socket [08:13:21]Sock 9.Thread stoped [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:38]accept exits with 7 [08:16:38]New connection [08:16:38]New thread 3067157860 created [08:16:38]Thread 3067301220 joined [08:16:38]Waiting for new connection... [08:16:38] Sock 7.Parse request [08:16:38]Sock 7.Check first char [08:16:38]Sock 7.First char is OK [08:16:38]request: POST /json_proto HTTP/1.0 [08:16:38]Method: POST [08:16:38]URL: /json_proto [08:16:38]Method is POST - this is cgi request [08:16:38]url: /json_proto [08:16:38]query_string will be loaded in cgi processing [08:16:38]execute_cgi json_proto POST (null) [08:16:38]execute_cgi path=json_proto method=POST [08:16:38]POST find Content-Length [08:16:38]Host: 172.17.56.4:8080 [08:16:38]Content-Length: 674 [08:16:38]Content-Type: application/json [08:16:38] [08:16:38]POST finish read [08:16:38]Found Content-Length = 674 [08:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:16:38]execute_script... [08:16: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)458562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:16:38]POST & json_proto [08:16:38]process_json_proto [08:16:38]json parsed OK: [08:16:38]protocol is kg_v1.0 [08:16:38]action value=close_receipt [08:16:38]process_action close_receipt [08:16:38]cmd_close_receipt [08:16:38]MH_GetDate [08:16:38]Write to MH i2c: F0 00 00 45 0A 3E [08:16:38]Write i2c OK [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: F0 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: F0 09 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: F0 09 00 45 0A 00 E7 37 92 66 C9 DC B2 64 18 [08:16:38]GetLastDocTimeStamp 1720858399 [08:16:38]current date 1720858599 [08:16:38]FM_GetShiftState [08:16:38]SAM_PROTO_GetShiftState [08:16:38]wFMCommunicate request_size=4 [08:16:38]MH_SAM_APDU [08:16:38]CAPDU: 80 13 01 00 [08:16:38]Write to MH i2c: E2 08 00 46 0A 80 13 01 00 00 00 00 00 CD [08:16:38]Write i2c OK [08:16:38]MH_I2C_Read... [08:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:38]Read from MH i2c: E2 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 [08:16:38]MH_I2C_Read... [08:16:38]Read from MH i2c: E2 0E 00 46 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AE [08:16:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:16:38]wFMCommunicate OK [08:16:38]SAM_PROTO_GetShiftState done [08:16:38]FM_GetShiftState done [08:16:38]opened in 1720831249 [08:16:38]opened+sec_in_day 1720917649 [08:16:38]quantity*price = 50042 [08:16:38]sum+1 = 50043 [08:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 35 13.07.2024 08:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164475 ФПД: 140802195774254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164475&fm=140802195774254&tin=02508201610067®Number=0000000000090829&sum=50000 [08:16:39]StoreToDocumentArchive [08:16:39]shift 446 fd 164475 [08:16:39]save to /storage/0446/doc_00164475 [08:16:39]save last doc name /storage/0446/doc_00164475 to /storage/kkm_last_doc_name [08:16:39]save OK [08:16:39]Clear old archive folders... [08:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:39]tlvbuf is 00BCCB90 [08:16:39]SAM_PROTO_ClearQueue [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 09 00 00 [08:16:39]Write to MH i2c: E2 08 00 53 0A 80 09 00 00 00 00 00 00 CF [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]SAM_PROTO_ClearQueue done [08:16:39]KKMCreateOFDPacket [08:16:39]OFDProtocolAddRootSTLVToBuf [08:16:39]FM_MakeSignedData [08:16:39]FM_MakeSignedData [08:16:39]SAM_PROTO_SignData [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 01 02 [08:16:39]Write to MH i2c: E2 08 00 54 0A 80 0D 01 02 00 00 00 00 D7 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=255 [08:16:39]MH_SAM_APDU [08:16: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E8 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 82 02 00 35 04 06 00 80 0F 10 DC [08:16:39]Write to MH i2c: E2 02 01 55 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E8 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 82 02 00 35 04 06 00 80 0F 10 DC 00 00 1F [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=7 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 02 02 02 DB 2E [08:16:39]Write to MH i2c: E2 0A 00 56 0A 80 0D 02 02 02 00 DB 2E 00 00 E7 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [08:16:39]RAPDU: 90 00 [08:16:39]wFMCommunicate OK [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 0D 03 02 [08:16:39]Write to MH i2c: E2 08 00 57 0A 80 0D 03 02 00 00 00 00 DC [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 0B 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 0B 00 57 0A 00 55 52 B2 F7 E2 37 B0 46 90 00 3C [08:16:39]RAPDU: 55 52 B2 F7 E2 37 B0 46 90 00 [08:16:39]wFMCommunicate OK [08:16:39]SAM_PROTO_SignData done [08:16:39]FM_MakeSignedData done [08:16:39]CreateOFDProtocolMessage [08:16:39]wFMCommunicate request_size=4 [08:16:39]MH_SAM_APDU [08:16:39]CAPDU: 80 11 00 00 [08:16:39]Write to MH i2c: E2 08 00 58 0A 80 11 00 00 00 00 00 00 DC [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:39]Read from MH i2c: E2 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 17 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: E2 17 00 58 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [08:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:16:39]wFMCommunicate OK [08:16:39]CreateOFDProtocolMessage done [08:16:39]OFDSenderStorePacket 164475 [08:16:39]StoreOFDPacket docnum=164475 [08:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 03 82 04 01 26 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E8 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 82 02 00 35 04 06 00 80 0F 10 DC DB 2E 55 52 B2 F7 E2 37 B0 46 [08:16:39]CheckFolder [08:16:39]dirname=/storage/ofd_packets [08:16:39]CheckFolder done [08:16:39]ProducePacketName [08:16:39]name=ofd_packets/00164475 [08:16:39]NVStorageSaveData ofd_packets/00164475 [08:16:39]File name is /storage/ofd_packets/00164475 [08:16:39]Write 298 bytes [08:16:39]NVStorageSaveData done [08:16:39]OFDSenderStorePacket done [08:16:39]KKMCreateOFDPacket done [08:16:39]NVStorageSaveData kkm_last_timestamp [08:16:39]File name is /storage/kkm_last_timestamp [08:16:39]Write 4 bytes [08:16:39]NVStorageSaveData done [08:16:39]ExternCall_PrintAddStr [08:16:39]wPrintStart [08:16:39]Write to MH i2c: 01 00 00 59 0A 63 [08:16:39]Write i2c OK [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 07 00 [08:16:39]MH_I2C_Read... [08:16:39]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 FF 0F 78 [08:16:39]RasterBufferAndPrint [08:16:39]line Счет N : (1)458562 [08:16:39]line ИНН: 02508201610067 [08:16:39]line Контрольно-Кассовый Чек [08:16:39]line ПРОДАЖА [08:16:39]line ТРК (МРК, ГНК) : 11 [08:16:39]line Товар: 2710194210 [08:16:39]line ДТ-К-5 [08:16:39]line 6.960 * 71.90 [08:16:39]line = 500.42 [08:16:39]line НДС 12% НСП 1% [08:16:39]line > о реализуемом товаре [08:16:39]line ОКРУГЛЕНИЕ: -0.42 [08:16:39]line ИТОГО: 500.00 [08:16:39]line Внесено: 500.00 [08:16:39]line СДАЧА: 0.00 [08:16:39]line НСП 1% : 4.43 [08:16:39]line НДС 12% : 53.14 [08:16:39]line Наличными: 500.00 [08:16:39]line Безнал.: 0.00 [08:16:39]line Место: АЗС № 72 "Партнер Нефть" [08:16:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:16:39]line СНО: Общий режим [08:16:39]line Чек 35 13.07.2024 08:16 [08:16:39]line Смена: 446 ФФД: 1.0 [08:16:39]line ЗНМ: 0300000160 [08:16:39]line РНМ: 0000000000090829 [08:16:39]line Версия ККМ: 001 [08:16:39]line ФМ: 0000000000874718 [08:16:39]line ФД: 164475 [08:16:39]line ФПД: 140802195774254 [08:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164475&fm=140802195774254&tin=02508201610067®Number=0000000000090829&sum=50000 [08:16:40]OFD Sender: Processing packet 164475 [packets to send 104, broken 103] [08:16:40]ProducePacketName [08:16:40]name=ofd_packets/00164475 [08:16:40]OFD Sender: To server: pG, [08:16:40]CommunicateWithHost lk.salyk.kg:30040 [08:16:40]ConnectInit lk.salyk.kg [08:16:40]written 0, free lines is 4095 [08:16:40]Connected sock=11 [08:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 03 82 04 01 26 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 E8 37 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 82 02 00 35 04 06 00 80 0F 10 DC DB 2E 55 52 B2 F7 E2 37 B0 46 [08:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 4B 47 00 36 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 82 02 00 F4 03 04 00 79 DE 91 66 B6 04 01 00 00 43 00 64 C7 6D 70 F9 76 [08:16:40]CommunicateWithHost err = 0 [08:16:40]CheckOFDResponse [08:16:40]1017 (14) - 77093643461234 [08:16:40]1041 (16) - 0000000000874718 [08:16:40]1040 (4) - 164475 [08:16:40]1012 (4) - 13.07.2024 01:55 [08:16:40]1206 (1) - 0 [08:16:40]OFD Sender: Remove packet 164475 [08:16:40]ProducePacketName [08:16:40]name=ofd_packets/00164475 [08:16:40]NVStorageDeleteData [08:16:40]Write to MH i2c: 01 00 00 83 0A 8D [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 07 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 F9 0C 99 [08:16:40]RasterBufferAndPrint [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]line [08:16:40]written 0, free lines is 3327 [08:16:40]MH_Cut [08:16:40]Write to MH i2c: D1 01 00 8A 0A 01 66 [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 01 00 [08:16:40]MH_I2C_Read... [08:16:40]Read from MH i2c: D1 01 00 8A 0A 00 65 [08:16:40]Write to MH i2c: 01 00 00 8B 0A 95 [08:16:40]Write i2c OK [08:16:40]MH_I2C_Read... [08:16:40]OFD Sender: No OFD packet to send [08:16:41]*** Cut start [08:16:41]*** Partial cut [08:16:41]*** CUTSNS_PIN = 1 [08:16:41]*** CUTSNS_PIN = 0 [08:16:41]*** Brake cut motor [08:16:41]Read from MH i2c: 01 [08:16:41]MH_I2C_Read... [08:16:41]*** Stop cut motor [08:16:41]*** Cut end [08:16:41]Read from MH i2c: 01 07 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [08:16:41]process_action close_receipt done [08:16:41]requested_data is exist [08:16:41]produce_requested_data [08:16:41]requested_item fm.sn is exist - process it [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 11 00 00 [08:16:41]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [08:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:16:41]wFMCommunicate OK [08:16:41]requested_item fd.num is exist - process it [08:16:41]SAM_PROTO_GetFieldsCounters [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 00 00 [08:16:41]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:41]Read from MH i2c: E2 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: E2 62 00 8D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 82 02 00 0E 04 04 00 BE 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 61 [08:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:41]wFMCommunicate OK [08:16:41]SAM_PROTO_GetFieldsCounters done [08:16:41]requested_item shift.num is exist - process it [08:16:41]requested_item shift.opened is exist - process it [08:16:41]req_shift_opened [08:16:41]FM_GetShiftState [08:16:41]SAM_PROTO_GetShiftState [08:16:41]wFMCommunicate request_size=4 [08:16:41]MH_SAM_APDU [08:16:41]CAPDU: 80 13 01 00 [08:16:41]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:42]Read from MH i2c: E2 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0E 00 [08:16:42]MH_I2C_Read... [08:16:42]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [08:16:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:16:42]wFMCommunicate OK [08:16:42]SAM_PROTO_GetShiftState done [08:16:42]FM_GetShiftState done [08:16:42]req_shift_opened done [08:16:42]requested_item shift.open_date is exist - process it [08:16:42]req_shift_open_date [08:16:42]req_shift_open_date done [08:16:42]produce_requested_data done [08:16:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164475,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:16:42]process_action_free close_receipt [08:16:42]json_value_free [08:16:42]json_value_free done [08:16:42]process_json_proto returns [08:16:42]Send response to host [08:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164475,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:16:42]free response buf [08:16:42]execute_script done [08:16:42]execute_script returns [08:16:42]free content buf [08:16:42]Sock 7.Close socket [08:16:42]Sock 7.Thread stoped [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:32]accept exits with 9 [08:17:32]New connection [08:17:32]New thread 3067301220 created [08:17:32]Thread 3067157860 joined [08:17:32]Waiting for new connection... [08:17:32] Sock 9.Parse request [08:17:32]Sock 9.Check first char [08:17:32]Sock 9.First char is OK [08:17:32]request: POST /json_proto HTTP/1.0 [08:17:32]Method: POST [08:17:32]URL: /json_proto [08:17:32]Method is POST - this is cgi request [08:17:32]url: /json_proto [08:17:32]query_string will be loaded in cgi processing [08:17:32]execute_cgi json_proto POST (null) [08:17:32]execute_cgi path=json_proto method=POST [08:17:32]POST find Content-Length [08:17:32]Host: 172.17.56.4:8080 [08:17:32]Content-Length: 679 [08:17:32]Content-Type: application/json [08:17:32] [08:17:32]POST finish read [08:17:32]Found Content-Length = 679 [08:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:32]execute_script... [08:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:32]POST & json_proto [08:17:32]process_json_proto [08:17:32]json parsed OK: [08:17:32]protocol is kg_v1.0 [08:17:32]action value=close_receipt [08:17:32]process_action close_receipt [08:17:32]cmd_close_receipt [08:17:32]MH_GetDate [08:17:32]Write to MH i2c: F0 00 00 8F 0A 88 [08:17:32]Write i2c OK [08:17:32]MH_I2C_Read... [08:17:32]Read from MH i2c: F0 [08:17:32]MH_I2C_Read... [08:17:32]Read from MH i2c: F0 09 00 [08:17:32]MH_I2C_Read... [08:17:32]Read from MH i2c: F0 09 00 8F 0A 00 1E 38 92 66 C9 DC B2 64 9A [08:17:32]GetLastDocTimeStamp 1720858600 [08:17:32]current date 1720858654 [08:17:32]FM_GetShiftState [08:17:32]SAM_PROTO_GetShiftState [08:17:32]wFMCommunicate request_size=4 [08:17:32]MH_SAM_APDU [08:17:32]CAPDU: 80 13 01 00 [08:17:32]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [08:17:32]Write i2c OK [08:17:32]MH_I2C_Read... [08:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:32]Read from MH i2c: E2 [08:17:32]MH_I2C_Read... [08:17:32]Read from MH i2c: E2 0E 00 [08:17:32]MH_I2C_Read... [08:17:32]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F8 [08:17:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:17:32]wFMCommunicate OK [08:17:32]SAM_PROTO_GetShiftState done [08:17:32]FM_GetShiftState done [08:17:32]opened in 1720831249 [08:17:32]opened+sec_in_day 1720917649 [08:17:32]quantity*price = 100012 [08:17:32]sum+1 = 100014 [08:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 36 13.07.2024 08:17 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164476 ФПД: 20531319004291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164476&fm=20531319004291&tin=02508201610067®Number=0000000000090829&sum=100000 [08:17:33]StoreToDocumentArchive [08:17:33]shift 446 fd 164476 [08:17:33]save to /storage/0446/doc_00164476 [08:17:33]save last doc name /storage/0446/doc_00164476 to /storage/kkm_last_doc_name [08:17:33]save OK [08:17:33]Clear old archive folders... [08:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:17:33]tlvbuf is 00B72A90 [08:17:33]SAM_PROTO_ClearQueue [08:17:33]wFMCommunicate request_size=4 [08:17:33]MH_SAM_APDU [08:17:33]CAPDU: 80 09 00 00 [08:17:33]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [08:17:33]Write i2c OK [08:17:33]MH_I2C_Read... [08:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:33]Read from MH i2c: E2 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 03 00 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [08:17:33]RAPDU: 90 00 [08:17:33]wFMCommunicate OK [08:17:33]SAM_PROTO_ClearQueue done [08:17:33]KKMCreateOFDPacket [08:17:33]OFDProtocolAddRootSTLVToBuf [08:17:33]FM_MakeSignedData [08:17:33]FM_MakeSignedData [08:17:33]SAM_PROTO_SignData [08:17:33]wFMCommunicate request_size=4 [08:17:33]MH_SAM_APDU [08:17:33]CAPDU: 80 0D 01 02 [08:17:33]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [08:17:33]Write i2c OK [08:17:33]MH_I2C_Read... [08:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:33]Read from MH i2c: E2 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 03 00 [08:17:33]MH_I2C_Read... [08:17:33]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [08:17:33]RAPDU: 90 00 [08:17:33]wFMCommunicate OK [08:17:33]wFMCommunicate request_size=255 [08:17:33]MH_SAM_APDU [08:17:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 1E 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 82 02 00 35 04 06 00 12 AC 51 F9 [08:17:33]Write to MH i2c: E2 02 01 9F 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 1E 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 82 02 00 35 04 06 00 12 AC 51 F9 00 00 1B [08:17:33]Write i2c OK [08:17:33]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]wFMCommunicate request_size=7 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 0D 02 02 02 DC 83 [08:17:34]Write to MH i2c: E2 0A 00 A0 0A 80 0D 02 02 02 00 DC 83 00 00 87 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [08:17:34]RAPDU: 90 00 [08:17:34]wFMCommunicate OK [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 0D 03 02 [08:17:34]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 0B 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 0B 00 A1 0A 00 66 6E 0D 45 EE 8D 1D F2 90 00 D7 [08:17:34]RAPDU: 66 6E 0D 45 EE 8D 1D F2 90 00 [08:17:34]wFMCommunicate OK [08:17:34]SAM_PROTO_SignData done [08:17:34]FM_MakeSignedData done [08:17:34]CreateOFDProtocolMessage [08:17:34]wFMCommunicate request_size=4 [08:17:34]MH_SAM_APDU [08:17:34]CAPDU: 80 11 00 00 [08:17:34]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:34]Read from MH i2c: E2 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 17 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [08:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:17:34]wFMCommunicate OK [08:17:34]CreateOFDProtocolMessage done [08:17:34]OFDSenderStorePacket 164476 [08:17:34]StoreOFDPacket docnum=164476 [08:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D6 DF 04 01 55 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 1E 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 82 02 00 35 04 06 00 12 AC 51 F9 DC 83 66 6E 0D 45 EE 8D 1D F2 [08:17:34]CheckFolder [08:17:34]dirname=/storage/ofd_packets [08:17:34]CheckFolder done [08:17:34]ProducePacketName [08:17:34]name=ofd_packets/00164476 [08:17:34]NVStorageSaveData ofd_packets/00164476 [08:17:34]File name is /storage/ofd_packets/00164476 [08:17:34]Write 298 bytes [08:17:34]NVStorageSaveData done [08:17:34]OFDSenderStorePacket done [08:17:34]KKMCreateOFDPacket done [08:17:34]NVStorageSaveData kkm_last_timestamp [08:17:34]File name is /storage/kkm_last_timestamp [08:17:34]Write 4 bytes [08:17:34]NVStorageSaveData done [08:17:34]ExternCall_PrintAddStr [08:17:34]wPrintStart [08:17:34]Write to MH i2c: 01 00 00 A3 0A AD [08:17:34]Write i2c OK [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 07 00 [08:17:34]MH_I2C_Read... [08:17:34]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [08:17:34]RasterBufferAndPrint [08:17:34]line Счет N : (1)458563 [08:17:34]line ИНН: 02508201610067 [08:17:34]line Контрольно-Кассовый Чек [08:17:34]line ПРОДАЖА [08:17:34]line ТРК (МРК, ГНК) : 21 [08:17:34]line Товар: 2710194210 [08:17:34]line ДТ-К-5 [08:17:34]line 13.910 * 71.90 [08:17:34]line = 1000.13 [08:17:34]line НДС 12% НСП 1% [08:17:34]line > о реализуемом товаре [08:17:34]line ОКРУГЛЕНИЕ: -0.13 [08:17:34]line ИТОГО: 1000.00 [08:17:34]line Внесено: 1000.00 [08:17:34]line СДАЧА: 0.00 [08:17:34]line НСП 1% : 8.85 [08:17:34]line НДС 12% : 106.21 [08:17:34]line Наличными: 1000.00 [08:17:34]line Безнал.: 0.00 [08:17:34]line Место: АЗС № 72 "Партнер Нефть" [08:17:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:17:34]line СНО: Общий режим [08:17:34]line Чек 36 13.07.2024 08:17 [08:17:34]line Смена: 446 ФФД: 1.0 [08:17:34]line ЗНМ: 0300000160 [08:17:34]line РНМ: 0000000000090829 [08:17:34]line Версия ККМ: 001 [08:17:34]line ФМ: 0000000000874718 [08:17:34]line ФД: 164476 [08:17:34]line ФПД: 20531319004291 [08:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164476&fm=20531319004291&tin=02508201610067®Number=0000000000090829&sum=100000 [08:17:34]OFD Sender: Processing packet 164476 [packets to send 104, broken 103] [08:17:34]ProducePacketName [08:17:34]name=ofd_packets/00164476 [08:17:34]OFD Sender: To server: pG, [08:17:34]CommunicateWithHost lk.salyk.kg:30040 [08:17:34]ConnectInit lk.salyk.kg [08:17:34]written 0, free lines is 4095 [08:17:34]Connected sock=7 [08:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D6 DF 04 01 55 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 24 00 00 00 F4 03 04 00 1E 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 82 02 00 35 04 06 00 12 AC 51 F9 DC 83 66 6E 0D 45 EE 8D 1D F2 [08:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E 3D 47 00 C9 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 34 37 31 38 10 04 04 00 7C 82 02 00 F4 03 04 00 B0 DE 91 66 B6 04 01 00 00 1A 0D 57 FC 8D 48 8F BD [08:17:34]CommunicateWithHost err = 0 [08:17:34]CheckOFDResponse [08:17:34]1017 (14) - 77093643461234 [08:17:34]1041 (16) - 0000000000874718 [08:17:34]1040 (4) - 164476 [08:17:34]1012 (4) - 13.07.2024 01:56 [08:17:34]1206 (1) - 0 [08:17:34]OFD Sender: Remove packet 164476 [08:17:34]ProducePacketName [08:17:34]name=ofd_packets/00164476 [08:17:34]NVStorageDeleteData [08:17:35]Write to MH i2c: 01 00 00 CD 0A D7 [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 07 00 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 02 0D ED [08:17:35]RasterBufferAndPrint [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]line [08:17:35]written 0, free lines is 3336 [08:17:35]MH_Cut [08:17:35]Write to MH i2c: D1 01 00 D4 0A 01 B0 [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 01 00 [08:17:35]MH_I2C_Read... [08:17:35]Read from MH i2c: D1 01 00 D4 0A 00 AF [08:17:35]Write to MH i2c: 01 00 00 D5 0A DF [08:17:35]Write i2c OK [08:17:35]MH_I2C_Read... [08:17:35]OFD Sender: No OFD packet to send [08:17:35]*** Cut start [08:17:35]*** Partial cut [08:17:35]*** CUTSNS_PIN = 1 [08:17:35]*** CUTSNS_PIN = 0 [08:17:36]*** Brake cut motor [08:17:36]Read from MH i2c: 01 [08:17:36]MH_I2C_Read... [08:17:36]*** Stop cut motor [08:17:36]*** Cut end [08:17:36]Read from MH i2c: 01 07 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [08:17:36]process_action close_receipt done [08:17:36]requested_data is exist [08:17:36]produce_requested_data [08:17:36]requested_item fm.sn is exist - process it [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 11 00 00 [08:17:36]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 17 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [08:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:17:36]wFMCommunicate OK [08:17:36]requested_item fd.num is exist - process it [08:17:36]SAM_PROTO_GetFieldsCounters [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 13 00 00 [08:17:36]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 62 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 62 00 D7 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 82 02 00 0E 04 04 00 BE 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 AF [08:17:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 82 02 00 0E 04 04 00 BE 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 [08:17:36]wFMCommunicate OK [08:17:36]SAM_PROTO_GetFieldsCounters done [08:17:36]requested_item shift.num is exist - process it [08:17:36]requested_item shift.opened is exist - process it [08:17:36]req_shift_opened [08:17:36]FM_GetShiftState [08:17:36]SAM_PROTO_GetShiftState [08:17:36]wFMCommunicate request_size=4 [08:17:36]MH_SAM_APDU [08:17:36]CAPDU: 80 13 01 00 [08:17:36]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [08:17:36]Write i2c OK [08:17:36]MH_I2C_Read... [08:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:36]Read from MH i2c: E2 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 0E 00 [08:17:36]MH_I2C_Read... [08:17:36]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 40 [08:17:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:17:36]wFMCommunicate OK [08:17:36]SAM_PROTO_GetShiftState done [08:17:36]FM_GetShiftState done [08:17:36]req_shift_opened done [08:17:36]requested_item shift.open_date is exist - process it [08:17:36]req_shift_open_date [08:17:36]req_shift_open_date done [08:17:36]produce_requested_data done [08:17:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164476,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:17:36]process_action_free close_receipt [08:17:36]json_value_free [08:17:36]json_value_free done [08:17:36]process_json_proto returns [08:17:36]Send response to host [08:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164476,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:17:36]free response buf [08:17:36]execute_script done [08:17:36]execute_script returns [08:17:36]free content buf [08:17:36]Sock 9.Close socket [08:17:36]Sock 9.Thread stoped [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:18:56]accept exits with 10 [08:18:56]New connection [08:18:56]New thread 3067157860 created [08:18:56]Thread 3067301220 joined [08:18:56]Waiting for new connection... [08:18:56] Sock 10.Parse request [08:18:56]Sock 10.Check first char [08:18:56]Sock 10.First char is OK [08:18:56]request: POST /json_proto HTTP/1.0 [08:18:56]Method: POST [08:18:56]URL: /json_proto [08:18:56]Method is POST - this is cgi request [08:18:56]url: /json_proto [08:18:56]query_string will be loaded in cgi processing [08:18:56]execute_cgi json_proto POST (null) [08:18:56]execute_cgi path=json_proto method=POST [08:18:56]POST find Content-Length [08:18:56]Host: 172.17.56.4:8080 [08:18:56]Content-Length: 678 [08:18:56]Content-Type: application/json [08:18:56] [08:18:56]POST finish read [08:18:56]Found Content-Length = 678 [08:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:18:56]execute_script... [08:18: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)458564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:18:56]POST & json_proto [08:18:56]process_json_proto [08:18:56]json parsed OK: [08:18:56]protocol is kg_v1.0 [08:18:56]action value=close_receipt [08:18:56]process_action close_receipt [08:18:56]cmd_close_receipt [08:18:56]MH_GetDate [08:18:56]Write to MH i2c: F0 00 00 D9 0A D2 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 09 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: F0 09 00 D9 0A 00 72 38 92 66 C9 DC B2 64 38 [08:18:56]GetLastDocTimeStamp 1720858654 [08:18:56]current date 1720858738 [08:18:56]FM_GetShiftState [08:18:56]SAM_PROTO_GetShiftState [08:18:56]wFMCommunicate request_size=4 [08:18:56]MH_SAM_APDU [08:18:56]CAPDU: 80 13 01 00 [08:18:56]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:56]Read from MH i2c: E2 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 42 [08:18:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:18:56]wFMCommunicate OK [08:18:56]SAM_PROTO_GetShiftState done [08:18:56]FM_GetShiftState done [08:18:56]opened in 1720831249 [08:18:56]opened+sec_in_day 1720917649 [08:18:56]quantity*price = 70011 [08:18:56]sum+1 = 70012 [08:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 37 13.07.2024 08:18 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164477 ФПД: 182744948023071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164477&fm=182744948023071&tin=02508201610067®Number=0000000000090829&sum=70000 [08:18:57]StoreToDocumentArchive [08:18:57]shift 446 fd 164477 [08:18:57]save to /storage/0446/doc_00164477 [08:18:57]save last doc name /storage/0446/doc_00164477 to /storage/kkm_last_doc_name [08:18:57]save OK [08:18:57]Clear old archive folders... [08:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:57]tlvbuf is 00B89A60 [08:18:57]SAM_PROTO_ClearQueue [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 09 00 00 [08:18:57]Write to MH i2c: E2 08 00 E7 0A 80 09 00 00 00 00 00 00 63 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]SAM_PROTO_ClearQueue done [08:18:57]KKMCreateOFDPacket [08:18:57]OFDProtocolAddRootSTLVToBuf [08:18:57]FM_MakeSignedData [08:18:57]FM_MakeSignedData [08:18:57]SAM_PROTO_SignData [08:18:57]wFMCommunicate request_size=4 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 0D 01 02 [08:18:57]Write to MH i2c: E2 08 00 E8 0A 80 0D 01 02 00 00 00 00 6B [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]wFMCommunicate request_size=255 [08:18:57]MH_SAM_APDU [08:18: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 25 00 00 00 F4 03 04 00 72 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 82 02 00 35 04 06 00 A6 [08:18:57]Write to MH i2c: E2 02 01 E9 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 25 00 00 00 F4 03 04 00 72 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 82 02 00 35 04 06 00 A6 00 00 55 [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 [08:18:57]MH_I2C_Read... [08:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:57]Read from MH i2c: E2 03 00 [08:18:57]MH_I2C_Read... [08:18:57]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [08:18:57]RAPDU: 90 00 [08:18:57]wFMCommunicate OK [08:18:57]wFMCommunicate request_size=10 [08:18:57]MH_SAM_APDU [08:18:57]CAPDU: 80 0D 02 02 05 34 9F B6 1F 1F [08:18:57]Write to MH i2c: E2 0D 00 EA 0A 80 0D 02 02 05 00 34 9F B6 1F 1F 00 00 3F [08:18:57]Write i2c OK [08:18:57]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [08:18:58]RAPDU: 90 00 [08:18:58]wFMCommunicate OK [08:18:58]wFMCommunicate request_size=4 [08:18:58]MH_SAM_APDU [08:18:58]CAPDU: 80 0D 03 02 [08:18:58]Write to MH i2c: E2 08 00 EB 0A 80 0D 03 02 00 00 00 00 70 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 0B 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 0B 00 EB 0A 00 2D 30 3F 60 4D B8 76 02 90 00 EA [08:18:58]RAPDU: 2D 30 3F 60 4D B8 76 02 90 00 [08:18:58]wFMCommunicate OK [08:18:58]SAM_PROTO_SignData done [08:18:58]FM_MakeSignedData done [08:18:58]CreateOFDProtocolMessage [08:18:58]wFMCommunicate request_size=4 [08:18:58]MH_SAM_APDU [08:18:58]CAPDU: 80 11 00 00 [08:18:58]Write to MH i2c: E2 08 00 EC 0A 80 11 00 00 00 00 00 00 70 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:58]Read from MH i2c: E2 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 17 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: E2 17 00 EC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [08:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:18:58]wFMCommunicate OK [08:18:58]CreateOFDProtocolMessage done [08:18:58]OFDSenderStorePacket 164477 [08:18:58]StoreOFDPacket docnum=164477 [08:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 48 00 07 01 2A 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 25 00 00 00 F4 03 04 00 72 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 82 02 00 35 04 06 00 A6 34 9F B6 1F 1F 2D 30 3F 60 4D B8 76 02 [08:18:58]CheckFolder [08:18:58]dirname=/storage/ofd_packets [08:18:58]CheckFolder done [08:18:58]ProducePacketName [08:18:58]name=ofd_packets/00164477 [08:18:58]NVStorageSaveData ofd_packets/00164477 [08:18:58]File name is /storage/ofd_packets/00164477 [08:18:58]Write 301 bytes [08:18:58]NVStorageSaveData done [08:18:58]OFDSenderStorePacket done [08:18:58]KKMCreateOFDPacket done [08:18:58]NVStorageSaveData kkm_last_timestamp [08:18:58]File name is /storage/kkm_last_timestamp [08:18:58]Write 4 bytes [08:18:58]NVStorageSaveData done [08:18:58]ExternCall_PrintAddStr [08:18:58]wPrintStart [08:18:58]Write to MH i2c: 01 00 00 ED 0A F7 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [08:18:58]RasterBufferAndPrint [08:18:58]line Счет N : (1)458564 [08:18:58]line ИНН: 02508201610067 [08:18:58]line Контрольно-Кассовый Чек [08:18:58]line ПРОДАЖА [08:18:58]line ТРК (МРК, ГНК) : 12 [08:18:58]line Товар: 2710124130 [08:18:58]line Аи-92-К-5 [08:18:58]line 10.640 * 65.80 [08:18:58]line = 700.11 [08:18:58]line НДС 12% НСП 1% [08:18:58]line > о реализуемом товаре [08:18:58]line ОКРУГЛЕНИЕ: -0.11 [08:18:58]line ИТОГО: 700.00 [08:18:58]line Внесено: 700.00 [08:18:58]line СДАЧА: 0.00 [08:18:58]line НСП 1% : 6.20 [08:18:58]line НДС 12% : 74.35 [08:18:58]line Наличными: 700.00 [08:18:58]line Безнал.: 0.00 [08:18:58]line Место: АЗС № 72 "Партнер Нефть" [08:18:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:18:58]line СНО: Общий режим [08:18:58]line Чек 37 13.07.2024 08:18 [08:18:58]line Смена: 446 ФФД: 1.0 [08:18:58]line ЗНМ: 0300000160 [08:18:58]line РНМ: 0000000000090829 [08:18:58]line Версия ККМ: 001 [08:18:58]line ФМ: 0000000000874718 [08:18:58]line ФД: 164477 [08:18:58]line ФПД: 182744948023071 [08:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164477&fm=182744948023071&tin=02508201610067®Number=0000000000090829&sum=70000 [08:18:58]OFD Sender: Processing packet 164477 [packets to send 104, broken 103] [08:18:58]ProducePacketName [08:18:58]name=ofd_packets/00164477 [08:18:58]OFD Sender: To server: pG, [08:18:58]CommunicateWithHost lk.salyk.kg:30040 [08:18:58]ConnectInit lk.salyk.kg [08:18:58]written 0, free lines is 4095 [08:18:58]Connected sock=9 [08:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 48 00 07 01 2A 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 25 00 00 00 F4 03 04 00 72 38 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 82 02 00 35 04 06 00 A6 34 9F B6 1F 1F 2D 30 3F 60 4D B8 76 02 [08:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B CE 47 00 0D 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 34 37 31 38 10 04 04 00 7D 82 02 00 F4 03 04 00 04 DF 91 66 B6 04 01 00 00 97 8D 3B 8E 09 3A D5 53 [08:18:58]CommunicateWithHost err = 0 [08:18:58]CheckOFDResponse [08:18:58]1017 (14) - 77093643461234 [08:18:58]1041 (16) - 0000000000874718 [08:18:58]1040 (4) - 164477 [08:18:58]1012 (4) - 13.07.2024 01:57 [08:18:58]1206 (1) - 0 [08:18:58]OFD Sender: Remove packet 164477 [08:18:58]ProducePacketName [08:18:58]name=ofd_packets/00164477 [08:18:58]NVStorageDeleteData [08:18:58]Write to MH i2c: 01 00 00 17 0B 22 [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: 01 07 00 17 0B 00 00 00 00 00 02 0D 38 [08:18:58]RasterBufferAndPrint [08:18:58]line [08:18:58]line [08:18:58]line [08:18:58]line [08:18:58]line [08:18:58]written 0, free lines is 3336 [08:18:58]MH_Cut [08:18:58]Write to MH i2c: D1 01 00 1E 0B 01 FB [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: D1 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: D1 01 00 [08:18:58]MH_I2C_Read... [08:18:58]Read from MH i2c: D1 01 00 1E 0B 00 FA [08:18:58]Write to MH i2c: 01 00 00 1F 0B 2A [08:18:58]Write i2c OK [08:18:58]MH_I2C_Read... [08:18:59]OFD Sender: No OFD packet to send [08:18:59]*** Cut start [08:18:59]*** Partial cut [08:18:59]*** CUTSNS_PIN = 1 [08:18:59]*** CUTSNS_PIN = 0 [08:18:59]*** Brake cut motor [08:19:00]Read from MH i2c: 01 [08:19:00]MH_I2C_Read... [08:19:00]*** Stop cut motor [08:19:00]*** Cut end [08:19:00]Read from MH i2c: 01 07 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [08:19:00]process_action close_receipt done [08:19:00]requested_data is exist [08:19:00]produce_requested_data [08:19:00]requested_item fm.sn is exist - process it [08:19:00]wFMCommunicate request_size=4 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 11 00 00 [08:19:00]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [08:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:19:00]wFMCommunicate OK [08:19:00]requested_item fd.num is exist - process it [08:19:00]SAM_PROTO_GetFieldsCounters [08:19:00]wFMCommunicate request_size=4 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 13 00 00 [08:19:00]Write to MH i2c: E2 08 00 21 0B 80 13 00 00 00 00 00 00 A8 [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 62 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 62 00 21 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 82 02 00 0E 04 04 00 BE 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 FE [08:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 82 02 00 0E 04 04 00 BE 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 [08:19:00]wFMCommunicate OK [08:19:00]SAM_PROTO_GetFieldsCounters done [08:19:00]requested_item shift.num is exist - process it [08:19:00]requested_item shift.opened is exist - process it [08:19:00]req_shift_opened [08:19:00]FM_GetShiftState [08:19:00]SAM_PROTO_GetShiftState [08:19:00]wFMCommunicate request_size=4 [08:19:00]MH_SAM_APDU [08:19:00]CAPDU: 80 13 01 00 [08:19:00]Write to MH i2c: E2 08 00 22 0B 80 13 01 00 00 00 00 00 AA [08:19:00]Write i2c OK [08:19:00]MH_I2C_Read... [08:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:00]Read from MH i2c: E2 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 0E 00 [08:19:00]MH_I2C_Read... [08:19:00]Read from MH i2c: E2 0E 00 22 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8B [08:19:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:19:00]wFMCommunicate OK [08:19:00]SAM_PROTO_GetShiftState done [08:19:00]FM_GetShiftState done [08:19:00]req_shift_opened done [08:19:00]requested_item shift.open_date is exist - process it [08:19:00]req_shift_open_date [08:19:00]req_shift_open_date done [08:19:00]produce_requested_data done [08:19:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164477,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:19:00]process_action_free close_receipt [08:19:00]json_value_free [08:19:00]json_value_free done [08:19:00]process_json_proto returns [08:19:00]Send response to host [08:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164477,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:19:00]free response buf [08:19:00]execute_script done [08:19:00]execute_script returns [08:19:00]free content buf [08:19:00]Sock 10.Close socket [08:19:00]Sock 10.Thread stoped [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:39]accept exits with 7 [08:24:39]New connection [08:24:39]New thread 3067301220 created [08:24:39]Thread 3067157860 joined [08:24:39]Waiting for new connection... [08:24:39] Sock 7.Parse request [08:24:39]Sock 7.Check first char [08:24:39]Sock 7.First char is OK [08:24:39]request: POST /json_proto HTTP/1.0 [08:24:39]Method: POST [08:24:39]URL: /json_proto [08:24:39]Method is POST - this is cgi request [08:24:39]url: /json_proto [08:24:39]query_string will be loaded in cgi processing [08:24:39]execute_cgi json_proto POST (null) [08:24:39]execute_cgi path=json_proto method=POST [08:24:39]POST find Content-Length [08:24:39]Host: 172.17.56.4:8080 [08:24:39]Content-Length: 674 [08:24:39]Content-Type: application/json [08:24:39] [08:24:39]POST finish read [08:24:39]Found Content-Length = 674 [08:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:24:39]execute_script... [08: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)458565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:24:39]POST & json_proto [08:24:39]process_json_proto [08:24:39]json parsed OK: [08:24:39]protocol is kg_v1.0 [08:24:39]action value=close_receipt [08:24:39]process_action close_receipt [08:24:39]cmd_close_receipt [08:24:39]MH_GetDate [08:24:39]Write to MH i2c: F0 00 00 23 0B 1D [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: F0 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: F0 09 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: F0 09 00 23 0B 00 C9 39 92 66 C9 DC B2 64 DB [08:24:39]GetLastDocTimeStamp 1720858738 [08:24:39]current date 1720859081 [08:24:39]FM_GetShiftState [08:24:39]SAM_PROTO_GetShiftState [08:24:39]wFMCommunicate request_size=4 [08:24:39]MH_SAM_APDU [08:24:39]CAPDU: 80 13 01 00 [08:24:39]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:40]Read from MH i2c: E2 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: E2 0E 00 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8D [08:24:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:24:40]wFMCommunicate OK [08:24:40]SAM_PROTO_GetShiftState done [08:24:40]FM_GetShiftState done [08:24:40]opened in 1720831249 [08:24:40]opened+sec_in_day 1720917649 [08:24:40]quantity*price = 50042 [08:24:40]sum+1 = 50043 [08:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 38 13.07.2024 08:24 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164478 ФПД: 232042698103213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164478&fm=232042698103213&tin=02508201610067®Number=0000000000090829&sum=50000 [08:24:41]StoreToDocumentArchive [08:24:41]shift 446 fd 164478 [08:24:41]save to /storage/0446/doc_00164478 [08:24:41]save last doc name /storage/0446/doc_00164478 to /storage/kkm_last_doc_name [08:24:41]save OK [08:24:41]Clear old archive folders... [08:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:24:41]tlvbuf is 00B7BE00 [08:24:41]SAM_PROTO_ClearQueue [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 09 00 00 [08:24:41]Write to MH i2c: E2 08 00 31 0B 80 09 00 00 00 00 00 00 AE [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [08:24:41]RAPDU: 90 00 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_ClearQueue done [08:24:41]KKMCreateOFDPacket [08:24:41]OFDProtocolAddRootSTLVToBuf [08:24:41]FM_MakeSignedData [08:24:41]FM_MakeSignedData [08:24:41]SAM_PROTO_SignData [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 0D 01 02 [08:24:41]Write to MH i2c: E2 08 00 32 0B 80 0D 01 02 00 00 00 00 B6 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [08:24:41]RAPDU: 90 00 [08:24:41]wFMCommunicate OK [08:24:41]wFMCommunicate request_size=255 [08:24:41]MH_SAM_APDU [08:24: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C9 39 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 82 02 00 35 04 06 00 D3 0A A6 97 [08:24:41]Write to MH i2c: E2 02 01 33 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C9 39 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 82 02 00 35 04 06 00 D3 0A A6 97 00 00 86 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [08:24:41]RAPDU: 90 00 [08:24:41]wFMCommunicate OK [08:24:41]wFMCommunicate request_size=7 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 0D 02 02 02 D9 AD [08:24:41]Write to MH i2c: E2 0A 00 34 0B 80 0D 02 02 02 00 D9 AD 00 00 43 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [08:24:41]RAPDU: 90 00 [08:24:41]wFMCommunicate OK [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 0D 03 02 [08:24:41]Write to MH i2c: E2 08 00 35 0B 80 0D 03 02 00 00 00 00 BB [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0B 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0B 00 35 0B 00 A2 1E 25 68 14 AE 8E 6C 90 00 C5 [08:24:41]RAPDU: A2 1E 25 68 14 AE 8E 6C 90 00 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_SignData done [08:24:41]FM_MakeSignedData done [08:24:41]CreateOFDProtocolMessage [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 11 00 00 [08:24:41]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 17 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [08:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:24:41]wFMCommunicate OK [08:24:41]CreateOFDProtocolMessage done [08:24:41]OFDSenderStorePacket 164478 [08:24:41]StoreOFDPacket docnum=164478 [08:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0F BD 04 01 84 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C9 39 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 82 02 00 35 04 06 00 D3 0A A6 97 D9 AD A2 1E 25 68 14 AE 8E 6C [08:24:41]CheckFolder [08:24:41]dirname=/storage/ofd_packets [08:24:41]CheckFolder done [08:24:41]ProducePacketName [08:24:41]name=ofd_packets/00164478 [08:24:41]NVStorageSaveData ofd_packets/00164478 [08:24:41]File name is /storage/ofd_packets/00164478 [08:24:41]Write 298 bytes [08:24:41]NVStorageSaveData done [08:24:41]OFDSenderStorePacket done [08:24:41]KKMCreateOFDPacket done [08:24:41]NVStorageSaveData kkm_last_timestamp [08:24:41]File name is /storage/kkm_last_timestamp [08:24:41]Write 4 bytes [08:24:41]NVStorageSaveData done [08:24:41]ExternCall_PrintAddStr [08:24:41]wPrintStart [08:24:41]Write to MH i2c: 01 00 00 37 0B 42 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: 01 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: 01 07 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [08:24:41]RasterBufferAndPrint [08:24:41]line Счет N : (1)458565 [08:24:41]line ИНН: 02508201610067 [08:24:41]line Контрольно-Кассовый Чек [08:24:41]line ПРОДАЖА [08:24:41]line ТРК (МРК, ГНК) : 21 [08:24:41]line Товар: 2710194210 [08:24:41]line ДТ-К-5 [08:24:41]line 6.960 * 71.90 [08:24:41]line = 500.42 [08:24:41]line НДС 12% НСП 1% [08:24:41]line > о реализуемом товаре [08:24:41]line ОКРУГЛЕНИЕ: -0.42 [08:24:41]line ИТОГО: 500.00 [08:24:41]line Внесено: 500.00 [08:24:41]line СДАЧА: 0.00 [08:24:41]line НСП 1% : 4.43 [08:24:41]line НДС 12% : 53.14 [08:24:41]line Наличными: 500.00 [08:24:41]line Безнал.: 0.00 [08:24:41]line Место: АЗС № 72 "Партнер Нефть" [08:24:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:24:41]line СНО: Общий режим [08:24:41]line Чек 38 13.07.2024 08:24 [08:24:41]line Смена: 446 ФФД: 1.0 [08:24:41]line ЗНМ: 0300000160 [08:24:41]line РНМ: 0000000000090829 [08:24:41]line Версия ККМ: 001 [08:24:41]line ФМ: 0000000000874718 [08:24:41]line ФД: 164478 [08:24:41]line ФПД: 232042698103213 [08:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082441&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164478&fm=232042698103213&tin=02508201610067®Number=0000000000090829&sum=50000 [08:24:42]OFD Sender: Processing packet 164478 [packets to send 104, broken 103] [08:24:42]ProducePacketName [08:24:42]name=ofd_packets/00164478 [08:24:42]OFD Sender: To server: pG, [08:24:42]CommunicateWithHost lk.salyk.kg:30040 [08:24:42]ConnectInit lk.salyk.kg [08:24:42]written 0, free lines is 4095 [08:24:42]Connected sock=9 [08: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 34 37 31 38 0C 01 00 00 0F BD 04 01 84 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C9 39 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 82 02 00 35 04 06 00 D3 0A A6 97 D9 AD A2 1E 25 68 14 AE 8E 6C [08:24:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 3F 47 00 8F C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 82 02 00 F4 03 04 00 5B E0 91 66 B6 04 01 00 00 F5 67 EF B9 EF 50 CB 86 [08:24:42]CommunicateWithHost err = 0 [08:24:42]CheckOFDResponse [08:24:42]1017 (14) - 77093643461234 [08:24:42]1041 (16) - 0000000000874718 [08:24:42]1040 (4) - 164478 [08:24:42]1012 (4) - 13.07.2024 02:03 [08:24:42]1206 (1) - 0 [08:24:42]OFD Sender: Remove packet 164478 [08:24:42]ProducePacketName [08:24:42]name=ofd_packets/00164478 [08:24:42]NVStorageDeleteData [08:24:42]Write to MH i2c: 01 00 00 61 0B 6C [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 06 0D 86 [08:24:42]RasterBufferAndPrint [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]line [08:24:42]written 0, free lines is 3340 [08:24:42]MH_Cut [08:24:42]Write to MH i2c: D1 01 00 68 0B 01 45 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 01 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D1 01 00 68 0B 00 44 [08:24:42]Write to MH i2c: 01 00 00 69 0B 74 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]OFD Sender: No OFD packet to send [08:24:43]*** Cut start [08:24:43]*** Partial cut [08:24:43]*** CUTSNS_PIN = 1 [08:24:43]*** CUTSNS_PIN = 0 [08:24:43]*** Brake cut motor [08:24:43]Read from MH i2c: 01 [08:24:43]MH_I2C_Read... [08:24:43]*** Stop cut motor [08:24:43]*** Cut end [08:24:43]Read from MH i2c: 01 07 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [08:24:43]process_action close_receipt done [08:24:43]requested_data is exist [08:24:43]produce_requested_data [08:24:43]requested_item fm.sn is exist - process it [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 11 00 00 [08:24:43]Write to MH i2c: E2 08 00 6A 0B 80 11 00 00 00 00 00 00 EF [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 17 00 6A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [08:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:24:43]wFMCommunicate OK [08:24:43]requested_item fd.num is exist - process it [08:24:43]SAM_PROTO_GetFieldsCounters [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 13 00 00 [08:24:43]Write to MH i2c: E2 08 00 6B 0B 80 13 00 00 00 00 00 00 F2 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 62 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 62 00 6B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 82 02 00 0E 04 04 00 BE 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 4C [08: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 82 02 00 0E 04 04 00 BE 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 [08:24:43]wFMCommunicate OK [08:24:43]SAM_PROTO_GetFieldsCounters done [08:24:43]requested_item shift.num is exist - process it [08:24:43]requested_item shift.opened is exist - process it [08:24:43]req_shift_opened [08:24:43]FM_GetShiftState [08:24:43]SAM_PROTO_GetShiftState [08:24:43]wFMCommunicate request_size=4 [08:24:43]MH_SAM_APDU [08:24:43]CAPDU: 80 13 01 00 [08:24:43]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [08:24:43]Write i2c OK [08:24:43]MH_I2C_Read... [08:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:43]Read from MH i2c: E2 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0E 00 [08:24:43]MH_I2C_Read... [08:24:43]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D5 [08:24:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:24:43]wFMCommunicate OK [08:24:43]SAM_PROTO_GetShiftState done [08:24:43]FM_GetShiftState done [08:24:43]req_shift_opened done [08:24:43]requested_item shift.open_date is exist - process it [08:24:43]req_shift_open_date [08:24:43]req_shift_open_date done [08:24:43]produce_requested_data done [08:24:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164478,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:24:43]process_action_free close_receipt [08:24:43]json_value_free [08:24:43]json_value_free done [08:24:43]process_json_proto returns [08:24:43]Send response to host [08:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164478,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:24:43]free response buf [08:24:43]execute_script done [08:24:44]execute_script returns [08:24:44]free content buf [08:24:44]Sock 7.Close socket [08:24:44]Sock 7.Thread stoped [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:25]accept exits with 10 [08:26:25]New connection [08:26:25]New thread 3067157860 created [08:26:25]Thread 3067301220 joined [08:26:25]Waiting for new connection... [08:26:25] Sock 10.Parse request [08:26:25]Sock 10.Check first char [08:26:25]Sock 10.First char is OK [08:26:25]request: POST /json_proto HTTP/1.0 [08:26:25]Method: POST [08:26:25]URL: /json_proto [08:26:25]Method is POST - this is cgi request [08:26:25]url: /json_proto [08:26:25]query_string will be loaded in cgi processing [08:26:25]execute_cgi json_proto POST (null) [08:26:25]execute_cgi path=json_proto method=POST [08:26:25]POST find Content-Length [08:26:25]Host: 172.17.56.4:8080 [08:26:25]Content-Length: 677 [08:26:25]Content-Type: application/json [08:26:25] [08:26:25]POST finish read [08:26:25]Found Content-Length = 677 [08:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:25]execute_script... [08:26:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:25]POST & json_proto [08:26:25]process_json_proto [08:26:25]json parsed OK: [08:26:25]protocol is kg_v1.0 [08:26:25]action value=close_receipt [08:26:25]process_action close_receipt [08:26:25]cmd_close_receipt [08:26:25]MH_GetDate [08:26:25]Write to MH i2c: F0 00 00 6D 0B 67 [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: F0 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: F0 09 00 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: F0 09 00 6D 0B 00 33 3A 92 66 C9 DC B2 64 90 [08:26:25]GetLastDocTimeStamp 1720859081 [08:26:25]current date 1720859187 [08:26:25]FM_GetShiftState [08:26:25]SAM_PROTO_GetShiftState [08:26:25]wFMCommunicate request_size=4 [08:26:25]MH_SAM_APDU [08:26:25]CAPDU: 80 13 01 00 [08:26:25]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:25]Read from MH i2c: E2 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: E2 0E 00 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D7 [08:26:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:26:25]wFMCommunicate OK [08:26:25]SAM_PROTO_GetShiftState done [08:26:25]FM_GetShiftState done [08:26:25]opened in 1720831249 [08:26:25]opened+sec_in_day 1720917649 [08:26:25]quantity*price = 30004 [08:26:25]sum+1 = 30006 [08:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 39 13.07.2024 08:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164479 ФПД: 208550651496670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164479&fm=208550651496670&tin=02508201610067®Number=0000000000090829&sum=30000 [08:26:26]StoreToDocumentArchive [08:26:26]shift 446 fd 164479 [08:26:26]save to /storage/0446/doc_00164479 [08:26:26]save last doc name /storage/0446/doc_00164479 to /storage/kkm_last_doc_name [08:26:26]save OK [08:26:26]Clear old archive folders... [08:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:26]tlvbuf is 00B895A0 [08:26:26]SAM_PROTO_ClearQueue [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 09 00 00 [08:26:26]Write to MH i2c: E2 08 00 7B 0B 80 09 00 00 00 00 00 00 F8 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [08:26:26]RAPDU: 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_ClearQueue done [08:26:26]KKMCreateOFDPacket [08:26:26]OFDProtocolAddRootSTLVToBuf [08:26:26]FM_MakeSignedData [08:26:26]FM_MakeSignedData [08:26:26]SAM_PROTO_SignData [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 0D 01 02 [08:26:26]Write to MH i2c: E2 08 00 7C 0B 80 0D 01 02 00 00 00 00 00 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [08:26:26]RAPDU: 90 00 [08:26:26]wFMCommunicate OK [08:26:26]wFMCommunicate request_size=255 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 27 00 00 00 F4 03 04 00 33 3A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 82 02 00 35 04 06 00 BD [08:26:26]Write to MH i2c: E2 02 01 7D 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 27 00 00 00 F4 03 04 00 33 3A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 82 02 00 35 04 06 00 BD 00 00 45 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [08:26:26]RAPDU: 90 00 [08:26:26]wFMCommunicate OK [08:26:26]wFMCommunicate request_size=10 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 0D 02 02 05 AC FB 80 08 DE [08:26:26]Write to MH i2c: E2 0D 00 7E 0B 80 0D 02 02 05 00 AC FB 80 08 DE 00 00 1A [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [08:26:26]RAPDU: 90 00 [08:26:26]wFMCommunicate OK [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 0D 03 02 [08:26:26]Write to MH i2c: E2 08 00 7F 0B 80 0D 03 02 00 00 00 00 05 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0B 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0B 00 7F 0B 00 D2 EC FD 62 3F 5B 06 62 90 00 25 [08:26:26]RAPDU: D2 EC FD 62 3F 5B 06 62 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_SignData done [08:26:26]FM_MakeSignedData done [08:26:26]CreateOFDProtocolMessage [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 11 00 00 [08:26:26]Write to MH i2c: E2 08 00 80 0B 80 11 00 00 00 00 00 00 05 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 17 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 17 00 80 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [08:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:26:26]wFMCommunicate OK [08:26:26]CreateOFDProtocolMessage done [08:26:26]OFDSenderStorePacket 164479 [08:26:26]StoreOFDPacket docnum=164479 [08:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 42 07 01 9B 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 27 00 00 00 F4 03 04 00 33 3A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 82 02 00 35 04 06 00 BD AC FB 80 08 DE D2 EC FD 62 3F 5B 06 62 [08:26:26]CheckFolder [08:26:26]dirname=/storage/ofd_packets [08:26:26]CheckFolder done [08:26:26]ProducePacketName [08:26:26]name=ofd_packets/00164479 [08:26:26]NVStorageSaveData ofd_packets/00164479 [08:26:26]File name is /storage/ofd_packets/00164479 [08:26:26]Write 301 bytes [08:26:26]NVStorageSaveData done [08:26:26]OFDSenderStorePacket done [08:26:26]KKMCreateOFDPacket done [08:26:26]NVStorageSaveData kkm_last_timestamp [08:26:26]File name is /storage/kkm_last_timestamp [08:26:26]Write 4 bytes [08:26:26]NVStorageSaveData done [08:26:26]ExternCall_PrintAddStr [08:26:26]wPrintStart [08:26:26]Write to MH i2c: 01 00 00 81 0B 8C [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: 01 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: 01 07 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 FF 0F A1 [08:26:26]RasterBufferAndPrint [08:26:26]line Счет N : (1)458566 [08:26:26]line ИНН: 02508201610067 [08:26:26]line Контрольно-Кассовый Чек [08:26:26]line ПРОДАЖА [08:26:26]line ТРК (МРК, ГНК) : 22 [08:26:26]line Товар: 2710124130 [08:26:26]line Аи-92-К-5 [08:26:26]line 4.560 * 65.80 [08:26:26]line = 300.05 [08:26:26]line НДС 12% НСП 1% [08:26:26]line > о реализуемом товаре [08:26:26]line ОКРУГЛЕНИЕ: -0.05 [08:26:26]line ИТОГО: 300.00 [08:26:26]line Внесено: 300.00 [08:26:26]line СДАЧА: 0.00 [08:26:26]line НСП 1% : 2.65 [08:26:26]line НДС 12% : 31.86 [08:26:26]line Наличными: 300.00 [08:26:26]line Безнал.: 0.00 [08:26:26]line Место: АЗС № 72 "Партнер Нефть" [08:26:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:26:26]line СНО: Общий режим [08:26:26]line Чек 39 13.07.2024 08:26 [08:26:26]line Смена: 446 ФФД: 1.0 [08:26:26]line ЗНМ: 0300000160 [08:26:26]line РНМ: 0000000000090829 [08:26:26]line Версия ККМ: 001 [08:26:26]line ФМ: 0000000000874718 [08:26:26]line ФД: 164479 [08:26:26]line ФПД: 208550651496670 [08:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164479&fm=208550651496670&tin=02508201610067®Number=0000000000090829&sum=30000 [08:26:27]OFD Sender: Processing packet 164479 [packets to send 104, broken 103] [08:26:27]ProducePacketName [08:26:27]name=ofd_packets/00164479 [08:26:27]OFD Sender: To server: pG, [08:26:27]CommunicateWithHost lk.salyk.kg:30040 [08:26:27]ConnectInit lk.salyk.kg [08:26:27]written 0, free lines is 4095 [08:26:27]Connected sock=9 [08:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 42 07 01 9B 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 27 00 00 00 F4 03 04 00 33 3A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 82 02 00 35 04 06 00 BD AC FB 80 08 DE D2 EC FD 62 3F 5B 06 62 [08:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 56 E7 47 00 A8 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 34 37 31 38 10 04 04 00 7F 82 02 00 F4 03 04 00 C4 E0 91 66 B6 04 01 00 00 E8 79 B9 CF 77 71 E3 93 [08:26:27]CommunicateWithHost err = 0 [08:26:27]CheckOFDResponse [08:26:27]1017 (14) - 77093643461234 [08:26:27]1041 (16) - 0000000000874718 [08:26:27]1040 (4) - 164479 [08:26:27]1012 (4) - 13.07.2024 02:04 [08:26:27]1206 (1) - 0 [08:26:27]OFD Sender: Remove packet 164479 [08:26:27]ProducePacketName [08:26:27]name=ofd_packets/00164479 [08:26:27]NVStorageDeleteData [08:26:27]Write to MH i2c: 01 00 00 AB 0B B6 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 07 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 0A 0D D4 [08:26:27]RasterBufferAndPrint [08:26:27]line [08:26:27]line [08:26:27]line [08:26:27]line [08:26:27]line [08:26:27]written 0, free lines is 3344 [08:26:27]MH_Cut [08:26:27]Write to MH i2c: D1 01 00 B2 0B 01 8F [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: D1 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: D1 01 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: D1 01 00 B2 0B 00 8E [08:26:27]Write to MH i2c: 01 00 00 B3 0B BE [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:28]OFD Sender: No OFD packet to send [08:26:28]*** Cut start [08:26:28]*** Partial cut [08:26:28]*** CUTSNS_PIN = 1 [08:26:28]*** CUTSNS_PIN = 0 [08:26:28]*** Brake cut motor [08:26:28]Read from MH i2c: 01 [08:26:28]MH_I2C_Read... [08:26:28]*** Stop cut motor [08:26:28]*** Cut end [08:26:28]Read from MH i2c: 01 07 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [08:26:28]process_action close_receipt done [08:26:28]requested_data is exist [08:26:28]produce_requested_data [08:26:28]requested_item fm.sn is exist - process it [08:26:28]wFMCommunicate request_size=4 [08:26:28]MH_SAM_APDU [08:26:28]CAPDU: 80 11 00 00 [08:26:28]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:29]Read from MH i2c: E2 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 17 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [08:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:26:29]wFMCommunicate OK [08:26:29]requested_item fd.num is exist - process it [08:26:29]SAM_PROTO_GetFieldsCounters [08:26:29]wFMCommunicate request_size=4 [08:26:29]MH_SAM_APDU [08:26:29]CAPDU: 80 13 00 00 [08:26:29]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:29]Read from MH i2c: E2 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 62 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 62 00 B5 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 82 02 00 0E 04 04 00 BE 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 9A [08:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 82 02 00 0E 04 04 00 BE 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 [08:26:29]wFMCommunicate OK [08:26:29]SAM_PROTO_GetFieldsCounters done [08:26:29]requested_item shift.num is exist - process it [08:26:29]requested_item shift.opened is exist - process it [08:26:29]req_shift_opened [08:26:29]FM_GetShiftState [08:26:29]SAM_PROTO_GetShiftState [08:26:29]wFMCommunicate request_size=4 [08:26:29]MH_SAM_APDU [08:26:29]CAPDU: 80 13 01 00 [08:26:29]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [08:26:29]Write i2c OK [08:26:29]MH_I2C_Read... [08:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:29]Read from MH i2c: E2 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 0E 00 [08:26:29]MH_I2C_Read... [08:26:29]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1F [08:26:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:26:29]wFMCommunicate OK [08:26:29]SAM_PROTO_GetShiftState done [08:26:29]FM_GetShiftState done [08:26:29]req_shift_opened done [08:26:29]requested_item shift.open_date is exist - process it [08:26:29]req_shift_open_date [08:26:29]req_shift_open_date done [08:26:29]produce_requested_data done [08:26:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164479,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:26:29]process_action_free close_receipt [08:26:29]json_value_free [08:26:29]json_value_free done [08:26:29]process_json_proto returns [08:26:29]Send response to host [08:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164479,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:26:29]free response buf [08:26:29]execute_script done [08:26:29]execute_script returns [08:26:29]free content buf [08:26:29]Sock 10.Close socket [08:26:29]Sock 10.Thread stoped [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:33]accept exits with 7 [08:30:33]New connection [08:30:33]New thread 3067301220 created [08:30:33]Thread 3067157860 joined [08:30:33]Waiting for new connection... [08:30:33] Sock 7.Parse request [08:30:33]Sock 7.Check first char [08:30:33]Sock 7.First char is OK [08:30:33]request: POST /json_proto HTTP/1.0 [08:30:33]Method: POST [08:30:33]URL: /json_proto [08:30:33]Method is POST - this is cgi request [08:30:33]url: /json_proto [08:30:33]query_string will be loaded in cgi processing [08:30:33]execute_cgi json_proto POST (null) [08:30:33]execute_cgi path=json_proto method=POST [08:30:33]POST find Content-Length [08:30:33]Host: 172.17.56.4:8080 [08:30:33]Content-Length: 682 [08:30:33]Content-Type: application/json [08:30:33] [08:30:33]POST finish read [08:30:33]Found Content-Length = 682 [08:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:33]execute_script... [08: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)458567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:33]POST & json_proto [08:30:33]process_json_proto [08:30:33]json parsed OK: [08:30:33]protocol is kg_v1.0 [08:30:33]action value=close_receipt [08:30:33]process_action close_receipt [08:30:33]cmd_close_receipt [08:30:33]MH_GetDate [08:30:33]Write to MH i2c: F0 00 00 B7 0B B1 [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 09 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: F0 09 00 B7 0B 00 2B 3B 92 66 C9 DC B2 64 D3 [08:30:33]GetLastDocTimeStamp 1720859187 [08:30:33]current date 1720859435 [08:30:33]FM_GetShiftState [08:30:33]SAM_PROTO_GetShiftState [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 13 01 00 [08:30:33]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0E 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 21 [08:30:33]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:30:33]wFMCommunicate OK [08:30:33]SAM_PROTO_GetShiftState done [08:30:33]FM_GetShiftState done [08:30:33]opened in 1720831249 [08:30:33]opened+sec_in_day 1720917649 [08:30:33]quantity*price = 100016 [08:30:33]sum+1 = 100017 [08:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 40 13.07.2024 08:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164480 ФПД: 74369391406640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164480&fm=74369391406640&tin=02508201610067®Number=0000000000090829&sum=100000 [08:30:34]StoreToDocumentArchive [08:30:34]shift 446 fd 164480 [08:30:34]save to /storage/0446/doc_00164480 [08:30:34]save last doc name /storage/0446/doc_00164480 to /storage/kkm_last_doc_name [08:30:34]save OK [08:30:34]Clear old archive folders... [08:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:34]tlvbuf is 00BCBC30 [08:30:34]SAM_PROTO_ClearQueue [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 09 00 00 [08:30:34]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [08:30:34]RAPDU: 90 00 [08:30:34]wFMCommunicate OK [08:30:34]SAM_PROTO_ClearQueue done [08:30:34]KKMCreateOFDPacket [08:30:34]OFDProtocolAddRootSTLVToBuf [08:30:34]FM_MakeSignedData [08:30:34]FM_MakeSignedData [08:30:34]SAM_PROTO_SignData [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 0D 01 02 [08:30:34]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [08:30:34]RAPDU: 90 00 [08:30:34]wFMCommunicate OK [08:30:34]wFMCommunicate request_size=255 [08:30:34]MH_SAM_APDU [08:30: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2B 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 82 02 00 35 04 06 00 43 [08:30:34]Write to MH i2c: E2 02 01 C7 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2B 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 82 02 00 35 04 06 00 43 00 00 F1 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [08:30:34]RAPDU: 90 00 [08:30:34]wFMCommunicate OK [08:30:34]wFMCommunicate request_size=10 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 0D 02 02 05 A3 79 28 2E 30 [08:30:34]Write to MH i2c: E2 0D 00 C8 0B 80 0D 02 02 05 00 A3 79 28 2E 30 00 00 F9 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [08:30:34]RAPDU: 90 00 [08:30:34]wFMCommunicate OK [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 0D 03 02 [08:30:34]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 C9 0B 00 83 18 1A B6 C6 E4 B8 4B 90 00 68 [08:30:35]RAPDU: 83 18 1A B6 C6 E4 B8 4B 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_SignData done [08:30:35]FM_MakeSignedData done [08:30:35]CreateOFDProtocolMessage [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 11 00 00 [08:30:35]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [08:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:30:35]wFMCommunicate OK [08:30:35]CreateOFDProtocolMessage done [08:30:35]OFDSenderStorePacket 164480 [08:30:35]StoreOFDPacket docnum=164480 [08:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C 8E 07 01 14 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2B 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 82 02 00 35 04 06 00 43 A3 79 28 2E 30 83 18 1A B6 C6 E4 B8 4B [08:30:35]CheckFolder [08:30:35]dirname=/storage/ofd_packets [08:30:35]CheckFolder done [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00164480 [08:30:35]NVStorageSaveData ofd_packets/00164480 [08:30:35]File name is /storage/ofd_packets/00164480 [08:30:35]Write 301 bytes [08:30:35]NVStorageSaveData done [08:30:35]OFDSenderStorePacket done [08:30:35]KKMCreateOFDPacket done [08:30:35]NVStorageSaveData kkm_last_timestamp [08:30:35]File name is /storage/kkm_last_timestamp [08:30:35]Write 4 bytes [08:30:35]NVStorageSaveData done [08:30:35]ExternCall_PrintAddStr [08:30:35]wPrintStart [08:30:35]Write to MH i2c: 01 00 00 CB 0B D6 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [08:30:35]RasterBufferAndPrint [08:30:35]line Счет N : (1)458567 [08:30:35]line ИНН: 02508201610067 [08:30:35]line Контрольно-Кассовый Чек [08:30:35]line ПРОДАЖА [08:30:35]line ТРК (МРК, ГНК) : 12 [08:30:35]line Товар: 2710124130 [08:30:35]line Аи-92-К-5 [08:30:35]line 15.200 * 65.80 [08:30:35]line = 1000.16 [08:30:35]line НДС 12% НСП 1% [08:30:35]line > о реализуемом товаре [08:30:35]line ОКРУГЛЕНИЕ: -0.16 [08:30:35]line ИТОГО: 1000.00 [08:30:35]line Внесено: 1000.00 [08:30:35]line СДАЧА: 0.00 [08:30:35]line НСП 1% : 8.85 [08:30:35]line НДС 12% : 106.21 [08:30:35]line Наличными: 1000.00 [08:30:35]line Безнал.: 0.00 [08:30:35]line Место: АЗС № 72 "Партнер Нефть" [08:30:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:30:35]line СНО: Общий режим [08:30:35]line Чек 40 13.07.2024 08:30 [08:30:35]line Смена: 446 ФФД: 1.0 [08:30:35]line ЗНМ: 0300000160 [08:30:35]line РНМ: 0000000000090829 [08:30:35]line Версия ККМ: 001 [08:30:35]line ФМ: 0000000000874718 [08:30:35]line ФД: 164480 [08:30:35]line ФПД: 74369391406640 [08:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164480&fm=74369391406640&tin=02508201610067®Number=0000000000090829&sum=100000 [08:30:35]OFD Sender: Processing packet 164480 [packets to send 104, broken 103] [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00164480 [08:30:35]OFD Sender: To server: pG, [08:30:35]CommunicateWithHost lk.salyk.kg:30040 [08:30:35]ConnectInit lk.salyk.kg [08:30:35]written 0, free lines is 4095 [08:30:35]Connected sock=10 [08: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 34 37 31 38 0F 01 00 00 3C 8E 07 01 14 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2B 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 82 02 00 35 04 06 00 43 A3 79 28 2E 30 83 18 1A B6 C6 E4 B8 4B [08:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 E5 47 00 70 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 82 02 00 F4 03 04 00 BD E1 91 66 B6 04 01 00 00 0F 38 64 12 50 5B DE C2 [08:30:35]CommunicateWithHost err = 0 [08:30:35]CheckOFDResponse [08:30:35]1017 (14) - 77093643461234 [08:30:35]1041 (16) - 0000000000874718 [08:30:35]1040 (4) - 164480 [08:30:35]1012 (4) - 13.07.2024 02:09 [08:30:35]1206 (1) - 0 [08:30:35]OFD Sender: Remove packet 164480 [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00164480 [08:30:35]NVStorageDeleteData [08:30:35]Write to MH i2c: 01 00 00 F5 0B 00 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 0B 0D 1F [08:30:35]RasterBufferAndPrint [08:30:35]line [08:30:35]line [08:30:35]line [08:30:35]line [08:30:35]line [08:30:35]written 0, free lines is 3345 [08:30:35]MH_Cut [08:30:35]Write to MH i2c: D1 01 00 FC 0B 01 D9 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: D1 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: D1 01 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: D1 01 00 FC 0B 00 D8 [08:30:35]Write to MH i2c: 01 00 00 FD 0B 08 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:36]OFD Sender: No OFD packet to send [08:30:36]*** Cut start [08:30:36]*** Partial cut [08:30:36]*** CUTSNS_PIN = 1 [08:30:36]*** CUTSNS_PIN = 0 [08:30:36]*** Brake cut motor [08:30:37]Read from MH i2c: 01 [08:30:37]MH_I2C_Read... [08:30:37]*** Stop cut motor [08:30:37]*** Cut end [08:30:37]Read from MH i2c: 01 07 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 FF 0F 1D [08:30:37]process_action close_receipt done [08:30:37]requested_data is exist [08:30:37]produce_requested_data [08:30:37]requested_item fm.sn is exist - process it [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 11 00 00 [08:30:37]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:37]Read from MH i2c: E2 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 17 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [08:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:30:37]wFMCommunicate OK [08:30:37]requested_item fd.num is exist - process it [08:30:37]SAM_PROTO_GetFieldsCounters [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 13 00 00 [08:30:37]Write to MH i2c: E2 08 00 FF 0B 80 13 00 00 00 00 00 00 86 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:37]Read from MH i2c: E2 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 62 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 62 00 FF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 82 02 00 0E 04 04 00 BE 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 E8 [08: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 82 02 00 0E 04 04 00 BE 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 [08:30:37]wFMCommunicate OK [08:30:37]SAM_PROTO_GetFieldsCounters done [08:30:37]requested_item shift.num is exist - process it [08:30:37]requested_item shift.opened is exist - process it [08:30:37]req_shift_opened [08:30:37]FM_GetShiftState [08:30:37]SAM_PROTO_GetShiftState [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 13 01 00 [08:30:37]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:37]Read from MH i2c: E2 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 0E 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6A [08:30:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:30:37]wFMCommunicate OK [08:30:37]SAM_PROTO_GetShiftState done [08:30:37]FM_GetShiftState done [08:30:37]req_shift_opened done [08:30:37]requested_item shift.open_date is exist - process it [08:30:37]req_shift_open_date [08:30:37]req_shift_open_date done [08:30:37]produce_requested_data done [08:30:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164480,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:30:37]process_action_free close_receipt [08:30:37]json_value_free [08:30:37]json_value_free done [08:30:37]process_json_proto returns [08:30:37]Send response to host [08:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164480,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:30:37]free response buf [08:30:37]execute_script done [08:30:37]execute_script returns [08:30:37]free content buf [08:30:37]Sock 7.Close socket [08:30:37]Sock 7.Thread stoped [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:08]accept exits with 9 [08:31:08]New connection [08:31:08]New thread 3067157860 created [08:31:08]Thread 3067301220 joined [08:31:08]Waiting for new connection... [08:31:08] Sock 9.Parse request [08:31:08]Sock 9.Check first char [08:31:08]Sock 9.First char is OK [08:31:08]request: POST /json_proto HTTP/1.0 [08:31:08]Method: POST [08:31:08]URL: /json_proto [08:31:08]Method is POST - this is cgi request [08:31:08]url: /json_proto [08:31:08]query_string will be loaded in cgi processing [08:31:08]execute_cgi json_proto POST (null) [08:31:08]execute_cgi path=json_proto method=POST [08:31:08]POST find Content-Length [08:31:08]Host: 172.17.56.4:8080 [08:31:08]Content-Length: 677 [08:31:08]Content-Type: application/json [08:31:08] [08:31:08]POST finish read [08:31:08]Found Content-Length = 677 [08:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]execute_script... [08:31: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)458568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]POST & json_proto [08:31:08]process_json_proto [08:31:08]json parsed OK: [08:31:08]protocol is kg_v1.0 [08:31:08]action value=close_receipt [08:31:08]process_action close_receipt [08:31:08]cmd_close_receipt [08:31:08]MH_GetDate [08:31:08]Write to MH i2c: F0 00 00 01 0C FC [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 01 0C 00 4E 3B 92 66 C9 DC B2 64 41 [08:31:08]GetLastDocTimeStamp 1720859435 [08:31:08]current date 1720859470 [08:31:08]FM_GetShiftState [08:31:08]SAM_PROTO_GetShiftState [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 01 00 [08:31:08]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6C [08:31:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetShiftState done [08:31:08]FM_GetShiftState done [08:31:08]opened in 1720831249 [08:31:08]opened+sec_in_day 1720917649 [08:31:08]quantity*price = 60009 [08:31:08]sum+1 = 60011 [08:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 41 13.07.2024 08:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164481 ФПД: 60022053727166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164481&fm=60022053727166&tin=02508201610067®Number=0000000000090829&sum=60000 [08:31:10]StoreToDocumentArchive [08:31:10]shift 446 fd 164481 [08:31:10]save to /storage/0446/doc_00164481 [08:31:10]save last doc name /storage/0446/doc_00164481 to /storage/kkm_last_doc_name [08:31:10]save OK [08:31:10]Clear old archive folders... [08:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:10]tlvbuf is B6F2FBD0 [08:31:10]SAM_PROTO_ClearQueue [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 09 00 00 [08:31:10]Write to MH i2c: E2 08 00 0F 0C 80 09 00 00 00 00 00 00 8D [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]SAM_PROTO_ClearQueue done [08:31:10]KKMCreateOFDPacket [08:31:10]OFDProtocolAddRootSTLVToBuf [08:31:10]FM_MakeSignedData [08:31:10]FM_MakeSignedData [08:31:10]SAM_PROTO_SignData [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 01 02 [08:31:10]Write to MH i2c: E2 08 00 10 0C 80 0D 01 02 00 00 00 00 95 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=255 [08:31:10]MH_SAM_APDU [08:31: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4E 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 82 02 00 35 04 06 00 36 [08:31:10]Write to MH i2c: E2 02 01 11 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4E 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 82 02 00 35 04 06 00 36 00 00 D3 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=10 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 02 02 05 96 F9 30 EB BE [08:31:10]Write to MH i2c: E2 0D 00 12 0C 80 0D 02 02 05 00 96 F9 30 EB BE 00 00 0A [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 03 02 [08:31:10]Write to MH i2c: E2 08 00 13 0C 80 0D 03 02 00 00 00 00 9A [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 13 0C 00 32 1A 45 26 FE 36 4C 4E 90 00 20 [08:31:10]RAPDU: 32 1A 45 26 FE 36 4C 4E 90 00 [08:31:10]wFMCommunicate OK [08:31:10]SAM_PROTO_SignData done [08:31:10]FM_MakeSignedData done [08:31:10]CreateOFDProtocolMessage [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 11 00 00 [08:31:10]Write to MH i2c: E2 08 00 14 0C 80 11 00 00 00 00 00 00 9A [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 14 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [08:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:10]wFMCommunicate OK [08:31:10]CreateOFDProtocolMessage done [08:31:10]OFDSenderStorePacket 164481 [08:31:10]StoreOFDPacket docnum=164481 [08:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC D5 07 01 A1 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4E 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 82 02 00 35 04 06 00 36 96 F9 30 EB BE 32 1A 45 26 FE 36 4C 4E [08:31:10]CheckFolder [08:31:10]dirname=/storage/ofd_packets [08:31:10]CheckFolder done [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00164481 [08:31:10]NVStorageSaveData ofd_packets/00164481 [08:31:10]File name is /storage/ofd_packets/00164481 [08:31:10]Write 301 bytes [08:31:10]NVStorageSaveData done [08:31:10]OFDSenderStorePacket done [08:31:10]KKMCreateOFDPacket done [08:31:10]NVStorageSaveData kkm_last_timestamp [08:31:10]File name is /storage/kkm_last_timestamp [08:31:10]Write 4 bytes [08:31:10]NVStorageSaveData done [08:31:10]ExternCall_PrintAddStr [08:31:10]wPrintStart [08:31:10]Write to MH i2c: 01 00 00 15 0C 21 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [08:31:10]RasterBufferAndPrint [08:31:10]line Счет N : (1)458568 [08:31:10]line ИНН: 02508201610067 [08:31:10]line Контрольно-Кассовый Чек [08:31:10]line ПРОДАЖА [08:31:10]line ТРК (МРК, ГНК) : 12 [08:31:10]line Товар: 2710124130 [08:31:10]line Аи-92-К-5 [08:31:10]line 9.120 * 65.80 [08:31:10]line = 600.10 [08:31:10]line НДС 12% НСП 1% [08:31:10]line > о реализуемом товаре [08:31:10]line ОКРУГЛЕНИЕ: -0.10 [08:31:10]line ИТОГО: 600.00 [08:31:10]line Внесено: 600.00 [08:31:10]line СДАЧА: 0.00 [08:31:10]line НСП 1% : 5.31 [08:31:10]line НДС 12% : 63.73 [08:31:10]line Наличными: 600.00 [08:31:10]line Безнал.: 0.00 [08:31:10]line Место: АЗС № 72 "Партнер Нефть" [08:31:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:31:10]line СНО: Общий режим [08:31:10]line Чек 41 13.07.2024 08:31 [08:31:10]line Смена: 446 ФФД: 1.0 [08:31:10]line ЗНМ: 0300000160 [08:31:10]line РНМ: 0000000000090829 [08:31:10]line Версия ККМ: 001 [08:31:10]line ФМ: 0000000000874718 [08:31:10]line ФД: 164481 [08:31:10]line ФПД: 60022053727166 [08:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164481&fm=60022053727166&tin=02508201610067®Number=0000000000090829&sum=60000 [08:31:10]OFD Sender: Processing packet 164481 [packets to send 104, broken 103] [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00164481 [08:31:10]OFD Sender: To server: pG, [08:31:10]CommunicateWithHost lk.salyk.kg:30040 [08:31:10]ConnectInit lk.salyk.kg [08:31:10]written 0, free lines is 4095 [08:31:10]Connected sock=10 [08:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC D5 07 01 A1 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4E 3B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 82 02 00 35 04 06 00 36 96 F9 30 EB BE 32 1A 45 26 FE 36 4C 4E [08:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 99 47 00 0E FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 82 02 00 F4 03 04 00 E0 E1 91 66 B6 04 01 00 00 BF B1 1A 94 2E 9C DC FC [08:31:11]CommunicateWithHost err = 0 [08:31:11]CheckOFDResponse [08:31:11]1017 (14) - 77093643461234 [08:31:11]1041 (16) - 0000000000874718 [08:31:11]1040 (4) - 164481 [08:31:11]1012 (4) - 13.07.2024 02:09 [08:31:11]1206 (1) - 0 [08:31:11]OFD Sender: Remove packet 164481 [08:31:11]ProducePacketName [08:31:11]name=ofd_packets/00164481 [08:31:11]NVStorageDeleteData [08:31:11]Write to MH i2c: 01 00 00 3F 0C 4B [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 02 0D 61 [08:31:11]RasterBufferAndPrint [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]written 0, free lines is 3336 [08:31:11]MH_Cut [08:31:11]Write to MH i2c: D1 01 00 46 0C 01 24 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 46 0C 00 23 [08:31:11]Write to MH i2c: 01 00 00 47 0C 53 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]OFD Sender: No OFD packet to send [08:31:12]*** Cut start [08:31:12]*** Partial cut [08:31:12]*** CUTSNS_PIN = 1 [08:31:12]*** CUTSNS_PIN = 0 [08:31:12]*** Brake cut motor [08:31:12]Read from MH i2c: 01 [08:31:12]MH_I2C_Read... [08:31:12]*** Stop cut motor [08:31:12]*** Cut end [08:31:12]Read from MH i2c: 01 07 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: 01 07 00 47 0C 00 00 00 00 00 FF 0F 68 [08:31:12]process_action close_receipt done [08:31:12]requested_data is exist [08:31:12]produce_requested_data [08:31:12]requested_item fm.sn is exist - process it [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 11 00 00 [08:31:12]Write to MH i2c: E2 08 00 48 0C 80 11 00 00 00 00 00 00 CE [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 48 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [08:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:12]wFMCommunicate OK [08:31:12]requested_item fd.num is exist - process it [08:31:12]SAM_PROTO_GetFieldsCounters [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 00 00 [08:31:12]Write to MH i2c: E2 08 00 49 0C 80 13 00 00 00 00 00 00 D1 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 49 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 82 02 00 0E 04 04 00 BE 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 37 [08:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 82 02 00 0E 04 04 00 BE 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 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetFieldsCounters done [08:31:12]requested_item shift.num is exist - process it [08:31:12]requested_item shift.opened is exist - process it [08:31:12]req_shift_opened [08:31:12]FM_GetShiftState [08:31:12]SAM_PROTO_GetShiftState [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 01 00 [08:31:12]Write to MH i2c: E2 08 00 4A 0C 80 13 01 00 00 00 00 00 D3 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 4A 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B4 [08:31:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetShiftState done [08:31:12]FM_GetShiftState done [08:31:12]req_shift_opened done [08:31:12]requested_item shift.open_date is exist - process it [08:31:12]req_shift_open_date [08:31:12]req_shift_open_date done [08:31:12]produce_requested_data done [08:31:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164481,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:31:12]process_action_free close_receipt [08:31:12]json_value_free [08:31:12]json_value_free done [08:31:12]process_json_proto returns [08:31:12]Send response to host [08:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164481,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:31:12]free response buf [08:31:12]execute_script done [08:31:12]execute_script returns [08:31:12]free content buf [08:31:12]Sock 9.Close socket [08:31:12]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:08]accept exits with 7 [08:36:08]New connection [08:36:08]New thread 3067301220 created [08:36:08]Thread 3067157860 joined [08:36:08]Waiting for new connection... [08:36:08] Sock 7.Parse request [08:36:08]Sock 7.Check first char [08:36:08]Sock 7.First char is OK [08:36:08]request: POST /json_proto HTTP/1.0 [08:36:08]Method: POST [08:36:08]URL: /json_proto [08:36:08]Method is POST - this is cgi request [08:36:08]url: /json_proto [08:36:08]query_string will be loaded in cgi processing [08:36:08]execute_cgi json_proto POST (null) [08:36:08]execute_cgi path=json_proto method=POST [08:36:08]POST find Content-Length [08:36:08]Host: 172.17.56.4:8080 [08:36:08]Content-Length: 677 [08:36:08]Content-Type: application/json [08:36:08] [08:36:08]POST finish read [08:36:08]Found Content-Length = 677 [08:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:36:08]execute_script... [08:36: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)458569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:36:08]POST & json_proto [08:36:08]process_json_proto [08:36:08]json parsed OK: [08:36:08]protocol is kg_v1.0 [08:36:08]action value=close_receipt [08:36:08]process_action close_receipt [08:36:08]cmd_close_receipt [08:36:08]MH_GetDate [08:36:08]Write to MH i2c: F0 00 00 4B 0C 46 [08:36:08]Write i2c OK [08:36:08]MH_I2C_Read... [08:36:08]Read from MH i2c: F0 [08:36:08]MH_I2C_Read... [08:36:08]Read from MH i2c: F0 09 00 [08:36:08]MH_I2C_Read... [08:36:08]Read from MH i2c: F0 09 00 4B 0C 00 7A 3C 92 66 C9 DC B2 64 B8 [08:36:08]GetLastDocTimeStamp 1720859470 [08:36:08]current date 1720859770 [08:36:08]FM_GetShiftState [08:36:08]SAM_PROTO_GetShiftState [08:36:08]wFMCommunicate request_size=4 [08:36:08]MH_SAM_APDU [08:36:08]CAPDU: 80 13 01 00 [08:36:08]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [08:36:08]Write i2c OK [08:36:08]MH_I2C_Read... [08:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:08]Read from MH i2c: E2 [08:36:08]MH_I2C_Read... [08:36:08]Read from MH i2c: E2 0E 00 [08:36:08]MH_I2C_Read... [08:36:08]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B6 [08:36:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:36:08]wFMCommunicate OK [08:36:08]SAM_PROTO_GetShiftState done [08:36:08]FM_GetShiftState done [08:36:08]opened in 1720831249 [08:36:08]opened+sec_in_day 1720917649 [08:36:08]quantity*price = 50008 [08:36:08]sum+1 = 50009 [08:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 42 13.07.2024 08:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164482 ФПД: 105054218063183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083610&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164482&fm=105054218063183&tin=02508201610067®Number=0000000000090829&sum=50000 [08:36:09]StoreToDocumentArchive [08:36:09]shift 446 fd 164482 [08:36:09]save to /storage/0446/doc_00164482 [08:36:09]save last doc name /storage/0446/doc_00164482 to /storage/kkm_last_doc_name [08:36:09]save OK [08:36:09]Clear old archive folders... [08:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:09]tlvbuf is 00B89830 [08:36:09]SAM_PROTO_ClearQueue [08:36:09]wFMCommunicate request_size=4 [08:36:09]MH_SAM_APDU [08:36:09]CAPDU: 80 09 00 00 [08:36:09]Write to MH i2c: E2 08 00 59 0C 80 09 00 00 00 00 00 00 D7 [08:36:09]Write i2c OK [08:36:09]MH_I2C_Read... [08:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:09]Read from MH i2c: E2 [08:36:09]MH_I2C_Read... [08:36:09]Read from MH i2c: E2 03 00 [08:36:09]MH_I2C_Read... [08:36:09]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [08:36:09]RAPDU: 90 00 [08:36:09]wFMCommunicate OK [08:36:09]SAM_PROTO_ClearQueue done [08:36:09]KKMCreateOFDPacket [08:36:09]OFDProtocolAddRootSTLVToBuf [08:36:09]FM_MakeSignedData [08:36:09]FM_MakeSignedData [08:36:09]SAM_PROTO_SignData [08:36:09]wFMCommunicate request_size=4 [08:36:09]MH_SAM_APDU [08:36:09]CAPDU: 80 0D 01 02 [08:36:09]Write to MH i2c: E2 08 00 5A 0C 80 0D 01 02 00 00 00 00 DF [08:36:09]Write i2c OK [08:36:09]MH_I2C_Read... [08:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:09]Read from MH i2c: E2 [08:36:09]MH_I2C_Read... [08:36:09]Read from MH i2c: E2 03 00 [08:36:09]MH_I2C_Read... [08:36:09]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [08:36:09]RAPDU: 90 00 [08:36:09]wFMCommunicate OK [08:36:09]wFMCommunicate request_size=255 [08:36:09]MH_SAM_APDU [08:36: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 7A 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 82 02 00 35 04 06 00 5F [08:36:09]Write to MH i2c: E2 02 01 5B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 7A 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 82 02 00 35 04 06 00 5F 00 00 54 [08:36:09]Write i2c OK [08:36:09]MH_I2C_Read... [08:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:10]Read from MH i2c: E2 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 03 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [08:36:10]RAPDU: 90 00 [08:36:10]wFMCommunicate OK [08:36:10]wFMCommunicate request_size=10 [08:36:10]MH_SAM_APDU [08:36:10]CAPDU: 80 0D 02 02 05 8B D7 59 8D 4F [08:36:10]Write to MH i2c: E2 0D 00 5C 0C 80 0D 02 02 05 00 8B D7 59 8D 4F 00 00 83 [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:10]Read from MH i2c: E2 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 03 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [08:36:10]RAPDU: 90 00 [08:36:10]wFMCommunicate OK [08:36:10]wFMCommunicate request_size=4 [08:36:10]MH_SAM_APDU [08:36:10]CAPDU: 80 0D 03 02 [08:36:10]Write to MH i2c: E2 08 00 5D 0C 80 0D 03 02 00 00 00 00 E4 [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:10]Read from MH i2c: E2 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 0B 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 0B 00 5D 0C 00 6B 56 F5 A0 C0 E1 EF 9F 90 00 6A [08:36:10]RAPDU: 6B 56 F5 A0 C0 E1 EF 9F 90 00 [08:36:10]wFMCommunicate OK [08:36:10]SAM_PROTO_SignData done [08:36:10]FM_MakeSignedData done [08:36:10]CreateOFDProtocolMessage [08:36:10]wFMCommunicate request_size=4 [08:36:10]MH_SAM_APDU [08:36:10]CAPDU: 80 11 00 00 [08:36:10]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:10]Read from MH i2c: E2 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 17 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: E2 17 00 5E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [08:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:36:10]wFMCommunicate OK [08:36:10]CreateOFDProtocolMessage done [08:36:10]OFDSenderStorePacket 164482 [08:36:10]StoreOFDPacket docnum=164482 [08:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC F5 07 01 79 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 7A 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 82 02 00 35 04 06 00 5F 8B D7 59 8D 4F 6B 56 F5 A0 C0 E1 EF 9F [08:36:10]CheckFolder [08:36:10]dirname=/storage/ofd_packets [08:36:10]CheckFolder done [08:36:10]ProducePacketName [08:36:10]name=ofd_packets/00164482 [08:36:10]NVStorageSaveData ofd_packets/00164482 [08:36:10]File name is /storage/ofd_packets/00164482 [08:36:10]Write 301 bytes [08:36:10]NVStorageSaveData done [08:36:10]OFDSenderStorePacket done [08:36:10]KKMCreateOFDPacket done [08:36:10]NVStorageSaveData kkm_last_timestamp [08:36:10]File name is /storage/kkm_last_timestamp [08:36:10]Write 4 bytes [08:36:10]NVStorageSaveData done [08:36:10]ExternCall_PrintAddStr [08:36:10]wPrintStart [08:36:10]Write to MH i2c: 01 00 00 5F 0C 6B [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: 01 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: 01 07 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 FF 0F 80 [08:36:10]RasterBufferAndPrint [08:36:10]line Счет N : (1)458569 [08:36:10]line ИНН: 02508201610067 [08:36:10]line Контрольно-Кассовый Чек [08:36:10]line ПРОДАЖА [08:36:10]line ТРК (МРК, ГНК) : 12 [08:36:10]line Товар: 2710124130 [08:36:10]line Аи-92-К-5 [08:36:10]line 7.600 * 65.80 [08:36:10]line = 500.08 [08:36:10]line НДС 12% НСП 1% [08:36:10]line > о реализуемом товаре [08:36:10]line ОКРУГЛЕНИЕ: -0.08 [08:36:10]line ИТОГО: 500.00 [08:36:10]line Внесено: 500.00 [08:36:10]line СДАЧА: 0.00 [08:36:10]line НСП 1% : 4.42 [08:36:10]line НДС 12% : 53.11 [08:36:10]line Наличными: 500.00 [08:36:10]line Безнал.: 0.00 [08:36:10]line Место: АЗС № 72 "Партнер Нефть" [08:36:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:36:10]line СНО: Общий режим [08:36:10]line Чек 42 13.07.2024 08:36 [08:36:10]line Смена: 446 ФФД: 1.0 [08:36:10]line ЗНМ: 0300000160 [08:36:10]line РНМ: 0000000000090829 [08:36:10]line Версия ККМ: 001 [08:36:10]line ФМ: 0000000000874718 [08:36:10]line ФД: 164482 [08:36:10]line ФПД: 105054218063183 [08:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083610&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164482&fm=105054218063183&tin=02508201610067®Number=0000000000090829&sum=50000 [08:36:10]OFD Sender: Processing packet 164482 [packets to send 104, broken 103] [08:36:10]ProducePacketName [08:36:10]name=ofd_packets/00164482 [08:36:10]OFD Sender: To server: pG, [08:36:10]CommunicateWithHost lk.salyk.kg:30040 [08:36:10]ConnectInit lk.salyk.kg [08:36:10]written 0, free lines is 4095 [08:36:11]Write to MH i2c: 01 00 00 89 0C 95 [08:36:11]Write i2c OK [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: 01 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: 01 07 00 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: 01 07 00 89 0C 00 00 00 00 00 F6 0C 9E [08:36:11]RasterBufferAndPrint [08:36:11]line [08:36:11]line [08:36:11]line [08:36:11]line [08:36:11]line [08:36:11]written 0, free lines is 3324 [08:36:11]MH_Cut [08:36:11]Write to MH i2c: D1 01 00 90 0C 01 6E [08:36:11]Write i2c OK [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: D1 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: D1 01 00 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: D1 01 00 90 0C 00 6D [08:36:11]Write to MH i2c: 01 00 00 91 0C 9D [08:36:11]Write i2c OK [08:36:11]MH_I2C_Read... [08:36:11]*** Cut start [08:36:11]*** Partial cut [08:36:11]*** CUTSNS_PIN = 1 [08:36:11]*** CUTSNS_PIN = 0 [08:36:11]*** Brake cut motor [08:36:12]Read from MH i2c: 01 [08:36:12]MH_I2C_Read... [08:36:12]*** Stop cut motor [08:36:12]*** Cut end [08:36:12]Read from MH i2c: 01 07 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 FF 0F B2 [08:36:12]process_action close_receipt done [08:36:12]requested_data is exist [08:36:12]produce_requested_data [08:36:12]requested_item fm.sn is exist - process it [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 11 00 00 [08:36:12]Write to MH i2c: E2 08 00 92 0C 80 11 00 00 00 00 00 00 18 [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 17 00 [08:36:12]MH_I2C_Read... [08:36:12]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 34 37 31 38 90 00 6E [08:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:36:12]wFMCommunicate OK [08:36:12]requested_item fd.num is exist - process it [08:36:12]SAM_PROTO_GetFieldsCounters [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 13 00 00 [08:36:12]Write to MH i2c: E2 08 00 93 0C 80 13 00 00 00 00 00 00 1B [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 62 00 [08:36:12]MH_I2C_Read... [08:36:12]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 82 02 00 0E 04 04 00 BE 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 85 [08:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 82 02 00 0E 04 04 00 BE 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 [08:36:12]wFMCommunicate OK [08:36:12]SAM_PROTO_GetFieldsCounters done [08:36:12]requested_item shift.num is exist - process it [08:36:12]requested_item shift.opened is exist - process it [08:36:12]req_shift_opened [08:36:12]FM_GetShiftState [08:36:12]SAM_PROTO_GetShiftState [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 13 01 00 [08:36:12]Write to MH i2c: E2 08 00 94 0C 80 13 01 00 00 00 00 00 1D [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 0E 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 0E 00 94 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FE [08:36:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:36:12]wFMCommunicate OK [08:36:12]SAM_PROTO_GetShiftState done [08:36:12]FM_GetShiftState done [08:36:12]req_shift_opened done [08:36:12]requested_item shift.open_date is exist - process it [08:36:12]req_shift_open_date [08:36:12]req_shift_open_date done [08:36:12]produce_requested_data done [08:36:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164482,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:36:12]process_action_free close_receipt [08:36:12]json_value_free [08:36:12]json_value_free done [08:36:12]process_json_proto returns [08:36:12]Send response to host [08:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164482,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:36:12]free response buf [08:36:12]execute_script done [08:36:12]execute_script returns [08:36:12]free content buf [08:36:12]Sock 7.Close socket [08:36:12]Sock 7.Thread stoped [08:36:51]accept exits with 9 [08:36:51]New connection [08:36:51]New thread 3067157860 created [08:36:51]Thread 3067301220 joined [08:36:51]Waiting for new connection... [08:36:51] Sock 9.Parse request [08:36:51]Sock 9.Check first char [08:36:51]Sock 9.First char is OK [08:36:51]request: POST /json_proto HTTP/1.0 [08:36:51]Method: POST [08:36:51]URL: /json_proto [08:36:51]Method is POST - this is cgi request [08:36:51]url: /json_proto [08:36:51]query_string will be loaded in cgi processing [08:36:51]execute_cgi json_proto POST (null) [08:36:51]execute_cgi path=json_proto method=POST [08:36:51]POST find Content-Length [08:36:51]Host: 172.17.56.4:8080 [08:36:51]Content-Length: 790 [08:36:51]Content-Type: application/json [08:36:51] [08:36:51]POST finish read [08:36:51]Found Content-Length = 790 [08:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:51]execute_script... [08:36: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)458570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:51]POST & json_proto [08:36:51]process_json_proto [08:36:51]json parsed OK: [08:36:51]protocol is kg_v1.0 [08:36:51]action value=close_receipt [08:36:51]process_action close_receipt [08:36:51]cmd_close_receipt [08:36:51]MH_GetDate [08:36:51]Write to MH i2c: F0 00 00 95 0C 90 [08:36:51]Write i2c OK [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: F0 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: F0 09 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: F0 09 00 95 0C 00 A5 3C 92 66 C9 DC B2 64 2D [08:36:51]GetLastDocTimeStamp 1720859770 [08:36:51]current date 1720859813 [08:36:51]FM_GetShiftState [08:36:51]SAM_PROTO_GetShiftState [08:36:51]wFMCommunicate request_size=4 [08:36:51]MH_SAM_APDU [08:36:51]CAPDU: 80 13 01 00 [08:36:51]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [08:36:51]Write i2c OK [08:36:51]MH_I2C_Read... [08:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:51]Read from MH i2c: E2 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 0E 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 00 [08:36:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:36:51]wFMCommunicate OK [08:36:51]SAM_PROTO_GetShiftState done [08:36:51]FM_GetShiftState done [08:36:51]opened in 1720831249 [08:36:51]opened+sec_in_day 1720917649 [08:36:51]quantity*price = 30001 [08:36:51]sum+1 = 30002 [08:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 43 13.07.2024 08:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164483 ФПД: 226505740997457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164483&fm=226505740997457&tin=02508201610067®Number=0000000000090829&sum=30001 [08:36:52]StoreToDocumentArchive [08:36:52]shift 446 fd 164483 [08:36:52]save to /storage/0446/doc_00164483 [08:36:52]save last doc name /storage/0446/doc_00164483 to /storage/kkm_last_doc_name [08:36:52]save OK [08:36:52]Clear old archive folders... [08:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:52]tlvbuf is 00B75E30 [08:36:52]SAM_PROTO_ClearQueue [08:36:52]wFMCommunicate request_size=4 [08:36:52]MH_SAM_APDU [08:36:52]CAPDU: 80 09 00 00 [08:36:52]Write to MH i2c: E2 08 00 A3 0C 80 09 00 00 00 00 00 00 21 [08:36:52]Write i2c OK [08:36:52]MH_I2C_Read... [08:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:52]Read from MH i2c: E2 [08:36:52]MH_I2C_Read... [08:36:52]Read from MH i2c: E2 03 00 [08:36:52]MH_I2C_Read... [08:36:52]Read from MH i2c: E2 03 00 A3 0C 00 90 00 23 [08:36:52]RAPDU: 90 00 [08:36:52]wFMCommunicate OK [08:36:52]SAM_PROTO_ClearQueue done [08:36:52]KKMCreateOFDPacket [08:36:52]OFDProtocolAddRootSTLVToBuf [08:36:52]FM_MakeSignedData [08:36:52]FM_MakeSignedData [08:36:52]SAM_PROTO_SignData [08:36:52]wFMCommunicate request_size=4 [08:36:52]MH_SAM_APDU [08:36:52]CAPDU: 80 0D 01 02 [08:36:52]Write to MH i2c: E2 08 00 A4 0C 80 0D 01 02 00 00 00 00 29 [08:36:52]Write i2c OK [08:36:52]MH_I2C_Read... [08:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:52]Read from MH i2c: E2 [08:36:52]MH_I2C_Read... [08:36:52]Read from MH i2c: E2 03 00 [08:36:52]MH_I2C_Read... [08:36:52]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [08:36:52]RAPDU: 90 00 [08:36:52]wFMCommunicate OK [08:36:52]wFMCommunicate request_size=255 [08:36:52]MH_SAM_APDU [08:36: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 82 02 00 35 04 06 00 CE [08:36:52]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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 82 02 00 35 04 06 00 CE 00 00 E7 [08:36:52]Write i2c OK [08:36:52]MH_I2C_Read... [08:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:53]Read from MH i2c: E2 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 03 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [08:36:53]RAPDU: 90 00 [08:36:53]wFMCommunicate OK [08:36:53]wFMCommunicate request_size=10 [08:36:53]MH_SAM_APDU [08:36:53]CAPDU: 80 0D 02 02 05 01 7A 3B 53 51 [08:36:53]Write to MH i2c: E2 0D 00 A6 0C 80 0D 02 02 05 00 01 7A 3B 53 51 00 00 90 [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:53]Read from MH i2c: E2 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 03 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [08:36:53]RAPDU: 90 00 [08:36:53]wFMCommunicate OK [08:36:53]wFMCommunicate request_size=4 [08:36:53]MH_SAM_APDU [08:36:53]CAPDU: 80 0D 03 02 [08:36:53]Write to MH i2c: E2 08 00 A7 0C 80 0D 03 02 00 00 00 00 2E [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:53]Read from MH i2c: E2 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 0B 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 0B 00 A7 0C 00 B6 44 36 F0 80 F4 2B EF 90 00 DD [08:36:53]RAPDU: B6 44 36 F0 80 F4 2B EF 90 00 [08:36:53]wFMCommunicate OK [08:36:53]SAM_PROTO_SignData done [08:36:53]FM_MakeSignedData done [08:36:53]CreateOFDProtocolMessage [08:36:53]wFMCommunicate request_size=4 [08:36:53]MH_SAM_APDU [08:36:53]CAPDU: 80 11 00 00 [08:36:53]Write to MH i2c: E2 08 00 A8 0C 80 11 00 00 00 00 00 00 2E [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:53]Read from MH i2c: E2 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: E2 17 00 [08:36:53]MH_I2C_Read... [08:36:53]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 34 37 31 38 90 00 84 [08:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:36:53]wFMCommunicate OK [08:36:53]CreateOFDProtocolMessage done [08:36:53]OFDSenderStorePacket 164483 [08:36:53]StoreOFDPacket docnum=164483 [08:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D AF 07 01 71 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 82 02 00 35 04 06 00 CE 01 7A 3B 53 51 B6 44 36 F0 80 F4 2B EF [08:36:53]CheckFolder [08:36:53]dirname=/storage/ofd_packets [08:36:53]CheckFolder done [08:36:53]ProducePacketName [08:36:53]name=ofd_packets/00164483 [08:36:53]NVStorageSaveData ofd_packets/00164483 [08:36:53]File name is /storage/ofd_packets/00164483 [08:36:53]Write 301 bytes [08:36:53]NVStorageSaveData done [08:36:53]OFDSenderStorePacket done [08:36:53]KKMCreateOFDPacket done [08:36:53]NVStorageSaveData kkm_last_timestamp [08:36:53]File name is /storage/kkm_last_timestamp [08:36:53]Write 4 bytes [08:36:53]NVStorageSaveData done [08:36:53]ExternCall_PrintAddStr [08:36:53]wPrintStart [08:36:53]Write to MH i2c: 01 00 00 A9 0C B5 [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 07 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [08:36:53]RasterBufferAndPrint [08:36:53]line Счет N : (1)458570 [08:36:53]line ИНН: 02508201610067 [08:36:53]line Контрольно-Кассовый Чек [08:36:53]line ПРОДАЖА [08:36:53]line ТРК (МРК, ГНК) : 22 [08:36:53]line Товар: 2710124130 [08:36:53]line Аи-92-К-5 [08:36:53]line 4.600 * 65.22 [08:36:53]line = 300.01 [08:36:53]line НДС 12% НСП 1% [08:36:53]line > о реализуемом товаре [08:36:53]line ИТОГО: 300.01 [08:36:53]line НСП 1% : 2.65 [08:36:53]line НДС 12% : 31.86 [08:36:53]line Наличными: 0.00 [08:36:53]line Безнал.: 300.01 [08:36:53]line Место: АЗС № 72 "Партнер Нефть" [08:36:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:36:53]line СНО: Общий режим [08:36:53]line Чек 43 13.07.2024 08:36 [08:36:53]line Смена: 446 ФФД: 1.0 [08:36:53]line ЗНМ: 0300000160 [08:36:53]line РНМ: 0000000000090829 [08:36:53]line Версия ККМ: 001 [08:36:53]line Платежная система: KICB Банк [08:36:53]line ФМ: 0000000000874718 [08:36:53]line ФД: 164483 [08:36:53]line ФПД: 226505740997457 [08:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164483&fm=226505740997457&tin=02508201610067®Number=0000000000090829&sum=30001 [08:36:53]written 0, free lines is 4095 [08:36:53]Write to MH i2c: 01 00 00 D2 0C DE [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 07 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: 01 07 00 D2 0C 00 00 00 00 00 08 0D FA [08:36:53]RasterBufferAndPrint [08:36:53]line [08:36:53]line [08:36:53]line [08:36:53]line [08:36:53]line [08:36:53]written 0, free lines is 3342 [08:36:53]MH_Cut [08:36:53]Write to MH i2c: D1 01 00 D9 0C 01 B7 [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: D1 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: D1 01 00 [08:36:53]MH_I2C_Read... [08:36:53]Read from MH i2c: D1 01 00 D9 0C 00 B6 [08:36:53]Write to MH i2c: 01 00 00 DA 0C E6 [08:36:53]Write i2c OK [08:36:53]MH_I2C_Read... [08:36:54]*** Cut start [08:36:54]*** Partial cut [08:36:54]*** CUTSNS_PIN = 1 [08:36:54]*** CUTSNS_PIN = 0 [08:36:54]*** Brake cut motor [08:36:54]Read from MH i2c: 01 [08:36:54]MH_I2C_Read... [08:36:54]*** Stop cut motor [08:36:54]*** Cut end [08:36:54]Read from MH i2c: 01 07 00 [08:36:54]MH_I2C_Read... [08:36:54]Read from MH i2c: 01 07 00 DA 0C 00 00 00 00 00 FF 0F FB [08:36:54]process_action close_receipt done [08:36:54]requested_data is exist [08:36:54]produce_requested_data [08:36:54]requested_item fm.sn is exist - process it [08:36:54]wFMCommunicate request_size=4 [08:36:54]MH_SAM_APDU [08:36:54]CAPDU: 80 11 00 00 [08:36:54]Write to MH i2c: E2 08 00 DB 0C 80 11 00 00 00 00 00 00 61 [08:36:54]Write i2c OK [08:36:54]MH_I2C_Read... [08:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:55]Read from MH i2c: E2 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 17 00 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 17 00 DB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [08:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:36:55]wFMCommunicate OK [08:36:55]requested_item fd.num is exist - process it [08:36:55]SAM_PROTO_GetFieldsCounters [08:36:55]wFMCommunicate request_size=4 [08:36:55]MH_SAM_APDU [08:36:55]CAPDU: 80 13 00 00 [08:36:55]Write to MH i2c: E2 08 00 DC 0C 80 13 00 00 00 00 00 00 64 [08:36:55]Write i2c OK [08:36:55]MH_I2C_Read... [08:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:55]Read from MH i2c: E2 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 62 00 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 62 00 DC 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 82 02 00 0E 04 04 00 BE 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 D2 [08:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 82 02 00 0E 04 04 00 BE 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 [08:36:55]wFMCommunicate OK [08:36:55]SAM_PROTO_GetFieldsCounters done [08:36:55]requested_item shift.num is exist - process it [08:36:55]requested_item shift.opened is exist - process it [08:36:55]req_shift_opened [08:36:55]FM_GetShiftState [08:36:55]SAM_PROTO_GetShiftState [08:36:55]wFMCommunicate request_size=4 [08:36:55]MH_SAM_APDU [08:36:55]CAPDU: 80 13 01 00 [08:36:55]Write to MH i2c: E2 08 00 DD 0C 80 13 01 00 00 00 00 00 66 [08:36:55]Write i2c OK [08:36:55]MH_I2C_Read... [08:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:55]Read from MH i2c: E2 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 0E 00 [08:36:55]MH_I2C_Read... [08:36:55]Read from MH i2c: E2 0E 00 DD 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [08:36:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:36:55]wFMCommunicate OK [08:36:55]SAM_PROTO_GetShiftState done [08:36:55]FM_GetShiftState done [08:36:55]req_shift_opened done [08:36:55]requested_item shift.open_date is exist - process it [08:36:55]req_shift_open_date [08:36:55]req_shift_open_date done [08:36:55]produce_requested_data done [08:36:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164483,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:36:55]process_action_free close_receipt [08:36:55]json_value_free [08:36:55]json_value_free done [08:36:55]process_json_proto returns [08:36:55]Send response to host [08:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164483,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:36:55]free response buf [08:36:55]execute_script done [08:36:55]execute_script returns [08:36:55]free content buf [08:36:55]Sock 9.Close socket [08:36:55]Sock 9.Thread stoped [08:38:18]accept exits with 7 [08:38:18]New connection [08:38:18]New thread 3067301220 created [08:38:18]Thread 3067157860 joined [08:38:18]Waiting for new connection... [08:38:18] Sock 7.Parse request [08:38:18]Sock 7.Check first char [08:38:18]Sock 7.First char is OK [08:38:18]request: POST /json_proto HTTP/1.0 [08:38:18]Method: POST [08:38:18]URL: /json_proto [08:38:18]Method is POST - this is cgi request [08:38:18]url: /json_proto [08:38:18]query_string will be loaded in cgi processing [08:38:18]execute_cgi json_proto POST (null) [08:38:18]execute_cgi path=json_proto method=POST [08:38:18]POST find Content-Length [08:38:18]Host: 172.17.56.4:8080 [08:38:18]Content-Length: 679 [08:38:18]Content-Type: application/json [08:38:18] [08:38:18]POST finish read [08:38:18]Found Content-Length = 679 [08:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:18]execute_script... [08:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:18]POST & json_proto [08:38:18]process_json_proto [08:38:18]json parsed OK: [08:38:18]protocol is kg_v1.0 [08:38:18]action value=close_receipt [08:38:18]process_action close_receipt [08:38:18]cmd_close_receipt [08:38:18]MH_GetDate [08:38:18]Write to MH i2c: F0 00 00 DE 0C D9 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 09 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: F0 09 00 DE 0C 00 FC 3C 92 66 C9 DC B2 64 CD [08:38:18]GetLastDocTimeStamp 1720859813 [08:38:18]current date 1720859900 [08:38:18]FM_GetShiftState [08:38:18]SAM_PROTO_GetShiftState [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 13 01 00 [08:38:18]Write to MH i2c: E2 08 00 DF 0C 80 13 01 00 00 00 00 00 68 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0E 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0E 00 DF 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 49 [08:38:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_GetShiftState done [08:38:18]FM_GetShiftState done [08:38:18]opened in 1720831249 [08:38:18]opened+sec_in_day 1720917649 [08:38:18]quantity*price = 150055 [08:38:18]sum+1 = 150056 [08:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 44 13.07.2024 08:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164484 ФПД: 117657497836749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083820&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164484&fm=117657497836749&tin=02508201610067®Number=0000000000090829&sum=150000 [08:38:20]StoreToDocumentArchive [08:38:20]shift 446 fd 164484 [08:38:20]save to /storage/0446/doc_00164484 [08:38:20]save last doc name /storage/0446/doc_00164484 to /storage/kkm_last_doc_name [08:38:20]save OK [08:38:20]Clear old archive folders... [08:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:38:20]tlvbuf is 00B7B4B0 [08:38:20]SAM_PROTO_ClearQueue [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 09 00 00 [08:38:20]Write to MH i2c: E2 08 00 EC 0C 80 09 00 00 00 00 00 00 6A [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 EC 0C 00 90 00 6C [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_ClearQueue done [08:38:20]KKMCreateOFDPacket [08:38:20]OFDProtocolAddRootSTLVToBuf [08:38:20]FM_MakeSignedData [08:38:20]FM_MakeSignedData [08:38:20]SAM_PROTO_SignData [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 01 02 [08:38:20]Write to MH i2c: E2 08 00 ED 0C 80 0D 01 02 00 00 00 00 72 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 ED 0C 00 90 00 6D [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]wFMCommunicate request_size=255 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 82 02 00 35 04 06 00 6B 02 45 5D [08:38:20]Write to MH i2c: E2 02 01 EE 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 82 02 00 35 04 06 00 6B 02 45 5D 00 00 AB [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]wFMCommunicate request_size=7 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 02 02 02 1C CD [08:38:20]Write to MH i2c: E2 0A 00 EF 0C 80 0D 02 02 02 00 1C CD 00 00 62 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [08:38:20]RAPDU: 90 00 [08:38:20]wFMCommunicate OK [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 0D 03 02 [08:38:20]Write to MH i2c: E2 08 00 F0 0C 80 0D 03 02 00 00 00 00 77 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0B 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 0B 00 F0 0C 00 9A DD 9B 82 22 4B 94 45 90 00 52 [08:38:20]RAPDU: 9A DD 9B 82 22 4B 94 45 90 00 [08:38:20]wFMCommunicate OK [08:38:20]SAM_PROTO_SignData done [08:38:20]FM_MakeSignedData done [08:38:20]CreateOFDProtocolMessage [08:38:20]wFMCommunicate request_size=4 [08:38:20]MH_SAM_APDU [08:38:20]CAPDU: 80 11 00 00 [08:38:20]Write to MH i2c: E2 08 00 F1 0C 80 11 00 00 00 00 00 00 77 [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:20]Read from MH i2c: E2 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: E2 17 00 F1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [08:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:38:20]wFMCommunicate OK [08:38:20]CreateOFDProtocolMessage done [08:38:20]OFDSenderStorePacket 164484 [08:38:20]StoreOFDPacket docnum=164484 [08:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B9 F2 04 01 AE B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 82 02 00 35 04 06 00 6B 02 45 5D 1C CD 9A DD 9B 82 22 4B 94 45 [08:38:20]CheckFolder [08:38:20]dirname=/storage/ofd_packets [08:38:20]CheckFolder done [08:38:20]ProducePacketName [08:38:20]name=ofd_packets/00164484 [08:38:20]NVStorageSaveData ofd_packets/00164484 [08:38:20]File name is /storage/ofd_packets/00164484 [08:38:20]Write 298 bytes [08:38:20]NVStorageSaveData done [08:38:20]OFDSenderStorePacket done [08:38:20]KKMCreateOFDPacket done [08:38:20]NVStorageSaveData kkm_last_timestamp [08:38:20]File name is /storage/kkm_last_timestamp [08:38:20]Write 4 bytes [08:38:20]NVStorageSaveData done [08:38:20]ExternCall_PrintAddStr [08:38:20]wPrintStart [08:38:20]Write to MH i2c: 01 00 00 F2 0C FE [08:38:20]Write i2c OK [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 [08:38:20]MH_I2C_Read... [08:38:20]Read from MH i2c: 01 07 00 F2 0C 00 00 00 00 00 FF 0F 13 [08:38:20]RasterBufferAndPrint [08:38:20]line Счет N : (1)458571 [08:38:20]line ИНН: 02508201610067 [08:38:20]line Контрольно-Кассовый Чек [08:38:20]line ПРОДАЖА [08:38:20]line ТРК (МРК, ГНК) : 21 [08:38:20]line Товар: 2710194210 [08:38:20]line ДТ-К-5 [08:38:20]line 20.870 * 71.90 [08:38:20]line = 1500.55 [08:38:20]line НДС 12% НСП 1% [08:38:20]line > о реализуемом товаре [08:38:20]line ОКРУГЛЕНИЕ: -0.55 [08:38:20]line ИТОГО: 1500.00 [08:38:20]line Внесено: 1500.00 [08:38:20]line СДАЧА: 0.00 [08:38:20]line НСП 1% : 13.28 [08:38:20]line НДС 12% : 159.35 [08:38:20]line Наличными: 1500.00 [08:38:20]line Безнал.: 0.00 [08:38:20]line Место: АЗС № 72 "Партнер Нефть" [08:38:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:38:20]line СНО: Общий режим [08:38:20]line Чек 44 13.07.2024 08:38 [08:38:20]line Смена: 446 ФФД: 1.0 [08:38:20]line ЗНМ: 0300000160 [08:38:20]line РНМ: 0000000000090829 [08:38:20]line Версия ККМ: 001 [08:38:20]line ФМ: 0000000000874718 [08:38:20]line ФД: 164484 [08:38:20]line ФПД: 117657497836749 [08:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083820&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164484&fm=117657497836749&tin=02508201610067®Number=0000000000090829&sum=150000 [08:38:20]written 0, free lines is 4095 [08:38:21]Write to MH i2c: 01 00 00 1C 0D 29 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 F0 0C 2C [08:38:21]RasterBufferAndPrint [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]line [08:38:21]written 0, free lines is 3319 [08:38:21]MH_Cut [08:38:21]Write to MH i2c: D1 01 00 23 0D 01 02 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 01 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: D1 01 00 23 0D 00 01 [08:38:21]Write to MH i2c: 01 00 00 24 0D 31 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:22]*** Cut start [08:38:22]*** Partial cut [08:38:22]*** CUTSNS_PIN = 1 [08:38:22]*** CUTSNS_PIN = 0 [08:38:22]*** Brake cut motor [08:38:22]Read from MH i2c: 01 [08:38:22]MH_I2C_Read... [08:38:22]*** Stop cut motor [08:38:22]*** Cut end [08:38:22]Read from MH i2c: 01 07 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 FF 0F 46 [08:38:22]process_action close_receipt done [08:38:22]requested_data is exist [08:38:22]produce_requested_data [08:38:22]requested_item fm.sn is exist - process it [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 11 00 00 [08:38:22]Write to MH i2c: E2 08 00 25 0D 80 11 00 00 00 00 00 00 AC [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 17 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 17 00 25 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [08:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:38:22]wFMCommunicate OK [08:38:22]requested_item fd.num is exist - process it [08:38:22]SAM_PROTO_GetFieldsCounters [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 13 00 00 [08:38:22]Write to MH i2c: E2 08 00 26 0D 80 13 00 00 00 00 00 00 AF [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 62 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 62 00 26 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 82 02 00 0E 04 04 00 BE 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 21 [08:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 82 02 00 0E 04 04 00 BE 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 [08:38:22]wFMCommunicate OK [08:38:22]SAM_PROTO_GetFieldsCounters done [08:38:22]requested_item shift.num is exist - process it [08:38:22]requested_item shift.opened is exist - process it [08:38:22]req_shift_opened [08:38:22]FM_GetShiftState [08:38:22]SAM_PROTO_GetShiftState [08:38:22]wFMCommunicate request_size=4 [08:38:22]MH_SAM_APDU [08:38:22]CAPDU: 80 13 01 00 [08:38:22]Write to MH i2c: E2 08 00 27 0D 80 13 01 00 00 00 00 00 B1 [08:38:22]Write i2c OK [08:38:22]MH_I2C_Read... [08:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:22]Read from MH i2c: E2 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 0E 00 [08:38:22]MH_I2C_Read... [08:38:22]Read from MH i2c: E2 0E 00 27 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [08:38:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [08:38:22]wFMCommunicate OK [08:38:22]SAM_PROTO_GetShiftState done [08:38:22]FM_GetShiftState done [08:38:22]req_shift_opened done [08:38:22]requested_item shift.open_date is exist - process it [08:38:22]req_shift_open_date [08:38:22]req_shift_open_date done [08:38:22]produce_requested_data done [08:38:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164484,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [08:38:22]process_action_free close_receipt [08:38:22]json_value_free [08:38:22]json_value_free done [08:38:22]process_json_proto returns [08:38:22]Send response to host [08:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164484,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [08:38:22]free response buf [08:38:22]execute_script done [08:38:22]execute_script returns [08:38:22]free content buf [08:38:22]Sock 7.Close socket [08:38:22]Sock 7.Thread stoped [08:38:24]ConnectInit Can't connect to host [08:38:24]CommunicateWithHost connect error [08:38:24]CommunicateWithHost err = -1 [08:38:24]OFD Sender: Server communicate error [08:38:24]OFD Sender: Processing packet 164482 [packets to send 106, broken 103] [08:38:24]ProducePacketName [08:38:24]name=ofd_packets/00164482 [08:38:24]OFD Sender: To server: pG, [08:38:24]CommunicateWithHost lk.salyk.kg:30040 [08:38:24]ConnectInit lk.salyk.kg [08:38:24]Connected sock=7 [08:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC F5 07 01 79 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 00 00 00 F4 03 04 00 7A 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 82 02 00 35 04 06 00 5F 8B D7 59 8D 4F 6B 56 F5 A0 C0 E1 EF 9F [08:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 57 67 47 00 C8 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 34 37 31 38 10 04 04 00 82 82 02 00 F4 03 04 00 92 E3 91 66 B6 04 01 00 00 64 7D FE 42 D9 8A 88 10 [08:38:24]CommunicateWithHost err = 0 [08:38:24]CheckOFDResponse [08:38:24]1017 (14) - 77093643461234 [08:38:24]1041 (16) - 0000000000874718 [08:38:24]1040 (4) - 164482 [08:38:24]1012 (4) - 13.07.2024 02:16 [08:38:24]1206 (1) - 0 [08:38:24]OFD Sender: Remove packet 164482 [08:38:24]ProducePacketName [08:38:24]name=ofd_packets/00164482 [08:38:24]NVStorageDeleteData [08:38:25]OFD Sender: Processing packet 164483 [packets to send 105, broken 103] [08:38:25]ProducePacketName [08:38:25]name=ofd_packets/00164483 [08:38:25]OFD Sender: To server: pG, [08:38:25]CommunicateWithHost lk.salyk.kg:30040 [08:38:25]ConnectInit lk.salyk.kg [08:38:25]Connected sock=7 [08: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 34 37 31 38 0F 01 00 00 1D AF 07 01 71 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 82 02 00 35 04 06 00 CE 01 7A 3B 53 51 B6 44 36 F0 80 F4 2B EF [08:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 27 47 00 9B 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 82 02 00 F4 03 04 00 93 E3 91 66 B6 04 01 00 00 CA 6E 23 A7 72 59 8E DF [08:38:25]CommunicateWithHost err = 0 [08:38:25]CheckOFDResponse [08:38:25]1017 (14) - 77093643461234 [08:38:25]1041 (16) - 0000000000874718 [08:38:25]1040 (4) - 164483 [08:38:25]1012 (4) - 13.07.2024 02:16 [08:38:25]1206 (1) - 0 [08:38:25]OFD Sender: Remove packet 164483 [08:38:25]ProducePacketName [08:38:25]name=ofd_packets/00164483 [08:38:25]NVStorageDeleteData [08:38:26]OFD Sender: Processing packet 164484 [packets to send 104, broken 103] [08:38:26]ProducePacketName [08:38:26]name=ofd_packets/00164484 [08:38:26]OFD Sender: To server: pG, [08:38:26]CommunicateWithHost lk.salyk.kg:30040 [08:38:26]ConnectInit lk.salyk.kg [08:38:26]Connected sock=7 [08:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B9 F2 04 01 AE B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FC 3C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 82 02 00 35 04 06 00 6B 02 45 5D 1C CD 9A DD 9B 82 22 4B 94 45 [08:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A DD 47 00 DD 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 82 02 00 F4 03 04 00 93 E3 91 66 B6 04 01 00 00 8A E5 05 6C 98 E4 86 F8 [08:38:26]CommunicateWithHost err = 0 [08:38:26]CheckOFDResponse [08:38:26]1017 (14) - 77093643461234 [08:38:26]1041 (16) - 0000000000874718 [08:38:26]1040 (4) - 164484 [08:38:26]1012 (4) - 13.07.2024 02:16 [08:38:26]1206 (1) - 0 [08:38:26]OFD Sender: Remove packet 164484 [08:38:26]ProducePacketName [08:38:26]name=ofd_packets/00164484 [08:38:26]NVStorageDeleteData [08:38:26]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:33]accept exits with 9 [09:00:33]New connection [09:00:33]New thread 3067157860 created [09:00:33]Thread 3067301220 joined [09:00:33]Waiting for new connection... [09:00:33] Sock 9.Parse request [09:00:33]Sock 9.Check first char [09:00:33]Sock 9.First char is OK [09:00:33]request: POST /json_proto HTTP/1.0 [09:00:33]Method: POST [09:00:33]URL: /json_proto [09:00:33]Method is POST - this is cgi request [09:00:33]url: /json_proto [09:00:33]query_string will be loaded in cgi processing [09:00:33]execute_cgi json_proto POST (null) [09:00:33]execute_cgi path=json_proto method=POST [09:00:33]POST find Content-Length [09:00:33]Host: 172.17.56.4:8080 [09:00:33]Content-Length: 677 [09:00:33]Content-Type: application/json [09:00:33] [09:00:33]POST finish read [09:00:33]Found Content-Length = 677 [09:00:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:00:33]execute_script... [09:00: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)458572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:00:33]POST & json_proto [09:00:33]process_json_proto [09:00:33]json parsed OK: [09:00:33]protocol is kg_v1.0 [09:00:33]action value=close_receipt [09:00:33]process_action close_receipt [09:00:33]cmd_close_receipt [09:00:33]MH_GetDate [09:00:33]Write to MH i2c: F0 00 00 28 0D 24 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: F0 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: F0 09 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: F0 09 00 28 0D 00 33 42 92 66 C9 DC B2 64 55 [09:00:33]GetLastDocTimeStamp 1720859900 [09:00:33]current date 1720861235 [09:00:33]FM_GetShiftState [09:00:33]SAM_PROTO_GetShiftState [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 13 01 00 [09:00:33]Write to MH i2c: E2 08 00 29 0D 80 13 01 00 00 00 00 00 B3 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]*** 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 29 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 94 [09:00:33]RAPDU: 09 00 01 11 CD 91 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 1720831249 [09:00:33]opened+sec_in_day 1720917649 [09:00:33]quantity*price = 35005 [09:00:33]sum+1 = 35007 [09:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 45 13.07.2024 09:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164485 ФПД: 199221583445735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164485&fm=199221583445735&tin=02508201610067®Number=0000000000090829&sum=35000 [09:00:34]StoreToDocumentArchive [09:00:34]shift 446 fd 164485 [09:00:34]save to /storage/0446/doc_00164485 [09:00:34]save last doc name /storage/0446/doc_00164485 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 00BD1E20 [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 36 0D 80 09 00 00 00 00 00 00 B5 [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 36 0D 00 90 00 B7 [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 37 0D 80 0D 01 02 00 00 00 00 BD [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:35]Read from MH i2c: E2 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 37 0D 00 90 00 B8 [09:00:35]RAPDU: 90 00 [09:00:35]wFMCommunicate OK [09:00:35]wFMCommunicate request_size=255 [09:00:35]MH_SAM_APDU [09: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 82 02 00 35 04 06 00 B5 [09:00:35]Write to MH i2c: E2 02 01 38 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 82 02 00 35 04 06 00 B5 00 00 1D [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:35]Read from MH i2c: E2 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 38 0D 00 90 00 B9 [09:00:35]RAPDU: 90 00 [09:00:35]wFMCommunicate OK [09:00:35]wFMCommunicate request_size=10 [09:00:35]MH_SAM_APDU [09:00:35]CAPDU: 80 0D 02 02 05 30 E3 B6 7E E7 [09:00:35]Write to MH i2c: E2 0D 00 39 0D 80 0D 02 02 05 00 30 E3 B6 7E E7 00 00 F8 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:35]Read from MH i2c: E2 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 03 00 39 0D 00 90 00 BA [09:00:35]RAPDU: 90 00 [09:00:35]wFMCommunicate OK [09:00:35]wFMCommunicate request_size=4 [09:00:35]MH_SAM_APDU [09:00:35]CAPDU: 80 0D 03 02 [09:00:35]Write to MH i2c: E2 08 00 3A 0D 80 0D 03 02 00 00 00 00 C2 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:35]Read from MH i2c: E2 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 0B 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 0B 00 3A 0D 00 42 B4 07 00 18 24 25 A3 90 00 C4 [09:00:35]RAPDU: 42 B4 07 00 18 24 25 A3 90 00 [09:00:35]wFMCommunicate OK [09:00:35]SAM_PROTO_SignData done [09:00:35]FM_MakeSignedData done [09:00:35]CreateOFDProtocolMessage [09:00:35]wFMCommunicate request_size=4 [09:00:35]MH_SAM_APDU [09:00:35]CAPDU: 80 11 00 00 [09:00:35]Write to MH i2c: E2 08 00 3B 0D 80 11 00 00 00 00 00 00 C2 [09:00:35]Write i2c OK [09:00:35]MH_I2C_Read... [09:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:35]Read from MH i2c: E2 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 17 00 [09:00:35]MH_I2C_Read... [09:00:35]Read from MH i2c: E2 17 00 3B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [09:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:00:35]wFMCommunicate OK [09:00:35]CreateOFDProtocolMessage done [09:00:35]OFDSenderStorePacket 164485 [09:00:35]StoreOFDPacket docnum=164485 [09:00:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 13 07 01 36 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 82 02 00 35 04 06 00 B5 30 E3 B6 7E E7 42 B4 07 00 18 24 25 A3 [09:00:35]CheckFolder [09:00:35]dirname=/storage/ofd_packets [09:00:35]CheckFolder done [09:00:35]ProducePacketName [09:00:35]name=ofd_packets/00164485 [09:00:35]NVStorageSaveData ofd_packets/00164485 [09:00:35]File name is /storage/ofd_packets/00164485 [09:00:35]Write 301 bytes [09:00:35]NVStorageSaveData done [09:00:35]OFDSenderStorePacket done [09:00:35]KKMCreateOFDPacket done [09:00:35]NVStorageSaveData kkm_last_timestamp [09:00:35]File name is /storage/kkm_last_timestamp [09:00:35]Write 4 bytes [09:00:35]NVStorageSaveData done [09:00:35]ExternCall_PrintAddStr [09:00:35]wPrintStart [09:00:35]Write to MH i2c: 01 00 00 3C 0D 49 [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 3C 0D 00 00 00 00 00 FF 0F 5E [09:00:35]RasterBufferAndPrint [09:00:35]line Счет N : (1)458572 [09:00:35]line ИНН: 02508201610067 [09:00:35]line Контрольно-Кассовый Чек [09:00:35]line ПРОДАЖА [09:00:35]line ТРК (МРК, ГНК) : 12 [09:00:35]line Товар: 2710124130 [09:00:35]line Аи-92-К-5 [09:00:35]line 5.320 * 65.80 [09:00:35]line = 350.06 [09:00:35]line НДС 12% НСП 1% [09:00:35]line > о реализуемом товаре [09:00:35]line ОКРУГЛЕНИЕ: -0.06 [09:00:35]line ИТОГО: 350.00 [09:00:35]line Внесено: 350.00 [09:00:35]line СДАЧА: 0.00 [09:00:35]line НСП 1% : 3.10 [09:00:35]line НДС 12% : 37.17 [09:00:35]line Наличными: 350.00 [09:00:35]line Безнал.: 0.00 [09:00:35]line Место: АЗС № 72 "Партнер Нефть" [09:00:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:00:35]line СНО: Общий режим [09:00:35]line Чек 45 13.07.2024 09:00 [09:00:35]line Смена: 446 ФФД: 1.0 [09:00:35]line ЗНМ: 0300000160 [09:00:35]line РНМ: 0000000000090829 [09:00:35]line Версия ККМ: 001 [09:00:35]line ФМ: 0000000000874718 [09:00:35]line ФД: 164485 [09:00:35]line ФПД: 199221583445735 [09:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090035&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164485&fm=199221583445735&tin=02508201610067®Number=0000000000090829&sum=35000 [09:00:35]written 0, free lines is 4095 [09:00:35]OFD Sender: Processing packet 164485 [packets to send 104, broken 103] [09:00:35]ProducePacketName [09:00:35]name=ofd_packets/00164485 [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]Connected sock=10 [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 34 37 31 38 0F 01 00 00 02 13 07 01 36 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 82 02 00 35 04 06 00 B5 30 E3 B6 7E E7 42 B4 07 00 18 24 25 A3 [09:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 67 79 47 00 6B 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 34 37 31 38 10 04 04 00 85 82 02 00 F4 03 04 00 C5 E8 91 66 B6 04 01 00 00 07 F7 7A B8 71 33 B4 7B [09:00:36]CommunicateWithHost err = 0 [09:00:36]CheckOFDResponse [09:00:36]1017 (14) - 77093643461234 [09:00:36]1041 (16) - 0000000000874718 [09:00:36]1040 (4) - 164485 [09:00:36]1012 (4) - 13.07.2024 02:39 [09:00:36]1206 (1) - 0 [09:00:36]OFD Sender: Remove packet 164485 [09:00:36]ProducePacketName [09:00:36]name=ofd_packets/00164485 [09:00:36]NVStorageDeleteData [09:00:36]Write to MH i2c: 01 00 00 66 0D 73 [09:00:36]Write i2c OK [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: 01 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: 01 07 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 0B 0D 92 [09:00:36]RasterBufferAndPrint [09:00:36]line [09:00:36]line [09:00:36]line [09:00:36]line [09:00:36]line [09:00:36]written 0, free lines is 3345 [09:00:36]MH_Cut [09:00:36]Write to MH i2c: D1 01 00 6D 0D 01 4C [09:00:36]Write i2c OK [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: D1 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: D1 01 00 [09:00:36]MH_I2C_Read... [09:00:36]Read from MH i2c: D1 01 00 6D 0D 00 4B [09:00:36]Write to MH i2c: 01 00 00 6E 0D 7B [09:00:36]Write i2c OK [09:00:36]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:37]*** 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 6E 0D 00 00 00 00 00 FF 0F 90 [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 6F 0D 80 11 00 00 00 00 00 00 F6 [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 6F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [09:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 70 0D 80 13 00 00 00 00 00 00 F9 [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 70 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 82 02 00 0E 04 04 00 BE 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 6F [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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 82 02 00 0E 04 04 00 BE 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 [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 71 0D 80 13 01 00 00 00 00 00 FB [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 71 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DC [09:00:37]RAPDU: 09 00 01 11 CD 91 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":"0000000000874718","fd.num":164485,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [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":"0000000000874718","fd.num":164485,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [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 9.Close socket [09:00:37]Sock 9.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:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]accept exits with 7 [09:02:01]New connection [09:02:01]New thread 3067301220 created [09:02:01]Thread 3067157860 joined [09:02:01]Waiting for new connection... [09:02:01] Sock 7.Parse request [09:02:01]Sock 7.Check first char [09:02:01]Sock 7.First char is OK [09:02:01]request: POST /json_proto HTTP/1.0 [09:02:01]Method: POST [09:02:01]URL: /json_proto [09:02:01]Method is POST - this is cgi request [09:02:01]url: /json_proto [09:02:01]query_string will be loaded in cgi processing [09:02:01]execute_cgi json_proto POST (null) [09:02:01]execute_cgi path=json_proto method=POST [09:02:01]POST find Content-Length [09:02:01]Host: 172.17.56.4:8080 [09:02:01]Content-Length: 1197 [09:02:01]Content-Type: application/json [09:02:01] [09:02:01]POST finish read [09:02:01]Found Content-Length = 1197 [09:02:01]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458573\u000A13.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:01]execute_script... [09:02:01]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458573\u000A13.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:01]POST & json_proto [09:02:01]process_json_proto [09:02:01]json parsed OK: [09:02:01]protocol is kg_v1.0 [09:02:01]action value=print_text [09:02:01]process_action print_text [09:02:01]cmd_print_text [09:02:01]ExternCall_PrintAddStr [09:02:01]wPrintStart [09:02:01]Write to MH i2c: 01 00 00 72 0D 7F [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 72 0D 00 00 00 00 00 FF 0F 94 [09:02:01]RasterBufferAndPrint [09:02:01]line *****ТОВАРНЫЙ ЧЕК***** [09:02:01]line АЗС 72 [09:02:01]line Партнер нефть [09:02:01]line 02508201610067 [09:02:01]line Кассир : Женишбеков Т. [09:02:01]line Счет N : (1)458573 [09:02:01]line 13.07.2024 08:27 [09:02:01]line ПРОДАЖА [09:02:01]line ТРК (МРК, ГНК): 22 [09:02:01]line Вид ГСМ : 2710124130 [09:02:01]line Аи-92-К-5 [09:02:01]line 20.000 x 65.80 [09:02:01]line ИТОГ: 1316.00 [09:02:01]line Тип оплаты: Талоны: Партнер нефть [09:02:01]line 3040660 [09:02:01]line ______________________ [09:02:01]line (подпись) [09:02:01]written 0, free lines is 4095 [09:02:01]Write to MH i2c: 01 00 00 87 0D 94 [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 F8 0D A0 [09:02:01]RasterBufferAndPrint [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]written 0, free lines is 3578 [09:02:01]MH_Cut [09:02:01]Write to MH i2c: D1 01 00 8E 0D 01 6D [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 01 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 01 00 8E 0D 00 6C [09:02:01]Write to MH i2c: 01 00 00 8F 0D 9C [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]OFD Sender: No OFD packet to send [09:02:01]*** Cut start [09:02:01]*** Partial cut [09:02:01]*** CUTSNS_PIN = 1 [09:02:01]*** CUTSNS_PIN = 0 [09:02:02]*** Brake cut motor [09:02:02]Read from MH i2c: 01 [09:02:02]MH_I2C_Read... [09:02:02]*** Stop cut motor [09:02:02]*** Cut end [09:02:02]Read from MH i2c: 01 07 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [09:02:02]process_action print_text done [09:02:02]requested_data is exist [09:02:02]produce_requested_data [09:02:02]requested_item fm.sn is exist - process it [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 11 00 00 [09:02:02]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 17 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [09:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:02:02]wFMCommunicate OK [09:02:02]requested_item fd.num is exist - process it [09:02:02]SAM_PROTO_GetFieldsCounters [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 13 00 00 [09:02:02]Write to MH i2c: E2 08 00 91 0D 80 13 00 00 00 00 00 00 1A [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 62 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 62 00 91 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 82 02 00 0E 04 04 00 BE 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 90 [09:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 82 02 00 0E 04 04 00 BE 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 [09:02:02]wFMCommunicate OK [09:02:02]SAM_PROTO_GetFieldsCounters done [09:02:02]requested_item shift.num is exist - process it [09:02:02]requested_item shift.opened is exist - process it [09:02:02]req_shift_opened [09:02:02]FM_GetShiftState [09:02:02]SAM_PROTO_GetShiftState [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 13 01 00 [09:02:02]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FD [09:02:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:02:02]wFMCommunicate OK [09:02:02]SAM_PROTO_GetShiftState done [09:02:02]FM_GetShiftState done [09:02:02]req_shift_opened done [09:02:02]requested_item shift.open_date is exist - process it [09:02:02]req_shift_open_date [09:02:02]req_shift_open_date done [09:02:02]produce_requested_data done [09:02:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164485,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:02:02]process_action_free print_text [09:02:02]json_value_free [09:02:02]json_value_free done [09:02:02]process_json_proto returns [09:02:02]Send response to host [09:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164485,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:02:02]free response buf [09:02:02]execute_script done [09:02:02]execute_script returns [09:02:02]free content buf [09:02:02]Sock 7.Close socket [09:02:02]Sock 7.Thread stoped [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:14]accept exits with 10 [09:03:14]New connection [09:03:14]New thread 3067157860 created [09:03:14]Thread 3067301220 joined [09:03:14]Waiting for new connection... [09:03:14] Sock 10.Parse request [09:03:14]Sock 10.Check first char [09:03:14]Sock 10.First char is OK [09:03:14]request: POST /json_proto HTTP/1.0 [09:03:14]Method: POST [09:03:14]URL: /json_proto [09:03:14]Method is POST - this is cgi request [09:03:14]url: /json_proto [09:03:14]query_string will be loaded in cgi processing [09:03:14]execute_cgi json_proto POST (null) [09:03:14]execute_cgi path=json_proto method=POST [09:03:14]POST find Content-Length [09:03:14]Host: 172.17.56.4:8080 [09:03:14]Content-Length: 682 [09:03:14]Content-Type: application/json [09:03:14] [09:03:14]POST finish read [09:03:14]Found Content-Length = 682 [09:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:14]execute_script... [09:03: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)458574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:14]POST & json_proto [09:03:14]process_json_proto [09:03:14]json parsed OK: [09:03:14]protocol is kg_v1.0 [09:03:14]action value=close_receipt [09:03:14]process_action close_receipt [09:03:14]cmd_close_receipt [09:03:14]MH_GetDate [09:03:14]Write to MH i2c: F0 00 00 93 0D 8F [09:03:14]Write i2c OK [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: F0 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: F0 09 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: F0 09 00 93 0D 00 D4 42 92 66 C9 DC B2 64 61 [09:03:14]GetLastDocTimeStamp 1720861235 [09:03:14]current date 1720861396 [09:03:14]FM_GetShiftState [09:03:14]SAM_PROTO_GetShiftState [09:03:14]wFMCommunicate request_size=4 [09:03:14]MH_SAM_APDU [09:03:14]CAPDU: 80 13 01 00 [09:03:14]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [09:03:14]Write i2c OK [09:03:14]MH_I2C_Read... [09:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:14]Read from MH i2c: E2 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 0E 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FF [09:03:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:03:14]wFMCommunicate OK [09:03:14]SAM_PROTO_GetShiftState done [09:03:14]FM_GetShiftState done [09:03:14]opened in 1720831249 [09:03:14]opened+sec_in_day 1720917649 [09:03:14]quantity*price = 100016 [09:03:14]sum+1 = 100017 [09:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 46 13.07.2024 09:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164486 ФПД: 274154509148267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164486&fm=274154509148267&tin=02508201610067®Number=0000000000090829&sum=100000 [09:03:15]StoreToDocumentArchive [09:03:15]shift 446 fd 164486 [09:03:15]save to /storage/0446/doc_00164486 [09:03:15]save last doc name /storage/0446/doc_00164486 to /storage/kkm_last_doc_name [09:03:15]save OK [09:03:15]Clear old archive folders... [09:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:15]tlvbuf is 00BF61A0 [09:03:15]SAM_PROTO_ClearQueue [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 09 00 00 [09:03:15]Write to MH i2c: E2 08 00 A1 0D 80 09 00 00 00 00 00 00 20 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [09:03:15]RAPDU: 90 00 [09:03:15]wFMCommunicate OK [09:03:15]SAM_PROTO_ClearQueue done [09:03:15]KKMCreateOFDPacket [09:03:15]OFDProtocolAddRootSTLVToBuf [09:03:15]FM_MakeSignedData [09:03:15]FM_MakeSignedData [09:03:15]SAM_PROTO_SignData [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 0D 01 02 [09:03:15]Write to MH i2c: E2 08 00 A2 0D 80 0D 01 02 00 00 00 00 28 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [09:03:15]RAPDU: 90 00 [09:03:15]wFMCommunicate OK [09:03:15]wFMCommunicate request_size=255 [09:03:15]MH_SAM_APDU [09:03: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D4 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 82 02 00 35 04 06 00 F9 [09:03:15]Write to MH i2c: E2 02 01 A3 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D4 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 82 02 00 35 04 06 00 F9 00 00 41 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [09:03:15]RAPDU: 90 00 [09:03:15]wFMCommunicate OK [09:03:15]wFMCommunicate request_size=10 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 0D 02 02 05 57 92 21 A0 6B [09:03:15]Write to MH i2c: E2 0D 00 A4 0D 80 0D 02 02 05 00 57 92 21 A0 6B 00 00 4A [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [09:03:15]RAPDU: 90 00 [09:03:15]wFMCommunicate OK [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 0D 03 02 [09:03:15]Write to MH i2c: E2 08 00 A5 0D 80 0D 03 02 00 00 00 00 2D [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0B 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 0B 00 A5 0D 00 AE DB AA 2A 6B 8F 39 ED 90 00 AB [09:03:15]RAPDU: AE DB AA 2A 6B 8F 39 ED 90 00 [09:03:15]wFMCommunicate OK [09:03:15]SAM_PROTO_SignData done [09:03:15]FM_MakeSignedData done [09:03:15]CreateOFDProtocolMessage [09:03:15]wFMCommunicate request_size=4 [09:03:15]MH_SAM_APDU [09:03:15]CAPDU: 80 11 00 00 [09:03:15]Write to MH i2c: E2 08 00 A6 0D 80 11 00 00 00 00 00 00 2D [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:15]Read from MH i2c: E2 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 17 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: E2 17 00 A6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [09:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:15]wFMCommunicate OK [09:03:15]CreateOFDProtocolMessage done [09:03:15]OFDSenderStorePacket 164486 [09:03:15]StoreOFDPacket docnum=164486 [09:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 72 07 01 41 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D4 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 82 02 00 35 04 06 00 F9 57 92 21 A0 6B AE DB AA 2A 6B 8F 39 ED [09:03:15]CheckFolder [09:03:15]dirname=/storage/ofd_packets [09:03:15]CheckFolder done [09:03:15]ProducePacketName [09:03:15]name=ofd_packets/00164486 [09:03:15]NVStorageSaveData ofd_packets/00164486 [09:03:15]File name is /storage/ofd_packets/00164486 [09:03:15]Write 301 bytes [09:03:15]NVStorageSaveData done [09:03:15]OFDSenderStorePacket done [09:03:15]KKMCreateOFDPacket done [09:03:15]NVStorageSaveData kkm_last_timestamp [09:03:15]File name is /storage/kkm_last_timestamp [09:03:15]Write 4 bytes [09:03:15]NVStorageSaveData done [09:03:15]ExternCall_PrintAddStr [09:03:15]wPrintStart [09:03:15]Write to MH i2c: 01 00 00 A7 0D B4 [09:03:15]Write i2c OK [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: 01 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: 01 07 00 [09:03:15]MH_I2C_Read... [09:03:15]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [09:03:15]RasterBufferAndPrint [09:03:15]line Счет N : (1)458574 [09:03:15]line ИНН: 02508201610067 [09:03:15]line Контрольно-Кассовый Чек [09:03:15]line ПРОДАЖА [09:03:15]line ТРК (МРК, ГНК) : 12 [09:03:15]line Товар: 2710124130 [09:03:15]line Аи-92-К-5 [09:03:15]line 15.200 * 65.80 [09:03:15]line = 1000.16 [09:03:15]line НДС 12% НСП 1% [09:03:15]line > о реализуемом товаре [09:03:15]line ОКРУГЛЕНИЕ: -0.16 [09:03:15]line ИТОГО: 1000.00 [09:03:15]line Внесено: 1000.00 [09:03:15]line СДАЧА: 0.00 [09:03:15]line НСП 1% : 8.85 [09:03:15]line НДС 12% : 106.21 [09:03:15]line Наличными: 1000.00 [09:03:15]line Безнал.: 0.00 [09:03:15]line Место: АЗС № 72 "Партнер Нефть" [09:03:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:03:15]line СНО: Общий режим [09:03:15]line Чек 46 13.07.2024 09:03 [09:03:15]line Смена: 446 ФФД: 1.0 [09:03:15]line ЗНМ: 0300000160 [09:03:15]line РНМ: 0000000000090829 [09:03:15]line Версия ККМ: 001 [09:03:15]line ФМ: 0000000000874718 [09:03:15]line ФД: 164486 [09:03:15]line ФПД: 274154509148267 [09:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164486&fm=274154509148267&tin=02508201610067®Number=0000000000090829&sum=100000 [09:03:16]OFD Sender: Processing packet 164486 [packets to send 104, broken 103] [09:03:16]ProducePacketName [09:03:16]name=ofd_packets/00164486 [09:03:16]OFD Sender: To server: pG, [09:03:16]CommunicateWithHost lk.salyk.kg:30040 [09:03:16]ConnectInit lk.salyk.kg [09:03:16]written 0, free lines is 4095 [09:03:16]Connected sock=9 [09:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 72 07 01 41 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D4 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 82 02 00 35 04 06 00 F9 57 92 21 A0 6B AE DB AA 2A 6B 8F 39 ED [09:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 67 47 00 E2 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 82 02 00 F4 03 04 00 65 E9 91 66 B6 04 01 00 00 5C C9 1E 61 F7 BA 94 A8 [09:03:16]CommunicateWithHost err = 0 [09:03:16]CheckOFDResponse [09:03:16]1017 (14) - 77093643461234 [09:03:16]1041 (16) - 0000000000874718 [09:03:16]1040 (4) - 164486 [09:03:16]1012 (4) - 13.07.2024 02:41 [09:03:16]1206 (1) - 0 [09:03:16]OFD Sender: Remove packet 164486 [09:03:16]ProducePacketName [09:03:16]name=ofd_packets/00164486 [09:03:16]NVStorageDeleteData [09:03:16]Write to MH i2c: 01 00 00 D1 0D DE [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 0B 0D FD [09:03:16]RasterBufferAndPrint [09:03:16]line [09:03:16]line [09:03:16]line [09:03:16]line [09:03:16]line [09:03:16]written 0, free lines is 3345 [09:03:16]MH_Cut [09:03:16]Write to MH i2c: D1 01 00 D8 0D 01 B7 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: D1 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: D1 01 00 [09:03:16]MH_I2C_Read... [09:03:16]Read from MH i2c: D1 01 00 D8 0D 00 B6 [09:03:16]Write to MH i2c: 01 00 00 D9 0D E6 [09:03:16]Write i2c OK [09:03:16]MH_I2C_Read... [09:03:17]OFD Sender: No OFD packet to send [09:03:17]*** Cut start [09:03:17]*** Partial cut [09:03:17]*** CUTSNS_PIN = 1 [09:03:17]*** CUTSNS_PIN = 0 [09:03:17]*** Brake cut motor [09:03:17]Read from MH i2c: 01 [09:03:17]MH_I2C_Read... [09:03:17]*** Stop cut motor [09:03:17]*** Cut end [09:03:17]Read from MH i2c: 01 07 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [09:03:17]process_action close_receipt done [09:03:17]requested_data is exist [09:03:17]produce_requested_data [09:03:17]requested_item fm.sn is exist - process it [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 11 00 00 [09:03:17]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [09:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:17]wFMCommunicate OK [09:03:17]requested_item fd.num is exist - process it [09:03:17]SAM_PROTO_GetFieldsCounters [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 13 00 00 [09:03:17]Write to MH i2c: E2 08 00 DB 0D 80 13 00 00 00 00 00 00 64 [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 62 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 62 00 DB 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 82 02 00 0E 04 04 00 BE 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 DE [09:03: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 82 02 00 0E 04 04 00 BE 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 [09:03:18]wFMCommunicate OK [09:03:18]SAM_PROTO_GetFieldsCounters done [09:03:18]requested_item shift.num is exist - process it [09:03:18]requested_item shift.opened is exist - process it [09:03:18]req_shift_opened [09:03:18]FM_GetShiftState [09:03:18]SAM_PROTO_GetShiftState [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 13 01 00 [09:03:18]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 0E 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [09:03:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:03:18]wFMCommunicate OK [09:03:18]SAM_PROTO_GetShiftState done [09:03:18]FM_GetShiftState done [09:03:18]req_shift_opened done [09:03:18]requested_item shift.open_date is exist - process it [09:03:18]req_shift_open_date [09:03:18]req_shift_open_date done [09:03:18]produce_requested_data done [09:03:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164486,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:03:18]process_action_free close_receipt [09:03:18]json_value_free [09:03:18]json_value_free done [09:03:18]process_json_proto returns [09:03:18]Send response to host [09:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164486,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:03:18]free response buf [09:03:18]execute_script done [09:03:18]execute_script returns [09:03:18]free content buf [09:03:18]Sock 10.Close socket [09:03:18]Sock 10.Thread stoped [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:36]accept exits with 7 [09:03:36]New connection [09:03:36]New thread 3067301220 created [09:03:36]Thread 3067157860 joined [09:03:36]Waiting for new connection... [09:03:36] Sock 7.Parse request [09:03:36]Sock 7.Check first char [09:03:36]Sock 7.First char is OK [09:03:36]request: POST /json_proto HTTP/1.0 [09:03:36]Method: POST [09:03:36]URL: /json_proto [09:03:36]Method is POST - this is cgi request [09:03:36]url: /json_proto [09:03:36]query_string will be loaded in cgi processing [09:03:36]execute_cgi json_proto POST (null) [09:03:36]execute_cgi path=json_proto method=POST [09:03:36]POST find Content-Length [09:03:36]Host: 172.17.56.4:8080 [09:03:36]Content-Length: 677 [09:03:36]Content-Type: application/json [09:03:36] [09:03:36]POST finish read [09:03:36]Found Content-Length = 677 [09:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:36]execute_script... [09:03:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:36]POST & json_proto [09:03:36]process_json_proto [09:03:36]json parsed OK: [09:03:36]protocol is kg_v1.0 [09:03:36]action value=close_receipt [09:03:36]process_action close_receipt [09:03:36]cmd_close_receipt [09:03:36]MH_GetDate [09:03:36]Write to MH i2c: F0 00 00 DD 0D D9 [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: F0 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: F0 09 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: F0 09 00 DD 0D 00 EA 42 92 66 C9 DC B2 64 C1 [09:03:36]GetLastDocTimeStamp 1720861396 [09:03:36]current date 1720861418 [09:03:36]FM_GetShiftState [09:03:36]SAM_PROTO_GetShiftState [09:03:36]wFMCommunicate request_size=4 [09:03:36]MH_SAM_APDU [09:03:36]CAPDU: 80 13 01 00 [09:03:36]Write to MH i2c: E2 08 00 DE 0D 80 13 01 00 00 00 00 00 68 [09:03:36]Write i2c OK [09:03:36]MH_I2C_Read... [09:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:36]Read from MH i2c: E2 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 0E 00 [09:03:36]MH_I2C_Read... [09:03:36]Read from MH i2c: E2 0E 00 DE 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 49 [09:03:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:03:36]wFMCommunicate OK [09:03:36]SAM_PROTO_GetShiftState done [09:03:36]FM_GetShiftState done [09:03:36]opened in 1720831249 [09:03:36]opened+sec_in_day 1720917649 [09:03:36]quantity*price = 20003 [09:03:36]sum+1 = 20004 [09:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 47 13.07.2024 09:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164487 ФПД: 207441102663664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164487&fm=207441102663664&tin=02508201610067®Number=0000000000090829&sum=20000 [09:03:38]StoreToDocumentArchive [09:03:38]shift 446 fd 164487 [09:03:38]save to /storage/0446/doc_00164487 [09:03:38]save last doc name /storage/0446/doc_00164487 to /storage/kkm_last_doc_name [09:03:38]save OK [09:03:38]Clear old archive folders... [09:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:38]tlvbuf is 00B89190 [09:03:38]SAM_PROTO_ClearQueue [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 09 00 00 [09:03:38]Write to MH i2c: E2 08 00 EB 0D 80 09 00 00 00 00 00 00 6A [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [09:03:38]RAPDU: 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_ClearQueue done [09:03:38]KKMCreateOFDPacket [09:03:38]OFDProtocolAddRootSTLVToBuf [09:03:38]FM_MakeSignedData [09:03:38]FM_MakeSignedData [09:03:38]SAM_PROTO_SignData [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 0D 01 02 [09:03:38]Write to MH i2c: E2 08 00 EC 0D 80 0D 01 02 00 00 00 00 72 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [09:03:38]RAPDU: 90 00 [09:03:38]wFMCommunicate OK [09:03:38]wFMCommunicate request_size=255 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EA 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 82 02 00 35 04 06 00 BC [09:03:38]Write to MH i2c: E2 02 01 ED 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EA 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 82 02 00 35 04 06 00 BC 00 00 65 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [09:03:38]RAPDU: 90 00 [09:03:38]wFMCommunicate OK [09:03:38]wFMCommunicate request_size=10 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 0D 02 02 05 AA A5 3C 6F F0 [09:03:38]Write to MH i2c: E2 0D 00 EE 0D 80 0D 02 02 05 00 AA A5 3C 6F F0 00 00 69 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [09:03:38]RAPDU: 90 00 [09:03:38]wFMCommunicate OK [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 0D 03 02 [09:03:38]Write to MH i2c: E2 08 00 EF 0D 80 0D 03 02 00 00 00 00 77 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0B 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 0B 00 EF 0D 00 B5 EC BF AD C4 97 8E 77 90 00 E5 [09:03:38]RAPDU: B5 EC BF AD C4 97 8E 77 90 00 [09:03:38]wFMCommunicate OK [09:03:38]SAM_PROTO_SignData done [09:03:38]FM_MakeSignedData done [09:03:38]CreateOFDProtocolMessage [09:03:38]wFMCommunicate request_size=4 [09:03:38]MH_SAM_APDU [09:03:38]CAPDU: 80 11 00 00 [09:03:38]Write to MH i2c: E2 08 00 F0 0D 80 11 00 00 00 00 00 00 77 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:38]Read from MH i2c: E2 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 17 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: E2 17 00 F0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [09:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:38]wFMCommunicate OK [09:03:38]CreateOFDProtocolMessage done [09:03:38]OFDSenderStorePacket 164487 [09:03:38]StoreOFDPacket docnum=164487 [09:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 80 07 01 ED 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EA 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 82 02 00 35 04 06 00 BC AA A5 3C 6F F0 B5 EC BF AD C4 97 8E 77 [09:03:38]CheckFolder [09:03:38]dirname=/storage/ofd_packets [09:03:38]CheckFolder done [09:03:38]ProducePacketName [09:03:38]name=ofd_packets/00164487 [09:03:38]NVStorageSaveData ofd_packets/00164487 [09:03:38]File name is /storage/ofd_packets/00164487 [09:03:38]Write 301 bytes [09:03:38]NVStorageSaveData done [09:03:38]OFDSenderStorePacket done [09:03:38]KKMCreateOFDPacket done [09:03:38]NVStorageSaveData kkm_last_timestamp [09:03:38]File name is /storage/kkm_last_timestamp [09:03:38]Write 4 bytes [09:03:38]NVStorageSaveData done [09:03:38]ExternCall_PrintAddStr [09:03:38]wPrintStart [09:03:38]Write to MH i2c: 01 00 00 F1 0D FE [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [09:03:38]RasterBufferAndPrint [09:03:38]line Счет N : (1)458575 [09:03:38]line ИНН: 02508201610067 [09:03:38]line Контрольно-Кассовый Чек [09:03:38]line ПРОДАЖА [09:03:38]line ТРК (МРК, ГНК) : 22 [09:03:38]line Товар: 2710124130 [09:03:38]line Аи-92-К-5 [09:03:38]line 3.040 * 65.80 [09:03:38]line = 200.03 [09:03:38]line НДС 12% НСП 1% [09:03:38]line > о реализуемом товаре [09:03:38]line ОКРУГЛЕНИЕ: -0.03 [09:03:38]line ИТОГО: 200.00 [09:03:38]line Внесено: 200.00 [09:03:38]line СДАЧА: 0.00 [09:03:38]line НСП 1% : 1.77 [09:03:38]line НДС 12% : 21.24 [09:03:38]line Наличными: 200.00 [09:03:38]line Безнал.: 0.00 [09:03:38]line Место: АЗС № 72 "Партнер Нефть" [09:03:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:03:38]line СНО: Общий режим [09:03:38]line Чек 47 13.07.2024 09:03 [09:03:38]line Смена: 446 ФФД: 1.0 [09:03:38]line ЗНМ: 0300000160 [09:03:38]line РНМ: 0000000000090829 [09:03:38]line Версия ККМ: 001 [09:03:38]line ФМ: 0000000000874718 [09:03:38]line ФД: 164487 [09:03:38]line ФПД: 207441102663664 [09:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164487&fm=207441102663664&tin=02508201610067®Number=0000000000090829&sum=20000 [09:03:38]written 0, free lines is 4095 [09:03:38]OFD Sender: Processing packet 164487 [packets to send 104, broken 103] [09:03:38]ProducePacketName [09:03:38]name=ofd_packets/00164487 [09:03:38]OFD Sender: To server: pG, [09:03:38]CommunicateWithHost lk.salyk.kg:30040 [09:03:38]ConnectInit lk.salyk.kg [09:03:38]Connected sock=10 [09:03:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 80 07 01 ED 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EA 42 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 82 02 00 35 04 06 00 BC AA A5 3C 6F F0 B5 EC BF AD C4 97 8E 77 [09:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 CB 47 00 A2 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 34 37 31 38 10 04 04 00 87 82 02 00 F4 03 04 00 7C E9 91 66 B6 04 01 00 00 1A 3E 9B 3B EF 4C C3 01 [09:03:38]CommunicateWithHost err = 0 [09:03:38]CheckOFDResponse [09:03:38]1017 (14) - 77093643461234 [09:03:38]1041 (16) - 0000000000874718 [09:03:38]1040 (4) - 164487 [09:03:38]1012 (4) - 13.07.2024 02:42 [09:03:38]1206 (1) - 0 [09:03:38]OFD Sender: Remove packet 164487 [09:03:38]ProducePacketName [09:03:38]name=ofd_packets/00164487 [09:03:38]NVStorageDeleteData [09:03:39]Write to MH i2c: 01 00 00 1B 0E 29 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 07 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: 01 07 00 1B 0E 00 00 00 00 00 0A 0D 47 [09:03:39]RasterBufferAndPrint [09:03:39]line [09:03:39]line [09:03:39]line [09:03:39]line [09:03:39]line [09:03:39]written 0, free lines is 3344 [09:03:39]MH_Cut [09:03:39]Write to MH i2c: D1 01 00 22 0E 01 02 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: D1 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: D1 01 00 [09:03:39]MH_I2C_Read... [09:03:39]Read from MH i2c: D1 01 00 22 0E 00 01 [09:03:39]Write to MH i2c: 01 00 00 23 0E 31 [09:03:39]Write i2c OK [09:03:39]MH_I2C_Read... [09:03:39]OFD Sender: No OFD packet to send [09:03:39]*** Cut start [09:03:39]*** Partial cut [09:03:39]*** CUTSNS_PIN = 1 [09:03:39]*** CUTSNS_PIN = 0 [09:03:39]*** Brake cut motor [09:03:40]Read from MH i2c: 01 [09:03:40]MH_I2C_Read... [09:03:40]*** Stop cut motor [09:03:40]*** Cut end [09:03:40]Read from MH i2c: 01 07 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 FF 0F 46 [09:03:40]process_action close_receipt done [09:03:40]requested_data is exist [09:03:40]produce_requested_data [09:03:40]requested_item fm.sn is exist - process it [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 11 00 00 [09:03:40]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:40]Read from MH i2c: E2 17 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [09:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:40]wFMCommunicate OK [09:03:40]requested_item fd.num is exist - process it [09:03:40]SAM_PROTO_GetFieldsCounters [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 13 00 00 [09:03:40]Write to MH i2c: E2 08 00 25 0E 80 13 00 00 00 00 00 00 AF [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 62 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 62 00 25 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 82 02 00 0E 04 04 00 BE 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 2D [09:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 82 02 00 0E 04 04 00 BE 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 [09:03:40]wFMCommunicate OK [09:03:40]SAM_PROTO_GetFieldsCounters done [09:03:40]requested_item shift.num is exist - process it [09:03:40]requested_item shift.opened is exist - process it [09:03:40]req_shift_opened [09:03:40]FM_GetShiftState [09:03:40]SAM_PROTO_GetShiftState [09:03:40]wFMCommunicate request_size=4 [09:03:40]MH_SAM_APDU [09:03:40]CAPDU: 80 13 01 00 [09:03:40]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [09:03:40]Write i2c OK [09:03:40]MH_I2C_Read... [09:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:40]Read from MH i2c: E2 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0E 00 [09:03:40]MH_I2C_Read... [09:03:40]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [09:03:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:03:40]wFMCommunicate OK [09:03:40]SAM_PROTO_GetShiftState done [09:03:40]FM_GetShiftState done [09:03:40]req_shift_opened done [09:03:40]requested_item shift.open_date is exist - process it [09:03:40]req_shift_open_date [09:03:40]req_shift_open_date done [09:03:40]produce_requested_data done [09:03:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164487,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:03:40]process_action_free close_receipt [09:03:40]json_value_free [09:03:40]json_value_free done [09:03:40]process_json_proto returns [09:03:40]Send response to host [09:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164487,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:03:40]free response buf [09:03:40]execute_script done [09:03:40]execute_script returns [09:03:40]free content buf [09:03:40]Sock 7.Close socket [09:03:40]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:15]accept exits with 9 [09:07:15]New connection [09:07:15]New thread 3067157860 created [09:07:15]Thread 3067301220 joined [09:07:15]Waiting for new connection... [09:07:15] Sock 9.Parse request [09:07:15]Sock 9.Check first char [09:07:15]Sock 9.First char is OK [09:07:15]request: POST /json_proto HTTP/1.0 [09:07:15]Method: POST [09:07:15]URL: /json_proto [09:07:15]Method is POST - this is cgi request [09:07:15]url: /json_proto [09:07:15]query_string will be loaded in cgi processing [09:07:15]execute_cgi json_proto POST (null) [09:07:15]execute_cgi path=json_proto method=POST [09:07:15]POST find Content-Length [09:07:15]Host: 172.17.56.4:8080 [09:07:15]Content-Length: 677 [09:07:15]Content-Type: application/json [09:07:15] [09:07:15]POST finish read [09:07:15]Found Content-Length = 677 [09:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:07:15]execute_script... [09:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:07:15]POST & json_proto [09:07:15]process_json_proto [09:07:15]json parsed OK: [09:07:15]protocol is kg_v1.0 [09:07:15]action value=close_receipt [09:07:15]process_action close_receipt [09:07:15]cmd_close_receipt [09:07:15]MH_GetDate [09:07:15]Write to MH i2c: F0 00 00 27 0E 24 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: F0 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: F0 09 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: F0 09 00 27 0E 00 C5 43 92 66 C9 DC B2 64 E8 [09:07:15]GetLastDocTimeStamp 1720861418 [09:07:15]current date 1720861637 [09:07:15]FM_GetShiftState [09:07:15]SAM_PROTO_GetShiftState [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 13 01 00 [09:07:15]Write to MH i2c: E2 08 00 28 0E 80 13 01 00 00 00 00 00 B3 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 0E 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 0E 00 28 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 94 [09:07:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:07:15]wFMCommunicate OK [09:07:15]SAM_PROTO_GetShiftState done [09:07:15]FM_GetShiftState done [09:07:15]opened in 1720831249 [09:07:15]opened+sec_in_day 1720917649 [09:07:15]quantity*price = 35005 [09:07:15]sum+1 = 35007 [09:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 48 13.07.2024 09:07 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164488 ФПД: 196726723245793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090717&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164488&fm=196726723245793&tin=02508201610067®Number=0000000000090829&sum=35000 [09:07:16]StoreToDocumentArchive [09:07:16]shift 446 fd 164488 [09:07:16]save to /storage/0446/doc_00164488 [09:07:16]save last doc name /storage/0446/doc_00164488 to /storage/kkm_last_doc_name [09:07:16]save OK [09:07:16]Clear old archive folders... [09:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:16]tlvbuf is 00B6EDE0 [09:07:16]SAM_PROTO_ClearQueue [09:07:16]wFMCommunicate request_size=4 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 09 00 00 [09:07:16]Write to MH i2c: E2 08 00 35 0E 80 09 00 00 00 00 00 00 B5 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [09:07:16]RAPDU: 90 00 [09:07:16]wFMCommunicate OK [09:07:16]SAM_PROTO_ClearQueue done [09:07:16]KKMCreateOFDPacket [09:07:16]OFDProtocolAddRootSTLVToBuf [09:07:16]FM_MakeSignedData [09:07:16]FM_MakeSignedData [09:07:16]SAM_PROTO_SignData [09:07:16]wFMCommunicate request_size=4 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 0D 01 02 [09:07:16]Write to MH i2c: E2 08 00 36 0E 80 0D 01 02 00 00 00 00 BD [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [09:07:16]RAPDU: 90 00 [09:07:16]wFMCommunicate OK [09:07:16]wFMCommunicate request_size=255 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C5 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 82 02 00 35 04 06 00 B2 [09:07:16]Write to MH i2c: E2 02 01 37 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C5 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 82 02 00 35 04 06 00 B2 00 00 B3 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:16]Read from MH i2c: E2 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 [09:07:16]MH_I2C_Read... [09:07:16]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [09:07:16]RAPDU: 90 00 [09:07:16]wFMCommunicate OK [09:07:16]wFMCommunicate request_size=10 [09:07:16]MH_SAM_APDU [09:07:16]CAPDU: 80 0D 02 02 05 EC 02 74 F6 E1 [09:07:16]Write to MH i2c: E2 0D 00 38 0E 80 0D 02 02 05 00 EC 02 74 F6 E1 00 00 03 [09:07:16]Write i2c OK [09:07:16]MH_I2C_Read... [09:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:17]Read from MH i2c: E2 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 03 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [09:07:17]RAPDU: 90 00 [09:07:17]wFMCommunicate OK [09:07:17]wFMCommunicate request_size=4 [09:07:17]MH_SAM_APDU [09:07:17]CAPDU: 80 0D 03 02 [09:07:17]Write to MH i2c: E2 08 00 39 0E 80 0D 03 02 00 00 00 00 C2 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:17]Read from MH i2c: E2 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 0B 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 0B 00 39 0E 00 94 59 BD F0 9A 33 34 93 90 00 F1 [09:07:17]RAPDU: 94 59 BD F0 9A 33 34 93 90 00 [09:07:17]wFMCommunicate OK [09:07:17]SAM_PROTO_SignData done [09:07:17]FM_MakeSignedData done [09:07:17]CreateOFDProtocolMessage [09:07:17]wFMCommunicate request_size=4 [09:07:17]MH_SAM_APDU [09:07:17]CAPDU: 80 11 00 00 [09:07:17]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:17]Read from MH i2c: E2 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 17 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [09:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:07:17]wFMCommunicate OK [09:07:17]CreateOFDProtocolMessage done [09:07:17]OFDSenderStorePacket 164488 [09:07:17]StoreOFDPacket docnum=164488 [09:07:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E B8 07 01 29 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C5 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 82 02 00 35 04 06 00 B2 EC 02 74 F6 E1 94 59 BD F0 9A 33 34 93 [09:07:17]CheckFolder [09:07:17]dirname=/storage/ofd_packets [09:07:17]CheckFolder done [09:07:17]ProducePacketName [09:07:17]name=ofd_packets/00164488 [09:07:17]NVStorageSaveData ofd_packets/00164488 [09:07:17]File name is /storage/ofd_packets/00164488 [09:07:17]Write 301 bytes [09:07:17]NVStorageSaveData done [09:07:17]OFDSenderStorePacket done [09:07:17]KKMCreateOFDPacket done [09:07:17]NVStorageSaveData kkm_last_timestamp [09:07:17]File name is /storage/kkm_last_timestamp [09:07:17]Write 4 bytes [09:07:17]NVStorageSaveData done [09:07:17]ExternCall_PrintAddStr [09:07:17]wPrintStart [09:07:17]Write to MH i2c: 01 00 00 3B 0E 49 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [09:07:17]RasterBufferAndPrint [09:07:17]line Счет N : (1)458576 [09:07:17]line ИНН: 02508201610067 [09:07:17]line Контрольно-Кассовый Чек [09:07:17]line ПРОДАЖА [09:07:17]line ТРК (МРК, ГНК) : 22 [09:07:17]line Товар: 2710124130 [09:07:17]line Аи-92-К-5 [09:07:17]line 5.320 * 65.80 [09:07:17]line = 350.06 [09:07:17]line НДС 12% НСП 1% [09:07:17]line > о реализуемом товаре [09:07:17]line ОКРУГЛЕНИЕ: -0.06 [09:07:17]line ИТОГО: 350.00 [09:07:17]line Внесено: 350.00 [09:07:17]line СДАЧА: 0.00 [09:07:17]line НСП 1% : 3.10 [09:07:17]line НДС 12% : 37.17 [09:07:17]line Наличными: 350.00 [09:07:17]line Безнал.: 0.00 [09:07:17]line Место: АЗС № 72 "Партнер Нефть" [09:07:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:07:17]line СНО: Общий режим [09:07:17]line Чек 48 13.07.2024 09:07 [09:07:17]line Смена: 446 ФФД: 1.0 [09:07:17]line ЗНМ: 0300000160 [09:07:17]line РНМ: 0000000000090829 [09:07:17]line Версия ККМ: 001 [09:07:17]line ФМ: 0000000000874718 [09:07:17]line ФД: 164488 [09:07:17]line ФПД: 196726723245793 [09:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090717&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164488&fm=196726723245793&tin=02508201610067®Number=0000000000090829&sum=35000 [09:07:17]OFD Sender: Processing packet 164488 [packets to send 104, broken 103] [09:07:17]ProducePacketName [09:07:17]name=ofd_packets/00164488 [09:07:17]OFD Sender: To server: pG, [09:07:17]CommunicateWithHost lk.salyk.kg:30040 [09:07:17]ConnectInit lk.salyk.kg [09:07:17]written 0, free lines is 4095 [09:07:17]Connected sock=11 [09:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E B8 07 01 29 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C5 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 82 02 00 35 04 06 00 B2 EC 02 74 F6 E1 94 59 BD F0 9A 33 34 93 [09:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BE D2 47 00 71 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 34 37 31 38 10 04 04 00 88 82 02 00 F4 03 04 00 57 EA 91 66 B6 04 01 00 00 26 BB 1C 2C 13 B4 D1 65 [09:07:17]CommunicateWithHost err = 0 [09:07:17]CheckOFDResponse [09:07:17]1017 (14) - 77093643461234 [09:07:17]1041 (16) - 0000000000874718 [09:07:17]1040 (4) - 164488 [09:07:17]1012 (4) - 13.07.2024 02:45 [09:07:17]1206 (1) - 0 [09:07:17]OFD Sender: Remove packet 164488 [09:07:17]ProducePacketName [09:07:17]name=ofd_packets/00164488 [09:07:17]NVStorageDeleteData [09:07:17]Write to MH i2c: 01 00 00 65 0E 73 [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 FA 0C 80 [09:07:17]RasterBufferAndPrint [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]line [09:07:17]written 0, free lines is 3328 [09:07:17]MH_Cut [09:07:17]Write to MH i2c: D1 01 00 6C 0E 01 4C [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 01 00 [09:07:17]MH_I2C_Read... [09:07:17]Read from MH i2c: D1 01 00 6C 0E 00 4B [09:07:17]Write to MH i2c: 01 00 00 6D 0E 7B [09:07:17]Write i2c OK [09:07:17]MH_I2C_Read... [09:07:18]OFD Sender: No OFD packet to send [09:07:18]*** Cut start [09:07:18]*** Partial cut [09:07:18]*** CUTSNS_PIN = 1 [09:07:18]*** CUTSNS_PIN = 0 [09:07:18]*** Brake cut motor [09:07:19]Read from MH i2c: 01 [09:07:19]MH_I2C_Read... [09:07:19]*** Stop cut motor [09:07:19]*** Cut end [09:07:19]Read from MH i2c: 01 07 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [09:07:19]process_action close_receipt done [09:07:19]requested_data is exist [09:07:19]produce_requested_data [09:07:19]requested_item fm.sn is exist - process it [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 11 00 00 [09:07:19]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [09:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:07:19]wFMCommunicate OK [09:07:19]requested_item fd.num is exist - process it [09:07:19]SAM_PROTO_GetFieldsCounters [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 13 00 00 [09:07:19]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 62 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 82 02 00 0E 04 04 00 BE 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 7B [09:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 82 02 00 0E 04 04 00 BE 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 [09:07:19]wFMCommunicate OK [09:07:19]SAM_PROTO_GetFieldsCounters done [09:07:19]requested_item shift.num is exist - process it [09:07:19]requested_item shift.opened is exist - process it [09:07:19]req_shift_opened [09:07:19]FM_GetShiftState [09:07:19]SAM_PROTO_GetShiftState [09:07:19]wFMCommunicate request_size=4 [09:07:19]MH_SAM_APDU [09:07:19]CAPDU: 80 13 01 00 [09:07:19]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [09:07:19]Write i2c OK [09:07:19]MH_I2C_Read... [09:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:19]Read from MH i2c: E2 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0E 00 [09:07:19]MH_I2C_Read... [09:07:19]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DC [09:07:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:07:19]wFMCommunicate OK [09:07:19]SAM_PROTO_GetShiftState done [09:07:19]FM_GetShiftState done [09:07:19]req_shift_opened done [09:07:19]requested_item shift.open_date is exist - process it [09:07:19]req_shift_open_date [09:07:19]req_shift_open_date done [09:07:19]produce_requested_data done [09:07:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164488,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:07:19]process_action_free close_receipt [09:07:19]json_value_free [09:07:19]json_value_free done [09:07:19]process_json_proto returns [09:07:19]Send response to host [09:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164488,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:07:19]free response buf [09:07:19]execute_script done [09:07:19]execute_script returns [09:07:19]free content buf [09:07:19]Sock 9.Close socket [09:07:19]Sock 9.Thread stoped [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:54]accept exits with 7 [09:07:54]New connection [09:07:54]New thread 3067301220 created [09:07:54]Thread 3067157860 joined [09:07:54]Waiting for new connection... [09:07:54] Sock 7.Parse request [09:07:54]Sock 7.Check first char [09:07:54]Sock 7.First char is OK [09:07:54]request: POST /json_proto HTTP/1.0 [09:07:54]Method: POST [09:07:54]URL: /json_proto [09:07:54]Method is POST - this is cgi request [09:07:54]url: /json_proto [09:07:54]query_string will be loaded in cgi processing [09:07:54]execute_cgi json_proto POST (null) [09:07:54]execute_cgi path=json_proto method=POST [09:07:54]POST find Content-Length [09:07:54]Host: 172.17.56.4:8080 [09:07:54]Content-Length: 677 [09:07:54]Content-Type: application/json [09:07:54] [09:07:54]POST finish read [09:07:54]Found Content-Length = 677 [09:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:07:54]execute_script... [09:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:07:54]POST & json_proto [09:07:54]process_json_proto [09:07:54]json parsed OK: [09:07:54]protocol is kg_v1.0 [09:07:54]action value=close_receipt [09:07:54]process_action close_receipt [09:07:54]cmd_close_receipt [09:07:54]MH_GetDate [09:07:54]Write to MH i2c: F0 00 00 71 0E 6E [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 09 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: F0 09 00 71 0E 00 EC 43 92 66 C9 DC B2 64 59 [09:07:54]GetLastDocTimeStamp 1720861637 [09:07:54]current date 1720861676 [09:07:54]FM_GetShiftState [09:07:54]SAM_PROTO_GetShiftState [09:07:54]wFMCommunicate request_size=4 [09:07:54]MH_SAM_APDU [09:07:54]CAPDU: 80 13 01 00 [09:07:54]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [09:07:54]Write i2c OK [09:07:54]MH_I2C_Read... [09:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:54]Read from MH i2c: E2 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: E2 0E 00 [09:07:54]MH_I2C_Read... [09:07:54]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DE [09:07:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:07:54]wFMCommunicate OK [09:07:54]SAM_PROTO_GetShiftState done [09:07:54]FM_GetShiftState done [09:07:54]opened in 1720831249 [09:07:54]opened+sec_in_day 1720917649 [09:07:54]quantity*price = 30004 [09:07:54]sum+1 = 30006 [09:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 49 13.07.2024 09:07 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164489 ФПД: 280141354110797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090756&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164489&fm=280141354110797&tin=02508201610067®Number=0000000000090829&sum=30000 [09:07:55]StoreToDocumentArchive [09:07:55]shift 446 fd 164489 [09:07:55]save to /storage/0446/doc_00164489 [09:07:55]save last doc name /storage/0446/doc_00164489 to /storage/kkm_last_doc_name [09:07:55]save OK [09:07:55]Clear old archive folders... [09:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:55]tlvbuf is 00BE7AE0 [09:07:55]SAM_PROTO_ClearQueue [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 09 00 00 [09:07:55]Write to MH i2c: E2 08 00 7F 0E 80 09 00 00 00 00 00 00 FF [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]SAM_PROTO_ClearQueue done [09:07:55]KKMCreateOFDPacket [09:07:55]OFDProtocolAddRootSTLVToBuf [09:07:55]FM_MakeSignedData [09:07:55]FM_MakeSignedData [09:07:55]SAM_PROTO_SignData [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 0D 01 02 [09:07:55]Write to MH i2c: E2 08 00 80 0E 80 0D 01 02 00 00 00 00 07 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]wFMCommunicate request_size=255 [09:07:55]MH_SAM_APDU [09:07: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 31 00 00 00 F4 03 04 00 EC 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 82 02 00 35 04 06 00 FE [09:07:55]Write to MH i2c: E2 02 01 81 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 31 00 00 00 F4 03 04 00 EC 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 82 02 00 35 04 06 00 FE 00 00 63 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]wFMCommunicate request_size=10 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 0D 02 02 05 C9 7D E6 0F 4D [09:07:55]Write to MH i2c: E2 0D 00 82 0E 80 0D 02 02 05 00 C9 7D E6 0F 4D 00 00 9C [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [09:07:55]RAPDU: 90 00 [09:07:55]wFMCommunicate OK [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 0D 03 02 [09:07:55]Write to MH i2c: E2 08 00 83 0E 80 0D 03 02 00 00 00 00 0C [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 0B 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 0B 00 83 0E 00 D5 FA A5 4F 59 AA 62 CF 90 00 04 [09:07:55]RAPDU: D5 FA A5 4F 59 AA 62 CF 90 00 [09:07:55]wFMCommunicate OK [09:07:55]SAM_PROTO_SignData done [09:07:55]FM_MakeSignedData done [09:07:55]CreateOFDProtocolMessage [09:07:55]wFMCommunicate request_size=4 [09:07:55]MH_SAM_APDU [09:07:55]CAPDU: 80 11 00 00 [09:07:55]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:55]Read from MH i2c: E2 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 17 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [09:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:07:55]wFMCommunicate OK [09:07:55]CreateOFDProtocolMessage done [09:07:55]OFDSenderStorePacket 164489 [09:07:55]StoreOFDPacket docnum=164489 [09:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 01 07 01 CC 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 31 00 00 00 F4 03 04 00 EC 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 82 02 00 35 04 06 00 FE C9 7D E6 0F 4D D5 FA A5 4F 59 AA 62 CF [09:07:55]CheckFolder [09:07:55]dirname=/storage/ofd_packets [09:07:55]CheckFolder done [09:07:55]ProducePacketName [09:07:55]name=ofd_packets/00164489 [09:07:55]NVStorageSaveData ofd_packets/00164489 [09:07:55]File name is /storage/ofd_packets/00164489 [09:07:55]Write 301 bytes [09:07:55]NVStorageSaveData done [09:07:55]OFDSenderStorePacket done [09:07:55]KKMCreateOFDPacket done [09:07:55]NVStorageSaveData kkm_last_timestamp [09:07:55]File name is /storage/kkm_last_timestamp [09:07:55]Write 4 bytes [09:07:55]NVStorageSaveData done [09:07:55]ExternCall_PrintAddStr [09:07:55]wPrintStart [09:07:55]Write to MH i2c: 01 00 00 85 0E 93 [09:07:55]Write i2c OK [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: 01 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: 01 07 00 [09:07:55]MH_I2C_Read... [09:07:55]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [09:07:55]RasterBufferAndPrint [09:07:55]line Счет N : (1)458577 [09:07:55]line ИНН: 02508201610067 [09:07:55]line Контрольно-Кассовый Чек [09:07:55]line ПРОДАЖА [09:07:55]line ТРК (МРК, ГНК) : 12 [09:07:55]line Товар: 2710124130 [09:07:55]line Аи-92-К-5 [09:07:55]line 4.560 * 65.80 [09:07:55]line = 300.05 [09:07:55]line НДС 12% НСП 1% [09:07:55]line > о реализуемом товаре [09:07:55]line ОКРУГЛЕНИЕ: -0.05 [09:07:55]line ИТОГО: 300.00 [09:07:55]line Внесено: 300.00 [09:07:55]line СДАЧА: 0.00 [09:07:55]line НСП 1% : 2.65 [09:07:55]line НДС 12% : 31.86 [09:07:55]line Наличными: 300.00 [09:07:55]line Безнал.: 0.00 [09:07:55]line Место: АЗС № 72 "Партнер Нефть" [09:07:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:07:55]line СНО: Общий режим [09:07:55]line Чек 49 13.07.2024 09:07 [09:07:55]line Смена: 446 ФФД: 1.0 [09:07:55]line ЗНМ: 0300000160 [09:07:55]line РНМ: 0000000000090829 [09:07:55]line Версия ККМ: 001 [09:07:55]line ФМ: 0000000000874718 [09:07:55]line ФД: 164489 [09:07:55]line ФПД: 280141354110797 [09:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090756&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164489&fm=280141354110797&tin=02508201610067®Number=0000000000090829&sum=30000 [09:07:56]OFD Sender: Processing packet 164489 [packets to send 104, broken 103] [09:07:56]ProducePacketName [09:07:56]name=ofd_packets/00164489 [09:07:56]OFD Sender: To server: pG, [09:07:56]CommunicateWithHost lk.salyk.kg:30040 [09:07:56]ConnectInit lk.salyk.kg [09:07:56]written 0, free lines is 4095 [09:07:56]Connected sock=10 [09:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 01 07 01 CC 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 31 00 00 00 F4 03 04 00 EC 43 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 82 02 00 35 04 06 00 FE C9 7D E6 0F 4D D5 FA A5 4F 59 AA 62 CF [09:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 52 47 00 81 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 82 02 00 F4 03 04 00 7D EA 91 66 B6 04 01 00 00 3E 7A 63 A9 96 79 53 FD [09:07:56]CommunicateWithHost err = 0 [09:07:56]CheckOFDResponse [09:07:56]1017 (14) - 77093643461234 [09:07:56]1041 (16) - 0000000000874718 [09:07:56]1040 (4) - 164489 [09:07:56]1012 (4) - 13.07.2024 02:46 [09:07:56]1206 (1) - 0 [09:07:56]OFD Sender: Remove packet 164489 [09:07:56]ProducePacketName [09:07:56]name=ofd_packets/00164489 [09:07:56]NVStorageDeleteData [09:07:56]Write to MH i2c: 01 00 00 AF 0E BD [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 07 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 03 0D D4 [09:07:56]RasterBufferAndPrint [09:07:56]line [09:07:56]line [09:07:56]line [09:07:56]line [09:07:56]line [09:07:56]written 0, free lines is 3337 [09:07:56]MH_Cut [09:07:56]Write to MH i2c: D1 01 00 B6 0E 01 96 [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: D1 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: D1 01 00 [09:07:56]MH_I2C_Read... [09:07:56]Read from MH i2c: D1 01 00 B6 0E 00 95 [09:07:56]Write to MH i2c: 01 00 00 B7 0E C5 [09:07:56]Write i2c OK [09:07:56]MH_I2C_Read... [09:07:56]OFD Sender: No OFD packet to send [09:07:57]*** Cut start [09:07:57]*** Partial cut [09:07:57]*** CUTSNS_PIN = 1 [09:07:57]*** CUTSNS_PIN = 0 [09:07:57]*** Brake cut motor [09:07:57]Read from MH i2c: 01 [09:07:57]MH_I2C_Read... [09:07:57]*** Stop cut motor [09:07:57]*** Cut end [09:07:57]Read from MH i2c: 01 07 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: 01 07 00 B7 0E 00 00 00 00 00 FF 0F DA [09:07:57]process_action close_receipt done [09:07:57]requested_data is exist [09:07:57]produce_requested_data [09:07:57]requested_item fm.sn is exist - process it [09:07:57]wFMCommunicate request_size=4 [09:07:57]MH_SAM_APDU [09:07:57]CAPDU: 80 11 00 00 [09:07:57]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:57]Read from MH i2c: E2 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: E2 17 00 [09:07:57]MH_I2C_Read... [09:07:57]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [09:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:07:57]wFMCommunicate OK [09:07:57]requested_item fd.num is exist - process it [09:07:57]SAM_PROTO_GetFieldsCounters [09:07:57]wFMCommunicate request_size=4 [09:07:57]MH_SAM_APDU [09:07:57]CAPDU: 80 13 00 00 [09:07:57]Write to MH i2c: E2 08 00 B9 0E 80 13 00 00 00 00 00 00 43 [09:07:57]Write i2c OK [09:07:57]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 62 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 62 00 B9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 82 02 00 0E 04 04 00 BE 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 C9 [09:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 82 02 00 0E 04 04 00 BE 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 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetFieldsCounters done [09:07:58]requested_item shift.num is exist - process it [09:07:58]requested_item shift.opened is exist - process it [09:07:58]req_shift_opened [09:07:58]FM_GetShiftState [09:07:58]SAM_PROTO_GetShiftState [09:07:58]wFMCommunicate request_size=4 [09:07:58]MH_SAM_APDU [09:07:58]CAPDU: 80 13 01 00 [09:07:58]Write to MH i2c: E2 08 00 BA 0E 80 13 01 00 00 00 00 00 45 [09:07:58]Write i2c OK [09:07:58]MH_I2C_Read... [09:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:58]Read from MH i2c: E2 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 [09:07:58]MH_I2C_Read... [09:07:58]Read from MH i2c: E2 0E 00 BA 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 26 [09:07:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:07:58]wFMCommunicate OK [09:07:58]SAM_PROTO_GetShiftState done [09:07:58]FM_GetShiftState done [09:07:58]req_shift_opened done [09:07:58]requested_item shift.open_date is exist - process it [09:07:58]req_shift_open_date [09:07:58]req_shift_open_date done [09:07:58]produce_requested_data done [09:07:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164489,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:07:58]process_action_free close_receipt [09:07:58]json_value_free [09:07:58]json_value_free done [09:07:58]process_json_proto returns [09:07:58]Send response to host [09:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164489,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:07:58]free response buf [09:07:58]execute_script done [09:07:58]execute_script returns [09:07:58]free content buf [09:07:58]Sock 7.Close socket [09:07:58]Sock 7.Thread stoped [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09: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:40]accept exits with 9 [09:09:40]New connection [09:09:40]New thread 3067157860 created [09:09:40]Thread 3067301220 joined [09:09:40]Waiting for new connection... [09:09:40] Sock 9.Parse request [09:09:40]Sock 9.Check first char [09:09:40]Sock 9.First char is OK [09:09:40]request: POST /json_proto HTTP/1.0 [09:09:40]Method: POST [09:09:40]URL: /json_proto [09:09:40]Method is POST - this is cgi request [09:09:40]url: /json_proto [09:09:40]query_string will be loaded in cgi processing [09:09:40]execute_cgi json_proto POST (null) [09:09:40]execute_cgi path=json_proto method=POST [09:09:40]POST find Content-Length [09:09:40]Host: 172.17.56.4:8080 [09:09:40]Content-Length: 679 [09:09:40]Content-Type: application/json [09:09:40] [09:09:40]POST finish read [09:09:40]Found Content-Length = 679 [09:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:40]execute_script... [09:09: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)458578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:40]POST & json_proto [09:09:40]process_json_proto [09:09:40]json parsed OK: [09:09:40]protocol is kg_v1.0 [09:09:40]action value=close_receipt [09:09:40]process_action close_receipt [09:09:40]cmd_close_receipt [09:09:40]MH_GetDate [09:09:40]Write to MH i2c: F0 00 00 BB 0E B8 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: F0 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: F0 09 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: F0 09 00 BB 0E 00 56 44 92 66 C9 DC B2 64 0E [09:09:40]GetLastDocTimeStamp 1720861676 [09:09:40]current date 1720861782 [09:09:40]FM_GetShiftState [09:09:40]SAM_PROTO_GetShiftState [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 13 01 00 [09:09:40]Write to MH i2c: E2 08 00 BC 0E 80 13 01 00 00 00 00 00 47 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 0E 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 0E 00 BC 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 28 [09:09:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:09:40]wFMCommunicate OK [09:09:40]SAM_PROTO_GetShiftState done [09:09:40]FM_GetShiftState done [09:09:40]opened in 1720831249 [09:09:40]opened+sec_in_day 1720917649 [09:09:40]quantity*price = 100012 [09:09:40]sum+1 = 100014 [09:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 50 13.07.2024 09:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164490 ФПД: 251702064515631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164490&fm=251702064515631&tin=02508201610067®Number=0000000000090829&sum=100000 [09:09:41]StoreToDocumentArchive [09:09:41]shift 446 fd 164490 [09:09:41]save to /storage/0446/doc_00164490 [09:09:41]save last doc name /storage/0446/doc_00164490 to /storage/kkm_last_doc_name [09:09:41]save OK [09:09:41]Clear old archive folders... [09:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:41]tlvbuf is 00BD2D90 [09:09:41]SAM_PROTO_ClearQueue [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 09 00 00 [09:09:41]Write to MH i2c: E2 08 00 C9 0E 80 09 00 00 00 00 00 00 49 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_ClearQueue done [09:09:41]KKMCreateOFDPacket [09:09:41]OFDProtocolAddRootSTLVToBuf [09:09:41]FM_MakeSignedData [09:09:41]FM_MakeSignedData [09:09:41]SAM_PROTO_SignData [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 0D 01 02 [09:09:41]Write to MH i2c: E2 08 00 CA 0E 80 0D 01 02 00 00 00 00 51 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]wFMCommunicate request_size=255 [09:09:41]MH_SAM_APDU [09:09: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 56 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 82 02 00 35 04 06 00 E4 EB F4 25 [09:09:41]Write to MH i2c: E2 02 01 CB 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 56 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 82 02 00 35 04 06 00 E4 EB F4 25 00 00 8B [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]wFMCommunicate request_size=7 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 0D 02 02 02 0A 2F [09:09:41]Write to MH i2c: E2 0A 00 CC 0E 80 0D 02 02 02 00 0A 2F 00 00 91 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 0D 03 02 [09:09:41]Write to MH i2c: E2 08 00 CD 0E 80 0D 03 02 00 00 00 00 56 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0B 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0B 00 CD 0E 00 A9 D0 C9 24 9C BE 05 46 90 00 62 [09:09:41]RAPDU: A9 D0 C9 24 9C BE 05 46 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_SignData done [09:09:41]FM_MakeSignedData done [09:09:41]CreateOFDProtocolMessage [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 11 00 00 [09:09:41]Write to MH i2c: E2 08 00 CE 0E 80 11 00 00 00 00 00 00 56 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 17 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [09:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:09:41]wFMCommunicate OK [09:09:41]CreateOFDProtocolMessage done [09:09:41]OFDSenderStorePacket 164490 [09:09:41]StoreOFDPacket docnum=164490 [09:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 7A 10 04 01 35 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 56 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 82 02 00 35 04 06 00 E4 EB F4 25 0A 2F A9 D0 C9 24 9C BE 05 46 [09:09:41]CheckFolder [09:09:41]dirname=/storage/ofd_packets [09:09:41]CheckFolder done [09:09:41]ProducePacketName [09:09:41]name=ofd_packets/00164490 [09:09:41]NVStorageSaveData ofd_packets/00164490 [09:09:41]File name is /storage/ofd_packets/00164490 [09:09:41]Write 298 bytes [09:09:41]NVStorageSaveData done [09:09:41]OFDSenderStorePacket done [09:09:41]KKMCreateOFDPacket done [09:09:41]NVStorageSaveData kkm_last_timestamp [09:09:41]File name is /storage/kkm_last_timestamp [09:09:41]Write 4 bytes [09:09:41]NVStorageSaveData done [09:09:41]ExternCall_PrintAddStr [09:09:41]wPrintStart [09:09:41]Write to MH i2c: 01 00 00 CF 0E DD [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [09:09:41]RasterBufferAndPrint [09:09:41]line Счет N : (1)458578 [09:09:41]line ИНН: 02508201610067 [09:09:41]line Контрольно-Кассовый Чек [09:09:41]line ПРОДАЖА [09:09:41]line ТРК (МРК, ГНК) : 11 [09:09:41]line Товар: 2710194210 [09:09:41]line ДТ-К-5 [09:09:41]line 13.910 * 71.90 [09:09:41]line = 1000.13 [09:09:41]line НДС 12% НСП 1% [09:09:41]line > о реализуемом товаре [09:09:41]line ОКРУГЛЕНИЕ: -0.13 [09:09:41]line ИТОГО: 1000.00 [09:09:41]line Внесено: 1000.00 [09:09:41]line СДАЧА: 0.00 [09:09:41]line НСП 1% : 8.85 [09:09:41]line НДС 12% : 106.21 [09:09:41]line Наличными: 1000.00 [09:09:41]line Безнал.: 0.00 [09:09:41]line Место: АЗС № 72 "Партнер Нефть" [09:09:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:09:41]line СНО: Общий режим [09:09:41]line Чек 50 13.07.2024 09:09 [09:09:41]line Смена: 446 ФФД: 1.0 [09:09:41]line ЗНМ: 0300000160 [09:09:41]line РНМ: 0000000000090829 [09:09:41]line Версия ККМ: 001 [09:09:41]line ФМ: 0000000000874718 [09:09:41]line ФД: 164490 [09:09:41]line ФПД: 251702064515631 [09:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164490&fm=251702064515631&tin=02508201610067®Number=0000000000090829&sum=100000 [09:09:42]OFD Sender: Processing packet 164490 [packets to send 104, broken 103] [09:09:42]ProducePacketName [09:09:42]name=ofd_packets/00164490 [09:09:42]OFD Sender: To server: pG, [09:09:42]CommunicateWithHost lk.salyk.kg:30040 [09:09:42]ConnectInit lk.salyk.kg [09:09:42]written 0, free lines is 4095 [09:09:42]Connected sock=10 [09:09:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 7A 10 04 01 35 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 56 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 82 02 00 35 04 06 00 E4 EB F4 25 0A 2F A9 D0 C9 24 9C BE 05 46 [09:09:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B9 F2 47 00 31 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 34 37 31 38 10 04 04 00 8A 82 02 00 F4 03 04 00 E7 EA 91 66 B6 04 01 00 00 C7 6C 4A DD 17 0A 68 08 [09:09:42]CommunicateWithHost err = 0 [09:09:42]CheckOFDResponse [09:09:42]1017 (14) - 77093643461234 [09:09:42]1041 (16) - 0000000000874718 [09:09:42]1040 (4) - 164490 [09:09:42]1012 (4) - 13.07.2024 02:48 [09:09:42]1206 (1) - 0 [09:09:42]OFD Sender: Remove packet 164490 [09:09:42]ProducePacketName [09:09:42]name=ofd_packets/00164490 [09:09:42]NVStorageDeleteData [09:09:42]Write to MH i2c: 01 00 00 F9 0E 07 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 F7 0C 11 [09:09:42]RasterBufferAndPrint [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]written 0, free lines is 3326 [09:09:42]MH_Cut [09:09:42]Write to MH i2c: D1 01 00 00 0F 01 E1 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 01 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 01 00 00 0F 00 E0 [09:09:42]Write to MH i2c: 01 00 00 01 0F 10 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]OFD Sender: No OFD packet to send [09:09:43]*** Cut start [09:09:43]*** Partial cut [09:09:43]*** CUTSNS_PIN = 1 [09:09:43]*** CUTSNS_PIN = 0 [09:09:43]*** Brake cut motor [09:09:43]Read from MH i2c: 01 [09:09:43]MH_I2C_Read... [09:09:43]*** Stop cut motor [09:09:43]*** Cut end [09:09:43]Read from MH i2c: 01 07 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [09:09:43]process_action close_receipt done [09:09:43]requested_data is exist [09:09:43]produce_requested_data [09:09:43]requested_item fm.sn is exist - process it [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 11 00 00 [09:09:43]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [09:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:09:43]wFMCommunicate OK [09:09:43]requested_item fd.num is exist - process it [09:09:43]SAM_PROTO_GetFieldsCounters [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 13 00 00 [09:09:43]Write to MH i2c: E2 08 00 03 0F 80 13 00 00 00 00 00 00 8E [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:44]Read from MH i2c: E2 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 62 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 62 00 03 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 82 02 00 0E 04 04 00 BE 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 18 [09:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 82 02 00 0E 04 04 00 BE 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 [09:09:44]wFMCommunicate OK [09:09:44]SAM_PROTO_GetFieldsCounters done [09:09:44]requested_item shift.num is exist - process it [09:09:44]requested_item shift.opened is exist - process it [09:09:44]req_shift_opened [09:09:44]FM_GetShiftState [09:09:44]SAM_PROTO_GetShiftState [09:09:44]wFMCommunicate request_size=4 [09:09:44]MH_SAM_APDU [09:09:44]CAPDU: 80 13 01 00 [09:09:44]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [09:09:44]Write i2c OK [09:09:44]MH_I2C_Read... [09:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:44]Read from MH i2c: E2 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 0E 00 [09:09:44]MH_I2C_Read... [09:09:44]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 71 [09:09:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:09:44]wFMCommunicate OK [09:09:44]SAM_PROTO_GetShiftState done [09:09:44]FM_GetShiftState done [09:09:44]req_shift_opened done [09:09:44]requested_item shift.open_date is exist - process it [09:09:44]req_shift_open_date [09:09:44]req_shift_open_date done [09:09:44]produce_requested_data done [09:09:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164490,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:09:44]process_action_free close_receipt [09:09:44]json_value_free [09:09:44]json_value_free done [09:09:44]process_json_proto returns [09:09:44]Send response to host [09:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164490,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:09:44]free response buf [09:09:44]execute_script done [09:09:44]execute_script returns [09:09:44]free content buf [09:09:44]Sock 9.Close socket [09:09:44]Sock 9.Thread stoped [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:05]accept exits with 7 [09:10:05]New connection [09:10:05]New thread 3067301220 created [09:10:05]Thread 3067157860 joined [09:10:05]Waiting for new connection... [09:10:05] Sock 7.Parse request [09:10:05]Sock 7.Check first char [09:10:05]Sock 7.First char is OK [09:10:05]request: POST /json_proto HTTP/1.0 [09:10:05]Method: POST [09:10:05]URL: /json_proto [09:10:05]Method is POST - this is cgi request [09:10:05]url: /json_proto [09:10:05]query_string will be loaded in cgi processing [09:10:05]execute_cgi json_proto POST (null) [09:10:05]execute_cgi path=json_proto method=POST [09:10:05]POST find Content-Length [09:10:05]Host: 172.17.56.4:8080 [09:10:05]Content-Length: 840 [09:10:05]Content-Type: application/json [09:10:05] [09:10:05]POST finish read [09:10:05]Found Content-Length = 840 [09:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:05]execute_script... [09:10: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)458579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:05]POST & json_proto [09:10:05]process_json_proto [09:10:05]json parsed OK: [09:10:05]protocol is kg_v1.0 [09:10:05]action value=close_receipt [09:10:05]process_action close_receipt [09:10:05]cmd_close_receipt [09:10:05]MH_GetDate [09:10:05]Write to MH i2c: F0 00 00 05 0F 03 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 05 0F 00 6F 44 92 66 C9 DC B2 64 72 [09:10:05]GetLastDocTimeStamp 1720861782 [09:10:05]current date 1720861807 [09:10:05]FM_GetShiftState [09:10:05]SAM_PROTO_GetShiftState [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 01 00 [09:10:05]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 73 [09:10:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetShiftState done [09:10:05]FM_GetShiftState done [09:10:05]opened in 1720831249 [09:10:05]opened+sec_in_day 1720917649 [09:10:05]quantity*price = 60002 [09:10:05]sum+1 = 60003 [09:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 51 13.07.2024 09:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164491 ФПД: 57791056936226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164491&fm=57791056936226&tin=02508201610067®Number=0000000000090829&sum=60002 [09:10:06]StoreToDocumentArchive [09:10:06]shift 446 fd 164491 [09:10:06]save to /storage/0446/doc_00164491 [09:10:06]save last doc name /storage/0446/doc_00164491 to /storage/kkm_last_doc_name [09:10:06]save OK [09:10:06]Clear old archive folders... [09:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:06]tlvbuf is 00C00AF0 [09:10:06]SAM_PROTO_ClearQueue [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 09 00 00 [09:10:06]Write to MH i2c: E2 08 00 13 0F 80 09 00 00 00 00 00 00 94 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_ClearQueue done [09:10:06]KKMCreateOFDPacket [09:10:06]OFDProtocolAddRootSTLVToBuf [09:10:06]FM_MakeSignedData [09:10:06]FM_MakeSignedData [09:10:06]SAM_PROTO_SignData [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 01 02 [09:10:06]Write to MH i2c: E2 08 00 14 0F 80 0D 01 02 00 00 00 00 9C [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=255 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6F 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 82 02 00 35 04 06 00 34 [09:10:06]Write to MH i2c: E2 02 01 15 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6F 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 82 02 00 35 04 06 00 34 00 00 27 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=10 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 05 8F 87 6B 7D 22 [09:10:06]Write to MH i2c: E2 0D 00 16 0F 80 0D 02 02 05 00 8F 87 6B 7D 22 00 00 C9 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 03 02 [09:10:06]Write to MH i2c: E2 08 00 17 0F 80 0D 03 02 00 00 00 00 A1 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 17 0F 00 C1 10 BE EA D4 2D 13 FF 90 00 2E [09:10:06]RAPDU: C1 10 BE EA D4 2D 13 FF 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_SignData done [09:10:06]FM_MakeSignedData done [09:10:06]CreateOFDProtocolMessage [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 11 00 00 [09:10:06]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [09:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:10:06]wFMCommunicate OK [09:10:06]CreateOFDProtocolMessage done [09:10:06]OFDSenderStorePacket 164491 [09:10:06]StoreOFDPacket docnum=164491 [09:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 7F 07 01 98 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6F 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 82 02 00 35 04 06 00 34 8F 87 6B 7D 22 C1 10 BE EA D4 2D 13 FF [09:10:06]CheckFolder [09:10:06]dirname=/storage/ofd_packets [09:10:06]CheckFolder done [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00164491 [09:10:06]NVStorageSaveData ofd_packets/00164491 [09:10:06]File name is /storage/ofd_packets/00164491 [09:10:06]Write 301 bytes [09:10:06]NVStorageSaveData done [09:10:06]OFDSenderStorePacket done [09:10:06]KKMCreateOFDPacket done [09:10:06]NVStorageSaveData kkm_last_timestamp [09:10:06]File name is /storage/kkm_last_timestamp [09:10:06]Write 4 bytes [09:10:06]NVStorageSaveData done [09:10:06]ExternCall_PrintAddStr [09:10:06]wPrintStart [09:10:06]Write to MH i2c: 01 00 00 19 0F 28 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 FF 0F 3D [09:10:06]RasterBufferAndPrint [09:10:06]line Счет N : (1)458579 [09:10:06]line ИНН: 02508201610067 [09:10:06]line Контрольно-Кассовый Чек [09:10:06]line ПРОДАЖА [09:10:06]line ТРК (МРК, ГНК) : 22 [09:10:06]line Товар: 2710124130 [09:10:06]line Аи-92-К-5 [09:10:06]line 9.200 * 65.22 [09:10:06]line = 600.02 [09:10:06]line НДС 12% НСП 1% [09:10:06]line > о реализуемом товаре [09:10:06]line ИТОГО: 600.02 [09:10:06]line НСП 1% : 5.31 [09:10:06]line НДС 12% : 63.72 [09:10:06]line Наличными: 0.00 [09:10:06]line Безнал.: 600.02 [09:10:06]line Место: АЗС № 72 "Партнер Нефть" [09:10:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:10:06]line СНО: Общий режим [09:10:06]line Чек 51 13.07.2024 09:10 [09:10:06]line Смена: 446 ФФД: 1.0 [09:10:06]line ЗНМ: 0300000160 [09:10:06]line РНМ: 0000000000090829 [09:10:06]line Версия ККМ: 001 [09:10:06]line Платежная система: АКБ Кыргызстан [09:10:06]line ФМ: 0000000000874718 [09:10:06]line ФД: 164491 [09:10:06]line ФПД: 57791056936226 [09:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164491&fm=57791056936226&tin=02508201610067®Number=0000000000090829&sum=60002 [09:10:07]OFD Sender: Processing packet 164491 [packets to send 104, broken 103] [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00164491 [09:10:07]OFD Sender: To server: pG, [09:10:07]CommunicateWithHost lk.salyk.kg:30040 [09:10:07]ConnectInit lk.salyk.kg [09:10:07]written 0, free lines is 4095 [09:10:07]Connected sock=10 [09:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 7F 07 01 98 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 6F 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 82 02 00 35 04 06 00 34 8F 87 6B 7D 22 C1 10 BE EA D4 2D 13 FF [09:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D4 DB 47 00 12 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 34 37 31 38 10 04 04 00 8B 82 02 00 F4 03 04 00 00 EB 91 66 B6 04 01 00 00 6D DB AA 17 D1 31 DB 43 [09:10:07]CommunicateWithHost err = 0 [09:10:07]CheckOFDResponse [09:10:07]1017 (14) - 77093643461234 [09:10:07]1041 (16) - 0000000000874718 [09:10:07]1040 (4) - 164491 [09:10:07]1012 (4) - 13.07.2024 02:48 [09:10:07]1206 (1) - 0 [09:10:07]OFD Sender: Remove packet 164491 [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00164491 [09:10:07]NVStorageDeleteData [09:10:07]Write to MH i2c: 01 00 00 42 0F 51 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 10 0D 75 [09:10:07]RasterBufferAndPrint [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]written 0, free lines is 3350 [09:10:07]MH_Cut [09:10:07]Write to MH i2c: D1 01 00 49 0F 01 2A [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 49 0F 00 29 [09:10:07]Write to MH i2c: 01 00 00 4A 0F 59 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]OFD Sender: No OFD packet to send [09:10:08]*** Cut start [09:10:08]*** Partial cut [09:10:08]*** CUTSNS_PIN = 1 [09:10:08]*** CUTSNS_PIN = 0 [09:10:08]*** Brake cut motor [09:10:08]Read from MH i2c: 01 [09:10:08]MH_I2C_Read... [09:10:08]*** Stop cut motor [09:10:08]*** Cut end [09:10:08]Read from MH i2c: 01 07 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 4A 0F 00 00 00 00 00 FF 0F 6E [09:10:08]process_action close_receipt done [09:10:08]requested_data is exist [09:10:08]produce_requested_data [09:10:08]requested_item fm.sn is exist - process it [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 11 00 00 [09:10:08]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [09:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:10:08]wFMCommunicate OK [09:10:08]requested_item fd.num is exist - process it [09:10:08]SAM_PROTO_GetFieldsCounters [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 13 00 00 [09:10:08]Write to MH i2c: E2 08 00 4C 0F 80 13 00 00 00 00 00 00 D7 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 4C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 82 02 00 0E 04 04 00 BE 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 65 [09:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 82 02 00 0E 04 04 00 BE 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 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetFieldsCounters done [09:10:09]requested_item shift.num is exist - process it [09:10:09]requested_item shift.opened is exist - process it [09:10:09]req_shift_opened [09:10:09]FM_GetShiftState [09:10:09]SAM_PROTO_GetShiftState [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 01 00 [09:10:09]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [09:10:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetShiftState done [09:10:09]FM_GetShiftState done [09:10:09]req_shift_opened done [09:10:09]requested_item shift.open_date is exist - process it [09:10:09]req_shift_open_date [09:10:09]req_shift_open_date done [09:10:09]produce_requested_data done [09:10:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164491,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:10:09]process_action_free close_receipt [09:10:09]json_value_free [09:10:09]json_value_free done [09:10:09]process_json_proto returns [09:10:09]Send response to host [09:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164491,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:10:09]free response buf [09:10:09]execute_script done [09:10:09]execute_script returns [09:10:09]free content buf [09:10:09]Sock 7.Close socket [09:10:09]Sock 7.Thread stoped [09:10:12]OFD Sender: No OFD packet to send [09:10:16]accept exits with 9 [09:10:16]New connection [09:10:16]New thread 3067157860 created [09:10:16]Thread 3067301220 joined [09:10:16]Waiting for new connection... [09:10:16] Sock 9.Parse request [09:10:16]Sock 9.Check first char [09:10:16]Sock 9.First char is OK [09:10:16]request: POST /json_proto HTTP/1.0 [09:10:16]Method: POST [09:10:16]URL: /json_proto [09:10:16]Method is POST - this is cgi request [09:10:16]url: /json_proto [09:10:16]query_string will be loaded in cgi processing [09:10:16]execute_cgi json_proto POST (null) [09:10:16]execute_cgi path=json_proto method=POST [09:10:16]POST find Content-Length [09:10:16]Host: 172.17.56.4:8080 [09:10:16]Content-Length: 679 [09:10:16]Content-Type: application/json [09:10:16] [09:10:16]POST finish read [09:10:16]Found Content-Length = 679 [09:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:16]execute_script... [09:10: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)458580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:16]POST & json_proto [09:10:16]process_json_proto [09:10:16]json parsed OK: [09:10:16]protocol is kg_v1.0 [09:10:16]action value=close_receipt [09:10:16]process_action close_receipt [09:10:16]cmd_close_receipt [09:10:16]MH_GetDate [09:10:16]Write to MH i2c: F0 00 00 4E 0F 4C [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: F0 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: F0 09 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: F0 09 00 4E 0F 00 7A 44 92 66 C9 DC B2 64 C6 [09:10:16]GetLastDocTimeStamp 1720861807 [09:10:16]current date 1720861818 [09:10:16]FM_GetShiftState [09:10:16]SAM_PROTO_GetShiftState [09:10:16]wFMCommunicate request_size=4 [09:10:16]MH_SAM_APDU [09:10:16]CAPDU: 80 13 01 00 [09:10:16]Write to MH i2c: E2 08 00 4F 0F 80 13 01 00 00 00 00 00 DB [09:10:16]Write i2c OK [09:10:16]MH_I2C_Read... [09:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:16]Read from MH i2c: E2 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 [09:10:16]MH_I2C_Read... [09:10:16]Read from MH i2c: E2 0E 00 4F 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BC [09:10:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:10:16]wFMCommunicate OK [09:10:16]SAM_PROTO_GetShiftState done [09:10:16]FM_GetShiftState done [09:10:16]opened in 1720831249 [09:10:16]opened+sec_in_day 1720917649 [09:10:16]quantity*price = 100012 [09:10:16]sum+1 = 100014 [09:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 52 13.07.2024 09:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164492 ФПД: 70392945292025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091018&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164492&fm=70392945292025&tin=02508201610067®Number=0000000000090829&sum=100000 [09:10:17]StoreToDocumentArchive [09:10:17]shift 446 fd 164492 [09:10:17]save to /storage/0446/doc_00164492 [09:10:17]save last doc name /storage/0446/doc_00164492 to /storage/kkm_last_doc_name [09:10:17]save OK [09:10:17]Clear old archive folders... [09:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:10:17]tlvbuf is 00BCC340 [09:10:17]SAM_PROTO_ClearQueue [09:10:17]wFMCommunicate request_size=4 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 09 00 00 [09:10:17]Write to MH i2c: E2 08 00 5C 0F 80 09 00 00 00 00 00 00 DD [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:17]Read from MH i2c: E2 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 03 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [09:10:17]RAPDU: 90 00 [09:10:17]wFMCommunicate OK [09:10:17]SAM_PROTO_ClearQueue done [09:10:17]KKMCreateOFDPacket [09:10:17]OFDProtocolAddRootSTLVToBuf [09:10:17]FM_MakeSignedData [09:10:17]FM_MakeSignedData [09:10:17]SAM_PROTO_SignData [09:10:17]wFMCommunicate request_size=4 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 0D 01 02 [09:10:17]Write to MH i2c: E2 08 00 5D 0F 80 0D 01 02 00 00 00 00 E5 [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:17]Read from MH i2c: E2 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 03 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [09:10:17]RAPDU: 90 00 [09:10:17]wFMCommunicate OK [09:10:17]wFMCommunicate request_size=255 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 82 02 00 35 04 06 00 40 05 A2 7F [09:10:17]Write to MH i2c: E2 02 01 5E 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 82 02 00 35 04 06 00 40 05 A2 7F 00 00 C5 [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]OFD Sender: No OFD packet to send [09:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:18]Read from MH i2c: E2 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 03 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [09:10:18]RAPDU: 90 00 [09:10:18]wFMCommunicate OK [09:10:18]wFMCommunicate request_size=7 [09:10:18]MH_SAM_APDU [09:10:18]CAPDU: 80 0D 02 02 02 B2 F9 [09:10:18]Write to MH i2c: E2 0A 00 5F 0F 80 0D 02 02 02 00 B2 F9 00 00 97 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:18]Read from MH i2c: E2 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 03 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [09:10:18]RAPDU: 90 00 [09:10:18]wFMCommunicate OK [09:10:18]wFMCommunicate request_size=4 [09:10:18]MH_SAM_APDU [09:10:18]CAPDU: 80 0D 03 02 [09:10:18]Write to MH i2c: E2 08 00 60 0F 80 0D 03 02 00 00 00 00 EA [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:18]Read from MH i2c: E2 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 0B 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 0B 00 60 0F 00 31 2B E3 D0 29 EE AA 20 90 00 DB [09:10:18]RAPDU: 31 2B E3 D0 29 EE AA 20 90 00 [09:10:18]wFMCommunicate OK [09:10:18]SAM_PROTO_SignData done [09:10:18]FM_MakeSignedData done [09:10:18]CreateOFDProtocolMessage [09:10:18]wFMCommunicate request_size=4 [09:10:18]MH_SAM_APDU [09:10:18]CAPDU: 80 11 00 00 [09:10:18]Write to MH i2c: E2 08 00 61 0F 80 11 00 00 00 00 00 00 EA [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:18]Read from MH i2c: E2 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 17 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: E2 17 00 61 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [09:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:10:18]wFMCommunicate OK [09:10:18]CreateOFDProtocolMessage done [09:10:18]OFDSenderStorePacket 164492 [09:10:18]StoreOFDPacket docnum=164492 [09:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 34 CB 04 01 BB 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 82 02 00 35 04 06 00 40 05 A2 7F B2 F9 31 2B E3 D0 29 EE AA 20 [09:10:18]CheckFolder [09:10:18]dirname=/storage/ofd_packets [09:10:18]CheckFolder done [09:10:18]ProducePacketName [09:10:18]name=ofd_packets/00164492 [09:10:18]NVStorageSaveData ofd_packets/00164492 [09:10:18]File name is /storage/ofd_packets/00164492 [09:10:18]Write 298 bytes [09:10:18]NVStorageSaveData done [09:10:18]OFDSenderStorePacket done [09:10:18]KKMCreateOFDPacket done [09:10:18]NVStorageSaveData kkm_last_timestamp [09:10:18]File name is /storage/kkm_last_timestamp [09:10:18]Write 4 bytes [09:10:18]NVStorageSaveData done [09:10:18]ExternCall_PrintAddStr [09:10:18]wPrintStart [09:10:18]Write to MH i2c: 01 00 00 62 0F 71 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 07 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 07 00 62 0F 00 00 00 00 00 FF 0F 86 [09:10:18]RasterBufferAndPrint [09:10:18]line Счет N : (1)458580 [09:10:18]line ИНН: 02508201610067 [09:10:18]line Контрольно-Кассовый Чек [09:10:18]line ПРОДАЖА [09:10:18]line ТРК (МРК, ГНК) : 21 [09:10:18]line Товар: 2710194210 [09:10:18]line ДТ-К-5 [09:10:18]line 13.910 * 71.90 [09:10:18]line = 1000.13 [09:10:18]line НДС 12% НСП 1% [09:10:18]line > о реализуемом товаре [09:10:18]line ОКРУГЛЕНИЕ: -0.13 [09:10:18]line ИТОГО: 1000.00 [09:10:18]line Внесено: 1000.00 [09:10:18]line СДАЧА: 0.00 [09:10:18]line НСП 1% : 8.85 [09:10:18]line НДС 12% : 106.21 [09:10:18]line Наличными: 1000.00 [09:10:18]line Безнал.: 0.00 [09:10:18]line Место: АЗС № 72 "Партнер Нефть" [09:10:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:10:18]line СНО: Общий режим [09:10:18]line Чек 52 13.07.2024 09:10 [09:10:18]line Смена: 446 ФФД: 1.0 [09:10:18]line ЗНМ: 0300000160 [09:10:18]line РНМ: 0000000000090829 [09:10:18]line Версия ККМ: 001 [09:10:18]line ФМ: 0000000000874718 [09:10:18]line ФД: 164492 [09:10:18]line ФПД: 70392945292025 [09:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091018&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164492&fm=70392945292025&tin=02508201610067®Number=0000000000090829&sum=100000 [09:10:18]written 0, free lines is 4095 [09:10:18]OFD Sender: Processing packet 164492 [packets to send 104, broken 103] [09:10:18]ProducePacketName [09:10:18]name=ofd_packets/00164492 [09:10:18]OFD Sender: To server: pG, [09:10:18]CommunicateWithHost lk.salyk.kg:30040 [09:10:18]ConnectInit lk.salyk.kg [09:10:18]Connected sock=10 [09:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 34 CB 04 01 BB 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 44 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 82 02 00 35 04 06 00 40 05 A2 7F B2 F9 31 2B E3 D0 29 EE AA 20 [09:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 23 47 00 FD 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 34 37 31 38 10 04 04 00 8C 82 02 00 F4 03 04 00 0C EB 91 66 B6 04 01 00 00 85 BD 6A 27 F5 C6 6C 19 [09:10:18]CommunicateWithHost err = 0 [09:10:18]CheckOFDResponse [09:10:18]1017 (14) - 77093643461234 [09:10:18]1041 (16) - 0000000000874718 [09:10:18]1040 (4) - 164492 [09:10:18]1012 (4) - 13.07.2024 02:48 [09:10:18]1206 (1) - 0 [09:10:18]OFD Sender: Remove packet 164492 [09:10:18]ProducePacketName [09:10:18]name=ofd_packets/00164492 [09:10:18]NVStorageDeleteData [09:10:18]Write to MH i2c: 01 00 00 8C 0F 9B [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 07 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 F7 0C A5 [09:10:18]RasterBufferAndPrint [09:10:18]line [09:10:18]line [09:10:18]line [09:10:18]line [09:10:18]line [09:10:18]written 0, free lines is 3326 [09:10:18]MH_Cut [09:10:18]Write to MH i2c: D1 01 00 93 0F 01 74 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: D1 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: D1 01 00 [09:10:18]MH_I2C_Read... [09:10:18]Read from MH i2c: D1 01 00 93 0F 00 73 [09:10:18]Write to MH i2c: 01 00 00 94 0F A3 [09:10:18]Write i2c OK [09:10:18]MH_I2C_Read... [09:10:19]OFD Sender: No OFD packet to send [09:10:19]*** Cut start [09:10:19]*** Partial cut [09:10:19]*** CUTSNS_PIN = 1 [09:10:19]*** CUTSNS_PIN = 0 [09:10:19]*** Brake cut motor [09:10:20]Read from MH i2c: 01 [09:10:20]MH_I2C_Read... [09:10:20]*** Stop cut motor [09:10:20]*** Cut end [09:10:20]Read from MH i2c: 01 07 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 FF 0F B8 [09:10:20]process_action close_receipt done [09:10:20]requested_data is exist [09:10:20]produce_requested_data [09:10:20]requested_item fm.sn is exist - process it [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 11 00 00 [09:10:20]Write to MH i2c: E2 08 00 95 0F 80 11 00 00 00 00 00 00 1E [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 17 00 95 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [09:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:10:20]wFMCommunicate OK [09:10:20]requested_item fd.num is exist - process it [09:10:20]SAM_PROTO_GetFieldsCounters [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 13 00 00 [09:10:20]Write to MH i2c: E2 08 00 96 0F 80 13 00 00 00 00 00 00 21 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 62 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 62 00 96 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 82 02 00 0E 04 04 00 BE 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 B3 [09:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 82 02 00 0E 04 04 00 BE 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 [09:10:20]wFMCommunicate OK [09:10:20]SAM_PROTO_GetFieldsCounters done [09:10:20]requested_item shift.num is exist - process it [09:10:20]requested_item shift.opened is exist - process it [09:10:20]req_shift_opened [09:10:20]FM_GetShiftState [09:10:20]SAM_PROTO_GetShiftState [09:10:20]wFMCommunicate request_size=4 [09:10:20]MH_SAM_APDU [09:10:20]CAPDU: 80 13 01 00 [09:10:20]Write to MH i2c: E2 08 00 97 0F 80 13 01 00 00 00 00 00 23 [09:10:20]Write i2c OK [09:10:20]MH_I2C_Read... [09:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:20]Read from MH i2c: E2 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0E 00 [09:10:20]MH_I2C_Read... [09:10:20]Read from MH i2c: E2 0E 00 97 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 04 [09:10:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:10:20]wFMCommunicate OK [09:10:20]SAM_PROTO_GetShiftState done [09:10:20]FM_GetShiftState done [09:10:20]req_shift_opened done [09:10:20]requested_item shift.open_date is exist - process it [09:10:20]req_shift_open_date [09:10:20]req_shift_open_date done [09:10:20]produce_requested_data done [09:10:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164492,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:10:20]process_action_free close_receipt [09:10:20]json_value_free [09:10:20]json_value_free done [09:10:20]process_json_proto returns [09:10:20]Send response to host [09:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164492,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:10:20]free response buf [09:10:20]execute_script done [09:10:20]execute_script returns [09:10:20]free content buf [09:10:20]Sock 9.Close socket [09:10:20]Sock 9.Thread stoped [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:47]accept exits with 7 [09:12:47]New connection [09:12:47]New thread 3067301220 created [09:12:47]Thread 3067157860 joined [09:12:47]Waiting for new connection... [09:12:47] Sock 7.Parse request [09:12:47]Sock 7.Check first char [09:12:47]Sock 7.First char is OK [09:12:47]request: POST /json_proto HTTP/1.0 [09:12:47]Method: POST [09:12:47]URL: /json_proto [09:12:47]Method is POST - this is cgi request [09:12:47]url: /json_proto [09:12:47]query_string will be loaded in cgi processing [09:12:47]execute_cgi json_proto POST (null) [09:12:47]execute_cgi path=json_proto method=POST [09:12:47]POST find Content-Length [09:12:47]Host: 172.17.56.4:8080 [09:12:47]Content-Length: 677 [09:12:47]Content-Type: application/json [09:12:47] [09:12:47]POST finish read [09:12:47]Found Content-Length = 677 [09:12:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:12:47]execute_script... [09:12: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)458581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:12:47]POST & json_proto [09:12:47]process_json_proto [09:12:47]json parsed OK: [09:12:47]protocol is kg_v1.0 [09:12:47]action value=close_receipt [09:12:47]process_action close_receipt [09:12:47]cmd_close_receipt [09:12:47]MH_GetDate [09:12:47]Write to MH i2c: F0 00 00 98 0F 96 [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: F0 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: F0 09 00 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: F0 09 00 98 0F 00 11 45 92 66 C9 DC B2 64 A8 [09:12:47]GetLastDocTimeStamp 1720861818 [09:12:47]current date 1720861969 [09:12:47]FM_GetShiftState [09:12:47]SAM_PROTO_GetShiftState [09:12:47]wFMCommunicate request_size=4 [09:12:47]MH_SAM_APDU [09:12:47]CAPDU: 80 13 01 00 [09:12:47]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:47]Read from MH i2c: E2 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: E2 0E 00 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 06 [09:12:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:12:47]wFMCommunicate OK [09:12:47]SAM_PROTO_GetShiftState done [09:12:47]FM_GetShiftState done [09:12:47]opened in 1720831249 [09:12:47]opened+sec_in_day 1720917649 [09:12:47]quantity*price = 50008 [09:12:47]sum+1 = 50009 [09:12:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 53 13.07.2024 09:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164493 ФПД: 167622766336045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091249&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164493&fm=167622766336045&tin=02508201610067®Number=0000000000090829&sum=50000 [09:12:48]StoreToDocumentArchive [09:12:48]shift 446 fd 164493 [09:12:48]save to /storage/0446/doc_00164493 [09:12:48]save last doc name /storage/0446/doc_00164493 to /storage/kkm_last_doc_name [09:12:48]save OK [09:12:48]Clear old archive folders... [09:12:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:48]tlvbuf is 00BD9180 [09:12:48]SAM_PROTO_ClearQueue [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 09 00 00 [09:12:48]Write to MH i2c: E2 08 00 A6 0F 80 09 00 00 00 00 00 00 27 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]SAM_PROTO_ClearQueue done [09:12:48]KKMCreateOFDPacket [09:12:48]OFDProtocolAddRootSTLVToBuf [09:12:48]FM_MakeSignedData [09:12:48]FM_MakeSignedData [09:12:48]SAM_PROTO_SignData [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 01 02 [09:12:48]Write to MH i2c: E2 08 00 A7 0F 80 0D 01 02 00 00 00 00 2F [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=255 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 11 45 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 82 02 00 35 04 06 00 98 [09:12:48]Write to MH i2c: E2 02 01 A8 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 11 45 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 82 02 00 35 04 06 00 98 00 00 93 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=10 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 02 02 05 73 B7 71 98 2D [09:12:48]Write to MH i2c: E2 0D 00 A9 0F 80 0D 02 02 05 00 73 B7 71 98 2D 00 00 9C [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 03 02 [09:12:48]Write to MH i2c: E2 08 00 AA 0F 80 0D 03 02 00 00 00 00 34 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0B 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0B 00 AA 0F 00 74 72 FC F2 C1 53 F6 88 90 00 9B [09:12:48]RAPDU: 74 72 FC F2 C1 53 F6 88 90 00 [09:12:48]wFMCommunicate OK [09:12:48]SAM_PROTO_SignData done [09:12:48]FM_MakeSignedData done [09:12:48]CreateOFDProtocolMessage [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 11 00 00 [09:12:48]Write to MH i2c: E2 08 00 AB 0F 80 11 00 00 00 00 00 00 34 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 17 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 17 00 AB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [09:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:12:48]wFMCommunicate OK [09:12:48]CreateOFDProtocolMessage done [09:12:48]OFDSenderStorePacket 164493 [09:12:48]StoreOFDPacket docnum=164493 [09:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 4A 07 01 7F 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 11 45 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 82 02 00 35 04 06 00 98 73 B7 71 98 2D 74 72 FC F2 C1 53 F6 88 [09:12:48]CheckFolder [09:12:48]dirname=/storage/ofd_packets [09:12:48]CheckFolder done [09:12:48]ProducePacketName [09:12:48]name=ofd_packets/00164493 [09:12:48]NVStorageSaveData ofd_packets/00164493 [09:12:48]File name is /storage/ofd_packets/00164493 [09:12:48]Write 301 bytes [09:12:48]NVStorageSaveData done [09:12:48]OFDSenderStorePacket done [09:12:48]KKMCreateOFDPacket done [09:12:48]NVStorageSaveData kkm_last_timestamp [09:12:48]File name is /storage/kkm_last_timestamp [09:12:48]Write 4 bytes [09:12:48]NVStorageSaveData done [09:12:48]ExternCall_PrintAddStr [09:12:48]wPrintStart [09:12:48]Write to MH i2c: 01 00 00 AC 0F BB [09:12:48]OFD Sender: Processing packet 164493 [packets to send 104, broken 103] [09:12:48]ProducePacketName [09:12:48]name=ofd_packets/00164493 [09:12:48]OFD Sender: To server: pG, [09:12:48]CommunicateWithHost lk.salyk.kg:30040 [09:12:48]ConnectInit lk.salyk.kg [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 07 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [09:12:48]RasterBufferAndPrint [09:12:48]line Счет N : (1)458581 [09:12:48]line ИНН: 02508201610067 [09:12:48]line Контрольно-Кассовый Чек [09:12:48]line ПРОДАЖА [09:12:48]line ТРК (МРК, ГНК) : 12 [09:12:48]line Товар: 2710124130 [09:12:48]line Аи-92-К-5 [09:12:48]line 7.600 * 65.80 [09:12:48]line = 500.08 [09:12:48]line НДС 12% НСП 1% [09:12:48]line > о реализуемом товаре [09:12:48]line ОКРУГЛЕНИЕ: -0.08 [09:12:48]line ИТОГО: 500.00 [09:12:48]line Внесено: 500.00 [09:12:48]line СДАЧА: 0.00 [09:12:48]line НСП 1% : 4.42 [09:12:48]line НДС 12% : 53.11 [09:12:48]line Наличными: 500.00 [09:12:48]line Безнал.: 0.00 [09:12:48]line Место: АЗС № 72 "Партнер Нефть" [09:12:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:12:48]line СНО: Общий режим [09:12:48]line Чек 53 13.07.2024 09:12 [09:12:48]line Смена: 446 ФФД: 1.0 [09:12:48]line ЗНМ: 0300000160 [09:12:48]line РНМ: 0000000000090829 [09:12:48]line Версия ККМ: 001 [09:12:48]line ФМ: 0000000000874718 [09:12:48]line ФД: 164493 [09:12:48]line ФПД: 167622766336045 [09:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091249&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164493&fm=167622766336045&tin=02508201610067®Number=0000000000090829&sum=50000 [09:12:49]Connected sock=10 [09:12:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 4A 07 01 7F 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 11 45 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 82 02 00 35 04 06 00 98 73 B7 71 98 2D 74 72 FC F2 C1 53 F6 88 [09:12:49]written 0, free lines is 4095 [09:12:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 0E 47 00 3E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 82 02 00 F4 03 04 00 A2 EB 91 66 B6 04 01 00 00 33 73 0C 42 2D 05 23 72 [09:12:49]CommunicateWithHost err = 0 [09:12:49]CheckOFDResponse [09:12:49]1017 (14) - 77093643461234 [09:12:49]1041 (16) - 0000000000874718 [09:12:49]1040 (4) - 164493 [09:12:49]1012 (4) - 13.07.2024 02:51 [09:12:49]1206 (1) - 0 [09:12:49]OFD Sender: Remove packet 164493 [09:12:49]ProducePacketName [09:12:49]name=ofd_packets/00164493 [09:12:49]NVStorageDeleteData [09:12:49]Write to MH i2c: 01 00 00 D6 0F E5 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 D6 0F 00 00 00 00 00 02 0D FB [09:12:49]RasterBufferAndPrint [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]written 0, free lines is 3336 [09:12:49]MH_Cut [09:12:49]Write to MH i2c: D1 01 00 DD 0F 01 BE [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 DD 0F 00 BD [09:12:49]Write to MH i2c: 01 00 00 DE 0F ED [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]OFD Sender: No OFD packet to send [09:12:50]*** Cut start [09:12:50]*** Partial cut [09:12:50]*** CUTSNS_PIN = 1 [09:12:50]*** CUTSNS_PIN = 0 [09:12:50]*** Brake cut motor [09:12:50]Read from MH i2c: 01 [09:12:50]MH_I2C_Read... [09:12:50]*** Stop cut motor [09:12:50]*** Cut end [09:12:50]Read from MH i2c: 01 07 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [09:12:50]process_action close_receipt done [09:12:50]requested_data is exist [09:12:50]produce_requested_data [09:12:50]requested_item fm.sn is exist - process it [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 11 00 00 [09:12:50]Write to MH i2c: E2 08 00 DF 0F 80 11 00 00 00 00 00 00 68 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 DF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [09:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:12:50]wFMCommunicate OK [09:12:50]requested_item fd.num is exist - process it [09:12:50]SAM_PROTO_GetFieldsCounters [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 13 00 00 [09:12:50]Write to MH i2c: E2 08 00 E0 0F 80 13 00 00 00 00 00 00 6B [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 62 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 62 00 E0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 82 02 00 0E 04 04 00 BE 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 01 [09:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 82 02 00 0E 04 04 00 BE 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 [09:12:51]wFMCommunicate OK [09:12:51]SAM_PROTO_GetFieldsCounters done [09:12:51]requested_item shift.num is exist - process it [09:12:51]requested_item shift.opened is exist - process it [09:12:51]req_shift_opened [09:12:51]FM_GetShiftState [09:12:51]SAM_PROTO_GetShiftState [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 13 01 00 [09:12:51]Write to MH i2c: E2 08 00 E1 0F 80 13 01 00 00 00 00 00 6D [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 0E 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 0E 00 E1 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4E [09:12:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:12:51]wFMCommunicate OK [09:12:51]SAM_PROTO_GetShiftState done [09:12:51]FM_GetShiftState done [09:12:51]req_shift_opened done [09:12:51]requested_item shift.open_date is exist - process it [09:12:51]req_shift_open_date [09:12:51]req_shift_open_date done [09:12:51]produce_requested_data done [09:12:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164493,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:12:51]process_action_free close_receipt [09:12:51]json_value_free [09:12:51]json_value_free done [09:12:51]process_json_proto returns [09:12:51]Send response to host [09:12:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164493,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:12:51]free response buf [09:12:51]execute_script done [09:12:51]execute_script returns [09:12:51]free content buf [09:12:51]Sock 7.Close socket [09:12:51]Sock 7.Thread stoped [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16: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:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:27]accept exits with 9 [09:20:27]New connection [09:20:27]New thread 3067157860 created [09:20:27]Thread 3067301220 joined [09:20:27]Waiting for new connection... [09:20:27] Sock 9.Parse request [09:20:27]Sock 9.Check first char [09:20:27]Sock 9.First char is OK [09:20:27]request: POST /json_proto HTTP/1.0 [09:20:27]Method: POST [09:20:27]URL: /json_proto [09:20:27]Method is POST - this is cgi request [09:20:27]url: /json_proto [09:20:27]query_string will be loaded in cgi processing [09:20:27]execute_cgi json_proto POST (null) [09:20:27]execute_cgi path=json_proto method=POST [09:20:27]POST find Content-Length [09:20:27]Host: 172.17.56.4:8080 [09:20:27]Content-Length: 682 [09:20:27]Content-Type: application/json [09:20:27] [09:20:27]POST finish read [09:20:27]Found Content-Length = 682 [09:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:27]execute_script... [09:20: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)458582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:27]POST & json_proto [09:20:27]process_json_proto [09:20:27]json parsed OK: [09:20:27]protocol is kg_v1.0 [09:20:27]action value=close_receipt [09:20:27]process_action close_receipt [09:20:27]cmd_close_receipt [09:20:27]MH_GetDate [09:20:27]Write to MH i2c: F0 00 00 E2 0F E0 [09:20:27]Write i2c OK [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 09 00 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 09 00 E2 0F 00 DD 46 92 66 C9 DC B2 64 BF [09:20:27]GetLastDocTimeStamp 1720861969 [09:20:27]current date 1720862429 [09:20:27]FM_GetShiftState [09:20:27]SAM_PROTO_GetShiftState [09:20:27]wFMCommunicate request_size=4 [09:20:27]MH_SAM_APDU [09:20:27]CAPDU: 80 13 01 00 [09:20:27]Write to MH i2c: E2 08 00 E3 0F 80 13 01 00 00 00 00 00 6F [09:20:27]Write i2c OK [09:20:27]MH_I2C_Read... [09:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:27]Read from MH i2c: E2 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: E2 0E 00 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: E2 0E 00 E3 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 50 [09:20:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:20:27]wFMCommunicate OK [09:20:27]SAM_PROTO_GetShiftState done [09:20:27]FM_GetShiftState done [09:20:27]opened in 1720831249 [09:20:27]opened+sec_in_day 1720917649 [09:20:27]quantity*price = 120019 [09:20:27]sum+1 = 120020 [09:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 54 13.07.2024 09:20 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164494 ФПД: 131114231610036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164494&fm=131114231610036&tin=02508201610067®Number=0000000000090829&sum=120000 [09:20:28]StoreToDocumentArchive [09:20:28]shift 446 fd 164494 [09:20:28]save to /storage/0446/doc_00164494 [09:20:28]save last doc name /storage/0446/doc_00164494 to /storage/kkm_last_doc_name [09:20:28]save OK [09:20:28]Clear old archive folders... [09:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:28]tlvbuf is 00BD9370 [09:20:28]SAM_PROTO_ClearQueue [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 09 00 00 [09:20:28]Write to MH i2c: E2 08 00 F0 0F 80 09 00 00 00 00 00 00 71 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_ClearQueue done [09:20:28]KKMCreateOFDPacket [09:20:28]OFDProtocolAddRootSTLVToBuf [09:20:28]FM_MakeSignedData [09:20:28]FM_MakeSignedData [09:20:28]SAM_PROTO_SignData [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 01 02 [09:20:28]Write to MH i2c: E2 08 00 F1 0F 80 0D 01 02 00 00 00 00 79 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=255 [09:20:28]MH_SAM_APDU [09:20: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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DD 46 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 82 02 00 35 04 06 00 77 [09:20:28]Write to MH i2c: E2 02 01 F2 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DD 46 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 82 02 00 35 04 06 00 77 00 00 6C [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=10 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 02 02 05 3F 69 33 3A B4 [09:20:28]Write to MH i2c: E2 0D 00 F3 0F 80 0D 02 02 05 00 3F 69 33 3A B4 00 00 4F [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 03 02 [09:20:28]Write to MH i2c: E2 08 00 F4 0F 80 0D 03 02 00 00 00 00 7E [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 0B 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 0B 00 F4 0F 00 6A CF F7 80 38 E9 46 E0 90 00 76 [09:20:28]RAPDU: 6A CF F7 80 38 E9 46 E0 90 00 [09:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_SignData done [09:20:28]FM_MakeSignedData done [09:20:28]CreateOFDProtocolMessage [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 11 00 00 [09:20:28]Write to MH i2c: E2 08 00 F5 0F 80 11 00 00 00 00 00 00 7E [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 F5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [09:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:20:28]wFMCommunicate OK [09:20:28]CreateOFDProtocolMessage done [09:20:28]OFDSenderStorePacket 164494 [09:20:28]StoreOFDPacket docnum=164494 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 31418936+1689443529=1720862465 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 01 47 92 66 C9 DC B2 64 FA [09:21:05]Current date/time: 13.07.2024 09:21 [09:21:05]FM_Init [09:21:05]wFMConnect [09:21:05]MH_SAM_On [09:21:05]Write to MH i2c: E0 00 00 08 00 E7 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_init finished! [09:21:05]*** atr: [09:21:05]*** 0F 3B D5 18 FF 81 91 FE [09:21:05]*** 1F C3 80 73 C8 21 10 0A [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]*** 00 00 00 00 00 00 00 00 [09:21:05]Read from MH i2c: E0 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E0 10 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:21:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:21:05]wFMCommunicate request_size=10 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:21:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:21:05]RAPDU: 90 00 [09:21:05]wFMCommunicate OK [09:21:05]wFMCommunicate request_size=4 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 11 00 00 [09:21:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 17 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [09:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:21:05]wFMCommunicate OK [09:21:05]Detected FM SN is 0000000000874718 [09:21:05]Stored FM SN is 0000000000874718 [09:21:05]wFMCommunicate request_size=9 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 16 00 00 04 29 B3 00 00 [09:21:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:21:05]RAPDU: 90 00 [09:21:05]wFMCommunicate OK [09:21:05]FM PIN OK [09:21:05]wFMCommunicate request_size=8 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 14 04 00 03 02 00 01 [09:21:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:21:05]RAPDU: 90 00 [09:21:05]wFMCommunicate OK [09:21:05]wFMCommunicate request_size=13 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:21:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:21:05]RAPDU: 90 00 [09:21:05]wFMCommunicate OK [09:21:05]wFMCommunicate request_size=4 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 11 00 00 [09:21:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 17 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [09:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:21:05]wFMCommunicate OK [09:21:05]DocumentArchiveInit [09:21:05]Start Httpd... [09:21:05]Httpd thread 3067579748 created [09:21:05]Write to MH i2c: 01 00 00 0F 00 0F [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 07 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:21:05]Allocated Socket 6 [09:21:05]Bind OK [09:21:05]Listen OK [09:21:05]httpd running on port 8080 [09:21:05]Waiting for new connection... [09:21:05]MH Int Process started [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:12]accept exits with 7 [09:21:12]New connection [09:21:12]New thread 3067293028 created [09:21:12]Waiting for new connection... [09:21:12] Sock 7.Parse request [09:21:12]Sock 7.Check first char [09:21:12]Sock 7.First char is OK [09:21:12]request: POST /json_proto HTTP/1.0 [09:21:12]Method: POST [09:21:12]URL: /json_proto [09:21:12]Method is POST - this is cgi request [09:21:12]url: /json_proto [09:21:12]query_string will be loaded in cgi processing [09:21:12]execute_cgi json_proto POST (null) [09:21:12]execute_cgi path=json_proto method=POST [09:21:12]POST find Content-Length [09:21:12]Host: 172.17.56.4:8080 [09:21:12]Content-Length: 215 [09:21:12]Content-Type: application/json [09:21:12] [09:21:12]POST finish read [09:21:12]Found Content-Length = 215 [09:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:12]execute_script... [09:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:12]POST & json_proto [09:21:12]process_json_proto [09:21:12]json parsed OK: [09:21:12]protocol is kg_v1.0 [09:21:12]action value=get_value [09:21:12]process_action get_value [09:21:12]cmd_get_value [09:21:12]process_action get_value done [09:21:12]requested_data is exist [09:21:12]produce_requested_data [09:21:12]requested_item kkm.sn is exist - process it [09:21:12]requested_item kkm.ver is exist - process it [09:21:12]requested_item fm.sn is exist - process it [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 11 00 00 [09:21:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [09:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:21:12]wFMCommunicate OK [09:21:12]requested_item fd.num is exist - process it [09:21:12]SAM_PROTO_GetFieldsCounters [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 00 00 [09:21:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 82 02 00 0E 04 04 00 BE 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 27 [09:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 82 02 00 0E 04 04 00 BE 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 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetFieldsCounters done [09:21:12]requested_item shift.num is exist - process it [09:21:12]requested_item shift.opened is exist - process it [09:21:12]req_shift_opened [09:21:12]FM_GetShiftState [09:21:12]SAM_PROTO_GetShiftState [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 01 00 [09:21:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 70 [09:21:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetShiftState done [09:21:12]FM_GetShiftState done [09:21:12]req_shift_opened done [09:21:12]requested_item shift.open_date is exist - process it [09:21:12]req_shift_open_date [09:21:12]req_shift_open_date done [09:21:12]produce_requested_data done [09:21:12]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164494,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:21:12]process_action_free get_value [09:21:12]json_value_free [09:21:12]json_value_free done [09:21:12]process_json_proto returns [09:21:12]Send response to host [09:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164494,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:21:12]free response buf [09:21:12]execute_script done [09:21:12]execute_script returns [09:21:12]free content buf [09:21:12]Sock 7.Close socket [09:21:12]Sock 7.Thread stoped [09:21:12]accept exits with 9 [09:21:12]New connection [09:21:12]New thread 3067149668 created [09:21:12]Thread 3067293028 joined [09:21:12]Waiting for new connection... [09:21:12] Sock 9.Parse request [09:21:12]Sock 9.Check first char [09:21:12]Sock 9.First char is OK [09:21:12]request: POST /json_proto HTTP/1.0 [09:21:12]Method: POST [09:21:12]URL: /json_proto [09:21:12]Method is POST - this is cgi request [09:21:12]url: /json_proto [09:21:12]query_string will be loaded in cgi processing [09:21:12]execute_cgi json_proto POST (null) [09:21:12]execute_cgi path=json_proto method=POST [09:21:12]POST find Content-Length [09:21:12]Host: 172.17.56.4:8080 [09:21:12]Content-Length: 331 [09:21:12]Content-Type: application/json [09:21:12] [09:21:12]POST finish read [09:21:12]Found Content-Length = 331 [09:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:21:12]execute_script... [09:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:21:12]POST & json_proto [09:21:12]process_json_proto [09:21:12]json parsed OK: [09:21:12]protocol is kg_v1.0 [09:21:12]action value=get_value [09:21:12]process_action get_value [09:21:13]cmd_get_value [09:21:13]process_action get_value done [09:21:13]requested_data is exist [09:21:13]produce_requested_data [09:21:13]requested_item fm.sale.total is exist - process it [09:21:13]SAM_PROTO_GetFMData [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 13 03 00 [09:21:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 FD 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 0F 7F 02 00 69 04 A3 00 6F 04 04 00 02 7E 02 00 B1 04 05 00 27 47 DF 56 02 70 04 05 00 A5 F4 E1 34 02 72 04 04 00 82 52 FD 21 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 75 25 9F 3F 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 DE 12 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 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 8C E2 58 EF 03 09 00 90 00 A3 [09:21:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 0F 7F 02 00 69 04 A3 00 6F 04 04 00 02 7E 02 00 B1 04 05 00 27 47 DF 56 02 70 04 05 00 A5 F4 E1 34 02 72 04 04 00 82 52 FD 21 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 75 25 9F 3F 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 DE 12 4D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 5C E3 44 03 70 04 04 00 5C E3 44 03 72 04 00 00 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 8C E2 58 EF 03 09 00 90 00 [09:21:13]wFMCommunicate OK [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 17 00 00 [09:21:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 FD 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [09:21:13]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 24 68 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:21:13]wFMCommunicate OK [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 17 00 00 [09:21:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 FD 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [09:21:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:21:14]wFMCommunicate OK [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 17 00 00 [09:21:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 FD 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [09:21:14]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:21:14]wFMCommunicate OK [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 17 00 00 [09:21:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 E1 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:21:14]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:21:14]wFMCommunicate OK [09:21:14]SAM_PROTO_GetFMData done [09:21:14]requested_item fm.sale_refund.total is exist - process it [09:21:14]requested_item fm.buy.total is exist - process it [09:21:14]requested_item shift.sale.total is exist - process it [09:21:14]SAM_PROTO_GetShiftData [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 13 02 00 [09:21:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 CA 0D 3A 70 04 03 00 F4 B1 36 72 04 03 00 D6 5B 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9F 2A 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 88 83 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 BD [09:21:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 36 00 00 00 69 04 9B 00 6F 04 04 00 36 00 00 00 B1 04 03 00 CA 0D 3A 70 04 03 00 F4 B1 36 72 04 03 00 D6 5B 03 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9F 2A 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 88 83 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 17 00 00 [09:21:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:21:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 17 00 00 [09:21:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]OFD Sender: No OFD packet to send [09:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:21:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 17 00 00 [09:21:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:21:15]Read from MH i2c: E2 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:21:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:21:15]wFMCommunicate OK [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 17 00 00 [09:21:15]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 CB 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:21:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetShiftData done [09:21:16]requested_item shift.sale.total_cash is exist - process it [09:21:16]requested_item shift.sale_refund.total is exist - process it [09:21:16]requested_item shift.sale_refund.total_cash is exist - process it [09:21:16]requested_item shift.buy.total is exist - process it [09:21:16]requested_item shift.buy.total_cash is exist - process it [09:21:16]produce_requested_data done [09:21:16]produce_requested_data return {"fm.sale.total":100474079.11,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":38046.18,"shift.sale.total_cash":35845.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} [09:21:16]process_action_free get_value [09:21:16]json_value_free [09:21:16]json_value_free done [09:21:16]process_json_proto returns [09:21:16]Send response to host [09:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100474079.11,"fm.sale_refund.total":548463.00,"fm.buy.total":0.00,"shift.sale.total":38046.18,"shift.sale.total_cash":35845.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}}} [09:21:16]free response buf [09:21:16]execute_script done [09:21:16]execute_script returns [09:21:16]free content buf [09:21:16]Sock 9.Close socket [09:21:16]Sock 9.Thread stoped [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:44]accept exits with 7 [09:29:44]New connection [09:29:44]New thread 3067293028 created [09:29:44]Thread 3067149668 joined [09:29:44]Waiting for new connection... [09:29:44] Sock 7.Parse request [09:29:44]Sock 7.Check first char [09:29:44]Sock 7.First char is OK [09:29:44]request: POST /json_proto HTTP/1.0 [09:29:44]Method: POST [09:29:44]URL: /json_proto [09:29:44]Method is POST - this is cgi request [09:29:44]url: /json_proto [09:29:44]query_string will be loaded in cgi processing [09:29:44]execute_cgi json_proto POST (null) [09:29:44]execute_cgi path=json_proto method=POST [09:29:44]POST find Content-Length [09:29:44]Host: 172.17.56.4:8080 [09:29:44]Content-Length: 677 [09:29:44]Content-Type: application/json [09:29:44] [09:29:44]POST finish read [09:29:44]Found Content-Length = 677 [09:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.000, "sum" : 197.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 197.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:44]execute_script... [09:29:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.000, "sum" : 197.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 197.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:44]POST & json_proto [09:29:44]process_json_proto [09:29:44]json parsed OK: [09:29:44]protocol is kg_v1.0 [09:29:44]action value=close_receipt [09:29:44]process_action close_receipt [09:29:44]cmd_close_receipt [09:29:44]MH_GetDate [09:29:44]Write to MH i2c: F0 00 00 1D 00 0C [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: F0 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: F0 09 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: F0 09 00 1D 00 00 09 49 92 66 C9 DC B2 64 1A [09:29:44]GetLastDocTimeStamp 97 [09:29:44]current date 1720862985 [09:29:44]FM_GetShiftState [09:29:44]SAM_PROTO_GetShiftState [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 13 01 00 [09:29:44]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 0E 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [09:29:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:29:44]wFMCommunicate OK [09:29:44]SAM_PROTO_GetShiftState done [09:29:44]FM_GetShiftState done [09:29:44]opened in 1720831249 [09:29:44]opened+sec_in_day 1720917649 [09:29:44]quantity*price = 19740 [09:29:44]sum+1 = 19741 [09:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 197.00 Внесено: 197.00 СДАЧА: 0.00 НСП 1% : 1.75 НДС 12% : 20.96 Наличными: 197.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 55 13.07.2024 09:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164495 ФПД: 172336745710339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092945&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164495&fm=172336745710339&tin=02508201610067®Number=0000000000090829&sum=19700 [09:29:45]StoreToDocumentArchive [09:29:45]shift 446 fd 164495 [09:29:45]save to /storage/0446/doc_00164495 [09:29:45]save last doc name /storage/0446/doc_00164495 to /storage/kkm_last_doc_name [09:29:45]save OK [09:29:45]Clear old archive folders... [09:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:45]tlvbuf is 01424A90 [09:29:45]SAM_PROTO_ClearQueue [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 09 00 00 [09:29:45]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]SAM_PROTO_ClearQueue done [09:29:45]KKMCreateOFDPacket [09:29:45]OFDProtocolAddRootSTLVToBuf [09:29:45]FM_MakeSignedData [09:29:45]FM_MakeSignedData [09:29:45]SAM_PROTO_SignData [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 0D 01 02 [09:29:45]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]wFMCommunicate request_size=255 [09:29:45]MH_SAM_APDU [09:29: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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 82 02 00 35 04 06 00 9C [09:29:45]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 82 02 00 35 04 06 00 9C 00 00 04 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]wFMCommunicate request_size=10 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 0D 02 02 05 BD 46 82 83 03 [09:29:45]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 BD 46 82 83 03 00 00 BD [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:29:45]RAPDU: 90 00 [09:29:45]wFMCommunicate OK [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 0D 03 02 [09:29:45]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 0B 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 0B 00 2F 00 00 A8 4D 60 46 7D DC 6E A0 90 00 AD [09:29:45]RAPDU: A8 4D 60 46 7D DC 6E A0 90 00 [09:29:45]wFMCommunicate OK [09:29:45]SAM_PROTO_SignData done [09:29:45]FM_MakeSignedData done [09:29:45]CreateOFDProtocolMessage [09:29:45]wFMCommunicate request_size=4 [09:29:45]MH_SAM_APDU [09:29:45]CAPDU: 80 11 00 00 [09:29:45]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:45]Read from MH i2c: E2 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 17 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [09:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:29:45]wFMCommunicate OK [09:29:45]CreateOFDProtocolMessage done [09:29:45]OFDSenderStorePacket 164495 [09:29:45]StoreOFDPacket docnum=164495 [09:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 4E 07 01 3C 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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 82 02 00 35 04 06 00 9C BD 46 82 83 03 A8 4D 60 46 7D DC 6E A0 [09:29:45]CheckFolder [09:29:45]dirname=/storage/ofd_packets [09:29:45]CheckFolder done [09:29:45]ProducePacketName [09:29:45]name=ofd_packets/00164495 [09:29:45]NVStorageSaveData ofd_packets/00164495 [09:29:45]File name is /storage/ofd_packets/00164495 [09:29:45]Write 301 bytes [09:29:45]NVStorageSaveData done [09:29:45]OFDSenderStorePacket done [09:29:45]KKMCreateOFDPacket done [09:29:45]NVStorageSaveData kkm_last_timestamp [09:29:45]File name is /storage/kkm_last_timestamp [09:29:45]Write 4 bytes [09:29:45]NVStorageSaveData done [09:29:45]ExternCall_PrintAddStr [09:29:45]wPrintStart [09:29:45]Write to MH i2c: 01 00 00 31 00 31 [09:29:45]Write i2c OK [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 [09:29:45]MH_I2C_Read... [09:29:45]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:29:45]RasterBufferAndPrint [09:29:45]line Счет N : (1)458583 [09:29:45]line ИНН: 02508201610067 [09:29:45]line Контрольно-Кассовый Чек [09:29:45]line ПРОДАЖА [09:29:45]line ТРК (МРК, ГНК) : 12 [09:29:45]line Товар: 2710124130 [09:29:45]line Аи-92-К-5 [09:29:45]line 3.000 * 65.80 [09:29:45]line = 197.40 [09:29:45]line НДС 12% НСП 1% [09:29:45]line > о реализуемом товаре [09:29:45]line ОКРУГЛЕНИЕ: -0.40 [09:29:45]line ИТОГО: 197.00 [09:29:45]line Внесено: 197.00 [09:29:45]line СДАЧА: 0.00 [09:29:45]line НСП 1% : 1.75 [09:29:45]line НДС 12% : 20.96 [09:29:45]line Наличными: 197.00 [09:29:45]line Безнал.: 0.00 [09:29:45]line Место: АЗС № 72 "Партнер Нефть" [09:29:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:29:45]line СНО: Общий режим [09:29:45]line Чек 55 13.07.2024 09:29 [09:29:45]line Смена: 446 ФФД: 1.0 [09:29:45]line ЗНМ: 0300000160 [09:29:45]line РНМ: 0000000000090829 [09:29:45]line Версия ККМ: 001 [09:29:45]line ФМ: 0000000000874718 [09:29:45]line ФД: 164495 [09:29:45]line ФПД: 172336745710339 [09:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092945&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164495&fm=172336745710339&tin=02508201610067®Number=0000000000090829&sum=19700 [09:29:45]written 0, free lines is 4095 [09:29:46]OFD Sender: Processing packet 164495 [packets to send 104, broken 103] [09:29:46]ProducePacketName [09:29:46]name=ofd_packets/00164495 [09:29:46]OFD Sender: To server: pG, [09:29:46]CommunicateWithHost lk.salyk.kg:30040 [09:29:46]ConnectInit lk.salyk.kg [09:29:46]Connected sock=10 [09:29:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 4E 07 01 3C 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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 09 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 82 02 00 35 04 06 00 9C BD 46 82 83 03 A8 4D 60 46 7D DC 6E A0 [09:29:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 03 47 00 2A A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 82 02 00 F4 03 04 00 9A EF 91 66 B6 04 01 00 00 B7 36 61 20 AE 88 44 B2 [09:29:46]CommunicateWithHost err = 0 [09:29:46]CheckOFDResponse [09:29:46]1017 (14) - 77093643461234 [09:29:46]1041 (16) - 0000000000874718 [09:29:46]1040 (4) - 164495 [09:29:46]1012 (4) - 13.07.2024 03:08 [09:29:46]1206 (1) - 0 [09:29:46]OFD Sender: Remove packet 164495 [09:29:46]ProducePacketName [09:29:46]name=ofd_packets/00164495 [09:29:46]NVStorageDeleteData [09:29:46]Write to MH i2c: 01 00 00 5B 00 5B [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: 01 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: 01 07 00 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F6 0C 64 [09:29:46]RasterBufferAndPrint [09:29:46]line [09:29:46]line [09:29:46]line [09:29:46]line [09:29:46]line [09:29:46]written 0, free lines is 3323 [09:29:46]MH_Cut [09:29:46]Write to MH i2c: D1 01 00 62 00 01 34 [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: D1 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: D1 01 00 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: D1 01 00 62 00 00 33 [09:29:46]Write to MH i2c: 01 00 00 63 00 63 [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:46]OFD Sender: No OFD packet to send [09:29:47]*** Cut start [09:29:47]*** Partial cut [09:29:47]*** CUTSNS_PIN = 1 [09:29:47]*** CUTSNS_PIN = 0 [09:29:47]*** Brake cut motor [09:29:47]Read from MH i2c: 01 [09:29:47]MH_I2C_Read... [09:29:47]*** Stop cut motor [09:29:47]*** Cut end [09:29:47]Read from MH i2c: 01 07 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:29:47]process_action close_receipt done [09:29:47]requested_data is exist [09:29:47]produce_requested_data [09:29:47]requested_item fm.sn is exist - process it [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 11 00 00 [09:29:47]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 17 00 [09:29:47]MH_I2C_Read... [09:29:47]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 34 37 31 38 90 00 34 [09:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:29:47]wFMCommunicate OK [09:29:47]requested_item fd.num is exist - process it [09:29:47]SAM_PROTO_GetFieldsCounters [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 13 00 00 [09:29:47]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 62 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 62 00 65 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 82 02 00 0E 04 04 00 BE 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 7F [09:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 82 02 00 0E 04 04 00 BE 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 [09:29:47]wFMCommunicate OK [09:29:47]SAM_PROTO_GetFieldsCounters done [09:29:47]requested_item shift.num is exist - process it [09:29:47]requested_item shift.opened is exist - process it [09:29:47]req_shift_opened [09:29:47]FM_GetShiftState [09:29:47]SAM_PROTO_GetShiftState [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 13 01 00 [09:29:47]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 0E 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C4 [09:29:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:29:47]wFMCommunicate OK [09:29:47]SAM_PROTO_GetShiftState done [09:29:47]FM_GetShiftState done [09:29:47]req_shift_opened done [09:29:47]requested_item shift.open_date is exist - process it [09:29:47]req_shift_open_date [09:29:47]req_shift_open_date done [09:29:47]produce_requested_data done [09:29:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164495,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:29:47]process_action_free close_receipt [09:29:47]json_value_free [09:29:47]json_value_free done [09:29:47]process_json_proto returns [09:29:47]Send response to host [09:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164495,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:29:47]free response buf [09:29:47]execute_script done [09:29:47]execute_script returns [09:29:47]free content buf [09:29:47]Sock 7.Close socket [09:29:47]Sock 7.Thread stoped [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]accept exits with 9 [09:30:26]New connection [09:30:26]New thread 3067149668 created [09:30:26]Thread 3067293028 joined [09:30:26]Waiting for new connection... [09:30:26] Sock 9.Parse request [09:30:26]Sock 9.Check first char [09:30:26]Sock 9.First char is OK [09:30:26]request: POST /json_proto HTTP/1.0 [09:30:26]Method: POST [09:30:26]URL: /json_proto [09:30:26]Method is POST - this is cgi request [09:30:26]url: /json_proto [09:30:26]query_string will be loaded in cgi processing [09:30:26]execute_cgi json_proto POST (null) [09:30:26]execute_cgi path=json_proto method=POST [09:30:26]POST find Content-Length [09:30:26]Host: 172.17.56.4:8080 [09:30:26]Content-Length: 639 [09:30:26]Content-Type: application/json [09:30:26] [09:30:26]POST finish read [09:30:26]Found Content-Length = 639 [09:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:26]execute_script... [09:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:26]POST & json_proto [09:30:26]process_json_proto [09:30:26]json parsed OK: [09:30:26]protocol is kg_v1.0 [09:30:26]action value=close_receipt [09:30:26]process_action close_receipt [09:30:26]cmd_close_receipt [09:30:26]MH_GetDate [09:30:26]Write to MH i2c: F0 00 00 67 00 56 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 09 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 09 00 67 00 00 33 49 92 66 C9 DC B2 64 8E [09:30:26]GetLastDocTimeStamp 1720862985 [09:30:26]current date 1720863027 [09:30:26]FM_GetShiftState [09:30:26]SAM_PROTO_GetShiftState [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 01 00 [09:30:26]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]OFD Sender: No OFD packet to send [09:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [09:30:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetShiftState done [09:30:26]FM_GetShiftState done [09:30:26]opened in 1720831249 [09:30:26]opened+sec_in_day 1720917649 [09:30:26]quantity*price = 32900 [09:30:26]sum+1 = 32901 [09:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 56 13.07.2024 09:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164496 ФПД: 46316482614858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093027&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164496&fm=46316482614858&tin=02508201610067®Number=0000000000090829&sum=32900 [09:30:28]StoreToDocumentArchive [09:30:28]shift 446 fd 164496 [09:30:28]save to /storage/0446/doc_00164496 [09:30:28]save last doc name /storage/0446/doc_00164496 to /storage/kkm_last_doc_name [09:30:28]save OK [09:30:28]Clear old archive folders... [09:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:28]tlvbuf is 01442B20 [09:30:28]SAM_PROTO_ClearQueue [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 09 00 00 [09:30:28]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:30:28]RAPDU: 90 00 [09:30:28]wFMCommunicate OK [09:30:28]SAM_PROTO_ClearQueue done [09:30:28]KKMCreateOFDPacket [09:30:28]OFDProtocolAddRootSTLVToBuf [09:30:28]FM_MakeSignedData [09:30:28]FM_MakeSignedData [09:30:28]SAM_PROTO_SignData [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 0D 01 02 [09:30:28]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:30:28]RAPDU: 90 00 [09:30:28]wFMCommunicate OK [09:30:28]wFMCommunicate request_size=255 [09:30:28]MH_SAM_APDU [09:30: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 33 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 82 02 00 35 04 06 00 2A [09:30:28]Write to MH i2c: E2 02 01 77 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 33 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 82 02 00 35 04 06 00 2A 00 00 F3 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:30:28]RAPDU: 90 00 [09:30:28]wFMCommunicate OK [09:30:28]wFMCommunicate request_size=10 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 0D 02 02 05 1F E5 7E 56 4A [09:30:28]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 1F E5 7E 56 4A 00 00 1E [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:30:28]RAPDU: 90 00 [09:30:28]wFMCommunicate OK [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 0D 03 02 [09:30:28]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0B 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0B 00 79 00 00 FE D2 3C 29 8D D8 AF E8 90 00 26 [09:30:28]RAPDU: FE D2 3C 29 8D D8 AF E8 90 00 [09:30:28]wFMCommunicate OK [09:30:28]SAM_PROTO_SignData done [09:30:28]FM_MakeSignedData done [09:30:28]CreateOFDProtocolMessage [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 11 00 00 [09:30:28]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 17 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [09:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:28]wFMCommunicate OK [09:30:28]CreateOFDProtocolMessage done [09:30:28]OFDSenderStorePacket 164496 [09:30:28]StoreOFDPacket docnum=164496 [09:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 10 07 01 10 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 33 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 82 02 00 35 04 06 00 2A 1F E5 7E 56 4A FE D2 3C 29 8D D8 AF E8 [09:30:28]CheckFolder [09:30:28]dirname=/storage/ofd_packets [09:30:28]CheckFolder done [09:30:28]ProducePacketName [09:30:28]name=ofd_packets/00164496 [09:30:28]NVStorageSaveData ofd_packets/00164496 [09:30:28]File name is /storage/ofd_packets/00164496 [09:30:28]Write 301 bytes [09:30:28]NVStorageSaveData done [09:30:28]OFDSenderStorePacket done [09:30:28]KKMCreateOFDPacket done [09:30:28]NVStorageSaveData kkm_last_timestamp [09:30:28]File name is /storage/kkm_last_timestamp [09:30:28]Write 4 bytes [09:30:28]NVStorageSaveData done [09:30:28]ExternCall_PrintAddStr [09:30:28]wPrintStart [09:30:28]Write to MH i2c: 01 00 00 7B 00 7B [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 07 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:30:28]RasterBufferAndPrint [09:30:28]line Счет N : (1)458584 [09:30:28]line ИНН: 02508201610067 [09:30:28]line Контрольно-Кассовый Чек [09:30:28]line ПРОДАЖА [09:30:28]line ТРК (МРК, ГНК) : 12 [09:30:28]line Товар: 2710124130 [09:30:28]line Аи-92-К-5 [09:30:28]line 5.000 * 65.80 [09:30:28]line = 329.00 [09:30:28]line НДС 12% НСП 1% [09:30:28]line > о реализуемом товаре [09:30:28]line ИТОГО: 329.00 [09:30:28]line НСП 1% : 2.91 [09:30:28]line НДС 12% : 34.94 [09:30:28]line Наличными: 329.00 [09:30:28]line Безнал.: 0.00 [09:30:28]line Место: АЗС № 72 "Партнер Нефть" [09:30:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:30:28]line СНО: Общий режим [09:30:28]line Чек 56 13.07.2024 09:30 [09:30:28]line Смена: 446 ФФД: 1.0 [09:30:28]line ЗНМ: 0300000160 [09:30:28]line РНМ: 0000000000090829 [09:30:28]line Версия ККМ: 001 [09:30:28]line ФМ: 0000000000874718 [09:30:28]line ФД: 164496 [09:30:28]line ФПД: 46316482614858 [09:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093027&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164496&fm=46316482614858&tin=02508201610067®Number=0000000000090829&sum=32900 [09:30:28]written 0, free lines is 4095 [09:30:28]OFD Sender: Processing packet 164496 [packets to send 104, broken 103] [09:30:28]ProducePacketName [09:30:28]name=ofd_packets/00164496 [09:30:28]OFD Sender: To server: pG, [09:30:28]CommunicateWithHost lk.salyk.kg:30040 [09:30:28]ConnectInit lk.salyk.kg [09:30:29]Connected sock=10 [09:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 10 07 01 10 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 33 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 82 02 00 35 04 06 00 2A 1F E5 7E 56 4A FE D2 3C 29 8D D8 AF E8 [09:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 9B 47 00 13 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 34 37 31 38 10 04 04 00 90 82 02 00 F4 03 04 00 C5 EF 91 66 B6 04 01 00 00 27 DA B5 D2 ED 3C B8 79 [09:30:29]CommunicateWithHost err = 0 [09:30:29]CheckOFDResponse [09:30:29]1017 (14) - 77093643461234 [09:30:29]1041 (16) - 0000000000874718 [09:30:29]1040 (4) - 164496 [09:30:29]1012 (4) - 13.07.2024 03:08 [09:30:29]1206 (1) - 0 [09:30:29]OFD Sender: Remove packet 164496 [09:30:29]ProducePacketName [09:30:29]name=ofd_packets/00164496 [09:30:29]NVStorageDeleteData [09:30:29]Write to MH i2c: 01 00 00 A2 00 A2 [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 07 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 23 0D D9 [09:30:29]RasterBufferAndPrint [09:30:29]line [09:30:29]line [09:30:29]line [09:30:29]line [09:30:29]line [09:30:29]written 0, free lines is 3370 [09:30:29]MH_Cut [09:30:29]Write to MH i2c: D1 01 00 A9 00 01 7B [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: D1 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: D1 01 00 [09:30:29]MH_I2C_Read... [09:30:29]Read from MH i2c: D1 01 00 A9 00 00 7A [09:30:29]Write to MH i2c: 01 00 00 AA 00 AA [09:30:29]Write i2c OK [09:30:29]MH_I2C_Read... [09:30:29]OFD Sender: No OFD packet to send [09:30:29]*** Cut start [09:30:29]*** Partial cut [09:30:29]*** CUTSNS_PIN = 1 [09:30:30]*** CUTSNS_PIN = 0 [09:30:30]*** Brake cut motor [09:30:30]Read from MH i2c: 01 [09:30:30]MH_I2C_Read... [09:30:30]*** Stop cut motor [09:30:30]*** Cut end [09:30:30]Read from MH i2c: 01 07 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [09:30:30]process_action close_receipt done [09:30:30]requested_data is exist [09:30:30]produce_requested_data [09:30:30]requested_item fm.sn is exist - process it [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 11 00 00 [09:30:30]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 17 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [09:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:30]wFMCommunicate OK [09:30:30]requested_item fd.num is exist - process it [09:30:30]SAM_PROTO_GetFieldsCounters [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 13 00 00 [09:30:30]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 62 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 82 02 00 0E 04 04 00 BE 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 CA [09:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 82 02 00 0E 04 04 00 BE 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 [09:30:30]wFMCommunicate OK [09:30:30]SAM_PROTO_GetFieldsCounters done [09:30:30]requested_item shift.num is exist - process it [09:30:30]requested_item shift.opened is exist - process it [09:30:30]req_shift_opened [09:30:30]FM_GetShiftState [09:30:30]SAM_PROTO_GetShiftState [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 13 01 00 [09:30:30]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0B [09:30:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:30:30]wFMCommunicate OK [09:30:30]SAM_PROTO_GetShiftState done [09:30:30]FM_GetShiftState done [09:30:30]req_shift_opened done [09:30:30]requested_item shift.open_date is exist - process it [09:30:30]req_shift_open_date [09:30:30]req_shift_open_date done [09:30:30]produce_requested_data done [09:30:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164496,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:30:30]process_action_free close_receipt [09:30:30]json_value_free [09:30:30]json_value_free done [09:30:30]process_json_proto returns [09:30:30]Send response to host [09:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164496,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:30:30]free response buf [09:30:30]execute_script done [09:30:30]execute_script returns [09:30:30]free content buf [09:30:30]Sock 9.Close socket [09:30:30]Sock 9.Thread stoped [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:15]accept exits with 7 [09:31:15]New connection [09:31:15]New thread 3067293028 created [09:31:15]Thread 3067149668 joined [09:31:15]Waiting for new connection... [09:31:15] Sock 7.Parse request [09:31:15]Sock 7.Check first char [09:31:15]Sock 7.First char is OK [09:31:15]request: POST /json_proto HTTP/1.0 [09:31:15]Method: POST [09:31:15]URL: /json_proto [09:31:15]Method is POST - this is cgi request [09:31:15]url: /json_proto [09:31:15]query_string will be loaded in cgi processing [09:31:15]execute_cgi json_proto POST (null) [09:31:15]execute_cgi path=json_proto method=POST [09:31:15]POST find Content-Length [09:31:15]Host: 172.17.56.4:8080 [09:31:15]Content-Length: 678 [09:31:15]Content-Type: application/json [09:31:15] [09:31:15]POST finish read [09:31:15]Found Content-Length = 678 [09:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:31:15]execute_script... [09:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:31:15]POST & json_proto [09:31:15]process_json_proto [09:31:15]json parsed OK: [09:31:15]protocol is kg_v1.0 [09:31:15]action value=close_receipt [09:31:15]process_action close_receipt [09:31:15]cmd_close_receipt [09:31:15]MH_GetDate [09:31:15]Write to MH i2c: F0 00 00 AE 00 9D [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: F0 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: F0 09 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: F0 09 00 AE 00 00 64 49 92 66 C9 DC B2 64 06 [09:31:15]GetLastDocTimeStamp 1720863027 [09:31:15]current date 1720863076 [09:31:15]FM_GetShiftState [09:31:15]SAM_PROTO_GetShiftState [09:31:15]wFMCommunicate request_size=4 [09:31:15]MH_SAM_APDU [09:31:15]CAPDU: 80 13 01 00 [09:31:15]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:15]Read from MH i2c: E2 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 0E 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0D [09:31:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:31:15]wFMCommunicate OK [09:31:15]SAM_PROTO_GetShiftState done [09:31:15]FM_GetShiftState done [09:31:15]opened in 1720831249 [09:31:15]opened+sec_in_day 1720917649 [09:31:15]quantity*price = 70011 [09:31:15]sum+1 = 70012 [09:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 57 13.07.2024 09:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164497 ФПД: 189839706761392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164497&fm=189839706761392&tin=02508201610067®Number=0000000000090829&sum=70000 [09:31:16]StoreToDocumentArchive [09:31:16]shift 446 fd 164497 [09:31:16]save to /storage/0446/doc_00164497 [09:31:16]save last doc name /storage/0446/doc_00164497 to /storage/kkm_last_doc_name [09:31:16]save OK [09:31:16]Clear old archive folders... [09:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:16]tlvbuf is 01414680 [09:31:16]SAM_PROTO_ClearQueue [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 09 00 00 [09:31:16]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [09:31:16]RAPDU: 90 00 [09:31:16]wFMCommunicate OK [09:31:16]SAM_PROTO_ClearQueue done [09:31:16]KKMCreateOFDPacket [09:31:16]OFDProtocolAddRootSTLVToBuf [09:31:16]FM_MakeSignedData [09:31:16]FM_MakeSignedData [09:31:16]SAM_PROTO_SignData [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 0D 01 02 [09:31:16]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [09:31:16]RAPDU: 90 00 [09:31:16]wFMCommunicate OK [09:31:16]wFMCommunicate request_size=255 [09:31:16]MH_SAM_APDU [09:31: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 39 00 00 00 F4 03 04 00 64 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 82 02 00 35 04 06 00 AC [09:31:16]Write to MH i2c: E2 02 01 BE 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 39 00 00 00 F4 03 04 00 64 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 82 02 00 35 04 06 00 AC 00 00 51 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [09:31:16]RAPDU: 90 00 [09:31:16]wFMCommunicate OK [09:31:16]wFMCommunicate request_size=10 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 0D 02 02 05 A8 80 49 28 B0 [09:31:16]Write to MH i2c: E2 0D 00 BF 00 80 0D 02 02 05 00 A8 80 49 28 B0 00 00 8C [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:31:16]RAPDU: 90 00 [09:31:16]wFMCommunicate OK [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 0D 03 02 [09:31:16]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:17]Read from MH i2c: E2 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: E2 0B 00 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: E2 0B 00 C0 00 00 C4 E2 A5 DA E3 64 62 48 90 00 52 [09:31:17]RAPDU: C4 E2 A5 DA E3 64 62 48 90 00 [09:31:17]wFMCommunicate OK [09:31:17]SAM_PROTO_SignData done [09:31:17]FM_MakeSignedData done [09:31:17]CreateOFDProtocolMessage [09:31:17]wFMCommunicate request_size=4 [09:31:17]MH_SAM_APDU [09:31:17]CAPDU: 80 11 00 00 [09:31:17]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [09:31:17]Write i2c OK [09:31:17]MH_I2C_Read... [09:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:17]Read from MH i2c: E2 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: E2 17 00 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [09:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:17]wFMCommunicate OK [09:31:17]CreateOFDProtocolMessage done [09:31:17]OFDSenderStorePacket 164497 [09:31:17]StoreOFDPacket docnum=164497 [09:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C D5 07 01 5D 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 39 00 00 00 F4 03 04 00 64 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 82 02 00 35 04 06 00 AC A8 80 49 28 B0 C4 E2 A5 DA E3 64 62 48 [09:31:17]CheckFolder [09:31:17]dirname=/storage/ofd_packets [09:31:17]CheckFolder done [09:31:17]ProducePacketName [09:31:17]name=ofd_packets/00164497 [09:31:17]NVStorageSaveData ofd_packets/00164497 [09:31:17]File name is /storage/ofd_packets/00164497 [09:31:17]Write 301 bytes [09:31:17]NVStorageSaveData done [09:31:17]OFDSenderStorePacket done [09:31:17]KKMCreateOFDPacket done [09:31:17]NVStorageSaveData kkm_last_timestamp [09:31:17]File name is /storage/kkm_last_timestamp [09:31:17]Write 4 bytes [09:31:17]NVStorageSaveData done [09:31:17]ExternCall_PrintAddStr [09:31:17]wPrintStart [09:31:17]Write to MH i2c: 01 00 00 C2 00 C2 [09:31:17]Write i2c OK [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 07 00 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [09:31:17]RasterBufferAndPrint [09:31:17]line Счет N : (1)458585 [09:31:17]line ИНН: 02508201610067 [09:31:17]line Контрольно-Кассовый Чек [09:31:17]line ПРОДАЖА [09:31:17]line ТРК (МРК, ГНК) : 22 [09:31:17]line Товар: 2710124130 [09:31:17]line Аи-92-К-5 [09:31:17]line 10.640 * 65.80 [09:31:17]line = 700.11 [09:31:17]line НДС 12% НСП 1% [09:31:17]line > о реализуемом товаре [09:31:17]line ОКРУГЛЕНИЕ: -0.11 [09:31:17]line ИТОГО: 700.00 [09:31:17]line Внесено: 700.00 [09:31:17]line СДАЧА: 0.00 [09:31:17]line НСП 1% : 6.20 [09:31:17]line НДС 12% : 74.35 [09:31:17]line Наличными: 700.00 [09:31:17]line Безнал.: 0.00 [09:31:17]line Место: АЗС № 72 "Партнер Нефть" [09:31:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:31:17]line СНО: Общий режим [09:31:17]line Чек 57 13.07.2024 09:31 [09:31:17]line Смена: 446 ФФД: 1.0 [09:31:17]line ЗНМ: 0300000160 [09:31:17]line РНМ: 0000000000090829 [09:31:17]line Версия ККМ: 001 [09:31:17]line ФМ: 0000000000874718 [09:31:17]line ФД: 164497 [09:31:17]line ФПД: 189839706761392 [09:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164497&fm=189839706761392&tin=02508201610067®Number=0000000000090829&sum=70000 [09:31:17]OFD Sender: Processing packet 164497 [packets to send 104, broken 103] [09:31:17]ProducePacketName [09:31:17]name=ofd_packets/00164497 [09:31:17]OFD Sender: To server: pG, [09:31:17]CommunicateWithHost lk.salyk.kg:30040 [09:31:17]ConnectInit lk.salyk.kg [09:31:17]written 0, free lines is 4095 [09:31:17]Connected sock=10 [09:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C D5 07 01 5D 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 39 00 00 00 F4 03 04 00 64 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 82 02 00 35 04 06 00 AC A8 80 49 28 B0 C4 E2 A5 DA E3 64 62 48 [09:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 FB 47 00 C7 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 82 02 00 F4 03 04 00 F5 EF 91 66 B6 04 01 00 00 B6 A3 EC 21 A1 C3 17 C5 [09:31:17]CommunicateWithHost err = 0 [09:31:17]CheckOFDResponse [09:31:17]1017 (14) - 77093643461234 [09:31:17]1041 (16) - 0000000000874718 [09:31:17]1040 (4) - 164497 [09:31:17]1012 (4) - 13.07.2024 03:09 [09:31:17]1206 (1) - 0 [09:31:17]OFD Sender: Remove packet 164497 [09:31:17]ProducePacketName [09:31:17]name=ofd_packets/00164497 [09:31:17]NVStorageDeleteData [09:31:17]Write to MH i2c: 01 00 00 EC 00 EC [09:31:17]Write i2c OK [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 07 00 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FB 0C FA [09:31:17]RasterBufferAndPrint [09:31:17]line [09:31:17]line [09:31:17]line [09:31:17]line [09:31:17]line [09:31:17]written 0, free lines is 3329 [09:31:17]MH_Cut [09:31:17]Write to MH i2c: D1 01 00 F3 00 01 C5 [09:31:17]Write i2c OK [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: D1 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: D1 01 00 [09:31:17]MH_I2C_Read... [09:31:17]Read from MH i2c: D1 01 00 F3 00 00 C4 [09:31:17]Write to MH i2c: 01 00 00 F4 00 F4 [09:31:17]Write i2c OK [09:31:17]MH_I2C_Read... [09:31:18]OFD Sender: No OFD packet to send [09:31:18]*** Cut start [09:31:18]*** Partial cut [09:31:18]*** CUTSNS_PIN = 1 [09:31:18]*** CUTSNS_PIN = 0 [09:31:18]*** Brake cut motor [09:31:19]Read from MH i2c: 01 [09:31:19]MH_I2C_Read... [09:31:19]*** Stop cut motor [09:31:19]*** Cut end [09:31:19]Read from MH i2c: 01 07 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [09:31:19]process_action close_receipt done [09:31:19]requested_data is exist [09:31:19]produce_requested_data [09:31:19]requested_item fm.sn is exist - process it [09:31:19]wFMCommunicate request_size=4 [09:31:19]MH_SAM_APDU [09:31:19]CAPDU: 80 11 00 00 [09:31:19]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:19]Read from MH i2c: E2 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 17 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [09:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:19]wFMCommunicate OK [09:31:19]requested_item fd.num is exist - process it [09:31:19]SAM_PROTO_GetFieldsCounters [09:31:19]wFMCommunicate request_size=4 [09:31:19]MH_SAM_APDU [09:31:19]CAPDU: 80 13 00 00 [09:31:19]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:19]Read from MH i2c: E2 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 62 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 62 00 F6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 82 02 00 0E 04 04 00 BE 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 18 [09:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 82 02 00 0E 04 04 00 BE 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 [09:31:19]wFMCommunicate OK [09:31:19]SAM_PROTO_GetFieldsCounters done [09:31:19]requested_item shift.num is exist - process it [09:31:19]requested_item shift.opened is exist - process it [09:31:19]req_shift_opened [09:31:19]FM_GetShiftState [09:31:19]SAM_PROTO_GetShiftState [09:31:19]wFMCommunicate request_size=4 [09:31:19]MH_SAM_APDU [09:31:19]CAPDU: 80 13 01 00 [09:31:19]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:19]Read from MH i2c: E2 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 0E 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 55 [09:31:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:31:19]wFMCommunicate OK [09:31:19]SAM_PROTO_GetShiftState done [09:31:19]FM_GetShiftState done [09:31:19]req_shift_opened done [09:31:19]requested_item shift.open_date is exist - process it [09:31:19]req_shift_open_date [09:31:19]req_shift_open_date done [09:31:19]produce_requested_data done [09:31:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164497,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:31:19]process_action_free close_receipt [09:31:19]json_value_free [09:31:19]json_value_free done [09:31:19]process_json_proto returns [09:31:19]Send response to host [09:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164497,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:31:19]free response buf [09:31:19]execute_script done [09:31:19]execute_script returns [09:31:19]free content buf [09:31:19]Sock 7.Close socket [09:31:19]Sock 7.Thread stoped [09:31:22]accept exits with 9 [09:31:22]New connection [09:31:22]New thread 3067149668 created [09:31:22]Thread 3067293028 joined [09:31:22]Waiting for new connection... [09:31:22] Sock 9.Parse request [09:31:22]Sock 9.Check first char [09:31:22]Sock 9.First char is OK [09:31:22]request: POST /json_proto HTTP/1.0 [09:31:22]Method: POST [09:31:22]URL: /json_proto [09:31:22]Method is POST - this is cgi request [09:31:22]url: /json_proto [09:31:22]query_string will be loaded in cgi processing [09:31:22]execute_cgi json_proto POST (null) [09:31:22]execute_cgi path=json_proto method=POST [09:31:22]POST find Content-Length [09:31:22]Host: 172.17.56.4:8080 [09:31:22]Content-Length: 677 [09:31:22]Content-Type: application/json [09:31:22] [09:31:22]POST finish read [09:31:22]Found Content-Length = 677 [09:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:22]execute_script... [09:31: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)458586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:22]POST & json_proto [09:31:22]process_json_proto [09:31:22]json parsed OK: [09:31:22]protocol is kg_v1.0 [09:31:22]action value=close_receipt [09:31:22]process_action close_receipt [09:31:22]cmd_close_receipt [09:31:22]MH_GetDate [09:31:22]Write to MH i2c: F0 00 00 F8 00 E7 [09:31:22]Write i2c OK [09:31:22]MH_I2C_Read... [09:31:22]Read from MH i2c: F0 [09:31:22]MH_I2C_Read... [09:31:22]Read from MH i2c: F0 09 00 [09:31:22]MH_I2C_Read... [09:31:22]Read from MH i2c: F0 09 00 F8 00 00 6B 49 92 66 C9 DC B2 64 57 [09:31:22]GetLastDocTimeStamp 1720863076 [09:31:22]current date 1720863083 [09:31:22]FM_GetShiftState [09:31:22]SAM_PROTO_GetShiftState [09:31:22]wFMCommunicate request_size=4 [09:31:22]MH_SAM_APDU [09:31:22]CAPDU: 80 13 01 00 [09:31:22]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [09:31:22]Write i2c OK [09:31:22]MH_I2C_Read... [09:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:22]Read from MH i2c: E2 [09:31:22]MH_I2C_Read... [09:31:22]Read from MH i2c: E2 0E 00 [09:31:22]MH_I2C_Read... [09:31:22]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 57 [09:31:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:31:22]wFMCommunicate OK [09:31:22]SAM_PROTO_GetShiftState done [09:31:22]FM_GetShiftState done [09:31:22]opened in 1720831249 [09:31:22]opened+sec_in_day 1720917649 [09:31:22]quantity*price = 24017 [09:31:22]sum+1 = 24018 [09:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 58 13.07.2024 09:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164498 ФПД: 268043333312621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164498&fm=268043333312621&tin=02508201610067®Number=0000000000090829&sum=24000 [09:31:23]StoreToDocumentArchive [09:31:23]shift 446 fd 164498 [09:31:23]save to /storage/0446/doc_00164498 [09:31:23]save last doc name /storage/0446/doc_00164498 to /storage/kkm_last_doc_name [09:31:23]save OK [09:31:23]Clear old archive folders... [09:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:23]tlvbuf is 0142A090 [09:31:23]SAM_PROTO_ClearQueue [09:31:23]wFMCommunicate request_size=4 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 09 00 00 [09:31:23]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [09:31:23]RAPDU: 90 00 [09:31:23]wFMCommunicate OK [09:31:23]SAM_PROTO_ClearQueue done [09:31:23]KKMCreateOFDPacket [09:31:23]OFDProtocolAddRootSTLVToBuf [09:31:23]FM_MakeSignedData [09:31:23]FM_MakeSignedData [09:31:23]SAM_PROTO_SignData [09:31:23]wFMCommunicate request_size=4 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 0D 01 02 [09:31:23]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [09:31:23]RAPDU: 90 00 [09:31:23]wFMCommunicate OK [09:31:23]wFMCommunicate request_size=255 [09:31:23]MH_SAM_APDU [09:31: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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6B 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 82 02 00 35 04 06 00 F3 [09:31:23]Write to MH i2c: E2 02 01 08 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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6B 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 82 02 00 35 04 06 00 F3 00 00 97 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [09:31:23]RAPDU: 90 00 [09:31:23]wFMCommunicate OK [09:31:23]wFMCommunicate request_size=10 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 0D 02 02 05 C8 B3 AA A0 6D [09:31:23]Write to MH i2c: E2 0D 00 09 01 80 0D 02 02 05 00 C8 B3 AA A0 6D 00 00 C0 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:31:23]RAPDU: 90 00 [09:31:23]wFMCommunicate OK [09:31:23]wFMCommunicate request_size=4 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 0D 03 02 [09:31:23]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 0B 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 0B 00 0A 01 00 88 BE 03 B6 F9 2A 6E 7A 90 00 91 [09:31:23]RAPDU: 88 BE 03 B6 F9 2A 6E 7A 90 00 [09:31:23]wFMCommunicate OK [09:31:23]SAM_PROTO_SignData done [09:31:23]FM_MakeSignedData done [09:31:23]CreateOFDProtocolMessage [09:31:23]wFMCommunicate request_size=4 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 11 00 00 [09:31:23]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 17 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [09:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:23]wFMCommunicate OK [09:31:23]CreateOFDProtocolMessage done [09:31:23]OFDSenderStorePacket 164498 [09:31:23]StoreOFDPacket docnum=164498 [09:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 AF 07 01 5E 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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6B 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 82 02 00 35 04 06 00 F3 C8 B3 AA A0 6D 88 BE 03 B6 F9 2A 6E 7A [09:31:23]CheckFolder [09:31:23]dirname=/storage/ofd_packets [09:31:23]CheckFolder done [09:31:23]ProducePacketName [09:31:23]name=ofd_packets/00164498 [09:31:23]NVStorageSaveData ofd_packets/00164498 [09:31:23]File name is /storage/ofd_packets/00164498 [09:31:23]Write 301 bytes [09:31:23]NVStorageSaveData done [09:31:23]OFDSenderStorePacket done [09:31:23]KKMCreateOFDPacket done [09:31:23]NVStorageSaveData kkm_last_timestamp [09:31:23]File name is /storage/kkm_last_timestamp [09:31:23]Write 4 bytes [09:31:23]NVStorageSaveData done [09:31:23]ExternCall_PrintAddStr [09:31:23]wPrintStart [09:31:23]Write to MH i2c: 01 00 00 0C 01 0D [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: 01 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: 01 07 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [09:31:23]RasterBufferAndPrint [09:31:23]line Счет N : (1)458586 [09:31:23]line ИНН: 02508201610067 [09:31:23]line Контрольно-Кассовый Чек [09:31:23]line ПРОДАЖА [09:31:23]line ТРК (МРК, ГНК) : 12 [09:31:23]line Товар: 2710124130 [09:31:23]line Аи-92-К-5 [09:31:23]line 3.650 * 65.80 [09:31:23]line = 240.17 [09:31:23]line НДС 12% НСП 1% [09:31:23]line > о реализуемом товаре [09:31:23]line ОКРУГЛЕНИЕ: -0.17 [09:31:23]line ИТОГО: 240.00 [09:31:23]line Внесено: 240.00 [09:31:23]line СДАЧА: 0.00 [09:31:23]line НСП 1% : 2.12 [09:31:23]line НДС 12% : 25.50 [09:31:23]line Наличными: 240.00 [09:31:23]line Безнал.: 0.00 [09:31:23]line Место: АЗС № 72 "Партнер Нефть" [09:31:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:31:23]line СНО: Общий режим [09:31:23]line Чек 58 13.07.2024 09:31 [09:31:23]line Смена: 446 ФФД: 1.0 [09:31:23]line ЗНМ: 0300000160 [09:31:23]line РНМ: 0000000000090829 [09:31:23]line Версия ККМ: 001 [09:31:23]line ФМ: 0000000000874718 [09:31:23]line ФД: 164498 [09:31:23]line ФПД: 268043333312621 [09:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164498&fm=268043333312621&tin=02508201610067®Number=0000000000090829&sum=24000 [09:31:23]written 0, free lines is 4095 [09:31:23]OFD Sender: Processing packet 164498 [packets to send 104, broken 103] [09:31:23]ProducePacketName [09:31:23]name=ofd_packets/00164498 [09:31:23]OFD Sender: To server: pG, [09:31:23]CommunicateWithHost lk.salyk.kg:30040 [09:31:23]ConnectInit lk.salyk.kg [09:31:23]Connected sock=10 [09:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 AF 07 01 5E 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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6B 49 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 82 02 00 35 04 06 00 F3 C8 B3 AA A0 6D 88 BE 03 B6 F9 2A 6E 7A [09:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F6 DE 47 00 60 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 82 02 00 F4 03 04 00 FC EF 91 66 B6 04 01 00 00 5E BC 4B 80 81 EF 2A C1 [09:31:24]CommunicateWithHost err = 0 [09:31:24]CheckOFDResponse [09:31:24]1017 (14) - 77093643461234 [09:31:24]1041 (16) - 0000000000874718 [09:31:24]1040 (4) - 164498 [09:31:24]1012 (4) - 13.07.2024 03:09 [09:31:24]1206 (1) - 0 [09:31:24]OFD Sender: Remove packet 164498 [09:31:24]ProducePacketName [09:31:24]name=ofd_packets/00164498 [09:31:24]NVStorageDeleteData [09:31:24]Write to MH i2c: 01 00 00 36 01 37 [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: 01 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: 01 07 00 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 F3 0C 3D [09:31:24]RasterBufferAndPrint [09:31:24]line [09:31:24]line [09:31:24]line [09:31:24]line [09:31:24]line [09:31:24]written 0, free lines is 3327 [09:31:24]MH_Cut [09:31:24]Write to MH i2c: D1 01 00 3D 01 01 10 [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: D1 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: D1 01 00 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: D1 01 00 3D 01 00 0F [09:31:24]Write to MH i2c: 01 00 00 3E 01 3F [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]OFD Sender: No OFD packet to send [09:31:24]*** Cut start [09:31:24]*** Partial cut [09:31:24]*** CUTSNS_PIN = 1 [09:31:24]*** CUTSNS_PIN = 0 [09:31:25]*** Brake cut motor [09:31:25]Read from MH i2c: 01 [09:31:25]MH_I2C_Read... [09:31:25]*** Stop cut motor [09:31:25]*** Cut end [09:31:25]Read from MH i2c: 01 07 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [09:31:25]process_action close_receipt done [09:31:25]requested_data is exist [09:31:25]produce_requested_data [09:31:25]requested_item fm.sn is exist - process it [09:31:25]wFMCommunicate request_size=4 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 11 00 00 [09:31:25]Write to MH i2c: E2 08 00 3F 01 80 11 00 00 00 00 00 00 BA [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 17 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 17 00 3F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [09:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:25]wFMCommunicate OK [09:31:25]requested_item fd.num is exist - process it [09:31:25]SAM_PROTO_GetFieldsCounters [09:31:25]wFMCommunicate request_size=4 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 13 00 00 [09:31:25]Write to MH i2c: E2 08 00 40 01 80 13 00 00 00 00 00 00 BD [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 62 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 62 00 40 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 82 02 00 0E 04 04 00 BE 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 67 [09:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 82 02 00 0E 04 04 00 BE 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 [09:31:25]wFMCommunicate OK [09:31:25]SAM_PROTO_GetFieldsCounters done [09:31:25]requested_item shift.num is exist - process it [09:31:25]requested_item shift.opened is exist - process it [09:31:25]req_shift_opened [09:31:25]FM_GetShiftState [09:31:25]SAM_PROTO_GetShiftState [09:31:25]wFMCommunicate request_size=4 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 13 01 00 [09:31:25]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 0E 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A0 [09:31:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:31:25]wFMCommunicate OK [09:31:25]SAM_PROTO_GetShiftState done [09:31:25]FM_GetShiftState done [09:31:25]req_shift_opened done [09:31:25]requested_item shift.open_date is exist - process it [09:31:25]req_shift_open_date [09:31:25]req_shift_open_date done [09:31:25]produce_requested_data done [09:31:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164498,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:31:25]process_action_free close_receipt [09:31:25]json_value_free [09:31:25]json_value_free done [09:31:25]process_json_proto returns [09:31:25]Send response to host [09:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164498,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:31:25]free response buf [09:31:25]execute_script done [09:31:25]execute_script returns [09:31:25]free content buf [09:31:25]Sock 9.Close socket [09:31:25]Sock 9.Thread stoped [09:31:29]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:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:42]accept exits with 7 [09:36:42]New connection [09:36:42]New thread 3067293028 created [09:36:42]Thread 3067149668 joined [09:36:42]Waiting for new connection... [09:36:42] Sock 7.Parse request [09:36:42]Sock 7.Check first char [09:36:42]Sock 7.First char is OK [09:36:42]request: POST /json_proto HTTP/1.0 [09:36:42]Method: POST [09:36:42]URL: /json_proto [09:36:42]Method is POST - this is cgi request [09:36:42]url: /json_proto [09:36:42]query_string will be loaded in cgi processing [09:36:42]execute_cgi json_proto POST (null) [09:36:42]execute_cgi path=json_proto method=POST [09:36:42]POST find Content-Length [09:36:42]Host: 172.17.56.4:8080 [09:36:42]Content-Length: 682 [09:36:42]Content-Type: application/json [09:36:42] [09:36:42]POST finish read [09:36:42]Found Content-Length = 682 [09:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:42]execute_script... [09:36: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)458587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:42]POST & json_proto [09:36:42]process_json_proto [09:36:42]json parsed OK: [09:36:42]protocol is kg_v1.0 [09:36:42]action value=close_receipt [09:36:42]process_action close_receipt [09:36:42]cmd_close_receipt [09:36:42]MH_GetDate [09:36:42]Write to MH i2c: F0 00 00 42 01 32 [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: F0 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: F0 09 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: F0 09 00 42 01 00 AC 4A 92 66 C9 DC B2 64 E4 [09:36:42]GetLastDocTimeStamp 1720863083 [09:36:42]current date 1720863404 [09:36:42]FM_GetShiftState [09:36:42]SAM_PROTO_GetShiftState [09:36:42]wFMCommunicate request_size=4 [09:36:42]MH_SAM_APDU [09:36:42]CAPDU: 80 13 01 00 [09:36:42]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:42]Read from MH i2c: E2 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 0E 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A2 [09:36:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:36:42]wFMCommunicate OK [09:36:42]SAM_PROTO_GetShiftState done [09:36:42]FM_GetShiftState done [09:36:42]opened in 1720831249 [09:36:42]opened+sec_in_day 1720917649 [09:36:42]quantity*price = 120019 [09:36:42]sum+1 = 120020 [09:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 59 13.07.2024 09:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164499 ФПД: 268604322570149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164499&fm=268604322570149&tin=02508201610067®Number=0000000000090829&sum=120000 [09:36:44]StoreToDocumentArchive [09:36:44]shift 446 fd 164499 [09:36:44]save to /storage/0446/doc_00164499 [09:36:44]save last doc name /storage/0446/doc_00164499 to /storage/kkm_last_doc_name [09:36:44]save OK [09:36:44]Clear old archive folders... [09:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:44]tlvbuf is 0142BA00 [09:36:44]SAM_PROTO_ClearQueue [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 09 00 00 [09:36:44]Write to MH i2c: E2 08 00 50 01 80 09 00 00 00 00 00 00 C3 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_ClearQueue done [09:36:44]KKMCreateOFDPacket [09:36:44]OFDProtocolAddRootSTLVToBuf [09:36:44]FM_MakeSignedData [09:36:44]FM_MakeSignedData [09:36:44]SAM_PROTO_SignData [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 01 02 [09:36:44]Write to MH i2c: E2 08 00 51 01 80 0D 01 02 00 00 00 00 CB [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=255 [09:36:44]MH_SAM_APDU [09:36: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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AC 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 82 02 00 35 04 06 00 F4 [09:36:44]Write to MH i2c: E2 02 01 52 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AC 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 82 02 00 35 04 06 00 F4 00 00 18 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=10 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 02 02 05 4B 51 3B 5F A5 [09:36:44]Write to MH i2c: E2 0D 00 53 01 80 0D 02 02 05 00 4B 51 3B 5F A5 00 00 B3 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [09:36:44]RAPDU: 90 00 [09:36:44]wFMCommunicate OK [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 0D 03 02 [09:36:44]Write to MH i2c: E2 08 00 54 01 80 0D 03 02 00 00 00 00 D0 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0B 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 0B 00 54 01 00 54 FE 4E 73 37 D9 F3 E6 90 00 CD [09:36:44]RAPDU: 54 FE 4E 73 37 D9 F3 E6 90 00 [09:36:44]wFMCommunicate OK [09:36:44]SAM_PROTO_SignData done [09:36:44]FM_MakeSignedData done [09:36:44]CreateOFDProtocolMessage [09:36:44]wFMCommunicate request_size=4 [09:36:44]MH_SAM_APDU [09:36:44]CAPDU: 80 11 00 00 [09:36:44]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:44]Read from MH i2c: E2 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 17 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [09:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:36:44]wFMCommunicate OK [09:36:44]CreateOFDProtocolMessage done [09:36:44]OFDSenderStorePacket 164499 [09:36:44]StoreOFDPacket docnum=164499 [09:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 5A 07 01 4C 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AC 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 82 02 00 35 04 06 00 F4 4B 51 3B 5F A5 54 FE 4E 73 37 D9 F3 E6 [09:36:44]CheckFolder [09:36:44]dirname=/storage/ofd_packets [09:36:44]CheckFolder done [09:36:44]ProducePacketName [09:36:44]name=ofd_packets/00164499 [09:36:44]NVStorageSaveData ofd_packets/00164499 [09:36:44]File name is /storage/ofd_packets/00164499 [09:36:44]Write 301 bytes [09:36:44]NVStorageSaveData done [09:36:44]OFDSenderStorePacket done [09:36:44]KKMCreateOFDPacket done [09:36:44]NVStorageSaveData kkm_last_timestamp [09:36:44]File name is /storage/kkm_last_timestamp [09:36:44]Write 4 bytes [09:36:44]NVStorageSaveData done [09:36:44]ExternCall_PrintAddStr [09:36:44]wPrintStart [09:36:44]Write to MH i2c: 01 00 00 56 01 57 [09:36:44]Write i2c OK [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 07 00 [09:36:44]MH_I2C_Read... [09:36:44]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [09:36:44]RasterBufferAndPrint [09:36:44]line Счет N : (1)458587 [09:36:44]line ИНН: 02508201610067 [09:36:44]line Контрольно-Кассовый Чек [09:36:44]line ПРОДАЖА [09:36:44]line ТРК (МРК, ГНК) : 12 [09:36:44]line Товар: 2710124130 [09:36:44]line Аи-92-К-5 [09:36:44]line 18.240 * 65.80 [09:36:44]line = 1200.19 [09:36:44]line НДС 12% НСП 1% [09:36:44]line > о реализуемом товаре [09:36:44]line ОКРУГЛЕНИЕ: -0.19 [09:36:44]line ИТОГО: 1200.00 [09:36:44]line Внесено: 1200.00 [09:36:44]line СДАЧА: 0.00 [09:36:44]line НСП 1% : 10.62 [09:36:44]line НДС 12% : 127.45 [09:36:44]line Наличными: 1200.00 [09:36:44]line Безнал.: 0.00 [09:36:44]line Место: АЗС № 72 "Партнер Нефть" [09:36:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:36:44]line СНО: Общий режим [09:36:44]line Чек 59 13.07.2024 09:36 [09:36:44]line Смена: 446 ФФД: 1.0 [09:36:44]line ЗНМ: 0300000160 [09:36:44]line РНМ: 0000000000090829 [09:36:44]line Версия ККМ: 001 [09:36:44]line ФМ: 0000000000874718 [09:36:44]line ФД: 164499 [09:36:44]line ФПД: 268604322570149 [09:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164499&fm=268604322570149&tin=02508201610067®Number=0000000000090829&sum=120000 [09:36:44]OFD Sender: Processing packet 164499 [packets to send 104, broken 103] [09:36:44]ProducePacketName [09:36:44]name=ofd_packets/00164499 [09:36:44]OFD Sender: To server: pG, [09:36:44]CommunicateWithHost lk.salyk.kg:30040 [09:36:44]ConnectInit lk.salyk.kg [09:36:44]written 0, free lines is 4095 [09:36:45]Connected sock=10 [09:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 5A 07 01 4C 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AC 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 82 02 00 35 04 06 00 F4 4B 51 3B 5F A5 54 FE 4E 73 37 D9 F3 E6 [09:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 AB 47 00 B2 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 34 37 31 38 10 04 04 00 93 82 02 00 F4 03 04 00 3D F1 91 66 B6 04 01 00 00 DA 6A CB 47 70 19 1F 76 [09:36:45]CommunicateWithHost err = 0 [09:36:45]CheckOFDResponse [09:36:45]1017 (14) - 77093643461234 [09:36:45]1041 (16) - 0000000000874718 [09:36:45]1040 (4) - 164499 [09:36:45]1012 (4) - 13.07.2024 03:15 [09:36:45]1206 (1) - 0 [09:36:45]OFD Sender: Remove packet 164499 [09:36:45]ProducePacketName [09:36:45]name=ofd_packets/00164499 [09:36:45]NVStorageDeleteData [09:36:45]Write to MH i2c: 01 00 00 80 01 81 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 07 0D 9C [09:36:45]RasterBufferAndPrint [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]line [09:36:45]written 0, free lines is 3341 [09:36:45]MH_Cut [09:36:45]Write to MH i2c: D1 01 00 87 01 01 5A [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 [09:36:45]MH_I2C_Read... [09:36:45]Read from MH i2c: D1 01 00 87 01 00 59 [09:36:45]Write to MH i2c: 01 00 00 88 01 89 [09:36:45]Write i2c OK [09:36:45]MH_I2C_Read... [09:36:45]OFD Sender: No OFD packet to send [09:36:46]*** Cut start [09:36:46]*** Partial cut [09:36:46]*** CUTSNS_PIN = 1 [09:36:46]*** CUTSNS_PIN = 0 [09:36:46]*** Brake cut motor [09:36:46]Read from MH i2c: 01 [09:36:46]MH_I2C_Read... [09:36:46]*** Stop cut motor [09:36:46]*** Cut end [09:36:46]Read from MH i2c: 01 07 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [09:36:46]process_action close_receipt done [09:36:46]requested_data is exist [09:36:46]produce_requested_data [09:36:46]requested_item fm.sn is exist - process it [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 11 00 00 [09:36:46]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [09:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:36:46]wFMCommunicate OK [09:36:46]requested_item fd.num is exist - process it [09:36:46]SAM_PROTO_GetFieldsCounters [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 13 00 00 [09:36:46]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 62 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 62 00 8A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 82 02 00 0E 04 04 00 BE 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 [09:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 82 02 00 0E 04 04 00 BE 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 [09:36:46]wFMCommunicate OK [09:36:46]SAM_PROTO_GetFieldsCounters done [09:36:46]requested_item shift.num is exist - process it [09:36:46]requested_item shift.opened is exist - process it [09:36:46]req_shift_opened [09:36:46]FM_GetShiftState [09:36:46]SAM_PROTO_GetShiftState [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 13 01 00 [09:36:46]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0E 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EA [09:36:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:36:46]wFMCommunicate OK [09:36:46]SAM_PROTO_GetShiftState done [09:36:46]FM_GetShiftState done [09:36:46]req_shift_opened done [09:36:46]requested_item shift.open_date is exist - process it [09:36:46]req_shift_open_date [09:36:46]req_shift_open_date done [09:36:46]produce_requested_data done [09:36:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164499,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:36:46]process_action_free close_receipt [09:36:46]json_value_free [09:36:46]json_value_free done [09:36:46]process_json_proto returns [09:36:46]Send response to host [09:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164499,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:36:46]free response buf [09:36:46]execute_script done [09:36:46]execute_script returns [09:36:46]free content buf [09:36:46]Sock 7.Close socket [09:36:46]Sock 7.Thread stoped [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:44]accept exits with 9 [09:37:44]New connection [09:37:44]New thread 3067149668 created [09:37:44]Thread 3067293028 joined [09:37:44]Waiting for new connection... [09:37:44] Sock 9.Parse request [09:37:44]Sock 9.Check first char [09:37:44]Sock 9.First char is OK [09:37:44]request: POST /json_proto HTTP/1.0 [09:37:44]Method: POST [09:37:44]URL: /json_proto [09:37:44]Method is POST - this is cgi request [09:37:44]url: /json_proto [09:37:44]query_string will be loaded in cgi processing [09:37:44]execute_cgi json_proto POST (null) [09:37:44]execute_cgi path=json_proto method=POST [09:37:44]POST find Content-Length [09:37:44]Host: 172.17.56.4:8080 [09:37:44]Content-Length: 677 [09:37:44]Content-Type: application/json [09:37:44] [09:37:44]POST finish read [09:37:44]Found Content-Length = 677 [09:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:37:44]execute_script... [09:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:37:44]POST & json_proto [09:37:44]process_json_proto [09:37:44]json parsed OK: [09:37:44]protocol is kg_v1.0 [09:37:44]action value=close_receipt [09:37:44]process_action close_receipt [09:37:44]cmd_close_receipt [09:37:44]MH_GetDate [09:37:44]Write to MH i2c: F0 00 00 8C 01 7C [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 8C 01 00 E9 4A 92 66 C9 DC B2 64 6B [09:37:44]GetLastDocTimeStamp 1720863404 [09:37:44]current date 1720863465 [09:37:44]FM_GetShiftState [09:37:44]SAM_PROTO_GetShiftState [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 13 01 00 [09:37:44]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EC [09:37:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:37:44]wFMCommunicate OK [09:37:44]SAM_PROTO_GetShiftState done [09:37:44]FM_GetShiftState done [09:37:44]opened in 1720831249 [09:37:44]opened+sec_in_day 1720917649 [09:37:44]quantity*price = 50008 [09:37:44]sum+1 = 50009 [09:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 60 13.07.2024 09:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164500 ФПД: 178206249119201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164500&fm=178206249119201&tin=02508201610067®Number=0000000000090829&sum=50000 [09:37:45]StoreToDocumentArchive [09:37:45]shift 446 fd 164500 [09:37:45]save to /storage/0446/doc_00164500 [09:37:45]save last doc name /storage/0446/doc_00164500 to /storage/kkm_last_doc_name [09:37:45]save OK [09:37:45]Clear old archive folders... [09:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:45]tlvbuf is 0144C6C0 [09:37:45]SAM_PROTO_ClearQueue [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 09 00 00 [09:37:45]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_ClearQueue done [09:37:45]KKMCreateOFDPacket [09:37:45]OFDProtocolAddRootSTLVToBuf [09:37:45]FM_MakeSignedData [09:37:45]FM_MakeSignedData [09:37:45]SAM_PROTO_SignData [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 01 02 [09:37:45]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=255 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 00 00 00 F4 03 04 00 E9 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 82 02 00 35 04 06 00 A2 [09:37:45]Write to MH i2c: E2 02 01 9C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 00 00 00 F4 03 04 00 E9 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 82 02 00 35 04 06 00 A2 00 00 6E [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]OFD Sender: No OFD packet to send [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=10 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 02 02 05 13 E0 2C ED E1 [09:37:46]Write to MH i2c: E2 0D 00 9D 01 80 0D 02 02 05 00 13 E0 2C ED E1 00 00 0F [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 03 02 [09:37:46]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 9E 01 00 9D 1B ED BC AD 42 A7 90 90 00 A2 [09:37:46]RAPDU: 9D 1B ED BC AD 42 A7 90 90 00 [09:37:46]wFMCommunicate OK [09:37:46]SAM_PROTO_SignData done [09:37:46]FM_MakeSignedData done [09:37:46]CreateOFDProtocolMessage [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 11 00 00 [09:37:46]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [09:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:46]wFMCommunicate OK [09:37:46]CreateOFDProtocolMessage done [09:37:46]OFDSenderStorePacket 164500 [09:37:46]StoreOFDPacket docnum=164500 [09:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 91 07 01 7A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 00 00 00 F4 03 04 00 E9 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 82 02 00 35 04 06 00 A2 13 E0 2C ED E1 9D 1B ED BC AD 42 A7 90 [09:37:46]CheckFolder [09:37:46]dirname=/storage/ofd_packets [09:37:46]CheckFolder done [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00164500 [09:37:46]NVStorageSaveData ofd_packets/00164500 [09:37:46]File name is /storage/ofd_packets/00164500 [09:37:46]Write 301 bytes [09:37:46]NVStorageSaveData done [09:37:46]OFDSenderStorePacket done [09:37:46]KKMCreateOFDPacket done [09:37:46]NVStorageSaveData kkm_last_timestamp [09:37:46]File name is /storage/kkm_last_timestamp [09:37:46]Write 4 bytes [09:37:46]NVStorageSaveData done [09:37:46]ExternCall_PrintAddStr [09:37:46]wPrintStart [09:37:46]Write to MH i2c: 01 00 00 A0 01 A1 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [09:37:46]RasterBufferAndPrint [09:37:46]line Счет N : (1)458588 [09:37:46]line ИНН: 02508201610067 [09:37:46]line Контрольно-Кассовый Чек [09:37:46]line ПРОДАЖА [09:37:46]line ТРК (МРК, ГНК) : 22 [09:37:46]line Товар: 2710124130 [09:37:46]line Аи-92-К-5 [09:37:46]line 7.600 * 65.80 [09:37:46]line = 500.08 [09:37:46]line НДС 12% НСП 1% [09:37:46]line > о реализуемом товаре [09:37:46]line ОКРУГЛЕНИЕ: -0.08 [09:37:46]line ИТОГО: 500.00 [09:37:46]line Внесено: 500.00 [09:37:46]line СДАЧА: 0.00 [09:37:46]line НСП 1% : 4.42 [09:37:46]line НДС 12% : 53.11 [09:37:46]line Наличными: 500.00 [09:37:46]line Безнал.: 0.00 [09:37:46]line Место: АЗС № 72 "Партнер Нефть" [09:37:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:37:46]line СНО: Общий режим [09:37:46]line Чек 60 13.07.2024 09:37 [09:37:46]line Смена: 446 ФФД: 1.0 [09:37:46]line ЗНМ: 0300000160 [09:37:46]line РНМ: 0000000000090829 [09:37:46]line Версия ККМ: 001 [09:37:46]line ФМ: 0000000000874718 [09:37:46]line ФД: 164500 [09:37:46]line ФПД: 178206249119201 [09:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164500&fm=178206249119201&tin=02508201610067®Number=0000000000090829&sum=50000 [09:37:46]OFD Sender: Processing packet 164500 [packets to send 104, broken 103] [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00164500 [09:37:46]OFD Sender: To server: pG, [09:37:46]CommunicateWithHost lk.salyk.kg:30040 [09:37:46]ConnectInit lk.salyk.kg [09:37:46]written 0, free lines is 4095 [09:37:46]Connected sock=10 [09:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 91 07 01 7A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 00 00 00 F4 03 04 00 E9 4A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 82 02 00 35 04 06 00 A2 13 E0 2C ED E1 9D 1B ED BC AD 42 A7 90 [09:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 EA 47 00 91 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 82 02 00 F4 03 04 00 7B F1 91 66 B6 04 01 00 00 46 5D 0D CF 92 02 8A B5 [09:37:46]CommunicateWithHost err = 0 [09:37:46]CheckOFDResponse [09:37:46]1017 (14) - 77093643461234 [09:37:46]1041 (16) - 0000000000874718 [09:37:46]1040 (4) - 164500 [09:37:46]1012 (4) - 13.07.2024 03:16 [09:37:46]1206 (1) - 0 [09:37:46]OFD Sender: Remove packet 164500 [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00164500 [09:37:46]NVStorageDeleteData [09:37:46]Write to MH i2c: 01 00 00 CA 01 CB [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 F3 0C D1 [09:37:46]RasterBufferAndPrint [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]line [09:37:46]written 0, free lines is 3322 [09:37:46]MH_Cut [09:37:46]Write to MH i2c: D1 01 00 D1 01 01 A4 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 01 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: D1 01 00 D1 01 00 A3 [09:37:46]Write to MH i2c: 01 00 00 D2 01 D3 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:47]OFD Sender: No OFD packet to send [09:37:47]*** Cut start [09:37:47]*** Partial cut [09:37:47]*** CUTSNS_PIN = 1 [09:37:47]*** CUTSNS_PIN = 0 [09:37:47]*** Brake cut motor [09:37:48]Read from MH i2c: 01 [09:37:48]MH_I2C_Read... [09:37:48]*** Stop cut motor [09:37:48]*** Cut end [09:37:48]Read from MH i2c: 01 07 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [09:37:48]process_action close_receipt done [09:37:48]requested_data is exist [09:37:48]produce_requested_data [09:37:48]requested_item fm.sn is exist - process it [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 11 00 00 [09:37:48]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [09:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:48]wFMCommunicate OK [09:37:48]requested_item fd.num is exist - process it [09:37:48]SAM_PROTO_GetFieldsCounters [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 00 00 [09:37:48]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 D4 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 82 02 00 0E 04 04 00 BE 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 03 [09:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 82 02 00 0E 04 04 00 BE 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 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetFieldsCounters done [09:37:48]requested_item shift.num is exist - process it [09:37:48]requested_item shift.opened is exist - process it [09:37:48]req_shift_opened [09:37:48]FM_GetShiftState [09:37:48]SAM_PROTO_GetShiftState [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 01 00 [09:37:48]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 34 [09:37:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]req_shift_opened done [09:37:48]requested_item shift.open_date is exist - process it [09:37:48]req_shift_open_date [09:37:48]req_shift_open_date done [09:37:48]produce_requested_data done [09:37:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164500,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:37:48]process_action_free close_receipt [09:37:48]json_value_free [09:37:48]json_value_free done [09:37:48]process_json_proto returns [09:37:48]Send response to host [09:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164500,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:37:48]free response buf [09:37:48]execute_script done [09:37:48]execute_script returns [09:37:48]free content buf [09:37:48]Sock 9.Close socket [09:37:48]Sock 9.Thread stoped [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:23]accept exits with 7 [09:44:23]New connection [09:44:23]New thread 3067293028 created [09:44:23]Thread 3067149668 joined [09:44:23]Waiting for new connection... [09:44:23] Sock 7.Parse request [09:44:23]Sock 7.Check first char [09:44:23]Sock 7.First char is OK [09:44:23]request: POST /json_proto HTTP/1.0 [09:44:23]Method: POST [09:44:23]URL: /json_proto [09:44:23]Method is POST - this is cgi request [09:44:23]url: /json_proto [09:44:23]query_string will be loaded in cgi processing [09:44:23]execute_cgi json_proto POST (null) [09:44:23]execute_cgi path=json_proto method=POST [09:44:23]POST find Content-Length [09:44:23]Host: 172.17.56.4:8080 [09:44:23]Content-Length: 677 [09:44:23]Content-Type: application/json [09:44:23] [09:44:23]POST finish read [09:44:23]Found Content-Length = 677 [09:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:23]execute_script... [09:44: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)458589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:23]POST & json_proto [09:44:23]process_json_proto [09:44:23]json parsed OK: [09:44:23]protocol is kg_v1.0 [09:44:23]action value=close_receipt [09:44:23]process_action close_receipt [09:44:23]cmd_close_receipt [09:44:23]MH_GetDate [09:44:23]Write to MH i2c: F0 00 00 D6 01 C6 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: F0 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: F0 09 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: F0 09 00 D6 01 00 78 4C 92 66 C9 DC B2 64 46 [09:44:23]GetLastDocTimeStamp 1720863465 [09:44:23]current date 1720863864 [09:44:23]FM_GetShiftState [09:44:23]SAM_PROTO_GetShiftState [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 13 01 00 [09:44:23]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 0E 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 36 [09:44:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_GetShiftState done [09:44:23]FM_GetShiftState done [09:44:23]opened in 1720831249 [09:44:23]opened+sec_in_day 1720917649 [09:44:23]quantity*price = 40006 [09:44:23]sum+1 = 40007 [09:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 61 13.07.2024 09:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164501 ФПД: 125263772899379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094424&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164501&fm=125263772899379&tin=02508201610067®Number=0000000000090829&sum=40000 [09:44:24]StoreToDocumentArchive [09:44:24]shift 446 fd 164501 [09:44:24]save to /storage/0446/doc_00164501 [09:44:24]save last doc name /storage/0446/doc_00164501 to /storage/kkm_last_doc_name [09:44:24]save OK [09:44:24]Clear old archive folders... [09:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:24]tlvbuf is 014117E0 [09:44:24]SAM_PROTO_ClearQueue [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 09 00 00 [09:44:24]Write to MH i2c: E2 08 00 E4 01 80 09 00 00 00 00 00 00 57 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [09:44:24]RAPDU: 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_ClearQueue done [09:44:24]KKMCreateOFDPacket [09:44:24]OFDProtocolAddRootSTLVToBuf [09:44:24]FM_MakeSignedData [09:44:24]FM_MakeSignedData [09:44:24]SAM_PROTO_SignData [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 0D 01 02 [09:44:24]Write to MH i2c: E2 08 00 E5 01 80 0D 01 02 00 00 00 00 5F [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [09:44:24]RAPDU: 90 00 [09:44:24]wFMCommunicate OK [09:44:24]wFMCommunicate request_size=255 [09:44:24]MH_SAM_APDU [09:44: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 78 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 82 02 00 35 04 06 00 71 [09:44:24]Write to MH i2c: E2 02 01 E6 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 78 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 82 02 00 35 04 06 00 71 00 00 FA [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [09:44:24]RAPDU: 90 00 [09:44:24]wFMCommunicate OK [09:44:24]wFMCommunicate request_size=10 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 0D 02 02 05 ED 3E AF D8 33 [09:44:24]Write to MH i2c: E2 0D 00 E7 01 80 0D 02 02 05 00 ED 3E AF D8 33 00 00 51 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [09:44:24]RAPDU: 90 00 [09:44:24]wFMCommunicate OK [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 0D 03 02 [09:44:24]Write to MH i2c: E2 08 00 E8 01 80 0D 03 02 00 00 00 00 64 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0B 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0B 00 E8 01 00 5D 3F 62 26 C7 A3 43 A7 90 00 DD [09:44:24]RAPDU: 5D 3F 62 26 C7 A3 43 A7 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_SignData done [09:44:24]FM_MakeSignedData done [09:44:24]CreateOFDProtocolMessage [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 11 00 00 [09:44:24]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [09:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:44:24]wFMCommunicate OK [09:44:24]CreateOFDProtocolMessage done [09:44:24]OFDSenderStorePacket 164501 [09:44:24]StoreOFDPacket docnum=164501 [09:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD C4 07 01 F7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 78 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 82 02 00 35 04 06 00 71 ED 3E AF D8 33 5D 3F 62 26 C7 A3 43 A7 [09:44:24]CheckFolder [09:44:24]dirname=/storage/ofd_packets [09:44:24]CheckFolder done [09:44:24]ProducePacketName [09:44:24]name=ofd_packets/00164501 [09:44:24]NVStorageSaveData ofd_packets/00164501 [09:44:24]File name is /storage/ofd_packets/00164501 [09:44:24]Write 301 bytes [09:44:24]NVStorageSaveData done [09:44:24]OFDSenderStorePacket done [09:44:24]KKMCreateOFDPacket done [09:44:24]NVStorageSaveData kkm_last_timestamp [09:44:24]File name is /storage/kkm_last_timestamp [09:44:24]Write 4 bytes [09:44:24]NVStorageSaveData done [09:44:24]ExternCall_PrintAddStr [09:44:24]wPrintStart [09:44:24]Write to MH i2c: 01 00 00 EA 01 EB [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [09:44:24]RasterBufferAndPrint [09:44:24]line Счет N : (1)458589 [09:44:24]line ИНН: 02508201610067 [09:44:24]line Контрольно-Кассовый Чек [09:44:24]line ПРОДАЖА [09:44:24]line ТРК (МРК, ГНК) : 12 [09:44:24]line Товар: 2710124130 [09:44:24]line Аи-92-К-5 [09:44:24]line 6.080 * 65.80 [09:44:24]line = 400.06 [09:44:24]line НДС 12% НСП 1% [09:44:24]line > о реализуемом товаре [09:44:24]line ОКРУГЛЕНИЕ: -0.06 [09:44:24]line ИТОГО: 400.00 [09:44:24]line Внесено: 400.00 [09:44:24]line СДАЧА: 0.00 [09:44:24]line НСП 1% : 3.54 [09:44:24]line НДС 12% : 42.48 [09:44:24]line Наличными: 400.00 [09:44:24]line Безнал.: 0.00 [09:44:24]line Место: АЗС № 72 "Партнер Нефть" [09:44:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:44:24]line СНО: Общий режим [09:44:24]line Чек 61 13.07.2024 09:44 [09:44:24]line Смена: 446 ФФД: 1.0 [09:44:24]line ЗНМ: 0300000160 [09:44:24]line РНМ: 0000000000090829 [09:44:24]line Версия ККМ: 001 [09:44:24]line ФМ: 0000000000874718 [09:44:24]line ФД: 164501 [09:44:24]line ФПД: 125263772899379 [09:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094424&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164501&fm=125263772899379&tin=02508201610067®Number=0000000000090829&sum=40000 [09:44:25]written 0, free lines is 4095 [09:44:25]OFD Sender: Processing packet 164501 [packets to send 104, broken 103] [09:44:25]ProducePacketName [09:44:25]name=ofd_packets/00164501 [09:44:25]OFD Sender: To server: pG, [09:44:25]CommunicateWithHost lk.salyk.kg:30040 [09:44:25]ConnectInit lk.salyk.kg [09:44:25]Connected sock=10 [09:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD C4 07 01 F7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 78 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 82 02 00 35 04 06 00 71 ED 3E AF D8 33 5D 3F 62 26 C7 A3 43 A7 [09:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F EC 47 00 5A 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 34 37 31 38 10 04 04 00 95 82 02 00 F4 03 04 00 09 F3 91 66 B6 04 01 00 00 68 67 3F 9B 4F A8 E8 5C [09:44:25]CommunicateWithHost err = 0 [09:44:25]CheckOFDResponse [09:44:25]1017 (14) - 77093643461234 [09:44:25]1041 (16) - 0000000000874718 [09:44:25]1040 (4) - 164501 [09:44:25]1012 (4) - 13.07.2024 03:22 [09:44:25]1206 (1) - 0 [09:44:25]OFD Sender: Remove packet 164501 [09:44:25]ProducePacketName [09:44:25]name=ofd_packets/00164501 [09:44:25]NVStorageDeleteData [09:44:25]Write to MH i2c: 01 00 00 14 02 16 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 04 0D 2E [09:44:25]RasterBufferAndPrint [09:44:25]line [09:44:25]line [09:44:25]line [09:44:25]line [09:44:25]line [09:44:25]written 0, free lines is 3339 [09:44:25]MH_Cut [09:44:25]Write to MH i2c: D1 01 00 1B 02 01 EF [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: D1 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: D1 01 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: D1 01 00 1B 02 00 EE [09:44:25]Write to MH i2c: 01 00 00 1C 02 1E [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]OFD Sender: No OFD packet to send [09:44:26]*** Cut start [09:44:26]*** Partial cut [09:44:26]*** CUTSNS_PIN = 1 [09:44:26]*** CUTSNS_PIN = 0 [09:44:26]*** Brake cut motor [09:44:26]Read from MH i2c: 01 [09:44:26]MH_I2C_Read... [09:44:26]*** Stop cut motor [09:44:26]*** Cut end [09:44:26]Read from MH i2c: 01 07 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 FF 0F 33 [09:44:26]process_action close_receipt done [09:44:26]requested_data is exist [09:44:26]produce_requested_data [09:44:26]requested_item fm.sn is exist - process it [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 11 00 00 [09:44:26]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 17 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EF [09:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:44:26]wFMCommunicate OK [09:44:26]requested_item fd.num is exist - process it [09:44:26]SAM_PROTO_GetFieldsCounters [09:44:26]wFMCommunicate request_size=4 [09:44:26]MH_SAM_APDU [09:44:26]CAPDU: 80 13 00 00 [09:44:26]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:26]Read from MH i2c: E2 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 62 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: E2 62 00 1E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 82 02 00 0E 04 04 00 BE 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 52 [09:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 82 02 00 0E 04 04 00 BE 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 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_GetFieldsCounters done [09:44:27]requested_item shift.num is exist - process it [09:44:27]requested_item shift.opened is exist - process it [09:44:27]req_shift_opened [09:44:27]FM_GetShiftState [09:44:27]SAM_PROTO_GetShiftState [09:44:27]wFMCommunicate request_size=4 [09:44:27]MH_SAM_APDU [09:44:27]CAPDU: 80 13 01 00 [09:44:27]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [09:44:27]Write i2c OK [09:44:27]MH_I2C_Read... [09:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:27]Read from MH i2c: E2 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0E 00 [09:44:27]MH_I2C_Read... [09:44:27]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7F [09:44:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:44:27]wFMCommunicate OK [09:44:27]SAM_PROTO_GetShiftState done [09:44:27]FM_GetShiftState done [09:44:27]req_shift_opened done [09:44:27]requested_item shift.open_date is exist - process it [09:44:27]req_shift_open_date [09:44:27]req_shift_open_date done [09:44:27]produce_requested_data done [09:44:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164501,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:44:27]process_action_free close_receipt [09:44:27]json_value_free [09:44:27]json_value_free done [09:44:27]process_json_proto returns [09:44:27]Send response to host [09:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164501,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:44:27]free response buf [09:44:27]execute_script done [09:44:27]execute_script returns [09:44:27]free content buf [09:44:27]Sock 7.Close socket [09:44:27]Sock 7.Thread stoped [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:07]accept exits with 9 [09:45:07]New connection [09:45:07]New thread 3067149668 created [09:45:07]Thread 3067293028 joined [09:45:07]Waiting for new connection... [09:45:07] Sock 9.Parse request [09:45:07]Sock 9.Check first char [09:45:07]Sock 9.First char is OK [09:45:07]request: POST /json_proto HTTP/1.0 [09:45:07]Method: POST [09:45:07]URL: /json_proto [09:45:07]Method is POST - this is cgi request [09:45:07]url: /json_proto [09:45:07]query_string will be loaded in cgi processing [09:45:07]execute_cgi json_proto POST (null) [09:45:07]execute_cgi path=json_proto method=POST [09:45:07]POST find Content-Length [09:45:07]Host: 172.17.56.4:8080 [09:45:07]Content-Length: 677 [09:45:07]Content-Type: application/json [09:45:07] [09:45:07]POST finish read [09:45:07]Found Content-Length = 677 [09:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:45:07]execute_script... [09: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)458590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:45:07]POST & json_proto [09:45:07]process_json_proto [09:45:07]json parsed OK: [09:45:07]protocol is kg_v1.0 [09:45:07]action value=close_receipt [09:45:07]process_action close_receipt [09:45:07]cmd_close_receipt [09:45:07]MH_GetDate [09:45:07]Write to MH i2c: F0 00 00 20 02 11 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 20 02 00 A5 4C 92 66 C9 DC B2 64 BE [09:45:07]GetLastDocTimeStamp 1720863864 [09:45:07]current date 1720863909 [09:45:07]FM_GetShiftState [09:45:07]SAM_PROTO_GetShiftState [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 13 01 00 [09:45:07]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 81 [09:45:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:45:07]wFMCommunicate OK [09:45:07]SAM_PROTO_GetShiftState done [09:45:07]FM_GetShiftState done [09:45:07]opened in 1720831249 [09:45:07]opened+sec_in_day 1720917649 [09:45:07]quantity*price = 30004 [09:45:07]sum+1 = 30006 [09:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 62 13.07.2024 09:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164502 ФПД: 261907636286788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094509&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164502&fm=261907636286788&tin=02508201610067®Number=0000000000090829&sum=30000 [09:45:09]StoreToDocumentArchive [09:45:09]shift 446 fd 164502 [09:45:09]save to /storage/0446/doc_00164502 [09:45:09]save last doc name /storage/0446/doc_00164502 to /storage/kkm_last_doc_name [09:45:09]save OK [09:45:09]Clear old archive folders... [09:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:09]tlvbuf is 013F6AF0 [09:45:09]SAM_PROTO_ClearQueue [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 09 00 00 [09:45:09]Write to MH i2c: E2 08 00 2E 02 80 09 00 00 00 00 00 00 A2 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]SAM_PROTO_ClearQueue done [09:45:09]KKMCreateOFDPacket [09:45:09]OFDProtocolAddRootSTLVToBuf [09:45:09]FM_MakeSignedData [09:45:09]FM_MakeSignedData [09:45:09]SAM_PROTO_SignData [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 01 02 [09:45:09]Write to MH i2c: E2 08 00 2F 02 80 0D 01 02 00 00 00 00 AA [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=255 [09:45:09]MH_SAM_APDU [09:45: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 3E 00 00 00 F4 03 04 00 A5 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 82 02 00 35 04 06 00 EE [09:45:09]Write to MH i2c: E2 02 01 30 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 3E 00 00 00 F4 03 04 00 A5 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 82 02 00 35 04 06 00 EE 00 00 D2 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=10 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 02 02 05 34 1F 9F F5 44 [09:45:09]Write to MH i2c: E2 0D 00 31 02 80 0D 02 02 05 00 34 1F 9F F5 44 00 00 E2 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 03 02 [09:45:09]Write to MH i2c: E2 08 00 32 02 80 0D 03 02 00 00 00 00 AF [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 0B 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 0B 00 32 02 00 58 3D CB 92 16 43 C0 42 90 00 FD [09:45:09]RAPDU: 58 3D CB 92 16 43 C0 42 90 00 [09:45:09]wFMCommunicate OK [09:45:09]SAM_PROTO_SignData done [09:45:09]FM_MakeSignedData done [09:45:09]CreateOFDProtocolMessage [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 11 00 00 [09:45:09]Write to MH i2c: E2 08 00 33 02 80 11 00 00 00 00 00 00 AF [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 17 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 17 00 33 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [09:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:45:09]wFMCommunicate OK [09:45:09]CreateOFDProtocolMessage done [09:45:09]OFDSenderStorePacket 164502 [09:45:09]StoreOFDPacket docnum=164502 [09:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EE 5F 07 01 59 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 3E 00 00 00 F4 03 04 00 A5 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 82 02 00 35 04 06 00 EE 34 1F 9F F5 44 58 3D CB 92 16 43 C0 42 [09:45:09]CheckFolder [09:45:09]dirname=/storage/ofd_packets [09:45:09]CheckFolder done [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00164502 [09:45:09]NVStorageSaveData ofd_packets/00164502 [09:45:09]File name is /storage/ofd_packets/00164502 [09:45:09]Write 301 bytes [09:45:09]NVStorageSaveData done [09:45:09]OFDSenderStorePacket done [09:45:09]KKMCreateOFDPacket done [09:45:09]NVStorageSaveData kkm_last_timestamp [09:45:09]File name is /storage/kkm_last_timestamp [09:45:09]Write 4 bytes [09:45:09]NVStorageSaveData done [09:45:09]ExternCall_PrintAddStr [09:45:09]wPrintStart [09:45:09]Write to MH i2c: 01 00 00 34 02 36 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [09:45:09]RasterBufferAndPrint [09:45:09]line Счет N : (1)458590 [09:45:09]line ИНН: 02508201610067 [09:45:09]line Контрольно-Кассовый Чек [09:45:09]line ПРОДАЖА [09:45:09]line ТРК (МРК, ГНК) : 22 [09:45:09]line Товар: 2710124130 [09:45:09]line Аи-92-К-5 [09:45:09]line 4.560 * 65.80 [09:45:09]line = 300.05 [09:45:09]line НДС 12% НСП 1% [09:45:09]line > о реализуемом товаре [09:45:09]line ОКРУГЛЕНИЕ: -0.05 [09:45:09]line ИТОГО: 300.00 [09:45:09]line Внесено: 300.00 [09:45:09]line СДАЧА: 0.00 [09:45:09]line НСП 1% : 2.65 [09:45:09]line НДС 12% : 31.86 [09:45:09]line Наличными: 300.00 [09:45:09]line Безнал.: 0.00 [09:45:09]line Место: АЗС № 72 "Партнер Нефть" [09:45:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:45:09]line СНО: Общий режим [09:45:09]line Чек 62 13.07.2024 09:45 [09:45:09]line Смена: 446 ФФД: 1.0 [09:45:09]line ЗНМ: 0300000160 [09:45:09]line РНМ: 0000000000090829 [09:45:09]line Версия ККМ: 001 [09:45:09]line ФМ: 0000000000874718 [09:45:09]line ФД: 164502 [09:45:09]line ФПД: 261907636286788 [09:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094509&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164502&fm=261907636286788&tin=02508201610067®Number=0000000000090829&sum=30000 [09:45:09]OFD Sender: Processing packet 164502 [packets to send 104, broken 103] [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00164502 [09:45:09]OFD Sender: To server: pG, [09:45:09]CommunicateWithHost lk.salyk.kg:30040 [09:45:09]ConnectInit lk.salyk.kg [09:45:09]written 0, free lines is 4095 [09:45:10]Connected sock=10 [09:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EE 5F 07 01 59 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 3E 00 00 00 F4 03 04 00 A5 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 82 02 00 35 04 06 00 EE 34 1F 9F F5 44 58 3D CB 92 16 43 C0 42 [09:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 77 47 00 CE 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 34 37 31 38 10 04 04 00 96 82 02 00 F4 03 04 00 36 F3 91 66 B6 04 01 00 00 78 80 7A 27 64 D3 A6 FF [09:45:10]CommunicateWithHost err = 0 [09:45:10]CheckOFDResponse [09:45:10]1017 (14) - 77093643461234 [09:45:10]1041 (16) - 0000000000874718 [09:45:10]1040 (4) - 164502 [09:45:10]1012 (4) - 13.07.2024 03:23 [09:45:10]1206 (1) - 0 [09:45:10]OFD Sender: Remove packet 164502 [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00164502 [09:45:10]NVStorageDeleteData [09:45:10]Write to MH i2c: 01 00 00 5E 02 60 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 0D 0D 81 [09:45:10]RasterBufferAndPrint [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]written 0, free lines is 3347 [09:45:10]MH_Cut [09:45:10]Write to MH i2c: D1 01 00 65 02 01 39 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 65 02 00 38 [09:45:10]Write to MH i2c: 01 00 00 66 02 68 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]OFD Sender: No OFD packet to send [09:45:11]*** Cut start [09:45:11]*** Partial cut [09:45:11]*** CUTSNS_PIN = 1 [09:45:11]*** CUTSNS_PIN = 0 [09:45:11]*** Brake cut motor [09:45:11]Read from MH i2c: 01 [09:45:11]MH_I2C_Read... [09:45:11]*** Stop cut motor [09:45:11]*** Cut end [09:45:11]Read from MH i2c: 01 07 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [09:45:11]process_action close_receipt done [09:45:11]requested_data is exist [09:45:11]produce_requested_data [09:45:11]requested_item fm.sn is exist - process it [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 11 00 00 [09:45:11]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [09:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:45:11]wFMCommunicate OK [09:45:11]requested_item fd.num is exist - process it [09:45:11]SAM_PROTO_GetFieldsCounters [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 00 00 [09:45:11]Write to MH i2c: E2 08 00 68 02 80 13 00 00 00 00 00 00 E6 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 68 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 82 02 00 0E 04 04 00 BE 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 A0 [09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 82 02 00 0E 04 04 00 BE 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 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_GetFieldsCounters done [09:45:11]requested_item shift.num is exist - process it [09:45:11]requested_item shift.opened is exist - process it [09:45:11]req_shift_opened [09:45:11]FM_GetShiftState [09:45:11]SAM_PROTO_GetShiftState [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 01 00 [09:45:11]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C9 [09:45:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_GetShiftState done [09:45:11]FM_GetShiftState done [09:45:11]req_shift_opened done [09:45:11]requested_item shift.open_date is exist - process it [09:45:11]req_shift_open_date [09:45:11]req_shift_open_date done [09:45:11]produce_requested_data done [09:45:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164502,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:45:11]process_action_free close_receipt [09:45:11]json_value_free [09:45:11]json_value_free done [09:45:11]process_json_proto returns [09:45:11]Send response to host [09:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164502,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:45:11]free response buf [09:45:11]execute_script done [09:45:11]execute_script returns [09:45:11]free content buf [09:45:11]Sock 9.Close socket [09:45:11]Sock 9.Thread stoped [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]accept exits with 7 [09:45:30]New connection [09:45:30]New thread 3067293028 created [09:45:30]Thread 3067149668 joined [09:45:30]Waiting for new connection... [09:45:30] Sock 7.Parse request [09:45:30]Sock 7.Check first char [09:45:30]Sock 7.First char is OK [09:45:30]request: POST /json_proto HTTP/1.0 [09:45:30]Method: POST [09:45:30]URL: /json_proto [09:45:30]Method is POST - this is cgi request [09:45:30]url: /json_proto [09:45:30]query_string will be loaded in cgi processing [09:45:30]execute_cgi json_proto POST (null) [09:45:30]execute_cgi path=json_proto method=POST [09:45:30]POST find Content-Length [09:45:30]Host: 172.17.56.4:8080 [09:45:30]Content-Length: 682 [09:45:30]Content-Type: application/json [09:45:30] [09:45:30]POST finish read [09:45:30]Found Content-Length = 682 [09:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:30]execute_script... [09:45:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:30]POST & json_proto [09:45:30]process_json_proto [09:45:30]json parsed OK: [09:45:30]protocol is kg_v1.0 [09:45:30]action value=close_receipt [09:45:30]process_action close_receipt [09:45:30]cmd_close_receipt [09:45:30]MH_GetDate [09:45:30]Write to MH i2c: F0 00 00 6A 02 5B [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: F0 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: F0 09 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: F0 09 00 6A 02 00 BB 4C 92 66 C9 DC B2 64 1E [09:45:30]GetLastDocTimeStamp 1720863909 [09:45:30]current date 1720863931 [09:45:30]FM_GetShiftState [09:45:30]SAM_PROTO_GetShiftState [09:45:30]wFMCommunicate request_size=4 [09:45:30]MH_SAM_APDU [09:45:30]CAPDU: 80 13 01 00 [09:45:30]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [09:45:30]Write i2c OK [09:45:30]MH_I2C_Read... [09:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:30]Read from MH i2c: E2 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 0E 00 [09:45:30]MH_I2C_Read... [09:45:30]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CB [09:45:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:45:30]wFMCommunicate OK [09:45:30]SAM_PROTO_GetShiftState done [09:45:30]FM_GetShiftState done [09:45:30]opened in 1720831249 [09:45:30]opened+sec_in_day 1720917649 [09:45:30]quantity*price = 100016 [09:45:30]sum+1 = 100017 [09:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 63 13.07.2024 09:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164503 ФПД: 148614297022297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164503&fm=148614297022297&tin=02508201610067®Number=0000000000090829&sum=100000 [09:45:31]StoreToDocumentArchive [09:45:31]shift 446 fd 164503 [09:45:31]save to /storage/0446/doc_00164503 [09:45:31]save last doc name /storage/0446/doc_00164503 to /storage/kkm_last_doc_name [09:45:31]save OK [09:45:31]Clear old archive folders... [09:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:31]tlvbuf is B6F2D7B0 [09:45:31]SAM_PROTO_ClearQueue [09:45:31]wFMCommunicate request_size=4 [09:45:31]MH_SAM_APDU [09:45:31]CAPDU: 80 09 00 00 [09:45:31]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [09:45:31]Write i2c OK [09:45:31]MH_I2C_Read... [09:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:31]Read from MH i2c: E2 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 03 00 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [09:45:31]RAPDU: 90 00 [09:45:31]wFMCommunicate OK [09:45:31]SAM_PROTO_ClearQueue done [09:45:31]KKMCreateOFDPacket [09:45:31]OFDProtocolAddRootSTLVToBuf [09:45:31]FM_MakeSignedData [09:45:31]FM_MakeSignedData [09:45:31]SAM_PROTO_SignData [09:45:31]wFMCommunicate request_size=4 [09:45:31]MH_SAM_APDU [09:45:31]CAPDU: 80 0D 01 02 [09:45:31]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [09:45:31]Write i2c OK [09:45:31]MH_I2C_Read... [09:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:31]Read from MH i2c: E2 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 03 00 [09:45:31]MH_I2C_Read... [09:45:31]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [09:45:31]RAPDU: 90 00 [09:45:31]wFMCommunicate OK [09:45:31]wFMCommunicate request_size=255 [09:45:31]MH_SAM_APDU [09:45:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BB 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 82 02 00 35 04 06 00 87 [09:45:31]Write to MH i2c: E2 02 01 7A 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BB 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 82 02 00 35 04 06 00 87 00 00 AE [09:45:31]Write i2c OK [09:45:31]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 03 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [09:45:32]RAPDU: 90 00 [09:45:32]wFMCommunicate OK [09:45:32]wFMCommunicate request_size=10 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 0D 02 02 05 29 F6 61 EF 59 [09:45:32]Write to MH i2c: E2 0D 00 7B 02 80 0D 02 02 05 00 29 F6 61 EF 59 00 00 C9 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 03 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [09:45:32]RAPDU: 90 00 [09:45:32]wFMCommunicate OK [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 0D 03 02 [09:45:32]Write to MH i2c: E2 08 00 7C 02 80 0D 03 02 00 00 00 00 F9 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0B 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0B 00 7C 02 00 8E 26 48 EE D0 EF D4 6E 90 00 E5 [09:45:32]RAPDU: 8E 26 48 EE D0 EF D4 6E 90 00 [09:45:32]wFMCommunicate OK [09:45:32]SAM_PROTO_SignData done [09:45:32]FM_MakeSignedData done [09:45:32]CreateOFDProtocolMessage [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 11 00 00 [09:45:32]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 17 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [09:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:45:32]wFMCommunicate OK [09:45:32]CreateOFDProtocolMessage done [09:45:32]OFDSenderStorePacket 164503 [09:45:32]StoreOFDPacket docnum=164503 [09:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 29 07 01 0D 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BB 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 82 02 00 35 04 06 00 87 29 F6 61 EF 59 8E 26 48 EE D0 EF D4 6E [09:45:32]CheckFolder [09:45:32]dirname=/storage/ofd_packets [09:45:32]CheckFolder done [09:45:32]ProducePacketName [09:45:32]name=ofd_packets/00164503 [09:45:32]NVStorageSaveData ofd_packets/00164503 [09:45:32]File name is /storage/ofd_packets/00164503 [09:45:32]Write 301 bytes [09:45:32]NVStorageSaveData done [09:45:32]OFDSenderStorePacket done [09:45:32]KKMCreateOFDPacket done [09:45:32]NVStorageSaveData kkm_last_timestamp [09:45:32]File name is /storage/kkm_last_timestamp [09:45:32]Write 4 bytes [09:45:32]NVStorageSaveData done [09:45:32]ExternCall_PrintAddStr [09:45:32]wPrintStart [09:45:32]Write to MH i2c: 01 00 00 7E 02 80 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: 01 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: 01 07 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [09:45:32]RasterBufferAndPrint [09:45:32]line Счет N : (1)458591 [09:45:32]line ИНН: 02508201610067 [09:45:32]line Контрольно-Кассовый Чек [09:45:32]line ПРОДАЖА [09:45:32]line ТРК (МРК, ГНК) : 12 [09:45:32]line Товар: 2710124130 [09:45:32]line Аи-92-К-5 [09:45:32]line 15.200 * 65.80 [09:45:32]line = 1000.16 [09:45:32]line НДС 12% НСП 1% [09:45:32]line > о реализуемом товаре [09:45:32]line ОКРУГЛЕНИЕ: -0.16 [09:45:32]line ИТОГО: 1000.00 [09:45:32]line Внесено: 1000.00 [09:45:32]line СДАЧА: 0.00 [09:45:32]line НСП 1% : 8.85 [09:45:32]line НДС 12% : 106.21 [09:45:32]line Наличными: 1000.00 [09:45:32]line Безнал.: 0.00 [09:45:32]line Место: АЗС № 72 "Партнер Нефть" [09:45:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:45:32]line СНО: Общий режим [09:45:32]line Чек 63 13.07.2024 09:45 [09:45:32]line Смена: 446 ФФД: 1.0 [09:45:32]line ЗНМ: 0300000160 [09:45:32]line РНМ: 0000000000090829 [09:45:32]line Версия ККМ: 001 [09:45:32]line ФМ: 0000000000874718 [09:45:32]line ФД: 164503 [09:45:32]line ФПД: 148614297022297 [09:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164503&fm=148614297022297&tin=02508201610067®Number=0000000000090829&sum=100000 [09:45:32]OFD Sender: Processing packet 164503 [packets to send 104, broken 103] [09:45:32]ProducePacketName [09:45:32]name=ofd_packets/00164503 [09:45:32]OFD Sender: To server: pG, [09:45:32]CommunicateWithHost lk.salyk.kg:30040 [09:45:32]ConnectInit lk.salyk.kg [09:45:32]written 0, free lines is 4095 [09:45:32]Connected sock=10 [09:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 29 07 01 0D 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BB 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 82 02 00 35 04 06 00 87 29 F6 61 EF 59 8E 26 48 EE D0 EF D4 6E [09:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A FF 47 00 F4 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 34 37 31 38 10 04 04 00 97 82 02 00 F4 03 04 00 4D F3 91 66 B6 04 01 00 00 05 9B 31 93 F1 CD 33 B4 [09:45:32]CommunicateWithHost err = 0 [09:45:32]CheckOFDResponse [09:45:32]1017 (14) - 77093643461234 [09:45:32]1041 (16) - 0000000000874718 [09:45:32]1040 (4) - 164503 [09:45:32]1012 (4) - 13.07.2024 03:23 [09:45:32]1206 (1) - 0 [09:45:32]OFD Sender: Remove packet 164503 [09:45:32]ProducePacketName [09:45:32]name=ofd_packets/00164503 [09:45:32]NVStorageDeleteData [09:45:33]Write to MH i2c: 01 00 00 A8 02 AA [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 11 0D CF [09:45:33]RasterBufferAndPrint [09:45:33]line [09:45:33]line [09:45:33]line [09:45:33]line [09:45:33]line [09:45:33]written 0, free lines is 3351 [09:45:33]MH_Cut [09:45:33]Write to MH i2c: D1 01 00 AF 02 01 83 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: D1 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: D1 01 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: D1 01 00 AF 02 00 82 [09:45:33]Write to MH i2c: 01 00 00 B0 02 B2 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]OFD Sender: No OFD packet to send [09:45:33]*** Cut start [09:45:33]*** Partial cut [09:45:33]*** CUTSNS_PIN = 1 [09:45:33]*** CUTSNS_PIN = 0 [09:45:34]*** Brake cut motor [09:45:34]Read from MH i2c: 01 [09:45:34]MH_I2C_Read... [09:45:34]*** Stop cut motor [09:45:34]*** Cut end [09:45:34]Read from MH i2c: 01 07 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [09:45:34]process_action close_receipt done [09:45:34]requested_data is exist [09:45:34]produce_requested_data [09:45:34]requested_item fm.sn is exist - process it [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 11 00 00 [09:45:34]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 17 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [09:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:45:34]wFMCommunicate OK [09:45:34]requested_item fd.num is exist - process it [09:45:34]SAM_PROTO_GetFieldsCounters [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 13 00 00 [09:45:34]Write to MH i2c: E2 08 00 B2 02 80 13 00 00 00 00 00 00 30 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 62 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 62 00 B2 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 82 02 00 0E 04 04 00 BE 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 EE [09:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 82 02 00 0E 04 04 00 BE 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 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_GetFieldsCounters done [09:45:34]requested_item shift.num is exist - process it [09:45:34]requested_item shift.opened is exist - process it [09:45:34]req_shift_opened [09:45:34]FM_GetShiftState [09:45:34]SAM_PROTO_GetShiftState [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 13 01 00 [09:45:34]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:34]Read from MH i2c: E2 0E 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 13 [09:45:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_GetShiftState done [09:45:34]FM_GetShiftState done [09:45:34]req_shift_opened done [09:45:34]requested_item shift.open_date is exist - process it [09:45:34]req_shift_open_date [09:45:34]req_shift_open_date done [09:45:34]produce_requested_data done [09:45:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164503,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:45:34]process_action_free close_receipt [09:45:34]json_value_free [09:45:34]json_value_free done [09:45:34]process_json_proto returns [09:45:34]Send response to host [09:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164503,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:45:34]free response buf [09:45:34]execute_script done [09:45:34]execute_script returns [09:45:34]free content buf [09:45:34]Sock 7.Close socket [09:45:34]Sock 7.Thread stoped [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:21]accept exits with 9 [09:46:21]New connection [09:46:21]New thread 3067149668 created [09:46:21]Thread 3067293028 joined [09:46:21]Waiting for new connection... [09:46:21] Sock 9.Parse request [09:46:21]Sock 9.Check first char [09:46:21]Sock 9.First char is OK [09:46:21]request: POST /json_proto HTTP/1.0 [09:46:21]Method: POST [09:46:21]URL: /json_proto [09:46:21]Method is POST - this is cgi request [09:46:21]url: /json_proto [09:46:21]query_string will be loaded in cgi processing [09:46:21]execute_cgi json_proto POST (null) [09:46:21]execute_cgi path=json_proto method=POST [09:46:21]POST find Content-Length [09:46:21]Host: 172.17.56.4:8080 [09:46:21]Content-Length: 679 [09:46:21]Content-Type: application/json [09:46:21] [09:46:21]POST finish read [09:46:21]Found Content-Length = 679 [09:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:21]execute_script... [09:46: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)458592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:21]POST & json_proto [09:46:21]process_json_proto [09:46:21]json parsed OK: [09:46:21]protocol is kg_v1.0 [09:46:21]action value=close_receipt [09:46:21]process_action close_receipt [09:46:21]cmd_close_receipt [09:46:21]MH_GetDate [09:46:21]Write to MH i2c: F0 00 00 B4 02 A5 [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: F0 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: F0 09 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: F0 09 00 B4 02 00 EE 4C 92 66 C9 DC B2 64 9B [09:46:21]GetLastDocTimeStamp 1720863931 [09:46:21]current date 1720863982 [09:46:21]FM_GetShiftState [09:46:21]SAM_PROTO_GetShiftState [09:46:21]wFMCommunicate request_size=4 [09:46:21]MH_SAM_APDU [09:46:21]CAPDU: 80 13 01 00 [09:46:21]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:21]Read from MH i2c: E2 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 0E 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 15 [09:46:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:46:21]wFMCommunicate OK [09:46:21]SAM_PROTO_GetShiftState done [09:46:21]FM_GetShiftState done [09:46:21]opened in 1720831249 [09:46:21]opened+sec_in_day 1720917649 [09:46:21]quantity*price = 100012 [09:46:21]sum+1 = 100014 [09:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 64 13.07.2024 09:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164504 ФПД: 26768774622688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094622&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164504&fm=26768774622688&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:22]StoreToDocumentArchive [09:46:22]shift 446 fd 164504 [09:46:22]save to /storage/0446/doc_00164504 [09:46:22]save last doc name /storage/0446/doc_00164504 to /storage/kkm_last_doc_name [09:46:22]save OK [09:46:22]Clear old archive folders... [09:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:22]tlvbuf is B6FABEF0 [09:46:22]SAM_PROTO_ClearQueue [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 09 00 00 [09:46:22]Write to MH i2c: E2 08 00 C2 02 80 09 00 00 00 00 00 00 36 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]SAM_PROTO_ClearQueue done [09:46:22]KKMCreateOFDPacket [09:46:22]OFDProtocolAddRootSTLVToBuf [09:46:22]FM_MakeSignedData [09:46:22]FM_MakeSignedData [09:46:22]SAM_PROTO_SignData [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 01 02 [09:46:22]Write to MH i2c: E2 08 00 C3 02 80 0D 01 02 00 00 00 00 3E [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]wFMCommunicate request_size=255 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 EE 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 82 02 00 35 04 06 00 18 58 97 4D [09:46:22]Write to MH i2c: E2 02 01 C4 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 EE 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 82 02 00 35 04 06 00 18 58 97 4D 00 00 A0 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [09:46:23]RAPDU: 90 00 [09:46:23]wFMCommunicate OK [09:46:23]wFMCommunicate request_size=7 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 0D 02 02 02 6D E0 [09:46:23]Write to MH i2c: E2 0A 00 C5 02 80 0D 02 02 02 00 6D E0 00 00 92 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [09:46:23]RAPDU: 90 00 [09:46:23]wFMCommunicate OK [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 0D 03 02 [09:46:23]Write to MH i2c: E2 08 00 C6 02 80 0D 03 02 00 00 00 00 43 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0B 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0B 00 C6 02 00 2A AF 45 9D 71 73 70 26 90 00 79 [09:46:23]RAPDU: 2A AF 45 9D 71 73 70 26 90 00 [09:46:23]wFMCommunicate OK [09:46:23]SAM_PROTO_SignData done [09:46:23]FM_MakeSignedData done [09:46:23]CreateOFDProtocolMessage [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 11 00 00 [09:46:23]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 17 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [09:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:23]wFMCommunicate OK [09:46:23]CreateOFDProtocolMessage done [09:46:23]OFDSenderStorePacket 164504 [09:46:23]StoreOFDPacket docnum=164504 [09:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 40 9B 04 01 12 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 EE 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 82 02 00 35 04 06 00 18 58 97 4D 6D E0 2A AF 45 9D 71 73 70 26 [09:46:23]CheckFolder [09:46:23]dirname=/storage/ofd_packets [09:46:23]CheckFolder done [09:46:23]ProducePacketName [09:46:23]name=ofd_packets/00164504 [09:46:23]NVStorageSaveData ofd_packets/00164504 [09:46:23]File name is /storage/ofd_packets/00164504 [09:46:23]Write 298 bytes [09:46:23]NVStorageSaveData done [09:46:23]OFDSenderStorePacket done [09:46:23]KKMCreateOFDPacket done [09:46:23]NVStorageSaveData kkm_last_timestamp [09:46:23]File name is /storage/kkm_last_timestamp [09:46:23]Write 4 bytes [09:46:23]NVStorageSaveData done [09:46:23]ExternCall_PrintAddStr [09:46:23]wPrintStart [09:46:23]Write to MH i2c: 01 00 00 C8 02 CA [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [09:46:23]RasterBufferAndPrint [09:46:23]line Счет N : (1)458592 [09:46:23]line ИНН: 02508201610067 [09:46:23]line Контрольно-Кассовый Чек [09:46:23]line ПРОДАЖА [09:46:23]line ТРК (МРК, ГНК) : 21 [09:46:23]line Товар: 2710194210 [09:46:23]line ДТ-К-5 [09:46:23]line 13.910 * 71.90 [09:46:23]line = 1000.13 [09:46:23]line НДС 12% НСП 1% [09:46:23]line > о реализуемом товаре [09:46:23]line ОКРУГЛЕНИЕ: -0.13 [09:46:23]line ИТОГО: 1000.00 [09:46:23]line Внесено: 1000.00 [09:46:23]line СДАЧА: 0.00 [09:46:23]line НСП 1% : 8.85 [09:46:23]line НДС 12% : 106.21 [09:46:23]line Наличными: 1000.00 [09:46:23]line Безнал.: 0.00 [09:46:23]line Место: АЗС № 72 "Партнер Нефть" [09:46:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:46:23]line СНО: Общий режим [09:46:23]line Чек 64 13.07.2024 09:46 [09:46:23]line Смена: 446 ФФД: 1.0 [09:46:23]line ЗНМ: 0300000160 [09:46:23]line РНМ: 0000000000090829 [09:46:23]line Версия ККМ: 001 [09:46:23]line ФМ: 0000000000874718 [09:46:23]line ФД: 164504 [09:46:23]line ФПД: 26768774622688 [09:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094622&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164504&fm=26768774622688&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:23]OFD Sender: Processing packet 164504 [packets to send 104, broken 103] [09:46:23]ProducePacketName [09:46:23]name=ofd_packets/00164504 [09:46:23]OFD Sender: To server: pG, [09:46:23]CommunicateWithHost lk.salyk.kg:30040 [09:46:23]ConnectInit lk.salyk.kg [09:46:23]written 0, free lines is 4095 [09:46:23]Connected sock=10 [09:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 40 9B 04 01 12 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 EE 4C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 82 02 00 35 04 06 00 18 58 97 4D 6D E0 2A AF 45 9D 71 73 70 26 [09:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 B1 47 00 89 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 82 02 00 F4 03 04 00 80 F3 91 66 B6 04 01 00 00 68 83 F9 A2 E6 92 20 2B [09:46:23]CommunicateWithHost err = 0 [09:46:23]CheckOFDResponse [09:46:23]1017 (14) - 77093643461234 [09:46:23]1041 (16) - 0000000000874718 [09:46:23]1040 (4) - 164504 [09:46:23]1012 (4) - 13.07.2024 03:24 [09:46:23]1206 (1) - 0 [09:46:23]OFD Sender: Remove packet 164504 [09:46:23]ProducePacketName [09:46:23]name=ofd_packets/00164504 [09:46:23]NVStorageDeleteData [09:46:24]Write to MH i2c: 01 00 00 F2 02 F4 [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 04 0D 0C [09:46:24]RasterBufferAndPrint [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]line [09:46:24]written 0, free lines is 3338 [09:46:24]MH_Cut [09:46:24]Write to MH i2c: D1 01 00 F9 02 01 CD [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 01 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: D1 01 00 F9 02 00 CC [09:46:24]Write to MH i2c: 01 00 00 FA 02 FC [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]OFD Sender: No OFD packet to send [09:46:24]*** Cut start [09:46:24]*** Partial cut [09:46:24]*** CUTSNS_PIN = 1 [09:46:24]*** CUTSNS_PIN = 0 [09:46:25]*** Brake cut motor [09:46:25]Read from MH i2c: 01 [09:46:25]MH_I2C_Read... [09:46:25]*** Stop cut motor [09:46:25]*** Cut end [09:46:25]Read from MH i2c: 01 07 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [09:46:25]process_action close_receipt done [09:46:25]requested_data is exist [09:46:25]produce_requested_data [09:46:25]requested_item fm.sn is exist - process it [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 11 00 00 [09:46:25]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 17 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [09:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:25]wFMCommunicate OK [09:46:25]requested_item fd.num is exist - process it [09:46:25]SAM_PROTO_GetFieldsCounters [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 13 00 00 [09:46:25]Write to MH i2c: E2 08 00 FC 02 80 13 00 00 00 00 00 00 7A [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 62 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 62 00 FC 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 82 02 00 0E 04 04 00 BE 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 3C [09:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 82 02 00 0E 04 04 00 BE 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 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetFieldsCounters done [09:46:25]requested_item shift.num is exist - process it [09:46:25]requested_item shift.opened is exist - process it [09:46:25]req_shift_opened [09:46:25]FM_GetShiftState [09:46:25]SAM_PROTO_GetShiftState [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 13 01 00 [09:46:25]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5D [09:46:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetShiftState done [09:46:25]FM_GetShiftState done [09:46:25]req_shift_opened done [09:46:25]requested_item shift.open_date is exist - process it [09:46:25]req_shift_open_date [09:46:25]req_shift_open_date done [09:46:25]produce_requested_data done [09:46:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164504,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:46:25]process_action_free close_receipt [09:46:25]json_value_free [09:46:25]json_value_free done [09:46:25]process_json_proto returns [09:46:25]Send response to host [09:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164504,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:46:25]free response buf [09:46:25]execute_script done [09:46:25]execute_script returns [09:46:25]free content buf [09:46:25]Sock 9.Close socket [09:46:25]Sock 9.Thread stoped [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:24]accept exits with 7 [09:47:24]New connection [09:47:24]New thread 3067293028 created [09:47:24]Thread 3067149668 joined [09:47:24]Waiting for new connection... [09:47:24] Sock 7.Parse request [09:47:24]Sock 7.Check first char [09:47:24]Sock 7.First char is OK [09:47:24]request: POST /json_proto HTTP/1.0 [09:47:24]Method: POST [09:47:24]URL: /json_proto [09:47:24]Method is POST - this is cgi request [09:47:24]url: /json_proto [09:47:24]query_string will be loaded in cgi processing [09:47:24]execute_cgi json_proto POST (null) [09:47:24]execute_cgi path=json_proto method=POST [09:47:24]POST find Content-Length [09:47:24]Host: 172.17.56.4:8080 [09:47:24]Content-Length: 678 [09:47:24]Content-Type: application/json [09:47:24] [09:47:24]POST finish read [09:47:24]Found Content-Length = 678 [09:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [09:47:24]execute_script... [09:47: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)458593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [09:47:24]POST & json_proto [09:47:24]process_json_proto [09:47:24]json parsed OK: [09:47:24]protocol is kg_v1.0 [09:47:24]action value=close_receipt [09:47:24]process_action close_receipt [09:47:24]cmd_close_receipt [09:47:24]MH_GetDate [09:47:24]Write to MH i2c: F0 00 00 FE 02 EF [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 09 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: F0 09 00 FE 02 00 2D 4D 92 66 C9 DC B2 64 25 [09:47:24]GetLastDocTimeStamp 1720863982 [09:47:24]current date 1720864045 [09:47:24]FM_GetShiftState [09:47:24]SAM_PROTO_GetShiftState [09:47:24]wFMCommunicate request_size=4 [09:47:24]MH_SAM_APDU [09:47:24]CAPDU: 80 13 01 00 [09:47:24]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [09:47:24]Write i2c OK [09:47:24]MH_I2C_Read... [09:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:24]Read from MH i2c: E2 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0E 00 [09:47:24]MH_I2C_Read... [09:47:24]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5F [09:47:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:47:24]wFMCommunicate OK [09:47:24]SAM_PROTO_GetShiftState done [09:47:24]FM_GetShiftState done [09:47:24]opened in 1720831249 [09:47:24]opened+sec_in_day 1720917649 [09:47:24]quantity*price = 80012 [09:47:24]sum+1 = 80014 [09:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 65 13.07.2024 09:47 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164505 ФПД: 78550256289700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094726&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164505&fm=78550256289700&tin=02508201610067®Number=0000000000090829&sum=80000 [09:47:26]StoreToDocumentArchive [09:47:26]shift 446 fd 164505 [09:47:26]save to /storage/0446/doc_00164505 [09:47:26]save last doc name /storage/0446/doc_00164505 to /storage/kkm_last_doc_name [09:47:26]save OK [09:47:26]Clear old archive folders... [09:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:26]tlvbuf is 014321E0 [09:47:26]SAM_PROTO_ClearQueue [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 09 00 00 [09:47:26]Write to MH i2c: E2 08 00 0C 03 80 09 00 00 00 00 00 00 81 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_ClearQueue done [09:47:26]KKMCreateOFDPacket [09:47:26]OFDProtocolAddRootSTLVToBuf [09:47:26]FM_MakeSignedData [09:47:26]FM_MakeSignedData [09:47:26]SAM_PROTO_SignData [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 01 02 [09:47:26]Write to MH i2c: E2 08 00 0D 03 80 0D 01 02 00 00 00 00 89 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=255 [09:47:26]MH_SAM_APDU [09:47: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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 41 00 00 00 F4 03 04 00 2E 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 82 02 00 35 04 06 00 47 [09:47:26]Write to MH i2c: E2 02 01 0E 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 41 00 00 00 F4 03 04 00 2E 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 82 02 00 35 04 06 00 47 00 00 3C [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=10 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 02 02 05 70 E8 1F 87 A4 [09:47:26]Write to MH i2c: E2 0D 00 0F 03 80 0D 02 02 05 00 70 E8 1F 87 A4 00 00 38 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [09:47:26]RAPDU: 90 00 [09:47:26]wFMCommunicate OK [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 0D 03 02 [09:47:26]Write to MH i2c: E2 08 00 10 03 80 0D 03 02 00 00 00 00 8E [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 0B 00 10 03 00 47 7B 38 AB 88 53 F3 D6 90 00 D8 [09:47:26]RAPDU: 47 7B 38 AB 88 53 F3 D6 90 00 [09:47:26]wFMCommunicate OK [09:47:26]SAM_PROTO_SignData done [09:47:26]FM_MakeSignedData done [09:47:26]CreateOFDProtocolMessage [09:47:26]wFMCommunicate request_size=4 [09:47:26]MH_SAM_APDU [09:47:26]CAPDU: 80 11 00 00 [09:47:26]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:26]Read from MH i2c: E2 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [09:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:26]wFMCommunicate OK [09:47:26]CreateOFDProtocolMessage done [09:47:26]OFDSenderStorePacket 164505 [09:47:26]StoreOFDPacket docnum=164505 [09:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 3B 07 01 86 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 41 00 00 00 F4 03 04 00 2E 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 82 02 00 35 04 06 00 47 70 E8 1F 87 A4 47 7B 38 AB 88 53 F3 D6 [09:47:26]CheckFolder [09:47:26]dirname=/storage/ofd_packets [09:47:26]CheckFolder done [09:47:26]ProducePacketName [09:47:26]name=ofd_packets/00164505 [09:47:26]NVStorageSaveData ofd_packets/00164505 [09:47:26]File name is /storage/ofd_packets/00164505 [09:47:26]Write 301 bytes [09:47:26]NVStorageSaveData done [09:47:26]OFDSenderStorePacket done [09:47:26]KKMCreateOFDPacket done [09:47:26]NVStorageSaveData kkm_last_timestamp [09:47:26]File name is /storage/kkm_last_timestamp [09:47:26]Write 4 bytes [09:47:26]NVStorageSaveData done [09:47:26]ExternCall_PrintAddStr [09:47:26]wPrintStart [09:47:26]Write to MH i2c: 01 00 00 12 03 15 [09:47:26]Write i2c OK [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 [09:47:26]MH_I2C_Read... [09:47:26]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [09:47:26]RasterBufferAndPrint [09:47:26]line Счет N : (1)458593 [09:47:26]line ИНН: 02508201610067 [09:47:26]line Контрольно-Кассовый Чек [09:47:26]line ПРОДАЖА [09:47:26]line ТРК (МРК, ГНК) : 22 [09:47:26]line Товар: 2710124130 [09:47:26]line Аи-92-К-5 [09:47:26]line 12.160 * 65.80 [09:47:26]line = 800.13 [09:47:26]line НДС 12% НСП 1% [09:47:26]line > о реализуемом товаре [09:47:26]line ОКРУГЛЕНИЕ: -0.13 [09:47:26]line ИТОГО: 800.00 [09:47:26]line Внесено: 800.00 [09:47:26]line СДАЧА: 0.00 [09:47:26]line НСП 1% : 7.08 [09:47:26]line НДС 12% : 84.97 [09:47:26]line Наличными: 800.00 [09:47:26]line Безнал.: 0.00 [09:47:26]line Место: АЗС № 72 "Партнер Нефть" [09:47:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:47:26]line СНО: Общий режим [09:47:26]line Чек 65 13.07.2024 09:47 [09:47:26]line Смена: 446 ФФД: 1.0 [09:47:26]line ЗНМ: 0300000160 [09:47:26]line РНМ: 0000000000090829 [09:47:26]line Версия ККМ: 001 [09:47:26]line ФМ: 0000000000874718 [09:47:26]line ФД: 164505 [09:47:26]line ФПД: 78550256289700 [09:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094726&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164505&fm=78550256289700&tin=02508201610067®Number=0000000000090829&sum=80000 [09:47:26]written 0, free lines is 4095 [09:47:26]OFD Sender: Processing packet 164505 [packets to send 104, broken 103] [09:47:26]ProducePacketName [09:47:26]name=ofd_packets/00164505 [09:47:26]OFD Sender: To server: pG, [09:47:26]CommunicateWithHost lk.salyk.kg:30040 [09:47:26]ConnectInit lk.salyk.kg [09:47:26]Connected sock=10 [09:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 3B 07 01 86 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 41 00 00 00 F4 03 04 00 2E 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 82 02 00 35 04 06 00 47 70 E8 1F 87 A4 47 7B 38 AB 88 53 F3 D6 [09:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE 55 47 00 11 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 34 37 31 38 10 04 04 00 99 82 02 00 F4 03 04 00 BF F3 91 66 B6 04 01 00 00 69 4B 57 B6 F6 C6 49 D2 [09:47:27]CommunicateWithHost err = 0 [09:47:27]CheckOFDResponse [09:47:27]1017 (14) - 77093643461234 [09:47:27]1041 (16) - 0000000000874718 [09:47:27]1040 (4) - 164505 [09:47:27]1012 (4) - 13.07.2024 03:25 [09:47:27]1206 (1) - 0 [09:47:27]OFD Sender: Remove packet 164505 [09:47:27]ProducePacketName [09:47:27]name=ofd_packets/00164505 [09:47:27]NVStorageDeleteData [09:47:27]Write to MH i2c: 01 00 00 3C 03 3F [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 F7 0C 49 [09:47:27]RasterBufferAndPrint [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]line [09:47:27]written 0, free lines is 3323 [09:47:27]MH_Cut [09:47:27]Write to MH i2c: D1 01 00 43 03 01 18 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: D1 01 00 43 03 00 17 [09:47:27]Write to MH i2c: 01 00 00 44 03 47 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]OFD Sender: No OFD packet to send [09:47:28]*** Cut start [09:47:28]*** Partial cut [09:47:28]*** CUTSNS_PIN = 1 [09:47:28]*** CUTSNS_PIN = 0 [09:47:28]*** Brake cut motor [09:47:28]Read from MH i2c: 01 [09:47:28]MH_I2C_Read... [09:47:28]*** Stop cut motor [09:47:28]*** Cut end [09:47:28]Read from MH i2c: 01 07 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [09:47:28]process_action close_receipt done [09:47:28]requested_data is exist [09:47:28]produce_requested_data [09:47:28]requested_item fm.sn is exist - process it [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 11 00 00 [09:47:28]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 17 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [09:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:28]wFMCommunicate OK [09:47:28]requested_item fd.num is exist - process it [09:47:28]SAM_PROTO_GetFieldsCounters [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 13 00 00 [09:47:28]Write to MH i2c: E2 08 00 46 03 80 13 00 00 00 00 00 00 C5 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 62 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 62 00 46 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 82 02 00 0E 04 04 00 BE 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 8B [09:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 82 02 00 0E 04 04 00 BE 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 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_GetFieldsCounters done [09:47:28]requested_item shift.num is exist - process it [09:47:28]requested_item shift.opened is exist - process it [09:47:28]req_shift_opened [09:47:28]FM_GetShiftState [09:47:28]SAM_PROTO_GetShiftState [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 13 01 00 [09:47:28]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0E 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A8 [09:47:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_GetShiftState done [09:47:28]FM_GetShiftState done [09:47:28]req_shift_opened done [09:47:28]requested_item shift.open_date is exist - process it [09:47:28]req_shift_open_date [09:47:28]req_shift_open_date done [09:47:28]produce_requested_data done [09:47:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164505,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:47:28]process_action_free close_receipt [09:47:28]json_value_free [09:47:28]json_value_free done [09:47:28]process_json_proto returns [09:47:28]Send response to host [09:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164505,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:47:28]free response buf [09:47:28]execute_script done [09:47:28]execute_script returns [09:47:28]free content buf [09:47:28]Sock 7.Close socket [09:47:28]Sock 7.Thread stoped [09:47:31]accept exits with 9 [09:47:31]New connection [09:47:31]New thread 3067149668 created [09:47:31]Thread 3067293028 joined [09:47:31]Waiting for new connection... [09:47:31] Sock 9.Parse request [09:47:31]Sock 9.Check first char [09:47:31]Sock 9.First char is OK [09:47:31]request: POST /json_proto HTTP/1.0 [09:47:31]Method: POST [09:47:31]URL: /json_proto [09:47:31]Method is POST - this is cgi request [09:47:31]url: /json_proto [09:47:31]query_string will be loaded in cgi processing [09:47:31]execute_cgi json_proto POST (null) [09:47:31]execute_cgi path=json_proto method=POST [09:47:31]POST find Content-Length [09:47:31]Host: 172.17.56.4:8080 [09:47:31]Content-Length: 677 [09:47:31]Content-Type: application/json [09:47:31] [09:47:31]POST finish read [09:47:31]Found Content-Length = 677 [09:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:47:31]execute_script... [09:47: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)458594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:47:31]POST & json_proto [09:47:31]process_json_proto [09:47:31]json parsed OK: [09:47:31]protocol is kg_v1.0 [09:47:31]action value=close_receipt [09:47:31]process_action close_receipt [09:47:31]cmd_close_receipt [09:47:31]MH_GetDate [09:47:31]Write to MH i2c: F0 00 00 48 03 3A [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 48 03 00 34 4D 92 66 C9 DC B2 64 77 [09:47:31]GetLastDocTimeStamp 1720864046 [09:47:31]current date 1720864052 [09:47:31]FM_GetShiftState [09:47:31]SAM_PROTO_GetShiftState [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 13 01 00 [09:47:31]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AA [09:47:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_GetShiftState done [09:47:31]FM_GetShiftState done [09:47:31]opened in 1720831249 [09:47:31]opened+sec_in_day 1720917649 [09:47:31]quantity*price = 50008 [09:47:31]sum+1 = 50009 [09:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 66 13.07.2024 09:47 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164506 ФПД: 215162096836537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094732&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164506&fm=215162096836537&tin=02508201610067®Number=0000000000090829&sum=50000 [09:47:32]StoreToDocumentArchive [09:47:32]shift 446 fd 164506 [09:47:32]save to /storage/0446/doc_00164506 [09:47:32]save last doc name /storage/0446/doc_00164506 to /storage/kkm_last_doc_name [09:47:32]save OK [09:47:32]Clear old archive folders... [09:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:32]tlvbuf is 0144F1B0 [09:47:32]SAM_PROTO_ClearQueue [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 09 00 00 [09:47:32]Write to MH i2c: E2 08 00 56 03 80 09 00 00 00 00 00 00 CB [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_ClearQueue done [09:47:32]KKMCreateOFDPacket [09:47:32]OFDProtocolAddRootSTLVToBuf [09:47:32]FM_MakeSignedData [09:47:32]FM_MakeSignedData [09:47:32]SAM_PROTO_SignData [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 0D 01 02 [09:47:32]Write to MH i2c: E2 08 00 57 03 80 0D 01 02 00 00 00 00 D3 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]wFMCommunicate request_size=255 [09:47:32]MH_SAM_APDU [09:47: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 42 00 00 00 F4 03 04 00 34 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 82 02 00 35 04 06 00 C3 [09:47:32]Write to MH i2c: E2 02 01 58 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 42 00 00 00 F4 03 04 00 34 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 82 02 00 35 04 06 00 C3 00 00 A7 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=10 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 02 02 05 B0 54 59 DF B9 [09:47:33]Write to MH i2c: E2 0D 00 59 03 80 0D 02 02 05 00 B0 54 59 DF B9 00 00 D5 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 03 02 [09:47:33]Write to MH i2c: E2 08 00 5A 03 80 0D 03 02 00 00 00 00 D8 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0B 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0B 00 5A 03 00 89 5E A5 91 AB 44 B1 4F 90 00 E5 [09:47:33]RAPDU: 89 5E A5 91 AB 44 B1 4F 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_SignData done [09:47:33]FM_MakeSignedData done [09:47:33]CreateOFDProtocolMessage [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 11 00 00 [09:47:33]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [09:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:33]wFMCommunicate OK [09:47:33]CreateOFDProtocolMessage done [09:47:33]OFDSenderStorePacket 164506 [09:47:33]StoreOFDPacket docnum=164506 [09:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 E6 07 01 0D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 42 00 00 00 F4 03 04 00 34 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 82 02 00 35 04 06 00 C3 B0 54 59 DF B9 89 5E A5 91 AB 44 B1 4F [09:47:33]CheckFolder [09:47:33]dirname=/storage/ofd_packets [09:47:33]CheckFolder done [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00164506 [09:47:33]NVStorageSaveData ofd_packets/00164506 [09:47:33]File name is /storage/ofd_packets/00164506 [09:47:33]Write 301 bytes [09:47:33]NVStorageSaveData done [09:47:33]OFDSenderStorePacket done [09:47:33]KKMCreateOFDPacket done [09:47:33]NVStorageSaveData kkm_last_timestamp [09:47:33]File name is /storage/kkm_last_timestamp [09:47:33]Write 4 bytes [09:47:33]NVStorageSaveData done [09:47:33]ExternCall_PrintAddStr [09:47:33]wPrintStart [09:47:33]Write to MH i2c: 01 00 00 5C 03 5F [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 FF 0F 74 [09:47:33]RasterBufferAndPrint [09:47:33]line Счет N : (1)458594 [09:47:33]line ИНН: 02508201610067 [09:47:33]line Контрольно-Кассовый Чек [09:47:33]line ПРОДАЖА [09:47:33]line ТРК (МРК, ГНК) : 12 [09:47:33]line Товар: 2710124130 [09:47:33]line Аи-92-К-5 [09:47:33]line 7.600 * 65.80 [09:47:33]line = 500.08 [09:47:33]line НДС 12% НСП 1% [09:47:33]line > о реализуемом товаре [09:47:33]line ОКРУГЛЕНИЕ: -0.08 [09:47:33]line ИТОГО: 500.00 [09:47:33]line Внесено: 500.00 [09:47:33]line СДАЧА: 0.00 [09:47:33]line НСП 1% : 4.42 [09:47:33]line НДС 12% : 53.11 [09:47:33]line Наличными: 500.00 [09:47:33]line Безнал.: 0.00 [09:47:33]line Место: АЗС № 72 "Партнер Нефть" [09:47:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:47:33]line СНО: Общий режим [09:47:33]line Чек 66 13.07.2024 09:47 [09:47:33]line Смена: 446 ФФД: 1.0 [09:47:33]line ЗНМ: 0300000160 [09:47:33]line РНМ: 0000000000090829 [09:47:33]line Версия ККМ: 001 [09:47:33]line ФМ: 0000000000874718 [09:47:33]line ФД: 164506 [09:47:33]line ФПД: 215162096836537 [09:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094732&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164506&fm=215162096836537&tin=02508201610067®Number=0000000000090829&sum=50000 [09:47:33]written 0, free lines is 4095 [09:47:33]OFD Sender: Processing packet 164506 [packets to send 104, broken 103] [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00164506 [09:47:33]OFD Sender: To server: pG, [09:47:33]CommunicateWithHost lk.salyk.kg:30040 [09:47:33]ConnectInit lk.salyk.kg [09:47:33]Connected sock=10 [09:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 E6 07 01 0D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 42 00 00 00 F4 03 04 00 34 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 82 02 00 35 04 06 00 C3 B0 54 59 DF B9 89 5E A5 91 AB 44 B1 4F [09:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 59 47 00 9E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 82 02 00 F4 03 04 00 C5 F3 91 66 B6 04 01 00 00 4B AE 17 C5 D8 6A 85 89 [09:47:33]CommunicateWithHost err = 0 [09:47:33]CheckOFDResponse [09:47:33]1017 (14) - 77093643461234 [09:47:33]1041 (16) - 0000000000874718 [09:47:33]1040 (4) - 164506 [09:47:33]1012 (4) - 13.07.2024 03:25 [09:47:33]1206 (1) - 0 [09:47:33]OFD Sender: Remove packet 164506 [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00164506 [09:47:33]NVStorageDeleteData [09:47:33]Write to MH i2c: 01 00 00 86 03 89 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 0C 0D A9 [09:47:33]RasterBufferAndPrint [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]written 0, free lines is 3349 [09:47:33]MH_Cut [09:47:33]Write to MH i2c: D1 01 00 8D 03 01 62 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 01 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 01 00 8D 03 00 61 [09:47:33]Write to MH i2c: 01 00 00 8E 03 91 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:34]OFD Sender: No OFD packet to send [09:47:34]*** Cut start [09:47:34]*** Partial cut [09:47:34]*** CUTSNS_PIN = 1 [09:47:34]*** CUTSNS_PIN = 0 [09:47:34]*** Brake cut motor [09:47:35]Read from MH i2c: 01 [09:47:35]MH_I2C_Read... [09:47:35]*** Stop cut motor [09:47:35]*** Cut end [09:47:35]Read from MH i2c: 01 07 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 FF 0F A6 [09:47:35]process_action close_receipt done [09:47:35]requested_data is exist [09:47:35]produce_requested_data [09:47:35]requested_item fm.sn is exist - process it [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 11 00 00 [09:47:35]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:35]Read from MH i2c: E2 17 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [09:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:47:35]wFMCommunicate OK [09:47:35]requested_item fd.num is exist - process it [09:47:35]SAM_PROTO_GetFieldsCounters [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 00 00 [09:47:35]Write to MH i2c: E2 08 00 90 03 80 13 00 00 00 00 00 00 0F [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 62 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 62 00 90 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 82 02 00 0E 04 04 00 BE 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 D9 [09:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 82 02 00 0E 04 04 00 BE 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 [09:47:35]wFMCommunicate OK [09:47:35]SAM_PROTO_GetFieldsCounters done [09:47:35]requested_item shift.num is exist - process it [09:47:35]requested_item shift.opened is exist - process it [09:47:35]req_shift_opened [09:47:35]FM_GetShiftState [09:47:35]SAM_PROTO_GetShiftState [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 01 00 [09:47:35]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F2 [09:47:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:47:35]wFMCommunicate OK [09:47:35]SAM_PROTO_GetShiftState done [09:47:35]FM_GetShiftState done [09:47:35]req_shift_opened done [09:47:35]requested_item shift.open_date is exist - process it [09:47:35]req_shift_open_date [09:47:35]req_shift_open_date done [09:47:35]produce_requested_data done [09:47:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164506,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:47:35]process_action_free close_receipt [09:47:35]json_value_free [09:47:35]json_value_free done [09:47:35]process_json_proto returns [09:47:35]Send response to host [09:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164506,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:47:35]free response buf [09:47:35]execute_script done [09:47:35]execute_script returns [09:47:35]free content buf [09:47:35]Sock 9.Close socket [09:47:35]Sock 9.Thread stoped [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:32]accept exits with 7 [09:48:32]New connection [09:48:32]New thread 3067293028 created [09:48:32]Thread 3067149668 joined [09:48:32]Waiting for new connection... [09:48:32] Sock 7.Parse request [09:48:32]Sock 7.Check first char [09:48:32]Sock 7.First char is OK [09:48:32]request: POST /json_proto HTTP/1.0 [09:48:32]Method: POST [09:48:32]URL: /json_proto [09:48:32]Method is POST - this is cgi request [09:48:32]url: /json_proto [09:48:32]query_string will be loaded in cgi processing [09:48:32]execute_cgi json_proto POST (null) [09:48:32]execute_cgi path=json_proto method=POST [09:48:32]POST find Content-Length [09:48:32]Host: 172.17.56.4:8080 [09:48:32]Content-Length: 677 [09:48:32]Content-Type: application/json [09:48:32] [09:48:32]POST finish read [09:48:32]Found Content-Length = 677 [09:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:48:32]execute_script... [09:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:48:32]POST & json_proto [09:48:32]process_json_proto [09:48:32]json parsed OK: [09:48:32]protocol is kg_v1.0 [09:48:32]action value=close_receipt [09:48:32]process_action close_receipt [09:48:32]cmd_close_receipt [09:48:32]MH_GetDate [09:48:32]Write to MH i2c: F0 00 00 92 03 84 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 09 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: F0 09 00 92 03 00 71 4D 92 66 C9 DC B2 64 FE [09:48:32]GetLastDocTimeStamp 1720864052 [09:48:32]current date 1720864113 [09:48:32]FM_GetShiftState [09:48:32]SAM_PROTO_GetShiftState [09:48:32]wFMCommunicate request_size=4 [09:48:32]MH_SAM_APDU [09:48:32]CAPDU: 80 13 01 00 [09:48:32]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:32]Read from MH i2c: E2 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F4 [09:48:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:48:32]wFMCommunicate OK [09:48:32]SAM_PROTO_GetShiftState done [09:48:32]FM_GetShiftState done [09:48:32]opened in 1720831249 [09:48:32]opened+sec_in_day 1720917649 [09:48:32]quantity*price = 50008 [09:48:32]sum+1 = 50009 [09:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 67 13.07.2024 09:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164507 ФПД: 61682891577494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164507&fm=61682891577494&tin=02508201610067®Number=0000000000090829&sum=50000 [09:48:33]StoreToDocumentArchive [09:48:33]shift 446 fd 164507 [09:48:33]save to /storage/0446/doc_00164507 [09:48:33]save last doc name /storage/0446/doc_00164507 to /storage/kkm_last_doc_name [09:48:33]save OK [09:48:33]Clear old archive folders... [09:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:33]tlvbuf is 01444C70 [09:48:33]SAM_PROTO_ClearQueue [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 09 00 00 [09:48:33]Write to MH i2c: E2 08 00 A0 03 80 09 00 00 00 00 00 00 15 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]SAM_PROTO_ClearQueue done [09:48:33]KKMCreateOFDPacket [09:48:33]OFDProtocolAddRootSTLVToBuf [09:48:33]FM_MakeSignedData [09:48:33]FM_MakeSignedData [09:48:33]SAM_PROTO_SignData [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 0D 01 02 [09:48:33]Write to MH i2c: E2 08 00 A1 03 80 0D 01 02 00 00 00 00 1D [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]wFMCommunicate request_size=255 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 71 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 82 02 00 35 04 06 00 38 [09:48:33]Write to MH i2c: E2 02 01 A2 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 71 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 82 02 00 35 04 06 00 38 00 00 A5 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]wFMCommunicate request_size=10 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 0D 02 02 05 19 AA D7 58 96 [09:48:33]Write to MH i2c: E2 0D 00 A3 03 80 0D 02 02 05 00 19 AA D7 58 96 00 00 B2 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [09:48:33]RAPDU: 90 00 [09:48:33]wFMCommunicate OK [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 0D 03 02 [09:48:33]Write to MH i2c: E2 08 00 A4 03 80 0D 03 02 00 00 00 00 22 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 0B 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 0B 00 A4 03 00 D5 BD 7A 2A 05 82 80 2A 90 00 8A [09:48:33]RAPDU: D5 BD 7A 2A 05 82 80 2A 90 00 [09:48:33]wFMCommunicate OK [09:48:33]SAM_PROTO_SignData done [09:48:33]FM_MakeSignedData done [09:48:33]CreateOFDProtocolMessage [09:48:33]wFMCommunicate request_size=4 [09:48:33]MH_SAM_APDU [09:48:33]CAPDU: 80 11 00 00 [09:48:33]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:33]Read from MH i2c: E2 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 17 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [09:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:48:33]wFMCommunicate OK [09:48:33]CreateOFDProtocolMessage done [09:48:33]OFDSenderStorePacket 164507 [09:48:33]StoreOFDPacket docnum=164507 [09:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B D1 07 01 94 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 71 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 82 02 00 35 04 06 00 38 19 AA D7 58 96 D5 BD 7A 2A 05 82 80 2A [09:48:33]CheckFolder [09:48:33]dirname=/storage/ofd_packets [09:48:33]CheckFolder done [09:48:33]ProducePacketName [09:48:33]name=ofd_packets/00164507 [09:48:33]NVStorageSaveData ofd_packets/00164507 [09:48:33]File name is /storage/ofd_packets/00164507 [09:48:33]Write 301 bytes [09:48:33]NVStorageSaveData done [09:48:33]OFDSenderStorePacket done [09:48:33]KKMCreateOFDPacket done [09:48:33]NVStorageSaveData kkm_last_timestamp [09:48:33]File name is /storage/kkm_last_timestamp [09:48:33]Write 4 bytes [09:48:33]NVStorageSaveData done [09:48:33]ExternCall_PrintAddStr [09:48:33]wPrintStart [09:48:33]Write to MH i2c: 01 00 00 A6 03 A9 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 07 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 FF 0F BE [09:48:33]RasterBufferAndPrint [09:48:33]line Счет N : (1)458595 [09:48:33]line ИНН: 02508201610067 [09:48:33]line Контрольно-Кассовый Чек [09:48:33]line ПРОДАЖА [09:48:33]line ТРК (МРК, ГНК) : 12 [09:48:33]line Товар: 2710124130 [09:48:33]line Аи-92-К-5 [09:48:33]line 7.600 * 65.80 [09:48:33]line = 500.08 [09:48:33]line НДС 12% НСП 1% [09:48:33]line > о реализуемом товаре [09:48:33]line ОКРУГЛЕНИЕ: -0.08 [09:48:33]line ИТОГО: 500.00 [09:48:33]line Внесено: 500.00 [09:48:33]line СДАЧА: 0.00 [09:48:33]line НСП 1% : 4.42 [09:48:33]line НДС 12% : 53.11 [09:48:33]line Наличными: 500.00 [09:48:33]line Безнал.: 0.00 [09:48:33]line Место: АЗС № 72 "Партнер Нефть" [09:48:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:48:33]line СНО: Общий режим [09:48:33]line Чек 67 13.07.2024 09:48 [09:48:33]line Смена: 446 ФФД: 1.0 [09:48:33]line ЗНМ: 0300000160 [09:48:33]line РНМ: 0000000000090829 [09:48:33]line Версия ККМ: 001 [09:48:33]line ФМ: 0000000000874718 [09:48:33]line ФД: 164507 [09:48:33]line ФПД: 61682891577494 [09:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164507&fm=61682891577494&tin=02508201610067®Number=0000000000090829&sum=50000 [09:48:34]written 0, free lines is 4095 [09:48:34]OFD Sender: Processing packet 164507 [packets to send 104, broken 103] [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00164507 [09:48:34]OFD Sender: To server: pG, [09:48:34]CommunicateWithHost lk.salyk.kg:30040 [09:48:34]ConnectInit lk.salyk.kg [09:48:34]Connected sock=10 [09:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B D1 07 01 94 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 71 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 82 02 00 35 04 06 00 38 19 AA D7 58 96 D5 BD 7A 2A 05 82 80 2A [09:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 1E 47 00 08 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 34 37 31 38 10 04 04 00 9B 82 02 00 F4 03 04 00 02 F4 91 66 B6 04 01 00 00 3B 47 68 9E 2B CA 38 FC [09:48:34]CommunicateWithHost err = 0 [09:48:34]CheckOFDResponse [09:48:34]1017 (14) - 77093643461234 [09:48:34]1041 (16) - 0000000000874718 [09:48:34]1040 (4) - 164507 [09:48:34]1012 (4) - 13.07.2024 03:26 [09:48:34]1206 (1) - 0 [09:48:34]OFD Sender: Remove packet 164507 [09:48:34]ProducePacketName [09:48:34]name=ofd_packets/00164507 [09:48:34]NVStorageDeleteData [09:48:34]Write to MH i2c: 01 00 00 D0 03 D3 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 F6 0C DC [09:48:34]RasterBufferAndPrint [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]line [09:48:34]written 0, free lines is 3324 [09:48:34]MH_Cut [09:48:34]Write to MH i2c: D1 01 00 D7 03 01 AC [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 01 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: D1 01 00 D7 03 00 AB [09:48:34]Write to MH i2c: 01 00 00 D8 03 DB [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]OFD Sender: No OFD packet to send [09:48:35]*** Cut start [09:48:35]*** Partial cut [09:48:35]*** CUTSNS_PIN = 1 [09:48:35]*** CUTSNS_PIN = 0 [09:48:35]*** Brake cut motor [09:48:35]Read from MH i2c: 01 [09:48:35]MH_I2C_Read... [09:48:35]*** Stop cut motor [09:48:35]*** Cut end [09:48:35]Read from MH i2c: 01 07 00 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [09:48:35]process_action close_receipt done [09:48:35]requested_data is exist [09:48:35]produce_requested_data [09:48:35]requested_item fm.sn is exist - process it [09:48:35]wFMCommunicate request_size=4 [09:48:35]MH_SAM_APDU [09:48:35]CAPDU: 80 11 00 00 [09:48:35]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [09:48:35]Write i2c OK [09:48:35]MH_I2C_Read... [09:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:35]Read from MH i2c: E2 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: E2 17 00 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [09:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:48:35]wFMCommunicate OK [09:48:35]requested_item fd.num is exist - process it [09:48:35]SAM_PROTO_GetFieldsCounters [09:48:35]wFMCommunicate request_size=4 [09:48:35]MH_SAM_APDU [09:48:35]CAPDU: 80 13 00 00 [09:48:35]Write to MH i2c: E2 08 00 DA 03 80 13 00 00 00 00 00 00 59 [09:48:35]Write i2c OK [09:48:35]MH_I2C_Read... [09:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:35]Read from MH i2c: E2 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: E2 62 00 [09:48:35]MH_I2C_Read... [09:48:35]Read from MH i2c: E2 62 00 DA 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 82 02 00 0E 04 04 00 BE 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 27 [09:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 82 02 00 0E 04 04 00 BE 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 [09:48:35]wFMCommunicate OK [09:48:35]SAM_PROTO_GetFieldsCounters done [09:48:35]requested_item shift.num is exist - process it [09:48:35]requested_item shift.opened is exist - process it [09:48:35]req_shift_opened [09:48:35]FM_GetShiftState [09:48:35]SAM_PROTO_GetShiftState [09:48:35]wFMCommunicate request_size=4 [09:48:35]MH_SAM_APDU [09:48:35]CAPDU: 80 13 01 00 [09:48:35]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3C [09:48:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:48:36]wFMCommunicate OK [09:48:36]SAM_PROTO_GetShiftState done [09:48:36]FM_GetShiftState done [09:48:36]req_shift_opened done [09:48:36]requested_item shift.open_date is exist - process it [09:48:36]req_shift_open_date [09:48:36]req_shift_open_date done [09:48:36]produce_requested_data done [09:48:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164507,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:48:36]process_action_free close_receipt [09:48:36]json_value_free [09:48:36]json_value_free done [09:48:36]process_json_proto returns [09:48:36]Send response to host [09:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164507,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:48:36]free response buf [09:48:36]execute_script done [09:48:36]execute_script returns [09:48:36]free content buf [09:48:36]Sock 7.Close socket [09:48:36]Sock 7.Thread stoped [09:48:36]accept exits with 9 [09:48:36]New connection [09:48:36]New thread 3067149668 created [09:48:36]Thread 3067293028 joined [09:48:36]Waiting for new connection... [09:48:36] Sock 9.Parse request [09:48:36]Sock 9.Check first char [09:48:36]Sock 9.First char is OK [09:48:36]request: POST /json_proto HTTP/1.0 [09:48:36]Method: POST [09:48:36]URL: /json_proto [09:48:36]Method is POST - this is cgi request [09:48:36]url: /json_proto [09:48:36]query_string will be loaded in cgi processing [09:48:36]execute_cgi json_proto POST (null) [09:48:36]execute_cgi path=json_proto method=POST [09:48:36]POST find Content-Length [09:48:36]Host: 172.17.56.4:8080 [09:48:36]Content-Length: 674 [09:48:36]Content-Type: application/json [09:48:36] [09:48:36]POST finish read [09:48:36]Found Content-Length = 674 [09:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "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" ] } } [09:48:36]execute_script... [09:48:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "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" ] } } [09:48:36]POST & json_proto [09:48:36]process_json_proto [09:48:36]json parsed OK: [09:48:36]protocol is kg_v1.0 [09:48:36]action value=close_receipt [09:48:36]process_action close_receipt [09:48:36]cmd_close_receipt [09:48:36]MH_GetDate [09:48:36]Write to MH i2c: F0 00 00 DC 03 CE [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 09 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 09 00 DC 03 00 75 4D 92 66 C9 DC B2 64 4C [09:48:36]GetLastDocTimeStamp 1720864113 [09:48:36]current date 1720864117 [09:48:36]FM_GetShiftState [09:48:36]SAM_PROTO_GetShiftState [09:48:36]wFMCommunicate request_size=4 [09:48:36]MH_SAM_APDU [09:48:36]CAPDU: 80 13 01 00 [09:48:36]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3E [09:48:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:48:36]wFMCommunicate OK [09:48:36]SAM_PROTO_GetShiftState done [09:48:36]FM_GetShiftState done [09:48:36]opened in 1720831249 [09:48:36]opened+sec_in_day 1720917649 [09:48:36]quantity*price = 65069 [09:48:36]sum+1 = 65071 [09:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 68 13.07.2024 09:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164508 ФПД: 159137504804124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164508&fm=159137504804124&tin=02508201610067®Number=0000000000090829&sum=65000 [09:48:37]StoreToDocumentArchive [09:48:37]shift 446 fd 164508 [09:48:37]save to /storage/0446/doc_00164508 [09:48:37]save last doc name /storage/0446/doc_00164508 to /storage/kkm_last_doc_name [09:48:37]save OK [09:48:37]Clear old archive folders... [09:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:37]tlvbuf is 01442660 [09:48:37]SAM_PROTO_ClearQueue [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 09 00 00 [09:48:37]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]SAM_PROTO_ClearQueue done [09:48:38]KKMCreateOFDPacket [09:48:38]OFDProtocolAddRootSTLVToBuf [09:48:38]FM_MakeSignedData [09:48:38]FM_MakeSignedData [09:48:38]SAM_PROTO_SignData [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 01 02 [09:48:38]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]wFMCommunicate request_size=255 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 82 02 00 35 04 06 00 90 BC 16 71 [09:48:38]Write to MH i2c: E2 02 01 EC 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 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 82 02 00 35 04 06 00 90 BC 16 71 00 00 79 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]wFMCommunicate request_size=7 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 02 02 02 BD 1C [09:48:38]Write to MH i2c: E2 0A 00 ED 03 80 0D 02 02 02 00 BD 1C 00 00 47 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 03 02 [09:48:38]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0B 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 0B 00 EE 03 00 58 D5 43 E8 EF 16 66 FC 90 00 2C [09:48:38]RAPDU: 58 D5 43 E8 EF 16 66 FC 90 00 [09:48:38]wFMCommunicate OK [09:48:38]SAM_PROTO_SignData done [09:48:38]FM_MakeSignedData done [09:48:38]CreateOFDProtocolMessage [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 11 00 00 [09:48:38]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 17 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [09:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:48:38]wFMCommunicate OK [09:48:38]CreateOFDProtocolMessage done [09:48:38]OFDSenderStorePacket 164508 [09:48:38]StoreOFDPacket docnum=164508 [09:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4C DC 04 01 7A 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 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 82 02 00 35 04 06 00 90 BC 16 71 BD 1C 58 D5 43 E8 EF 16 66 FC [09:48:38]CheckFolder [09:48:38]dirname=/storage/ofd_packets [09:48:38]CheckFolder done [09:48:38]ProducePacketName [09:48:38]name=ofd_packets/00164508 [09:48:38]NVStorageSaveData ofd_packets/00164508 [09:48:38]File name is /storage/ofd_packets/00164508 [09:48:38]Write 298 bytes [09:48:38]NVStorageSaveData done [09:48:38]OFDSenderStorePacket done [09:48:38]KKMCreateOFDPacket done [09:48:38]NVStorageSaveData kkm_last_timestamp [09:48:38]File name is /storage/kkm_last_timestamp [09:48:38]Write 4 bytes [09:48:38]NVStorageSaveData done [09:48:38]ExternCall_PrintAddStr [09:48:38]wPrintStart [09:48:38]Write to MH i2c: 01 00 00 F0 03 F3 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [09:48:38]RasterBufferAndPrint [09:48:38]line Счет N : (1)458596 [09:48:38]line ИНН: 02508201610067 [09:48:38]line Контрольно-Кассовый Чек [09:48:38]line ПРОДАЖА [09:48:38]line ТРК (МРК, ГНК) : 21 [09:48:38]line Товар: 2710194210 [09:48:38]line ДТ-К-5 [09:48:38]line 9.050 * 71.90 [09:48:38]line = 650.70 [09:48:38]line НДС 12% НСП 1% [09:48:38]line > о реализуемом товаре [09:48:38]line ОКРУГЛЕНИЕ: -0.70 [09:48:38]line ИТОГО: 650.00 [09:48:38]line Внесено: 650.00 [09:48:38]line СДАЧА: 0.00 [09:48:38]line НСП 1% : 5.76 [09:48:38]line НДС 12% : 69.10 [09:48:38]line Наличными: 650.00 [09:48:38]line Безнал.: 0.00 [09:48:38]line Место: АЗС № 72 "Партнер Нефть" [09:48:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:48:38]line СНО: Общий режим [09:48:38]line Чек 68 13.07.2024 09:48 [09:48:38]line Смена: 446 ФФД: 1.0 [09:48:38]line ЗНМ: 0300000160 [09:48:38]line РНМ: 0000000000090829 [09:48:38]line Версия ККМ: 001 [09:48:38]line ФМ: 0000000000874718 [09:48:38]line ФД: 164508 [09:48:38]line ФПД: 159137504804124 [09:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164508&fm=159137504804124&tin=02508201610067®Number=0000000000090829&sum=65000 [09:48:38]OFD Sender: Processing packet 164508 [packets to send 104, broken 103] [09:48:38]ProducePacketName [09:48:38]name=ofd_packets/00164508 [09:48:38]OFD Sender: To server: pG, [09:48:38]CommunicateWithHost lk.salyk.kg:30040 [09:48:38]ConnectInit lk.salyk.kg [09:48:38]written 0, free lines is 4095 [09:48:38]Connected sock=10 [09:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4C DC 04 01 7A 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 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 75 4D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 82 02 00 35 04 06 00 90 BC 16 71 BD 1C 58 D5 43 E8 EF 16 66 FC [09:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 52 7A 47 00 48 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 34 37 31 38 10 04 04 00 9C 82 02 00 F4 03 04 00 07 F4 91 66 B6 04 01 00 00 67 55 7D F1 BA 4F 82 3B [09:48:39]CommunicateWithHost err = 0 [09:48:39]CheckOFDResponse [09:48:39]1017 (14) - 77093643461234 [09:48:39]1041 (16) - 0000000000874718 [09:48:39]1040 (4) - 164508 [09:48:39]1012 (4) - 13.07.2024 03:27 [09:48:39]1206 (1) - 0 [09:48:39]OFD Sender: Remove packet 164508 [09:48:39]ProducePacketName [09:48:39]name=ofd_packets/00164508 [09:48:39]NVStorageDeleteData [09:48:39]Write to MH i2c: 01 00 00 1A 04 1E [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 01 0D 33 [09:48:39]RasterBufferAndPrint [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]line [09:48:39]written 0, free lines is 3341 [09:48:39]MH_Cut [09:48:39]Write to MH i2c: D1 01 00 21 04 01 F7 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 01 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: D1 01 00 21 04 00 F6 [09:48:39]Write to MH i2c: 01 00 00 22 04 26 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]OFD Sender: No OFD packet to send [09:48:40]*** Cut start [09:48:40]*** Partial cut [09:48:40]*** CUTSNS_PIN = 1 [09:48:40]*** CUTSNS_PIN = 0 [09:48:40]*** Brake cut motor [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]*** Stop cut motor [09:48:40]*** Cut end [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [09:48:40]process_action close_receipt done [09:48:40]requested_data is exist [09:48:40]produce_requested_data [09:48:40]requested_item fm.sn is exist - process it [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 11 00 00 [09:48:40]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [09:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:48:40]wFMCommunicate OK [09:48:40]requested_item fd.num is exist - process it [09:48:40]SAM_PROTO_GetFieldsCounters [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 13 00 00 [09:48:40]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 62 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 62 00 24 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 82 02 00 0E 04 04 00 BE 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 76 [09:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 82 02 00 0E 04 04 00 BE 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 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_GetFieldsCounters done [09:48:40]requested_item shift.num is exist - process it [09:48:40]requested_item shift.opened is exist - process it [09:48:40]req_shift_opened [09:48:40]FM_GetShiftState [09:48:40]SAM_PROTO_GetShiftState [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 13 01 00 [09:48:40]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 87 [09:48:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_GetShiftState done [09:48:40]FM_GetShiftState done [09:48:40]req_shift_opened done [09:48:40]requested_item shift.open_date is exist - process it [09:48:40]req_shift_open_date [09:48:40]req_shift_open_date done [09:48:40]produce_requested_data done [09:48:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164508,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:48:40]process_action_free close_receipt [09:48:40]json_value_free [09:48:40]json_value_free done [09:48:40]process_json_proto returns [09:48:40]Send response to host [09:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164508,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:48:40]free response buf [09:48:40]execute_script done [09:48:40]execute_script returns [09:48:40]free content buf [09:48:40]Sock 9.Close socket [09:48:40]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]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:18]accept exits with 7 [09:53:18]New connection [09:53:18]New thread 3067293028 created [09:53:18]Thread 3067149668 joined [09:53:18]Waiting for new connection... [09:53:18] Sock 7.Parse request [09:53:18]Sock 7.Check first char [09:53:18]Sock 7.First char is OK [09:53:18]request: POST /json_proto HTTP/1.0 [09:53:18]Method: POST [09:53:18]URL: /json_proto [09:53:18]Method is POST - this is cgi request [09:53:18]url: /json_proto [09:53:18]query_string will be loaded in cgi processing [09:53:18]execute_cgi json_proto POST (null) [09:53:18]execute_cgi path=json_proto method=POST [09:53:18]POST find Content-Length [09:53:18]Host: 172.17.56.4:8080 [09:53:18]Content-Length: 677 [09:53:18]Content-Type: application/json [09:53:18] [09:53:18]POST finish read [09:53:18]Found Content-Length = 677 [09:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:18]execute_script... [09:53:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:18]POST & json_proto [09:53:18]process_json_proto [09:53:18]json parsed OK: [09:53:18]protocol is kg_v1.0 [09:53:18]action value=close_receipt [09:53:18]process_action close_receipt [09:53:18]cmd_close_receipt [09:53:18]MH_GetDate [09:53:18]Write to MH i2c: F0 00 00 26 04 19 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 09 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 09 00 26 04 00 8F 4E 92 66 C9 DC B2 64 B2 [09:53:18]GetLastDocTimeStamp 1720864117 [09:53:18]current date 1720864399 [09:53:18]FM_GetShiftState [09:53:18]SAM_PROTO_GetShiftState [09:53:18]wFMCommunicate request_size=4 [09:53:18]MH_SAM_APDU [09:53:18]CAPDU: 80 13 01 00 [09:53:18]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:18]Read from MH i2c: E2 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 89 [09:53:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:53:18]wFMCommunicate OK [09:53:18]SAM_PROTO_GetShiftState done [09:53:18]FM_GetShiftState done [09:53:18]opened in 1720831249 [09:53:18]opened+sec_in_day 1720917649 [09:53:18]quantity*price = 50008 [09:53:18]sum+1 = 50009 [09:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 69 13.07.2024 09:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164509 ФПД: 92547029263094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164509&fm=92547029263094&tin=02508201610067®Number=0000000000090829&sum=50000 [09:53:19]StoreToDocumentArchive [09:53:19]shift 446 fd 164509 [09:53:19]save to /storage/0446/doc_00164509 [09:53:19]save last doc name /storage/0446/doc_00164509 to /storage/kkm_last_doc_name [09:53:19]save OK [09:53:19]Clear old archive folders... [09:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:19]tlvbuf is 0144DA10 [09:53:19]SAM_PROTO_ClearQueue [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 09 00 00 [09:53:19]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]SAM_PROTO_ClearQueue done [09:53:19]KKMCreateOFDPacket [09:53:19]OFDProtocolAddRootSTLVToBuf [09:53:19]FM_MakeSignedData [09:53:19]FM_MakeSignedData [09:53:19]SAM_PROTO_SignData [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 0D 01 02 [09:53:19]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]wFMCommunicate request_size=255 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 45 00 00 00 F4 03 04 00 8F 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 82 02 00 35 04 06 00 54 [09:53:19]Write to MH i2c: E2 02 01 36 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 45 00 00 00 F4 03 04 00 8F 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 82 02 00 35 04 06 00 54 00 00 79 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]wFMCommunicate request_size=10 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 02 02 05 2B C8 CD E2 F6 [09:53:20]Write to MH i2c: E2 0D 00 37 04 80 0D 02 02 05 00 2B C8 CD E2 F6 00 00 57 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 03 00 [09:53:20]MH_I2C_Read... [09:53:20]OFD Sender: No OFD packet to send [09:53:20]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [09:53:20]RAPDU: 90 00 [09:53:20]wFMCommunicate OK [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 0D 03 02 [09:53:20]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0B 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0B 00 38 04 00 51 CE 77 54 41 65 32 61 90 00 DB [09:53:20]RAPDU: 51 CE 77 54 41 65 32 61 90 00 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_SignData done [09:53:20]FM_MakeSignedData done [09:53:20]CreateOFDProtocolMessage [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 11 00 00 [09:53:20]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [09:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:20]wFMCommunicate OK [09:53:20]CreateOFDProtocolMessage done [09:53:20]OFDSenderStorePacket 164509 [09:53:20]StoreOFDPacket docnum=164509 [09:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 77 07 01 C4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 45 00 00 00 F4 03 04 00 8F 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 82 02 00 35 04 06 00 54 2B C8 CD E2 F6 51 CE 77 54 41 65 32 61 [09:53:20]CheckFolder [09:53:20]dirname=/storage/ofd_packets [09:53:20]CheckFolder done [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00164509 [09:53:20]NVStorageSaveData ofd_packets/00164509 [09:53:20]File name is /storage/ofd_packets/00164509 [09:53:20]Write 301 bytes [09:53:20]NVStorageSaveData done [09:53:20]OFDSenderStorePacket done [09:53:20]KKMCreateOFDPacket done [09:53:20]NVStorageSaveData kkm_last_timestamp [09:53:20]File name is /storage/kkm_last_timestamp [09:53:20]Write 4 bytes [09:53:20]NVStorageSaveData done [09:53:20]ExternCall_PrintAddStr [09:53:20]wPrintStart [09:53:20]Write to MH i2c: 01 00 00 3A 04 3E [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 [09:53:20]MH_I2C_Read... [09:53:20]OFD Sender: Processing packet 164509 [packets to send 104, broken 103] [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00164509 [09:53:20]OFD Sender: To server: pG, [09:53:20]CommunicateWithHost lk.salyk.kg:30040 [09:53:20]ConnectInit lk.salyk.kg [09:53:20]Read from MH i2c: 01 07 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [09:53:20]RasterBufferAndPrint [09:53:20]line Счет N : (1)458597 [09:53:20]line ИНН: 02508201610067 [09:53:20]line Контрольно-Кассовый Чек [09:53:20]line ПРОДАЖА [09:53:20]line ТРК (МРК, ГНК) : 12 [09:53:20]line Товар: 2710124130 [09:53:20]line Аи-92-К-5 [09:53:20]line 7.600 * 65.80 [09:53:20]line = 500.08 [09:53:20]line НДС 12% НСП 1% [09:53:20]line > о реализуемом товаре [09:53:20]line ОКРУГЛЕНИЕ: -0.08 [09:53:20]line ИТОГО: 500.00 [09:53:20]line Внесено: 500.00 [09:53:20]line СДАЧА: 0.00 [09:53:20]line НСП 1% : 4.42 [09:53:20]line НДС 12% : 53.11 [09:53:20]line Наличными: 500.00 [09:53:20]line Безнал.: 0.00 [09:53:20]line Место: АЗС № 72 "Партнер Нефть" [09:53:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:53:20]line СНО: Общий режим [09:53:20]line Чек 69 13.07.2024 09:53 [09:53:20]line Смена: 446 ФФД: 1.0 [09:53:20]line ЗНМ: 0300000160 [09:53:20]line РНМ: 0000000000090829 [09:53:20]line Версия ККМ: 001 [09:53:20]line ФМ: 0000000000874718 [09:53:20]line ФД: 164509 [09:53:20]line ФПД: 92547029263094 [09:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164509&fm=92547029263094&tin=02508201610067®Number=0000000000090829&sum=50000 [09:53:20]Connected sock=10 [09:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 77 07 01 C4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 45 00 00 00 F4 03 04 00 8F 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 82 02 00 35 04 06 00 54 2B C8 CD E2 F6 51 CE 77 54 41 65 32 61 [09:53:20]written 0, free lines is 4095 [09:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 4F 47 00 AD C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 82 02 00 F4 03 04 00 20 F5 91 66 B6 04 01 00 00 B6 F3 E7 48 53 DB 03 51 [09:53:20]CommunicateWithHost err = 0 [09:53:20]CheckOFDResponse [09:53:20]1017 (14) - 77093643461234 [09:53:20]1041 (16) - 0000000000874718 [09:53:20]1040 (4) - 164509 [09:53:20]1012 (4) - 13.07.2024 03:31 [09:53:20]1206 (1) - 0 [09:53:20]OFD Sender: Remove packet 164509 [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00164509 [09:53:20]NVStorageDeleteData [09:53:20]Write to MH i2c: 01 00 00 64 04 68 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 FD 0C 78 [09:53:20]RasterBufferAndPrint [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]written 0, free lines is 3331 [09:53:20]MH_Cut [09:53:20]Write to MH i2c: D1 01 00 6B 04 01 41 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 01 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 01 00 6B 04 00 40 [09:53:20]Write to MH i2c: 01 00 00 6C 04 70 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:21]OFD Sender: No OFD packet to send [09:53:21]*** Cut start [09:53:21]*** Partial cut [09:53:21]*** CUTSNS_PIN = 1 [09:53:21]*** CUTSNS_PIN = 0 [09:53:21]*** Brake cut motor [09:53:22]Read from MH i2c: 01 [09:53:22]MH_I2C_Read... [09:53:22]*** Stop cut motor [09:53:22]*** Cut end [09:53:22]Read from MH i2c: 01 07 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [09:53:22]process_action close_receipt done [09:53:22]requested_data is exist [09:53:22]produce_requested_data [09:53:22]requested_item fm.sn is exist - process it [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 11 00 00 [09:53:22]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [09:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:22]wFMCommunicate OK [09:53:22]requested_item fd.num is exist - process it [09:53:22]SAM_PROTO_GetFieldsCounters [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 00 00 [09:53:22]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 62 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 62 00 6E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 82 02 00 0E 04 04 00 BE 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 C4 [09:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 82 02 00 0E 04 04 00 BE 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 [09:53:22]wFMCommunicate OK [09:53:22]SAM_PROTO_GetFieldsCounters done [09:53:22]requested_item shift.num is exist - process it [09:53:22]requested_item shift.opened is exist - process it [09:53:22]req_shift_opened [09:53:22]FM_GetShiftState [09:53:22]SAM_PROTO_GetShiftState [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 01 00 [09:53:22]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D1 [09:53:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:53:22]wFMCommunicate OK [09:53:22]SAM_PROTO_GetShiftState done [09:53:22]FM_GetShiftState done [09:53:22]req_shift_opened done [09:53:22]requested_item shift.open_date is exist - process it [09:53:22]req_shift_open_date [09:53:22]req_shift_open_date done [09:53:22]produce_requested_data done [09:53:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164509,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:53:22]process_action_free close_receipt [09:53:22]json_value_free [09:53:22]json_value_free done [09:53:22]process_json_proto returns [09:53:22]Send response to host [09:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164509,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:53:22]free response buf [09:53:22]execute_script done [09:53:22]execute_script returns [09:53:22]free content buf [09:53:22]Sock 7.Close socket [09:53:22]Sock 7.Thread stoped [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:47]accept exits with 9 [09:53:47]New connection [09:53:47]New thread 3067149668 created [09:53:47]Thread 3067293028 joined [09:53:47]Waiting for new connection... [09:53:47] Sock 9.Parse request [09:53:47]Sock 9.Check first char [09:53:47]Sock 9.First char is OK [09:53:47]request: POST /json_proto HTTP/1.0 [09:53:47]Method: POST [09:53:47]URL: /json_proto [09:53:47]Method is POST - this is cgi request [09:53:47]url: /json_proto [09:53:47]query_string will be loaded in cgi processing [09:53:47]execute_cgi json_proto POST (null) [09:53:47]execute_cgi path=json_proto method=POST [09:53:47]POST find Content-Length [09:53:47]Host: 172.17.56.4:8080 [09:53:47]Content-Length: 678 [09:53:47]Content-Type: application/json [09:53:47] [09:53:47]POST finish read [09:53:47]Found Content-Length = 678 [09:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [09:53:47]execute_script... [09:53: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)458598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [09:53:47]POST & json_proto [09:53:47]process_json_proto [09:53:47]json parsed OK: [09:53:47]protocol is kg_v1.0 [09:53:47]action value=close_receipt [09:53:47]process_action close_receipt [09:53:47]cmd_close_receipt [09:53:47]MH_GetDate [09:53:47]Write to MH i2c: F0 00 00 70 04 63 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: F0 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: F0 09 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: F0 09 00 70 04 00 AC 4E 92 66 C9 DC B2 64 19 [09:53:47]GetLastDocTimeStamp 1720864399 [09:53:47]current date 1720864428 [09:53:47]FM_GetShiftState [09:53:47]SAM_PROTO_GetShiftState [09:53:47]wFMCommunicate request_size=4 [09:53:47]MH_SAM_APDU [09:53:47]CAPDU: 80 13 01 00 [09:53:47]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [09:53:47]Write i2c OK [09:53:47]MH_I2C_Read... [09:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:47]Read from MH i2c: E2 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0E 00 [09:53:47]MH_I2C_Read... [09:53:47]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D3 [09:53:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:53:47]wFMCommunicate OK [09:53:47]SAM_PROTO_GetShiftState done [09:53:47]FM_GetShiftState done [09:53:47]opened in 1720831249 [09:53:47]opened+sec_in_day 1720917649 [09:53:47]quantity*price = 80012 [09:53:47]sum+1 = 80014 [09:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 70 13.07.2024 09:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164510 ФПД: 209746601399658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095348&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164510&fm=209746601399658&tin=02508201610067®Number=0000000000090829&sum=80000 [09:53:48]StoreToDocumentArchive [09:53:48]shift 446 fd 164510 [09:53:48]save to /storage/0446/doc_00164510 [09:53:48]save last doc name /storage/0446/doc_00164510 to /storage/kkm_last_doc_name [09:53:48]save OK [09:53:48]Clear old archive folders... [09:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:48]tlvbuf is 0142B320 [09:53:48]SAM_PROTO_ClearQueue [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 09 00 00 [09:53:48]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_ClearQueue done [09:53:48]KKMCreateOFDPacket [09:53:48]OFDProtocolAddRootSTLVToBuf [09:53:48]FM_MakeSignedData [09:53:48]FM_MakeSignedData [09:53:48]SAM_PROTO_SignData [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 01 02 [09:53:48]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=255 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 46 00 00 00 F4 03 04 00 AC 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 82 02 00 35 04 06 00 BE [09:53:48]Write to MH i2c: E2 02 01 80 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 46 00 00 00 F4 03 04 00 AC 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 82 02 00 35 04 06 00 BE 00 00 AF [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [09:53:48]RAPDU: 90 00 [09:53:48]wFMCommunicate OK [09:53:48]wFMCommunicate request_size=10 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 0D 02 02 05 C3 6F AB 55 6A [09:53:48]Write to MH i2c: E2 0D 00 81 04 80 0D 02 02 05 00 C3 6F AB 55 6A 00 00 A5 [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [09:53:49]RAPDU: 90 00 [09:53:49]wFMCommunicate OK [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 0D 03 02 [09:53:49]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0B 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0B 00 82 04 00 A8 77 14 77 B0 65 F2 41 90 00 F4 [09:53:49]RAPDU: A8 77 14 77 B0 65 F2 41 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_SignData done [09:53:49]FM_MakeSignedData done [09:53:49]CreateOFDProtocolMessage [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 11 00 00 [09:53:49]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [09:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:49]wFMCommunicate OK [09:53:49]CreateOFDProtocolMessage done [09:53:49]OFDSenderStorePacket 164510 [09:53:49]StoreOFDPacket docnum=164510 [09:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 CE 07 01 4B 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 46 00 00 00 F4 03 04 00 AC 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 82 02 00 35 04 06 00 BE C3 6F AB 55 6A A8 77 14 77 B0 65 F2 41 [09:53:49]CheckFolder [09:53:49]dirname=/storage/ofd_packets [09:53:49]CheckFolder done [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00164510 [09:53:49]NVStorageSaveData ofd_packets/00164510 [09:53:49]File name is /storage/ofd_packets/00164510 [09:53:49]Write 301 bytes [09:53:49]NVStorageSaveData done [09:53:49]OFDSenderStorePacket done [09:53:49]KKMCreateOFDPacket done [09:53:49]NVStorageSaveData kkm_last_timestamp [09:53:49]File name is /storage/kkm_last_timestamp [09:53:49]Write 4 bytes [09:53:49]NVStorageSaveData done [09:53:49]OFD Sender: Processing packet 164510 [packets to send 104, broken 103] [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00164510 [09:53:49]OFD Sender: To server: pG, [09:53:49]CommunicateWithHost lk.salyk.kg:30040 [09:53:49]ConnectInit lk.salyk.kg [09:53:49]ExternCall_PrintAddStr [09:53:49]wPrintStart [09:53:49]Write to MH i2c: 01 00 00 84 04 88 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [09:53:49]RasterBufferAndPrint [09:53:49]line Счет N : (1)458598 [09:53:49]line ИНН: 02508201610067 [09:53:49]line Контрольно-Кассовый Чек [09:53:49]line ПРОДАЖА [09:53:49]line ТРК (МРК, ГНК) : 22 [09:53:49]line Товар: 2710124130 [09:53:49]line Аи-92-К-5 [09:53:49]line 12.160 * 65.80 [09:53:49]line = 800.13 [09:53:49]line НДС 12% НСП 1% [09:53:49]line > о реализуемом товаре [09:53:49]line ОКРУГЛЕНИЕ: -0.13 [09:53:49]line ИТОГО: 800.00 [09:53:49]line Внесено: 800.00 [09:53:49]line СДАЧА: 0.00 [09:53:49]line НСП 1% : 7.08 [09:53:49]line НДС 12% : 84.97 [09:53:49]line Наличными: 800.00 [09:53:49]line Безнал.: 0.00 [09:53:49]line Место: АЗС № 72 "Партнер Нефть" [09:53:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:53:49]line СНО: Общий режим [09:53:49]line Чек 70 13.07.2024 09:53 [09:53:49]line Смена: 446 ФФД: 1.0 [09:53:49]line ЗНМ: 0300000160 [09:53:49]line РНМ: 0000000000090829 [09:53:49]line Версия ККМ: 001 [09:53:49]line ФМ: 0000000000874718 [09:53:49]line ФД: 164510 [09:53:49]line ФПД: 209746601399658 [09:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095348&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164510&fm=209746601399658&tin=02508201610067®Number=0000000000090829&sum=80000 [09:53:49]Connected sock=11 [09:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 CE 07 01 4B 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 46 00 00 00 F4 03 04 00 AC 4E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 82 02 00 35 04 06 00 BE C3 6F AB 55 6A A8 77 14 77 B0 65 F2 41 [09:53:49]written 0, free lines is 4095 [09:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 78 CC 47 00 DA 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 82 02 00 F4 03 04 00 3D F5 91 66 B6 04 01 00 00 A0 C2 55 CD 2A 4B 18 86 [09:53:49]CommunicateWithHost err = 0 [09:53:49]CheckOFDResponse [09:53:49]1017 (14) - 77093643461234 [09:53:49]1041 (16) - 0000000000874718 [09:53:49]1040 (4) - 164510 [09:53:49]1012 (4) - 13.07.2024 03:32 [09:53:49]1206 (1) - 0 [09:53:49]OFD Sender: Remove packet 164510 [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00164510 [09:53:49]NVStorageDeleteData [09:53:49]Write to MH i2c: 01 00 00 AE 04 B2 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 FD 0C C2 [09:53:49]RasterBufferAndPrint [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]line [09:53:49]written 0, free lines is 3331 [09:53:49]MH_Cut [09:53:49]Write to MH i2c: D1 01 00 B5 04 01 8B [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 01 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: D1 01 00 B5 04 00 8A [09:53:49]Write to MH i2c: 01 00 00 B6 04 BA [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:50]OFD Sender: No OFD packet to send [09:53:50]*** Cut start [09:53:50]*** Partial cut [09:53:50]*** CUTSNS_PIN = 1 [09:53:50]*** CUTSNS_PIN = 0 [09:53:50]*** Brake cut motor [09:53:51]Read from MH i2c: 01 [09:53:51]MH_I2C_Read... [09:53:51]*** Stop cut motor [09:53:51]*** Cut end [09:53:51]Read from MH i2c: 01 07 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [09:53:51]process_action close_receipt done [09:53:51]requested_data is exist [09:53:51]produce_requested_data [09:53:51]requested_item fm.sn is exist - process it [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 11 00 00 [09:53:51]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [09:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:51]wFMCommunicate OK [09:53:51]requested_item fd.num is exist - process it [09:53:51]SAM_PROTO_GetFieldsCounters [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 00 00 [09:53:51]Write to MH i2c: E2 08 00 B8 04 80 13 00 00 00 00 00 00 38 [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 62 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 62 00 B8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 82 02 00 0E 04 04 00 BE 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 [09:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 82 02 00 0E 04 04 00 BE 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 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_GetFieldsCounters done [09:53:51]requested_item shift.num is exist - process it [09:53:51]requested_item shift.opened is exist - process it [09:53:51]req_shift_opened [09:53:51]FM_GetShiftState [09:53:51]SAM_PROTO_GetShiftState [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 13 01 00 [09:53:51]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [09:53:51]Write i2c OK [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 [09:53:51]MH_I2C_Read... [09:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:51]Read from MH i2c: E2 0E 00 [09:53:51]MH_I2C_Read... [09:53:51]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1B [09:53:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:53:51]wFMCommunicate OK [09:53:51]SAM_PROTO_GetShiftState done [09:53:51]FM_GetShiftState done [09:53:51]req_shift_opened done [09:53:51]requested_item shift.open_date is exist - process it [09:53:51]req_shift_open_date [09:53:51]req_shift_open_date done [09:53:51]produce_requested_data done [09:53:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164510,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:53:51]process_action_free close_receipt [09:53:51]json_value_free [09:53:51]json_value_free done [09:53:51]process_json_proto returns [09:53:51]Send response to host [09:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164510,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:53:51]free response buf [09:53:51]execute_script done [09:53:51]execute_script returns [09:53:51]free content buf [09:53:51]Sock 9.Close socket [09:53:51]Sock 9.Thread stoped [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:34]accept exits with 7 [09:55:34]New connection [09:55:34]New thread 3067293028 created [09:55:34]Thread 3067149668 joined [09:55:34]Waiting for new connection... [09:55:34] Sock 7.Parse request [09:55:34]Sock 7.Check first char [09:55:34]Sock 7.First char is OK [09:55:34]request: POST /json_proto HTTP/1.0 [09:55:34]Method: POST [09:55:34]URL: /json_proto [09:55:34]Method is POST - this is cgi request [09:55:34]url: /json_proto [09:55:34]query_string will be loaded in cgi processing [09:55:34]execute_cgi json_proto POST (null) [09:55:34]execute_cgi path=json_proto method=POST [09:55:34]POST find Content-Length [09:55:34]Host: 172.17.56.4:8080 [09:55:34]Content-Length: 677 [09:55:34]Content-Type: application/json [09:55:34] [09:55:34]POST finish read [09:55:34]Found Content-Length = 677 [09:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:34]execute_script... [09:55:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:34]POST & json_proto [09:55:34]process_json_proto [09:55:34]json parsed OK: [09:55:34]protocol is kg_v1.0 [09:55:34]action value=close_receipt [09:55:34]process_action close_receipt [09:55:34]cmd_close_receipt [09:55:34]MH_GetDate [09:55:34]Write to MH i2c: F0 00 00 BA 04 AD [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: F0 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: F0 09 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: F0 09 00 BA 04 00 17 4F 92 66 C9 DC B2 64 CF [09:55:34]GetLastDocTimeStamp 1720864428 [09:55:34]current date 1720864535 [09:55:34]FM_GetShiftState [09:55:34]SAM_PROTO_GetShiftState [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 01 00 [09:55:34]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1D [09:55:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetShiftState done [09:55:34]FM_GetShiftState done [09:55:34]opened in 1720831249 [09:55:34]opened+sec_in_day 1720917649 [09:55:34]quantity*price = 20003 [09:55:34]sum+1 = 20004 [09:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 71 13.07.2024 09:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164511 ФПД: 209556953472091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164511&fm=209556953472091&tin=02508201610067®Number=0000000000090829&sum=20000 [09:55:35]StoreToDocumentArchive [09:55:35]shift 446 fd 164511 [09:55:35]save to /storage/0446/doc_00164511 [09:55:35]save last doc name /storage/0446/doc_00164511 to /storage/kkm_last_doc_name [09:55:35]save OK [09:55:35]Clear old archive folders... [09:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:35]tlvbuf is 01444980 [09:55:35]SAM_PROTO_ClearQueue [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 09 00 00 [09:55:35]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:35]Read from MH i2c: E2 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [09:55:35]RAPDU: 90 00 [09:55:35]wFMCommunicate OK [09:55:35]SAM_PROTO_ClearQueue done [09:55:35]KKMCreateOFDPacket [09:55:35]OFDProtocolAddRootSTLVToBuf [09:55:35]FM_MakeSignedData [09:55:35]FM_MakeSignedData [09:55:35]SAM_PROTO_SignData [09:55:35]wFMCommunicate request_size=4 [09:55:35]MH_SAM_APDU [09:55:35]CAPDU: 80 0D 01 02 [09:55:35]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [09:55:36]RAPDU: 90 00 [09:55:36]wFMCommunicate OK [09:55:36]wFMCommunicate request_size=255 [09:55:36]MH_SAM_APDU [09:55: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 4F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 82 02 00 35 04 06 00 BE [09:55:36]Write to MH i2c: E2 02 01 CA 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 4F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 82 02 00 35 04 06 00 BE 00 00 A5 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [09:55:36]RAPDU: 90 00 [09:55:36]wFMCommunicate OK [09:55:36]wFMCommunicate request_size=10 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 0D 02 02 05 97 47 C5 9C 5B [09:55:36]Write to MH i2c: E2 0D 00 CB 04 80 0D 02 02 05 00 97 47 C5 9C 5B 00 00 ED [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [09:55:36]RAPDU: 90 00 [09:55:36]wFMCommunicate OK [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 0D 03 02 [09:55:36]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0B 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 0B 00 CC 04 00 10 93 DE DF 7B A5 6D 6F 90 00 A8 [09:55:36]RAPDU: 10 93 DE DF 7B A5 6D 6F 90 00 [09:55:36]wFMCommunicate OK [09:55:36]SAM_PROTO_SignData done [09:55:36]FM_MakeSignedData done [09:55:36]CreateOFDProtocolMessage [09:55:36]wFMCommunicate request_size=4 [09:55:36]MH_SAM_APDU [09:55:36]CAPDU: 80 11 00 00 [09:55:36]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:36]Read from MH i2c: E2 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [09:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:36]wFMCommunicate OK [09:55:36]CreateOFDProtocolMessage done [09:55:36]OFDSenderStorePacket 164511 [09:55:36]StoreOFDPacket docnum=164511 [09:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A FC 07 01 22 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 4F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 82 02 00 35 04 06 00 BE 97 47 C5 9C 5B 10 93 DE DF 7B A5 6D 6F [09:55:36]CheckFolder [09:55:36]dirname=/storage/ofd_packets [09:55:36]CheckFolder done [09:55:36]ProducePacketName [09:55:36]name=ofd_packets/00164511 [09:55:36]NVStorageSaveData ofd_packets/00164511 [09:55:36]File name is /storage/ofd_packets/00164511 [09:55:36]Write 301 bytes [09:55:36]NVStorageSaveData done [09:55:36]OFDSenderStorePacket done [09:55:36]KKMCreateOFDPacket done [09:55:36]NVStorageSaveData kkm_last_timestamp [09:55:36]File name is /storage/kkm_last_timestamp [09:55:36]Write 4 bytes [09:55:36]NVStorageSaveData done [09:55:36]ExternCall_PrintAddStr [09:55:36]wPrintStart [09:55:36]Write to MH i2c: 01 00 00 CE 04 D2 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [09:55:36]RasterBufferAndPrint [09:55:36]line Счет N : (1)458599 [09:55:36]line ИНН: 02508201610067 [09:55:36]line Контрольно-Кассовый Чек [09:55:36]line ПРОДАЖА [09:55:36]line ТРК (МРК, ГНК) : 12 [09:55:36]line Товар: 2710124130 [09:55:36]line Аи-92-К-5 [09:55:36]line 3.040 * 65.80 [09:55:36]line = 200.03 [09:55:36]line НДС 12% НСП 1% [09:55:36]line > о реализуемом товаре [09:55:36]line ОКРУГЛЕНИЕ: -0.03 [09:55:36]line ИТОГО: 200.00 [09:55:36]line Внесено: 200.00 [09:55:36]line СДАЧА: 0.00 [09:55:36]line НСП 1% : 1.77 [09:55:36]line НДС 12% : 21.24 [09:55:36]line Наличными: 200.00 [09:55:36]line Безнал.: 0.00 [09:55:36]line Место: АЗС № 72 "Партнер Нефть" [09:55:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:36]line СНО: Общий режим [09:55:36]line Чек 71 13.07.2024 09:55 [09:55:36]line Смена: 446 ФФД: 1.0 [09:55:36]line ЗНМ: 0300000160 [09:55:36]line РНМ: 0000000000090829 [09:55:36]line Версия ККМ: 001 [09:55:36]line ФМ: 0000000000874718 [09:55:36]line ФД: 164511 [09:55:36]line ФПД: 209556953472091 [09:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164511&fm=209556953472091&tin=02508201610067®Number=0000000000090829&sum=20000 [09:55:36]written 0, free lines is 4095 [09:55:36]OFD Sender: Processing packet 164511 [packets to send 104, broken 103] [09:55:36]ProducePacketName [09:55:36]name=ofd_packets/00164511 [09:55:36]OFD Sender: To server: pG, [09:55:36]CommunicateWithHost lk.salyk.kg:30040 [09:55:36]ConnectInit lk.salyk.kg [09:55:36]Connected sock=10 [09:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A FC 07 01 22 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 4F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 82 02 00 35 04 06 00 BE 97 47 C5 9C 5B 10 93 DE DF 7B A5 6D 6F [09:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EA AE 47 00 D9 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 82 02 00 F4 03 04 00 A9 F5 91 66 B6 04 01 00 00 2C EE CE 54 06 DA 98 0E [09:55:37]CommunicateWithHost err = 0 [09:55:37]CheckOFDResponse [09:55:37]1017 (14) - 77093643461234 [09:55:37]1041 (16) - 0000000000874718 [09:55:37]1040 (4) - 164511 [09:55:37]1012 (4) - 13.07.2024 03:34 [09:55:37]1206 (1) - 0 [09:55:37]OFD Sender: Remove packet 164511 [09:55:37]ProducePacketName [09:55:37]name=ofd_packets/00164511 [09:55:37]NVStorageDeleteData [09:55:37]Write to MH i2c: 01 00 00 F8 04 FC [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 07 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FD 0C 0C [09:55:37]RasterBufferAndPrint [09:55:37]line [09:55:37]line [09:55:37]line [09:55:37]line [09:55:37]line [09:55:37]written 0, free lines is 3331 [09:55:37]MH_Cut [09:55:37]Write to MH i2c: D1 01 00 FF 04 01 D5 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: D1 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: D1 01 00 [09:55:37]MH_I2C_Read... [09:55:37]Read from MH i2c: D1 01 00 FF 04 00 D4 [09:55:37]Write to MH i2c: 01 00 00 00 05 05 [09:55:37]Write i2c OK [09:55:37]MH_I2C_Read... [09:55:37]OFD Sender: No OFD packet to send [09:55:37]*** Cut start [09:55:37]*** Partial cut [09:55:37]*** CUTSNS_PIN = 1 [09:55:37]*** CUTSNS_PIN = 0 [09:55:38]*** Brake cut motor [09:55:38]Read from MH i2c: 01 [09:55:38]MH_I2C_Read... [09:55:38]*** Stop cut motor [09:55:38]*** Cut end [09:55:38]Read from MH i2c: 01 07 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [09:55:38]process_action close_receipt done [09:55:38]requested_data is exist [09:55:38]produce_requested_data [09:55:38]requested_item fm.sn is exist - process it [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 11 00 00 [09:55:38]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [09:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:38]wFMCommunicate OK [09:55:38]requested_item fd.num is exist - process it [09:55:38]SAM_PROTO_GetFieldsCounters [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 13 00 00 [09:55:38]Write to MH i2c: E2 08 00 02 05 80 13 00 00 00 00 00 00 83 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 62 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 62 00 02 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 82 02 00 0E 04 04 00 BE 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 61 [09:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 82 02 00 0E 04 04 00 BE 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 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_GetFieldsCounters done [09:55:38]requested_item shift.num is exist - process it [09:55:38]requested_item shift.opened is exist - process it [09:55:38]req_shift_opened [09:55:38]FM_GetShiftState [09:55:38]SAM_PROTO_GetShiftState [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 13 01 00 [09:55:38]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0E 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 66 [09:55:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_GetShiftState done [09:55:38]FM_GetShiftState done [09:55:38]req_shift_opened done [09:55:38]requested_item shift.open_date is exist - process it [09:55:38]req_shift_open_date [09:55:38]req_shift_open_date done [09:55:38]produce_requested_data done [09:55:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164511,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [09:55:38]process_action_free close_receipt [09:55:38]json_value_free [09:55:38]json_value_free done [09:55:38]process_json_proto returns [09:55:38]Send response to host [09:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164511,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [09:55:38]free response buf [09:55:38]execute_script done [09:55:38]execute_script returns [09:55:38]free content buf [09:55:38]Sock 7.Close socket [09:55:38]Sock 7.Thread stoped [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:11]accept exits with 9 [10:01:11]New connection [10:01:11]New thread 3067149668 created [10:01:11]Thread 3067293028 joined [10:01:11]Waiting for new connection... [10:01:11] Sock 9.Parse request [10:01:11]Sock 9.Check first char [10:01:11]Sock 9.First char is OK [10:01:11]request: POST /json_proto HTTP/1.0 [10:01:11]Method: POST [10:01:11]URL: /json_proto [10:01:11]Method is POST - this is cgi request [10:01:11]url: /json_proto [10:01:11]query_string will be loaded in cgi processing [10:01:11]execute_cgi json_proto POST (null) [10:01:11]execute_cgi path=json_proto method=POST [10:01:11]POST find Content-Length [10:01:11]Host: 172.17.56.4:8080 [10:01:11]Content-Length: 677 [10:01:11]Content-Type: application/json [10:01:11] [10:01:11]POST finish read [10:01:11]Found Content-Length = 677 [10:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:11]execute_script... [10:01: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)458600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:11]POST & json_proto [10:01:11]process_json_proto [10:01:11]json parsed OK: [10:01:11]protocol is kg_v1.0 [10:01:11]action value=close_receipt [10:01:11]process_action close_receipt [10:01:11]cmd_close_receipt [10:01:11]MH_GetDate [10:01:11]Write to MH i2c: F0 00 00 04 05 F8 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 04 05 00 68 50 92 66 C9 DC B2 64 6C [10:01:11]GetLastDocTimeStamp 1720864535 [10:01:11]current date 1720864872 [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 68 [10:01:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]opened in 1720831249 [10:01:11]opened+sec_in_day 1720917649 [10:01:11]quantity*price = 30004 [10:01:11]sum+1 = 30006 [10:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 72 13.07.2024 10:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164512 ФПД: 150194421234805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164512&fm=150194421234805&tin=02508201610067®Number=0000000000090829&sum=30000 [10:01:12]StoreToDocumentArchive [10:01:12]shift 446 fd 164512 [10:01:12]save to /storage/0446/doc_00164512 [10:01:12]save last doc name /storage/0446/doc_00164512 to /storage/kkm_last_doc_name [10:01:12]save OK [10:01:12]Clear old archive folders... [10:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:12]tlvbuf is 0141B570 [10:01:12]SAM_PROTO_ClearQueue [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 09 00 00 [10:01:12]Write to MH i2c: E2 08 00 12 05 80 09 00 00 00 00 00 00 89 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_ClearQueue done [10:01:12]KKMCreateOFDPacket [10:01:12]OFDProtocolAddRootSTLVToBuf [10:01:12]FM_MakeSignedData [10:01:12]FM_MakeSignedData [10:01:12]SAM_PROTO_SignData [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 01 02 [10:01:12]Write to MH i2c: E2 08 00 13 05 80 0D 01 02 00 00 00 00 91 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]wFMCommunicate request_size=255 [10:01:12]MH_SAM_APDU [10:01: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 00 00 00 F4 03 04 00 68 50 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 82 02 00 35 04 06 00 88 [10:01:12]Write to MH i2c: E2 02 01 14 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 00 00 00 F4 03 04 00 68 50 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 82 02 00 35 04 06 00 88 00 00 2E [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:13]OFD Sender: No OFD packet to send [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=10 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 05 99 DD 1F FC 75 [10:01:13]Write to MH i2c: E2 0D 00 15 05 80 0D 02 02 05 00 99 DD 1F FC 75 00 00 A4 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 03 02 [10:01:13]Write to MH i2c: E2 08 00 16 05 80 0D 03 02 00 00 00 00 96 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 16 05 00 22 47 3C 90 6E 71 AC BB 90 00 12 [10:01:13]RAPDU: 22 47 3C 90 6E 71 AC BB 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_SignData done [10:01:13]FM_MakeSignedData done [10:01:13]CreateOFDProtocolMessage [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 11 00 00 [10:01:13]Write to MH i2c: E2 08 00 17 05 80 11 00 00 00 00 00 00 96 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 17 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [10:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:01:13]wFMCommunicate OK [10:01:13]CreateOFDProtocolMessage done [10:01:13]OFDSenderStorePacket 164512 [10:01:13]StoreOFDPacket docnum=164512 [10:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 FA 07 01 F3 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 00 00 00 F4 03 04 00 68 50 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 82 02 00 35 04 06 00 88 99 DD 1F FC 75 22 47 3C 90 6E 71 AC BB [10:01:13]CheckFolder [10:01:13]dirname=/storage/ofd_packets [10:01:13]CheckFolder done [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00164512 [10:01:13]NVStorageSaveData ofd_packets/00164512 [10:01:13]File name is /storage/ofd_packets/00164512 [10:01:13]Write 301 bytes [10:01:13]NVStorageSaveData done [10:01:13]OFDSenderStorePacket done [10:01:13]KKMCreateOFDPacket done [10:01:13]NVStorageSaveData kkm_last_timestamp [10:01:13]File name is /storage/kkm_last_timestamp [10:01:13]Write 4 bytes [10:01:13]NVStorageSaveData done [10:01:13]ExternCall_PrintAddStr [10:01:13]wPrintStart [10:01:13]Write to MH i2c: 01 00 00 18 05 1D [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 FF 0F 32 [10:01:13]RasterBufferAndPrint [10:01:13]line Счет N : (1)458600 [10:01:13]line ИНН: 02508201610067 [10:01:13]line Контрольно-Кассовый Чек [10:01:13]line ПРОДАЖА [10:01:13]line ТРК (МРК, ГНК) : 22 [10:01:13]line Товар: 2710124130 [10:01:13]line Аи-92-К-5 [10:01:13]line 4.560 * 65.80 [10:01:13]line = 300.05 [10:01:13]line НДС 12% НСП 1% [10:01:13]line > о реализуемом товаре [10:01:13]line ОКРУГЛЕНИЕ: -0.05 [10:01:13]line ИТОГО: 300.00 [10:01:13]line Внесено: 300.00 [10:01:13]line СДАЧА: 0.00 [10:01:13]line НСП 1% : 2.65 [10:01:13]line НДС 12% : 31.86 [10:01:13]line Наличными: 300.00 [10:01:13]line Безнал.: 0.00 [10:01:13]line Место: АЗС № 72 "Партнер Нефть" [10:01:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:01:13]line СНО: Общий режим [10:01:13]line Чек 72 13.07.2024 10:01 [10:01:13]line Смена: 446 ФФД: 1.0 [10:01:13]line ЗНМ: 0300000160 [10:01:13]line РНМ: 0000000000090829 [10:01:13]line Версия ККМ: 001 [10:01:13]line ФМ: 0000000000874718 [10:01:13]line ФД: 164512 [10:01:13]line ФПД: 150194421234805 [10:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164512&fm=150194421234805&tin=02508201610067®Number=0000000000090829&sum=30000 [10:01:13]OFD Sender: Processing packet 164512 [packets to send 104, broken 103] [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00164512 [10:01:13]OFD Sender: To server: pG, [10:01:13]CommunicateWithHost lk.salyk.kg:30040 [10:01:13]ConnectInit lk.salyk.kg [10:01:13]written 0, free lines is 4095 [10:01:13]Connected sock=10 [10:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 FA 07 01 F3 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 00 00 00 F4 03 04 00 68 50 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 82 02 00 35 04 06 00 88 99 DD 1F FC 75 22 47 3C 90 6E 71 AC BB [10:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C 4C 47 00 EB 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 34 37 31 38 10 04 04 00 A0 82 02 00 F4 03 04 00 FA F6 91 66 B6 04 01 00 00 13 67 6F 89 0C 53 14 5A [10:01:13]CommunicateWithHost err = 0 [10:01:13]CheckOFDResponse [10:01:13]1017 (14) - 77093643461234 [10:01:13]1041 (16) - 0000000000874718 [10:01:13]1040 (4) - 164512 [10:01:13]1012 (4) - 13.07.2024 03:39 [10:01:13]1206 (1) - 0 [10:01:13]OFD Sender: Remove packet 164512 [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00164512 [10:01:13]NVStorageDeleteData [10:01:14]Write to MH i2c: 01 00 00 42 05 47 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 01 0D 5C [10:01:14]RasterBufferAndPrint [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]written 0, free lines is 3335 [10:01:14]MH_Cut [10:01:14]Write to MH i2c: D1 01 00 49 05 01 20 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 49 05 00 1F [10:01:14]Write to MH i2c: 01 00 00 4A 05 4F [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]OFD Sender: No OFD packet to send [10:01:14]*** Cut start [10:01:14]*** Partial cut [10:01:14]*** CUTSNS_PIN = 1 [10:01:14]*** CUTSNS_PIN = 0 [10:01:14]*** Brake cut motor [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]*** Stop cut motor [10:01:15]*** Cut end [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [10:01:15]process_action close_receipt done [10:01:15]requested_data is exist [10:01:15]produce_requested_data [10:01:15]requested_item fm.sn is exist - process it [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:01:15]wFMCommunicate OK [10:01:15]requested_item fd.num is exist - process it [10:01:15]SAM_PROTO_GetFieldsCounters [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 00 00 [10:01:15]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 4C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 82 02 00 0E 04 04 00 BE 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 AF [10:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 82 02 00 0E 04 04 00 BE 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 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetFieldsCounters done [10:01:15]requested_item shift.num is exist - process it [10:01:15]requested_item shift.opened is exist - process it [10:01:15]req_shift_opened [10:01:15]FM_GetShiftState [10:01:15]SAM_PROTO_GetShiftState [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 01 00 [10:01:15]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B0 [10:01:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetShiftState done [10:01:15]FM_GetShiftState done [10:01:15]req_shift_opened done [10:01:15]requested_item shift.open_date is exist - process it [10:01:15]req_shift_open_date [10:01:15]req_shift_open_date done [10:01:15]produce_requested_data done [10:01:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164512,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:01:15]process_action_free close_receipt [10:01:15]json_value_free [10:01:15]json_value_free done [10:01:15]process_json_proto returns [10:01:15]Send response to host [10:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164512,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:01:15]free response buf [10:01:15]execute_script done [10:01:15]execute_script returns [10:01:15]free content buf [10:01:15]Sock 9.Close socket [10:01:15]Sock 9.Thread stoped [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:23]accept exits with 7 [10:09:23]New connection [10:09:23]New thread 3067293028 created [10:09:23]Thread 3067149668 joined [10:09:23]Waiting for new connection... [10:09:23] Sock 7.Parse request [10:09:23]Sock 7.Check first char [10:09:23]Sock 7.First char is OK [10:09:23]request: POST /json_proto HTTP/1.0 [10:09:23]Method: POST [10:09:23]URL: /json_proto [10:09:23]Method is POST - this is cgi request [10:09:23]url: /json_proto [10:09:23]query_string will be loaded in cgi processing [10:09:23]execute_cgi json_proto POST (null) [10:09:23]execute_cgi path=json_proto method=POST [10:09:23]POST find Content-Length [10:09:23]Host: 172.17.56.4:8080 [10:09:23]Content-Length: 677 [10:09:23]Content-Type: application/json [10:09:23] [10:09:23]POST finish read [10:09:23]Found Content-Length = 677 [10:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:09:23]execute_script... [10:09: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)458601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:09:23]POST & json_proto [10:09:23]process_json_proto [10:09:23]json parsed OK: [10:09:23]protocol is kg_v1.0 [10:09:23]action value=close_receipt [10:09:23]process_action close_receipt [10:09:23]cmd_close_receipt [10:09:23]MH_GetDate [10:09:23]Write to MH i2c: F0 00 00 4E 05 42 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: F0 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: F0 09 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: F0 09 00 4E 05 00 54 52 92 66 C9 DC B2 64 A4 [10:09:23]GetLastDocTimeStamp 1720864872 [10:09:23]current date 1720865364 [10:09:23]FM_GetShiftState [10:09:23]SAM_PROTO_GetShiftState [10:09:23]wFMCommunicate request_size=4 [10:09:23]MH_SAM_APDU [10:09:23]CAPDU: 80 13 01 00 [10:09:23]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [10:09:23]Write i2c OK [10:09:23]MH_I2C_Read... [10:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:23]Read from MH i2c: E2 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0E 00 [10:09:23]MH_I2C_Read... [10:09:23]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B2 [10:09:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:09:23]wFMCommunicate OK [10:09:23]SAM_PROTO_GetShiftState done [10:09:23]FM_GetShiftState done [10:09:23]opened in 1720831249 [10:09:23]opened+sec_in_day 1720917649 [10:09:23]quantity*price = 50008 [10:09:23]sum+1 = 50009 [10:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 73 13.07.2024 10:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164513 ФПД: 114776607567707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164513&fm=114776607567707&tin=02508201610067®Number=0000000000090829&sum=50000 [10:09:24]StoreToDocumentArchive [10:09:24]shift 446 fd 164513 [10:09:24]save to /storage/0446/doc_00164513 [10:09:24]save last doc name /storage/0446/doc_00164513 to /storage/kkm_last_doc_name [10:09:24]save OK [10:09:24]Clear old archive folders... [10:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:24]tlvbuf is B6DFB390 [10:09:24]SAM_PROTO_ClearQueue [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 09 00 00 [10:09:24]Write to MH i2c: E2 08 00 5C 05 80 09 00 00 00 00 00 00 D3 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:24]Read from MH i2c: E2 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 03 00 [10:09:24]MH_I2C_Read... [10:09:24]OFD Sender: No OFD packet to send [10:09:24]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [10:09:24]RAPDU: 90 00 [10:09:24]wFMCommunicate OK [10:09:24]SAM_PROTO_ClearQueue done [10:09:24]KKMCreateOFDPacket [10:09:24]OFDProtocolAddRootSTLVToBuf [10:09:24]FM_MakeSignedData [10:09:24]FM_MakeSignedData [10:09:24]SAM_PROTO_SignData [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 0D 01 02 [10:09:24]Write to MH i2c: E2 08 00 5D 05 80 0D 01 02 00 00 00 00 DB [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [10:09:25]RAPDU: 90 00 [10:09:25]wFMCommunicate OK [10:09:25]wFMCommunicate request_size=255 [10:09:25]MH_SAM_APDU [10:09: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 49 00 00 00 F4 03 04 00 54 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 82 02 00 35 04 06 00 68 [10:09:25]Write to MH i2c: E2 02 01 5E 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 49 00 00 00 F4 03 04 00 54 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 82 02 00 35 04 06 00 68 00 00 87 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [10:09:25]RAPDU: 90 00 [10:09:25]wFMCommunicate OK [10:09:25]wFMCommunicate request_size=10 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 0D 02 02 05 63 82 EC 2F 5B [10:09:25]Write to MH i2c: E2 0D 00 5F 05 80 0D 02 02 05 00 63 82 EC 2F 5B 00 00 43 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [10:09:25]RAPDU: 90 00 [10:09:25]wFMCommunicate OK [10:09:25]wFMCommunicate request_size=4 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 0D 03 02 [10:09:25]Write to MH i2c: E2 08 00 60 05 80 0D 03 02 00 00 00 00 E0 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 0B 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 0B 00 60 05 00 94 19 69 88 F2 80 62 D3 90 00 26 [10:09:25]RAPDU: 94 19 69 88 F2 80 62 D3 90 00 [10:09:25]wFMCommunicate OK [10:09:25]SAM_PROTO_SignData done [10:09:25]FM_MakeSignedData done [10:09:25]CreateOFDProtocolMessage [10:09:25]wFMCommunicate request_size=4 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 11 00 00 [10:09:25]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 17 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [10:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:09:25]wFMCommunicate OK [10:09:25]CreateOFDProtocolMessage done [10:09:25]OFDSenderStorePacket 164513 [10:09:25]StoreOFDPacket docnum=164513 [10:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F A4 07 01 65 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 49 00 00 00 F4 03 04 00 54 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 82 02 00 35 04 06 00 68 63 82 EC 2F 5B 94 19 69 88 F2 80 62 D3 [10:09:25]CheckFolder [10:09:25]dirname=/storage/ofd_packets [10:09:25]CheckFolder done [10:09:25]ProducePacketName [10:09:25]name=ofd_packets/00164513 [10:09:25]NVStorageSaveData ofd_packets/00164513 [10:09:25]File name is /storage/ofd_packets/00164513 [10:09:25]Write 301 bytes [10:09:25]NVStorageSaveData done [10:09:25]OFDSenderStorePacket done [10:09:25]KKMCreateOFDPacket done [10:09:25]NVStorageSaveData kkm_last_timestamp [10:09:25]File name is /storage/kkm_last_timestamp [10:09:25]Write 4 bytes [10:09:25]NVStorageSaveData done [10:09:25]ExternCall_PrintAddStr [10:09:25]wPrintStart [10:09:25]Write to MH i2c: 01 00 00 62 05 67 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: 01 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: 01 07 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [10:09:25]RasterBufferAndPrint [10:09:25]line Счет N : (1)458601 [10:09:25]line ИНН: 02508201610067 [10:09:25]line Контрольно-Кассовый Чек [10:09:25]line ПРОДАЖА [10:09:25]line ТРК (МРК, ГНК) : 22 [10:09:25]line Товар: 2710124130 [10:09:25]line Аи-92-К-5 [10:09:25]line 7.600 * 65.80 [10:09:25]line = 500.08 [10:09:25]line НДС 12% НСП 1% [10:09:25]line > о реализуемом товаре [10:09:25]line ОКРУГЛЕНИЕ: -0.08 [10:09:25]line ИТОГО: 500.00 [10:09:25]line Внесено: 500.00 [10:09:25]line СДАЧА: 0.00 [10:09:25]line НСП 1% : 4.42 [10:09:25]line НДС 12% : 53.11 [10:09:25]line Наличными: 500.00 [10:09:25]line Безнал.: 0.00 [10:09:25]line Место: АЗС № 72 "Партнер Нефть" [10:09:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:09:25]line СНО: Общий режим [10:09:25]line Чек 73 13.07.2024 10:09 [10:09:25]line Смена: 446 ФФД: 1.0 [10:09:25]line ЗНМ: 0300000160 [10:09:25]line РНМ: 0000000000090829 [10:09:25]line Версия ККМ: 001 [10:09:25]line ФМ: 0000000000874718 [10:09:25]line ФД: 164513 [10:09:25]line ФПД: 114776607567707 [10:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164513&fm=114776607567707&tin=02508201610067®Number=0000000000090829&sum=50000 [10:09:25]OFD Sender: Processing packet 164513 [packets to send 104, broken 103] [10:09:25]ProducePacketName [10:09:25]name=ofd_packets/00164513 [10:09:25]OFD Sender: To server: pG, [10:09:25]CommunicateWithHost lk.salyk.kg:30040 [10:09:25]ConnectInit lk.salyk.kg [10:09:25]written 0, free lines is 4095 [10:09:25]Connected sock=10 [10:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F A4 07 01 65 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 49 00 00 00 F4 03 04 00 54 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 82 02 00 35 04 06 00 68 63 82 EC 2F 5B 94 19 69 88 F2 80 62 D3 [10:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 8D 47 00 4A EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 82 02 00 F4 03 04 00 E6 F8 91 66 B6 04 01 00 00 A8 FD F4 22 46 91 8D D0 [10:09:26]CommunicateWithHost err = 0 [10:09:26]CheckOFDResponse [10:09:26]1017 (14) - 77093643461234 [10:09:26]1041 (16) - 0000000000874718 [10:09:26]1040 (4) - 164513 [10:09:26]1012 (4) - 13.07.2024 03:47 [10:09:26]1206 (1) - 0 [10:09:26]OFD Sender: Remove packet 164513 [10:09:26]ProducePacketName [10:09:26]name=ofd_packets/00164513 [10:09:26]NVStorageDeleteData [10:09:26]Write to MH i2c: 01 00 00 8C 05 91 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 F6 0C 9A [10:09:26]RasterBufferAndPrint [10:09:26]line [10:09:26]line [10:09:26]line [10:09:26]line [10:09:26]line [10:09:26]written 0, free lines is 3325 [10:09:26]MH_Cut [10:09:26]Write to MH i2c: D1 01 00 93 05 01 6A [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: D1 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: D1 01 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: D1 01 00 93 05 00 69 [10:09:26]Write to MH i2c: 01 00 00 94 05 99 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]OFD Sender: No OFD packet to send [10:09:26]*** Cut start [10:09:26]*** Partial cut [10:09:26]*** CUTSNS_PIN = 1 [10:09:26]*** CUTSNS_PIN = 0 [10:09:27]*** Brake cut motor [10:09:27]Read from MH i2c: 01 [10:09:27]MH_I2C_Read... [10:09:27]*** Stop cut motor [10:09:27]*** Cut end [10:09:27]Read from MH i2c: 01 07 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [10:09:27]process_action close_receipt done [10:09:27]requested_data is exist [10:09:27]produce_requested_data [10:09:27]requested_item fm.sn is exist - process it [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 11 00 00 [10:09:27]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 17 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [10:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:09:27]wFMCommunicate OK [10:09:27]requested_item fd.num is exist - process it [10:09:27]SAM_PROTO_GetFieldsCounters [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 00 00 [10:09:27]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 62 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 62 00 96 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 82 02 00 0E 04 04 00 BE 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 FD [10:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 82 02 00 0E 04 04 00 BE 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 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetFieldsCounters done [10:09:27]requested_item shift.num is exist - process it [10:09:27]requested_item shift.opened is exist - process it [10:09:27]req_shift_opened [10:09:27]FM_GetShiftState [10:09:27]SAM_PROTO_GetShiftState [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 13 01 00 [10:09:27]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FA [10:09:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_GetShiftState done [10:09:27]FM_GetShiftState done [10:09:27]req_shift_opened done [10:09:27]requested_item shift.open_date is exist - process it [10:09:27]req_shift_open_date [10:09:27]req_shift_open_date done [10:09:27]produce_requested_data done [10:09:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164513,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:09:27]process_action_free close_receipt [10:09:27]json_value_free [10:09:27]json_value_free done [10:09:27]process_json_proto returns [10:09:27]Send response to host [10:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164513,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:09:27]free response buf [10:09:27]execute_script done [10:09:27]execute_script returns [10:09:27]free content buf [10:09:27]Sock 7.Close socket [10:09:27]Sock 7.Thread stoped [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:34]accept exits with 9 [10:10:34]New connection [10:10:34]New thread 3067149668 created [10:10:34]Thread 3067293028 joined [10:10:34]Waiting for new connection... [10:10:34] Sock 9.Parse request [10:10:34]Sock 9.Check first char [10:10:34]Sock 9.First char is OK [10:10:34]request: POST /json_proto HTTP/1.0 [10:10:34]Method: POST [10:10:34]URL: /json_proto [10:10:34]Method is POST - this is cgi request [10:10:34]url: /json_proto [10:10:34]query_string will be loaded in cgi processing [10:10:34]execute_cgi json_proto POST (null) [10:10:34]execute_cgi path=json_proto method=POST [10:10:34]POST find Content-Length [10:10:34]Host: 172.17.56.4:8080 [10:10:34]Content-Length: 677 [10:10:34]Content-Type: application/json [10:10:34] [10:10:34]POST finish read [10:10:34]Found Content-Length = 677 [10:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]execute_script... [10:10: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)458602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]POST & json_proto [10:10:34]process_json_proto [10:10:34]json parsed OK: [10:10:34]protocol is kg_v1.0 [10:10:34]action value=close_receipt [10:10:34]process_action close_receipt [10:10:34]cmd_close_receipt [10:10:34]MH_GetDate [10:10:34]Write to MH i2c: F0 00 00 98 05 8C [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 09 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: F0 09 00 98 05 00 9C 52 92 66 C9 DC B2 64 36 [10:10:34]GetLastDocTimeStamp 1720865364 [10:10:34]current date 1720865436 [10:10:34]FM_GetShiftState [10:10:34]SAM_PROTO_GetShiftState [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 13 01 00 [10:10:34]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:34]Read from MH i2c: E2 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 0E 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FC [10:10:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:10:34]wFMCommunicate OK [10:10:34]SAM_PROTO_GetShiftState done [10:10:34]FM_GetShiftState done [10:10:34]opened in 1720831249 [10:10:34]opened+sec_in_day 1720917649 [10:10:34]quantity*price = 40006 [10:10:34]sum+1 = 40007 [10:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 74 13.07.2024 10:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164514 ФПД: 68081057993030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164514&fm=68081057993030&tin=02508201610067®Number=0000000000090829&sum=40000 [10:10:36]StoreToDocumentArchive [10:10:36]shift 446 fd 164514 [10:10:36]save to /storage/0446/doc_00164514 [10:10:36]save last doc name /storage/0446/doc_00164514 to /storage/kkm_last_doc_name [10:10:36]save OK [10:10:36]Clear old archive folders... [10:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:36]tlvbuf is 01430930 [10:10:36]SAM_PROTO_ClearQueue [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 09 00 00 [10:10:36]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_ClearQueue done [10:10:36]KKMCreateOFDPacket [10:10:36]OFDProtocolAddRootSTLVToBuf [10:10:36]FM_MakeSignedData [10:10:36]FM_MakeSignedData [10:10:36]SAM_PROTO_SignData [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 01 02 [10:10:36]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=255 [10:10:36]MH_SAM_APDU [10:10: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9C 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 82 02 00 35 04 06 00 3D [10:10:36]Write to MH i2c: E2 02 01 A8 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9C 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 82 02 00 35 04 06 00 3D 00 00 D0 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=10 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 02 02 05 EB 5B 47 11 46 [10:10:36]Write to MH i2c: E2 0D 00 A9 05 80 0D 02 02 05 00 EB 5B 47 11 46 00 00 16 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [10:10:36]RAPDU: 90 00 [10:10:36]wFMCommunicate OK [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 0D 03 02 [10:10:36]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0B 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0B 00 AA 05 00 F4 D1 44 B1 2D 3E 38 53 90 00 DB [10:10:36]RAPDU: F4 D1 44 B1 2D 3E 38 53 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_SignData done [10:10:36]FM_MakeSignedData done [10:10:36]CreateOFDProtocolMessage [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 11 00 00 [10:10:36]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [10:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:36]wFMCommunicate OK [10:10:36]CreateOFDProtocolMessage done [10:10:36]OFDSenderStorePacket 164514 [10:10:36]StoreOFDPacket docnum=164514 [10:10:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B AB 07 01 B7 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9C 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 82 02 00 35 04 06 00 3D EB 5B 47 11 46 F4 D1 44 B1 2D 3E 38 53 [10:10:36]CheckFolder [10:10:36]dirname=/storage/ofd_packets [10:10:36]CheckFolder done [10:10:36]ProducePacketName [10:10:36]name=ofd_packets/00164514 [10:10:36]NVStorageSaveData ofd_packets/00164514 [10:10:36]File name is /storage/ofd_packets/00164514 [10:10:36]Write 301 bytes [10:10:36]NVStorageSaveData done [10:10:36]OFDSenderStorePacket done [10:10:36]KKMCreateOFDPacket done [10:10:36]NVStorageSaveData kkm_last_timestamp [10:10:36]File name is /storage/kkm_last_timestamp [10:10:36]Write 4 bytes [10:10:36]NVStorageSaveData done [10:10:36]ExternCall_PrintAddStr [10:10:36]wPrintStart [10:10:36]Write to MH i2c: 01 00 00 AC 05 B1 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [10:10:36]RasterBufferAndPrint [10:10:36]line Счет N : (1)458602 [10:10:36]line ИНН: 02508201610067 [10:10:36]line Контрольно-Кассовый Чек [10:10:36]line ПРОДАЖА [10:10:36]line ТРК (МРК, ГНК) : 12 [10:10:36]line Товар: 2710124130 [10:10:36]line Аи-92-К-5 [10:10:36]line 6.080 * 65.80 [10:10:36]line = 400.06 [10:10:36]line НДС 12% НСП 1% [10:10:36]line > о реализуемом товаре [10:10:36]line ОКРУГЛЕНИЕ: -0.06 [10:10:36]line ИТОГО: 400.00 [10:10:36]line Внесено: 400.00 [10:10:36]line СДАЧА: 0.00 [10:10:36]line НСП 1% : 3.54 [10:10:36]line НДС 12% : 42.48 [10:10:36]line Наличными: 400.00 [10:10:36]line Безнал.: 0.00 [10:10:36]line Место: АЗС № 72 "Партнер Нефть" [10:10:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:10:36]line СНО: Общий режим [10:10:36]line Чек 74 13.07.2024 10:10 [10:10:36]line Смена: 446 ФФД: 1.0 [10:10:36]line ЗНМ: 0300000160 [10:10:36]line РНМ: 0000000000090829 [10:10:36]line Версия ККМ: 001 [10:10:36]line ФМ: 0000000000874718 [10:10:36]line ФД: 164514 [10:10:36]line ФПД: 68081057993030 [10:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164514&fm=68081057993030&tin=02508201610067®Number=0000000000090829&sum=40000 [10:10:36]OFD Sender: Processing packet 164514 [packets to send 104, broken 103] [10:10:36]ProducePacketName [10:10:36]name=ofd_packets/00164514 [10:10:36]OFD Sender: To server: pG, [10:10:36]CommunicateWithHost lk.salyk.kg:30040 [10:10:36]ConnectInit lk.salyk.kg [10:10:36]written 0, free lines is 4095 [10:10:37]Connected sock=10 [10:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B AB 07 01 B7 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 9C 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 82 02 00 35 04 06 00 3D EB 5B 47 11 46 F4 D1 44 B1 2D 3E 38 53 [10:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 83 4A 47 00 CB 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 34 37 31 38 10 04 04 00 A2 82 02 00 F4 03 04 00 2D F9 91 66 B6 04 01 00 00 D4 6C 8C F7 BC 79 F0 B5 [10:10:37]CommunicateWithHost err = 0 [10:10:37]CheckOFDResponse [10:10:37]1017 (14) - 77093643461234 [10:10:37]1041 (16) - 0000000000874718 [10:10:37]1040 (4) - 164514 [10:10:37]1012 (4) - 13.07.2024 03:49 [10:10:37]1206 (1) - 0 [10:10:37]OFD Sender: Remove packet 164514 [10:10:37]ProducePacketName [10:10:37]name=ofd_packets/00164514 [10:10:37]NVStorageDeleteData [10:10:37]Write to MH i2c: 01 00 00 D6 05 DB [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 05 0D F4 [10:10:37]RasterBufferAndPrint [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]line [10:10:37]written 0, free lines is 3340 [10:10:37]MH_Cut [10:10:37]Write to MH i2c: D1 01 00 DD 05 01 B4 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 01 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D1 01 00 DD 05 00 B3 [10:10:37]Write to MH i2c: 01 00 00 DE 05 E3 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]OFD Sender: No OFD packet to send [10:10:38]*** Cut start [10:10:38]*** Partial cut [10:10:38]*** CUTSNS_PIN = 1 [10:10:38]*** CUTSNS_PIN = 0 [10:10:38]*** Brake cut motor [10:10:38]Read from MH i2c: 01 [10:10:38]MH_I2C_Read... [10:10:38]*** Stop cut motor [10:10:38]*** Cut end [10:10:38]Read from MH i2c: 01 07 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [10:10:38]process_action close_receipt done [10:10:38]requested_data is exist [10:10:38]produce_requested_data [10:10:38]requested_item fm.sn is exist - process it [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 11 00 00 [10:10:38]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [10:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:38]wFMCommunicate OK [10:10:38]requested_item fd.num is exist - process it [10:10:38]SAM_PROTO_GetFieldsCounters [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 13 00 00 [10:10:38]Write to MH i2c: E2 08 00 E0 05 80 13 00 00 00 00 00 00 61 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 62 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 62 00 E0 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 82 02 00 0E 04 04 00 BE 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 4B [10:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 82 02 00 0E 04 04 00 BE 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 [10:10:38]wFMCommunicate OK [10:10:38]SAM_PROTO_GetFieldsCounters done [10:10:38]requested_item shift.num is exist - process it [10:10:38]requested_item shift.opened is exist - process it [10:10:38]req_shift_opened [10:10:38]FM_GetShiftState [10:10:38]SAM_PROTO_GetShiftState [10:10:38]wFMCommunicate request_size=4 [10:10:38]MH_SAM_APDU [10:10:38]CAPDU: 80 13 01 00 [10:10:38]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:38]Read from MH i2c: E2 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 0E 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 44 [10:10:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:10:38]wFMCommunicate OK [10:10:38]SAM_PROTO_GetShiftState done [10:10:38]FM_GetShiftState done [10:10:38]req_shift_opened done [10:10:38]requested_item shift.open_date is exist - process it [10:10:38]req_shift_open_date [10:10:38]req_shift_open_date done [10:10:38]produce_requested_data done [10:10:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164514,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:10:38]process_action_free close_receipt [10:10:38]json_value_free [10:10:38]json_value_free done [10:10:38]process_json_proto returns [10:10:38]Send response to host [10:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164514,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:10:38]free response buf [10:10:38]execute_script done [10:10:38]execute_script returns [10:10:38]free content buf [10:10:38]Sock 9.Close socket [10:10:38]Sock 9.Thread stoped [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:05]accept exits with 7 [10:12:05]New connection [10:12:05]New thread 3067293028 created [10:12:05]Thread 3067149668 joined [10:12:05]Waiting for new connection... [10:12:05] Sock 7.Parse request [10:12:05]Sock 7.Check first char [10:12:05]Sock 7.First char is OK [10:12:05]request: POST /json_proto HTTP/1.0 [10:12:05]Method: POST [10:12:05]URL: /json_proto [10:12:05]Method is POST - this is cgi request [10:12:05]url: /json_proto [10:12:05]query_string will be loaded in cgi processing [10:12:05]execute_cgi json_proto POST (null) [10:12:05]execute_cgi path=json_proto method=POST [10:12:05]POST find Content-Length [10:12:05]Host: 172.17.56.4:8080 [10:12:05]Content-Length: 679 [10:12:05]Content-Type: application/json [10:12:05] [10:12:05]POST finish read [10:12:05]Found Content-Length = 679 [10:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [10:12:05]execute_script... [10:12: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)458603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [10:12:05]POST & json_proto [10:12:05]process_json_proto [10:12:05]json parsed OK: [10:12:05]protocol is kg_v1.0 [10:12:05]action value=close_receipt [10:12:05]process_action close_receipt [10:12:05]cmd_close_receipt [10:12:05]MH_GetDate [10:12:05]Write to MH i2c: F0 00 00 E2 05 D6 [10:12:05]Write i2c OK [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 09 00 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 09 00 E2 05 00 F6 52 92 66 C9 DC B2 64 DA [10:12:05]GetLastDocTimeStamp 1720865436 [10:12:05]current date 1720865526 [10:12:05]FM_GetShiftState [10:12:05]SAM_PROTO_GetShiftState [10:12:05]wFMCommunicate request_size=4 [10:12:05]MH_SAM_APDU [10:12:05]CAPDU: 80 13 01 00 [10:12:05]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [10:12:05]Write i2c OK [10:12:05]MH_I2C_Read... [10:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:05]Read from MH i2c: E2 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: E2 0E 00 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 46 [10:12:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:05]wFMCommunicate OK [10:12:05]SAM_PROTO_GetShiftState done [10:12:05]FM_GetShiftState done [10:12:05]opened in 1720831249 [10:12:05]opened+sec_in_day 1720917649 [10:12:05]quantity*price = 140061 [10:12:05]sum+1 = 140062 [10:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 75 13.07.2024 10:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164515 ФПД: 65467910981948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164515&fm=65467910981948&tin=02508201610067®Number=0000000000090829&sum=140000 [10:12:06]StoreToDocumentArchive [10:12:06]shift 446 fd 164515 [10:12:06]save to /storage/0446/doc_00164515 [10:12:06]save last doc name /storage/0446/doc_00164515 to /storage/kkm_last_doc_name [10:12:06]save OK [10:12:06]Clear old archive folders... [10:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:06]tlvbuf is 01425630 [10:12:06]SAM_PROTO_ClearQueue [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 09 00 00 [10:12:06]Write to MH i2c: E2 08 00 F0 05 80 09 00 00 00 00 00 00 67 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]SAM_PROTO_ClearQueue done [10:12:06]KKMCreateOFDPacket [10:12:06]OFDProtocolAddRootSTLVToBuf [10:12:06]FM_MakeSignedData [10:12:06]FM_MakeSignedData [10:12:06]SAM_PROTO_SignData [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 01 02 [10:12:06]Write to MH i2c: E2 08 00 F1 05 80 0D 01 02 00 00 00 00 6F [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=255 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 4B 00 00 00 F4 03 04 00 F6 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 82 02 00 35 04 06 00 3B 8A EF 94 [10:12:06]Write to MH i2c: E2 02 01 F2 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 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 4B 00 00 00 F4 03 04 00 F6 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 82 02 00 35 04 06 00 3B 8A EF 94 00 00 9A [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=7 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 02 02 02 09 3C [10:12:06]Write to MH i2c: E2 0A 00 F3 05 80 0D 02 02 02 00 09 3C 00 00 BB [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 03 02 [10:12:06]Write to MH i2c: E2 08 00 F4 05 80 0D 03 02 00 00 00 00 74 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0B 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0B 00 F4 05 00 07 D1 60 D0 B9 DB 62 3D 90 00 B0 [10:12:07]RAPDU: 07 D1 60 D0 B9 DB 62 3D 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_SignData done [10:12:07]FM_MakeSignedData done [10:12:07]CreateOFDProtocolMessage [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 11 00 00 [10:12:07]Write to MH i2c: E2 08 00 F5 05 80 11 00 00 00 00 00 00 74 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 17 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 17 00 F5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [10:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:07]wFMCommunicate OK [10:12:07]CreateOFDProtocolMessage done [10:12:07]OFDSenderStorePacket 164515 [10:12:07]StoreOFDPacket docnum=164515 [10:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA D5 04 01 AD CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 4B 00 00 00 F4 03 04 00 F6 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 82 02 00 35 04 06 00 3B 8A EF 94 09 3C 07 D1 60 D0 B9 DB 62 3D [10:12:07]CheckFolder [10:12:07]dirname=/storage/ofd_packets [10:12:07]CheckFolder done [10:12:07]ProducePacketName [10:12:07]name=ofd_packets/00164515 [10:12:07]NVStorageSaveData ofd_packets/00164515 [10:12:07]File name is /storage/ofd_packets/00164515 [10:12:07]Write 298 bytes [10:12:07]NVStorageSaveData done [10:12:07]OFDSenderStorePacket done [10:12:07]KKMCreateOFDPacket done [10:12:07]NVStorageSaveData kkm_last_timestamp [10:12:07]File name is /storage/kkm_last_timestamp [10:12:07]Write 4 bytes [10:12:07]NVStorageSaveData done [10:12:07]ExternCall_PrintAddStr [10:12:07]wPrintStart [10:12:07]Write to MH i2c: 01 00 00 F6 05 FB [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 FF 0F 10 [10:12:07]RasterBufferAndPrint [10:12:07]line Счет N : (1)458603 [10:12:07]line ИНН: 02508201610067 [10:12:07]line Контрольно-Кассовый Чек [10:12:07]line ПРОДАЖА [10:12:07]line ТРК (МРК, ГНК) : 11 [10:12:07]line Товар: 2710194210 [10:12:07]line ДТ-К-5 [10:12:07]line 19.480 * 71.90 [10:12:07]line = 1400.61 [10:12:07]line НДС 12% НСП 1% [10:12:07]line > о реализуемом товаре [10:12:07]line ОКРУГЛЕНИЕ: -0.61 [10:12:07]line ИТОГО: 1400.00 [10:12:07]line Внесено: 1400.00 [10:12:07]line СДАЧА: 0.00 [10:12:07]line НСП 1% : 12.39 [10:12:07]line НДС 12% : 148.74 [10:12:07]line Наличными: 1400.00 [10:12:07]line Безнал.: 0.00 [10:12:07]line Место: АЗС № 72 "Партнер Нефть" [10:12:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:07]line СНО: Общий режим [10:12:07]line Чек 75 13.07.2024 10:12 [10:12:07]line Смена: 446 ФФД: 1.0 [10:12:07]line ЗНМ: 0300000160 [10:12:07]line РНМ: 0000000000090829 [10:12:07]line Версия ККМ: 001 [10:12:07]line ФМ: 0000000000874718 [10:12:07]line ФД: 164515 [10:12:07]line ФПД: 65467910981948 [10:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164515&fm=65467910981948&tin=02508201610067®Number=0000000000090829&sum=140000 [10:12:07]OFD Sender: Processing packet 164515 [packets to send 104, broken 103] [10:12:07]ProducePacketName [10:12:07]name=ofd_packets/00164515 [10:12:07]OFD Sender: To server: pG, [10:12:07]CommunicateWithHost lk.salyk.kg:30040 [10:12:07]ConnectInit lk.salyk.kg [10:12:07]written 0, free lines is 4095 [10:12:07]Connected sock=10 [10:12:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA D5 04 01 AD CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 4B 00 00 00 F4 03 04 00 F6 52 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 82 02 00 35 04 06 00 3B 8A EF 94 09 3C 07 D1 60 D0 B9 DB 62 3D [10:12:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 62 47 00 A6 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 82 02 00 F4 03 04 00 88 F9 91 66 B6 04 01 00 00 23 8D 43 B4 41 C0 74 AA [10:12:07]CommunicateWithHost err = 0 [10:12:07]CheckOFDResponse [10:12:07]1017 (14) - 77093643461234 [10:12:07]1041 (16) - 0000000000874718 [10:12:07]1040 (4) - 164515 [10:12:07]1012 (4) - 13.07.2024 03:50 [10:12:07]1206 (1) - 0 [10:12:07]OFD Sender: Remove packet 164515 [10:12:07]ProducePacketName [10:12:07]name=ofd_packets/00164515 [10:12:07]NVStorageDeleteData [10:12:07]Write to MH i2c: 01 00 00 20 06 26 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 09 0D 43 [10:12:07]RasterBufferAndPrint [10:12:07]line [10:12:07]line [10:12:07]line [10:12:07]line [10:12:07]line [10:12:07]written 0, free lines is 3343 [10:12:07]MH_Cut [10:12:07]Write to MH i2c: D1 01 00 27 06 01 FF [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: D1 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: D1 01 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: D1 01 00 27 06 00 FE [10:12:07]Write to MH i2c: 01 00 00 28 06 2E [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:08]OFD Sender: No OFD packet to send [10:12:08]*** Cut start [10:12:08]*** Partial cut [10:12:08]*** CUTSNS_PIN = 1 [10:12:08]*** CUTSNS_PIN = 0 [10:12:08]*** Brake cut motor [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]*** Stop cut motor [10:12:09]*** Cut end [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 FF 0F 43 [10:12:09]process_action close_receipt done [10:12:09]requested_data is exist [10:12:09]produce_requested_data [10:12:09]requested_item fm.sn is exist - process it [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 11 00 00 [10:12:09]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [10:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:09]wFMCommunicate OK [10:12:09]requested_item fd.num is exist - process it [10:12:09]SAM_PROTO_GetFieldsCounters [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 13 00 00 [10:12:09]Write to MH i2c: E2 08 00 2A 06 80 13 00 00 00 00 00 00 AC [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 62 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 62 00 2A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 82 02 00 0E 04 04 00 BE 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 9A [10:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 82 02 00 0E 04 04 00 BE 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 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_GetFieldsCounters done [10:12:09]requested_item shift.num is exist - process it [10:12:09]requested_item shift.opened is exist - process it [10:12:09]req_shift_opened [10:12:09]FM_GetShiftState [10:12:09]SAM_PROTO_GetShiftState [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 13 01 00 [10:12:09]Write to MH i2c: E2 08 00 2B 06 80 13 01 00 00 00 00 00 AE [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 2B 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8F [10:12:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_GetShiftState done [10:12:09]FM_GetShiftState done [10:12:09]req_shift_opened done [10:12:09]requested_item shift.open_date is exist - process it [10:12:09]req_shift_open_date [10:12:09]req_shift_open_date done [10:12:09]produce_requested_data done [10:12:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164515,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:12:09]process_action_free close_receipt [10:12:09]json_value_free [10:12:09]json_value_free done [10:12:09]process_json_proto returns [10:12:09]Send response to host [10:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164515,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:12:09]free response buf [10:12:09]execute_script done [10:12:09]execute_script returns [10:12:09]free content buf [10:12:09]Sock 7.Close socket [10:12:09]Sock 7.Thread stoped [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:26]accept exits with 9 [10:12:26]New connection [10:12:26]New thread 3067149668 created [10:12:26]Thread 3067293028 joined [10:12:26]Waiting for new connection... [10:12:26] Sock 9.Parse request [10:12:26]Sock 9.Check first char [10:12:26]Sock 9.First char is OK [10:12:26]request: POST /json_proto HTTP/1.0 [10:12:26]Method: POST [10:12:26]URL: /json_proto [10:12:26]Method is POST - this is cgi request [10:12:26]url: /json_proto [10:12:26]query_string will be loaded in cgi processing [10:12:26]execute_cgi json_proto POST (null) [10:12:26]execute_cgi path=json_proto method=POST [10:12:26]POST find Content-Length [10:12:26]Host: 172.17.56.4:8080 [10:12:26]Content-Length: 677 [10:12:26]Content-Type: application/json [10:12:26] [10:12:26]POST finish read [10:12:26]Found Content-Length = 677 [10:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:12:26]execute_script... [10:12: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)458604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:12:26]POST & json_proto [10:12:26]process_json_proto [10:12:26]json parsed OK: [10:12:26]protocol is kg_v1.0 [10:12:26]action value=close_receipt [10:12:26]process_action close_receipt [10:12:26]cmd_close_receipt [10:12:26]MH_GetDate [10:12:26]Write to MH i2c: F0 00 00 2C 06 21 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: F0 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: F0 09 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: F0 09 00 2C 06 00 0B 53 92 66 C9 DC B2 64 3B [10:12:26]GetLastDocTimeStamp 1720865526 [10:12:26]current date 1720865547 [10:12:26]FM_GetShiftState [10:12:26]SAM_PROTO_GetShiftState [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 13 01 00 [10:12:26]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 91 [10:12:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_GetShiftState done [10:12:26]FM_GetShiftState done [10:12:26]opened in 1720831249 [10:12:26]opened+sec_in_day 1720917649 [10:12:26]quantity*price = 50008 [10:12:26]sum+1 = 50009 [10:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 76 13.07.2024 10:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164516 ФПД: 15098895539711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101227&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164516&fm=15098895539711&tin=02508201610067®Number=0000000000090829&sum=50000 [10:12:27]StoreToDocumentArchive [10:12:27]shift 446 fd 164516 [10:12:27]save to /storage/0446/doc_00164516 [10:12:27]save last doc name /storage/0446/doc_00164516 to /storage/kkm_last_doc_name [10:12:27]save OK [10:12:27]Clear old archive folders... [10:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:27]tlvbuf is 0143B6C0 [10:12:27]SAM_PROTO_ClearQueue [10:12:27]wFMCommunicate request_size=4 [10:12:27]MH_SAM_APDU [10:12:27]CAPDU: 80 09 00 00 [10:12:27]Write to MH i2c: E2 08 00 3A 06 80 09 00 00 00 00 00 00 B2 [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:27]Read from MH i2c: E2 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 03 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [10:12:27]RAPDU: 90 00 [10:12:27]wFMCommunicate OK [10:12:27]SAM_PROTO_ClearQueue done [10:12:27]KKMCreateOFDPacket [10:12:27]OFDProtocolAddRootSTLVToBuf [10:12:27]FM_MakeSignedData [10:12:27]FM_MakeSignedData [10:12:27]SAM_PROTO_SignData [10:12:27]wFMCommunicate request_size=4 [10:12:27]MH_SAM_APDU [10:12:27]CAPDU: 80 0D 01 02 [10:12:27]Write to MH i2c: E2 08 00 3B 06 80 0D 01 02 00 00 00 00 BA [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:27]Read from MH i2c: E2 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 03 00 [10:12:27]MH_I2C_Read... [10:12:27]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [10:12:27]RAPDU: 90 00 [10:12:27]wFMCommunicate OK [10:12:27]wFMCommunicate request_size=255 [10:12:27]MH_SAM_APDU [10:12: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 00 00 00 F4 03 04 00 0B 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 82 02 00 35 04 06 00 0D [10:12:27]Write to MH i2c: E2 02 01 3C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 00 00 00 F4 03 04 00 0B 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 82 02 00 35 04 06 00 0D 00 00 C9 [10:12:27]Write i2c OK [10:12:27]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 03 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [10:12:28]RAPDU: 90 00 [10:12:28]wFMCommunicate OK [10:12:28]wFMCommunicate request_size=10 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 0D 02 02 05 BB 7C 4E 1D FF [10:12:28]Write to MH i2c: E2 0D 00 3D 06 80 0D 02 02 05 00 BB 7C 4E 1D FF 00 00 68 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 03 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [10:12:28]RAPDU: 90 00 [10:12:28]wFMCommunicate OK [10:12:28]wFMCommunicate request_size=4 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 0D 03 02 [10:12:28]Write to MH i2c: E2 08 00 3E 06 80 0D 03 02 00 00 00 00 BF [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 0B 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 0B 00 3E 06 00 DB FD F5 A8 C3 D3 B5 93 90 00 13 [10:12:28]RAPDU: DB FD F5 A8 C3 D3 B5 93 90 00 [10:12:28]wFMCommunicate OK [10:12:28]SAM_PROTO_SignData done [10:12:28]FM_MakeSignedData done [10:12:28]CreateOFDProtocolMessage [10:12:28]wFMCommunicate request_size=4 [10:12:28]MH_SAM_APDU [10:12:28]CAPDU: 80 11 00 00 [10:12:28]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]OFD Sender: No OFD packet to send [10:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:28]Read from MH i2c: E2 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 17 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [10:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:28]wFMCommunicate OK [10:12:28]CreateOFDProtocolMessage done [10:12:28]OFDSenderStorePacket 164516 [10:12:28]StoreOFDPacket docnum=164516 [10:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 7E 07 01 4E E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 00 00 00 F4 03 04 00 0B 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 82 02 00 35 04 06 00 0D BB 7C 4E 1D FF DB FD F5 A8 C3 D3 B5 93 [10:12:28]CheckFolder [10:12:28]dirname=/storage/ofd_packets [10:12:28]CheckFolder done [10:12:28]ProducePacketName [10:12:28]name=ofd_packets/00164516 [10:12:28]NVStorageSaveData ofd_packets/00164516 [10:12:28]File name is /storage/ofd_packets/00164516 [10:12:28]Write 301 bytes [10:12:28]NVStorageSaveData done [10:12:28]OFDSenderStorePacket done [10:12:28]KKMCreateOFDPacket done [10:12:28]NVStorageSaveData kkm_last_timestamp [10:12:28]File name is /storage/kkm_last_timestamp [10:12:28]Write 4 bytes [10:12:28]NVStorageSaveData done [10:12:28]ExternCall_PrintAddStr [10:12:28]wPrintStart [10:12:28]Write to MH i2c: 01 00 00 40 06 46 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 40 06 00 00 00 00 00 FF 0F 5B [10:12:28]RasterBufferAndPrint [10:12:28]line Счет N : (1)458604 [10:12:28]line ИНН: 02508201610067 [10:12:28]line Контрольно-Кассовый Чек [10:12:28]line ПРОДАЖА [10:12:28]line ТРК (МРК, ГНК) : 22 [10:12:28]line Товар: 2710124130 [10:12:28]line Аи-92-К-5 [10:12:28]line 7.600 * 65.80 [10:12:28]line = 500.08 [10:12:28]line НДС 12% НСП 1% [10:12:28]line > о реализуемом товаре [10:12:28]line ОКРУГЛЕНИЕ: -0.08 [10:12:28]line ИТОГО: 500.00 [10:12:28]line Внесено: 500.00 [10:12:28]line СДАЧА: 0.00 [10:12:28]line НСП 1% : 4.42 [10:12:28]line НДС 12% : 53.11 [10:12:28]line Наличными: 500.00 [10:12:28]line Безнал.: 0.00 [10:12:28]line Место: АЗС № 72 "Партнер Нефть" [10:12:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:28]line СНО: Общий режим [10:12:28]line Чек 76 13.07.2024 10:12 [10:12:28]line Смена: 446 ФФД: 1.0 [10:12:28]line ЗНМ: 0300000160 [10:12:28]line РНМ: 0000000000090829 [10:12:28]line Версия ККМ: 001 [10:12:28]line ФМ: 0000000000874718 [10:12:28]line ФД: 164516 [10:12:28]line ФПД: 15098895539711 [10:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101227&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164516&fm=15098895539711&tin=02508201610067®Number=0000000000090829&sum=50000 [10:12:28]written 0, free lines is 4095 [10:12:28]OFD Sender: Processing packet 164516 [packets to send 104, broken 103] [10:12:28]ProducePacketName [10:12:28]name=ofd_packets/00164516 [10:12:28]OFD Sender: To server: pG, [10:12:28]CommunicateWithHost lk.salyk.kg:30040 [10:12:28]ConnectInit lk.salyk.kg [10:12:28]Connected sock=10 [10:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 7E 07 01 4E E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4C 00 00 00 F4 03 04 00 0B 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 82 02 00 35 04 06 00 0D BB 7C 4E 1D FF DB FD F5 A8 C3 D3 B5 93 [10:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 70 E9 47 00 D6 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 82 02 00 F4 03 04 00 9D F9 91 66 B6 04 01 00 00 CE 6E 0F 27 73 FD CA BD [10:12:28]CommunicateWithHost err = 0 [10:12:28]CheckOFDResponse [10:12:28]1017 (14) - 77093643461234 [10:12:28]1041 (16) - 0000000000874718 [10:12:28]1040 (4) - 164516 [10:12:28]1012 (4) - 13.07.2024 03:50 [10:12:28]1206 (1) - 0 [10:12:28]OFD Sender: Remove packet 164516 [10:12:28]ProducePacketName [10:12:28]name=ofd_packets/00164516 [10:12:28]NVStorageDeleteData [10:12:28]Write to MH i2c: 01 00 00 6A 06 70 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 FB 0C 7E [10:12:28]RasterBufferAndPrint [10:12:28]line [10:12:28]line [10:12:28]line [10:12:28]line [10:12:28]line [10:12:28]written 0, free lines is 3329 [10:12:28]MH_Cut [10:12:28]Write to MH i2c: D1 01 00 71 06 01 49 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: D1 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: D1 01 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: D1 01 00 71 06 00 48 [10:12:28]Write to MH i2c: 01 00 00 72 06 78 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:29]OFD Sender: No OFD packet to send [10:12:29]*** Cut start [10:12:29]*** Partial cut [10:12:29]*** CUTSNS_PIN = 1 [10:12:29]*** CUTSNS_PIN = 0 [10:12:29]*** Brake cut motor [10:12:30]Read from MH i2c: 01 [10:12:30]MH_I2C_Read... [10:12:30]*** Stop cut motor [10:12:30]*** Cut end [10:12:30]Read from MH i2c: 01 07 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [10:12:30]process_action close_receipt done [10:12:30]requested_data is exist [10:12:30]produce_requested_data [10:12:30]requested_item fm.sn is exist - process it [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 11 00 00 [10:12:30]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 17 00 [10:12:30]MH_I2C_Read... [10:12:30]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 34 37 31 38 90 00 49 [10:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:30]wFMCommunicate OK [10:12:30]requested_item fd.num is exist - process it [10:12:30]SAM_PROTO_GetFieldsCounters [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 13 00 00 [10:12:30]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 62 00 [10:12:30]MH_I2C_Read... [10:12:30]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 82 02 00 0E 04 04 00 BE 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 E8 [10:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 82 02 00 0E 04 04 00 BE 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 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetFieldsCounters done [10:12:30]requested_item shift.num is exist - process it [10:12:30]requested_item shift.opened is exist - process it [10:12:30]req_shift_opened [10:12:30]FM_GetShiftState [10:12:30]SAM_PROTO_GetShiftState [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 13 01 00 [10:12:30]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D9 [10:12:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetShiftState done [10:12:30]FM_GetShiftState done [10:12:30]req_shift_opened done [10:12:30]requested_item shift.open_date is exist - process it [10:12:30]req_shift_open_date [10:12:30]req_shift_open_date done [10:12:30]produce_requested_data done [10:12:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164516,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:12:30]process_action_free close_receipt [10:12:30]json_value_free [10:12:30]json_value_free done [10:12:30]process_json_proto returns [10:12:30]Send response to host [10:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164516,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:12:30]free response buf [10:12:30]execute_script done [10:12:30]execute_script returns [10:12:30]free content buf [10:12:30]Sock 9.Close socket [10:12:30]Sock 9.Thread stoped [10:12:32]accept exits with 7 [10:12:32]New connection [10:12:32]New thread 3067293028 created [10:12:32]Thread 3067149668 joined [10:12:32]Waiting for new connection... [10:12:32] Sock 7.Parse request [10:12:32]Sock 7.Check first char [10:12:32]Sock 7.First char is OK [10:12:32]request: POST /json_proto HTTP/1.0 [10:12:32]Method: POST [10:12:32]URL: /json_proto [10:12:32]Method is POST - this is cgi request [10:12:32]url: /json_proto [10:12:32]query_string will be loaded in cgi processing [10:12:32]execute_cgi json_proto POST (null) [10:12:32]execute_cgi path=json_proto method=POST [10:12:32]POST find Content-Length [10:12:32]Host: 172.17.56.4:8080 [10:12:32]Content-Length: 677 [10:12:32]Content-Type: application/json [10:12:32] [10:12:32]POST finish read [10:12:32]Found Content-Length = 677 [10:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [10:12:32]execute_script... [10:12: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)458605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [10:12:32]POST & json_proto [10:12:32]process_json_proto [10:12:32]json parsed OK: [10:12:32]protocol is kg_v1.0 [10:12:32]action value=close_receipt [10:12:32]process_action close_receipt [10:12:32]cmd_close_receipt [10:12:32]MH_GetDate [10:12:32]Write to MH i2c: F0 00 00 76 06 6B [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: F0 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: F0 09 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: F0 09 00 76 06 00 11 53 92 66 C9 DC B2 64 8B [10:12:32]GetLastDocTimeStamp 1720865547 [10:12:32]current date 1720865553 [10:12:32]FM_GetShiftState [10:12:32]SAM_PROTO_GetShiftState [10:12:32]wFMCommunicate request_size=4 [10:12:32]MH_SAM_APDU [10:12:32]CAPDU: 80 13 01 00 [10:12:32]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:32]Read from MH i2c: E2 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0E 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DB [10:12:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:32]wFMCommunicate OK [10:12:32]SAM_PROTO_GetShiftState done [10:12:32]FM_GetShiftState done [10:12:32]opened in 1720831249 [10:12:32]opened+sec_in_day 1720917649 [10:12:32]quantity*price = 35005 [10:12:32]sum+1 = 35007 [10:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 77 13.07.2024 10:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164517 ФПД: 59975999346134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164517&fm=59975999346134&tin=02508201610067®Number=0000000000090829&sum=35000 [10:12:33]StoreToDocumentArchive [10:12:33]shift 446 fd 164517 [10:12:33]save to /storage/0446/doc_00164517 [10:12:33]save last doc name /storage/0446/doc_00164517 to /storage/kkm_last_doc_name [10:12:33]save OK [10:12:33]Clear old archive folders... [10:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:33]tlvbuf is 01458840 [10:12:33]SAM_PROTO_ClearQueue [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 09 00 00 [10:12:33]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 03 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [10:12:33]RAPDU: 90 00 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_ClearQueue done [10:12:33]KKMCreateOFDPacket [10:12:33]OFDProtocolAddRootSTLVToBuf [10:12:33]FM_MakeSignedData [10:12:33]FM_MakeSignedData [10:12:33]SAM_PROTO_SignData [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 0D 01 02 [10:12:33]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 03 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [10:12:33]RAPDU: 90 00 [10:12:33]wFMCommunicate OK [10:12:33]wFMCommunicate request_size=255 [10:12:33]MH_SAM_APDU [10:12: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 11 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 82 02 00 35 04 06 00 36 [10:12:33]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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 11 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 82 02 00 35 04 06 00 36 00 00 14 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=10 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 02 02 05 8C 40 22 D5 D6 [10:12:34]Write to MH i2c: E2 0D 00 87 06 80 0D 02 02 05 00 8C 40 22 D5 D6 00 00 AA [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 03 02 [10:12:34]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]OFD Sender: No OFD packet to send [10:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 88 06 00 F0 91 9A 23 3A 81 EC A3 90 00 92 [10:12:34]RAPDU: F0 91 9A 23 3A 81 EC A3 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_SignData done [10:12:34]FM_MakeSignedData done [10:12:34]CreateOFDProtocolMessage [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 11 00 00 [10:12:34]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 [10:12:34]MH_I2C_Read... [10:12:34]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 34 37 31 38 90 00 5F [10:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:34]wFMCommunicate OK [10:12:34]CreateOFDProtocolMessage done [10:12:34]OFDSenderStorePacket 164517 [10:12:34]StoreOFDPacket docnum=164517 [10:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 C9 07 01 BA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 11 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 82 02 00 35 04 06 00 36 8C 40 22 D5 D6 F0 91 9A 23 3A 81 EC A3 [10:12:34]CheckFolder [10:12:34]dirname=/storage/ofd_packets [10:12:34]CheckFolder done [10:12:34]ProducePacketName [10:12:34]name=ofd_packets/00164517 [10:12:34]NVStorageSaveData ofd_packets/00164517 [10:12:34]File name is /storage/ofd_packets/00164517 [10:12:34]Write 301 bytes [10:12:34]NVStorageSaveData done [10:12:34]OFDSenderStorePacket done [10:12:34]KKMCreateOFDPacket done [10:12:34]NVStorageSaveData kkm_last_timestamp [10:12:34]File name is /storage/kkm_last_timestamp [10:12:34]Write 4 bytes [10:12:34]NVStorageSaveData done [10:12:34]OFD Sender: Processing packet 164517 [packets to send 104, broken 103] [10:12:34]ProducePacketName [10:12:34]name=ofd_packets/00164517 [10:12:34]OFD Sender: To server: pG, [10:12:34]CommunicateWithHost lk.salyk.kg:30040 [10:12:34]ConnectInit lk.salyk.kg [10:12:34]ExternCall_PrintAddStr [10:12:34]wPrintStart [10:12:34]Write to MH i2c: 01 00 00 8A 06 90 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [10:12:34]RasterBufferAndPrint [10:12:34]line Счет N : (1)458605 [10:12:34]line ИНН: 02508201610067 [10:12:34]line Контрольно-Кассовый Чек [10:12:34]line ПРОДАЖА [10:12:34]line ТРК (МРК, ГНК) : 12 [10:12:34]line Товар: 2710124130 [10:12:34]line Аи-92-К-5 [10:12:34]line 5.320 * 65.80 [10:12:34]line = 350.06 [10:12:34]line НДС 12% НСП 1% [10:12:34]line > о реализуемом товаре [10:12:34]line ОКРУГЛЕНИЕ: -0.06 [10:12:34]line ИТОГО: 350.00 [10:12:34]line Внесено: 350.00 [10:12:34]line СДАЧА: 0.00 [10:12:34]line НСП 1% : 3.10 [10:12:34]line НДС 12% : 37.17 [10:12:34]line Наличными: 350.00 [10:12:34]line Безнал.: 0.00 [10:12:34]line Место: АЗС № 72 "Партнер Нефть" [10:12:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:34]line СНО: Общий режим [10:12:34]line Чек 77 13.07.2024 10:12 [10:12:34]line Смена: 446 ФФД: 1.0 [10:12:34]line ЗНМ: 0300000160 [10:12:34]line РНМ: 0000000000090829 [10:12:34]line Версия ККМ: 001 [10:12:34]line ФМ: 0000000000874718 [10:12:34]line ФД: 164517 [10:12:34]line ФПД: 59975999346134 [10:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164517&fm=59975999346134&tin=02508201610067®Number=0000000000090829&sum=35000 [10:12:34]written 0, free lines is 4095 [10:12:34]Connected sock=11 [10:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 C9 07 01 BA 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 11 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 82 02 00 35 04 06 00 36 8C 40 22 D5 D6 F0 91 9A 23 3A 81 EC A3 [10:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 1E 47 00 23 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 34 37 31 38 10 04 04 00 A5 82 02 00 F4 03 04 00 A2 F9 91 66 B6 04 01 00 00 EA 44 15 78 14 6A CE E6 [10:12:34]CommunicateWithHost err = 0 [10:12:34]CheckOFDResponse [10:12:34]1017 (14) - 77093643461234 [10:12:34]1041 (16) - 0000000000874718 [10:12:34]1040 (4) - 164517 [10:12:34]1012 (4) - 13.07.2024 03:50 [10:12:34]1206 (1) - 0 [10:12:34]OFD Sender: Remove packet 164517 [10:12:34]ProducePacketName [10:12:34]name=ofd_packets/00164517 [10:12:34]NVStorageDeleteData [10:12:34]Write to MH i2c: 01 00 00 B4 06 BA [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 01 0D CF [10:12:34]RasterBufferAndPrint [10:12:34]line [10:12:34]line [10:12:34]line [10:12:34]line [10:12:34]line [10:12:34]written 0, free lines is 3338 [10:12:34]MH_Cut [10:12:34]Write to MH i2c: D1 01 00 BB 06 01 93 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: D1 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: D1 01 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: D1 01 00 BB 06 00 92 [10:12:34]Write to MH i2c: 01 00 00 BC 06 C2 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:35]OFD Sender: No OFD packet to send [10:12:35]*** Cut start [10:12:35]*** Partial cut [10:12:35]*** CUTSNS_PIN = 1 [10:12:35]*** CUTSNS_PIN = 0 [10:12:35]*** Brake cut motor [10:12:36]Read from MH i2c: 01 [10:12:36]MH_I2C_Read... [10:12:36]*** Stop cut motor [10:12:36]*** Cut end [10:12:36]Read from MH i2c: 01 07 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [10:12:36]process_action close_receipt done [10:12:36]requested_data is exist [10:12:36]produce_requested_data [10:12:36]requested_item fm.sn is exist - process it [10:12:36]wFMCommunicate request_size=4 [10:12:36]MH_SAM_APDU [10:12:36]CAPDU: 80 11 00 00 [10:12:36]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 17 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [10:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:36]wFMCommunicate OK [10:12:36]requested_item fd.num is exist - process it [10:12:36]SAM_PROTO_GetFieldsCounters [10:12:36]wFMCommunicate request_size=4 [10:12:36]MH_SAM_APDU [10:12:36]CAPDU: 80 13 00 00 [10:12:36]Write to MH i2c: E2 08 00 BE 06 80 13 00 00 00 00 00 00 40 [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 62 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 62 00 BE 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 82 02 00 0E 04 04 00 BE 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 36 [10:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 82 02 00 0E 04 04 00 BE 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 [10:12:36]wFMCommunicate OK [10:12:36]SAM_PROTO_GetFieldsCounters done [10:12:36]requested_item shift.num is exist - process it [10:12:36]requested_item shift.opened is exist - process it [10:12:36]req_shift_opened [10:12:36]FM_GetShiftState [10:12:36]SAM_PROTO_GetShiftState [10:12:36]wFMCommunicate request_size=4 [10:12:36]MH_SAM_APDU [10:12:36]CAPDU: 80 13 01 00 [10:12:36]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [10:12:36]Write i2c OK [10:12:36]MH_I2C_Read... [10:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:36]Read from MH i2c: E2 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 0E 00 [10:12:36]MH_I2C_Read... [10:12:36]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 23 [10:12:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:36]wFMCommunicate OK [10:12:36]SAM_PROTO_GetShiftState done [10:12:36]FM_GetShiftState done [10:12:36]req_shift_opened done [10:12:36]requested_item shift.open_date is exist - process it [10:12:36]req_shift_open_date [10:12:36]req_shift_open_date done [10:12:36]produce_requested_data done [10:12:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164517,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:12:36]process_action_free close_receipt [10:12:36]json_value_free [10:12:36]json_value_free done [10:12:36]process_json_proto returns [10:12:36]Send response to host [10:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164517,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:12:36]free response buf [10:12:36]execute_script done [10:12:36]execute_script returns [10:12:36]free content buf [10:12:36]Sock 7.Close socket [10:12:36]Sock 7.Thread stoped [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:46]accept exits with 9 [10:12:46]New connection [10:12:46]New thread 3067149668 created [10:12:46]Thread 3067293028 joined [10:12:46]Waiting for new connection... [10:12:46] Sock 9.Parse request [10:12:46]Sock 9.Check first char [10:12:46]Sock 9.First char is OK [10:12:46]request: POST /json_proto HTTP/1.0 [10:12:46]Method: POST [10:12:46]URL: /json_proto [10:12:46]Method is POST - this is cgi request [10:12:46]url: /json_proto [10:12:46]query_string will be loaded in cgi processing [10:12:46]execute_cgi json_proto POST (null) [10:12:46]execute_cgi path=json_proto method=POST [10:12:46]POST find Content-Length [10:12:46]Host: 172.17.56.4:8080 [10:12:46]Content-Length: 674 [10:12:46]Content-Type: application/json [10:12:46] [10:12:46]POST finish read [10:12:46]Found Content-Length = 674 [10:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:46]execute_script... [10: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)458606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:46]POST & json_proto [10:12:46]process_json_proto [10:12:46]json parsed OK: [10:12:46]protocol is kg_v1.0 [10:12:46]action value=close_receipt [10:12:46]process_action close_receipt [10:12:46]cmd_close_receipt [10:12:46]MH_GetDate [10:12:46]Write to MH i2c: F0 00 00 C0 06 B5 [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: F0 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: F0 09 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: F0 09 00 C0 06 00 1F 53 92 66 C9 DC B2 64 E3 [10:12:46]GetLastDocTimeStamp 1720865553 [10:12:46]current date 1720865567 [10:12:46]FM_GetShiftState [10:12:46]SAM_PROTO_GetShiftState [10:12:46]wFMCommunicate request_size=4 [10:12:46]MH_SAM_APDU [10:12:46]CAPDU: 80 13 01 00 [10:12:46]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [10:12:46]Write i2c OK [10:12:46]MH_I2C_Read... [10:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:46]Read from MH i2c: E2 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 0E 00 [10:12:46]MH_I2C_Read... [10:12:46]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 25 [10:12:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:46]wFMCommunicate OK [10:12:46]SAM_PROTO_GetShiftState done [10:12:46]FM_GetShiftState done [10:12:46]opened in 1720831249 [10:12:46]opened+sec_in_day 1720917649 [10:12:46]quantity*price = 60036 [10:12:46]sum+1 = 60038 [10:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 78 13.07.2024 10:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164518 ФПД: 203983690878810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164518&fm=203983690878810&tin=02508201610067®Number=0000000000090829&sum=60000 [10:12:47]StoreToDocumentArchive [10:12:47]shift 446 fd 164518 [10:12:47]save to /storage/0446/doc_00164518 [10:12:47]save last doc name /storage/0446/doc_00164518 to /storage/kkm_last_doc_name [10:12:47]save OK [10:12:47]Clear old archive folders... [10:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:47]tlvbuf is 01431670 [10:12:47]SAM_PROTO_ClearQueue [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 09 00 00 [10:12:47]Write to MH i2c: E2 08 00 CE 06 80 09 00 00 00 00 00 00 46 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [10:12:47]RAPDU: 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_ClearQueue done [10:12:47]KKMCreateOFDPacket [10:12:47]OFDProtocolAddRootSTLVToBuf [10:12:47]FM_MakeSignedData [10:12:47]FM_MakeSignedData [10:12:47]SAM_PROTO_SignData [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 0D 01 02 [10:12:47]Write to MH i2c: E2 08 00 CF 06 80 0D 01 02 00 00 00 00 4E [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [10:12:47]RAPDU: 90 00 [10:12:47]wFMCommunicate OK [10:12:47]wFMCommunicate request_size=255 [10:12:47]MH_SAM_APDU [10:12: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 4E 00 00 00 F4 03 04 00 1F 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 82 02 00 35 04 06 00 B9 85 A7 6F [10:12:47]Write to MH i2c: E2 02 01 D0 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 4E 00 00 00 F4 03 04 00 1F 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 82 02 00 35 04 06 00 B9 85 A7 6F 00 00 AE [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:47]Read from MH i2c: E2 03 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [10:12:47]RAPDU: 90 00 [10:12:47]wFMCommunicate OK [10:12:47]wFMCommunicate request_size=7 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 0D 02 02 02 4F 5A [10:12:47]Write to MH i2c: E2 0A 00 D1 06 80 0D 02 02 02 00 4F 5A 00 00 FE [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [10:12:47]RAPDU: 90 00 [10:12:47]wFMCommunicate OK [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 0D 03 02 [10:12:47]Write to MH i2c: E2 08 00 D2 06 80 0D 03 02 00 00 00 00 53 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0B 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 0B 00 D2 06 00 18 03 FB 49 D8 67 A2 F7 90 00 8B [10:12:47]RAPDU: 18 03 FB 49 D8 67 A2 F7 90 00 [10:12:47]wFMCommunicate OK [10:12:47]SAM_PROTO_SignData done [10:12:47]FM_MakeSignedData done [10:12:47]CreateOFDProtocolMessage [10:12:47]wFMCommunicate request_size=4 [10:12:47]MH_SAM_APDU [10:12:47]CAPDU: 80 11 00 00 [10:12:47]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:47]Read from MH i2c: E2 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [10:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:47]wFMCommunicate OK [10:12:47]CreateOFDProtocolMessage done [10:12:47]OFDSenderStorePacket 164518 [10:12:47]StoreOFDPacket docnum=164518 [10:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2A FB 04 01 6A FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 4E 00 00 00 F4 03 04 00 1F 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 82 02 00 35 04 06 00 B9 85 A7 6F 4F 5A 18 03 FB 49 D8 67 A2 F7 [10:12:47]CheckFolder [10:12:47]dirname=/storage/ofd_packets [10:12:47]CheckFolder done [10:12:47]ProducePacketName [10:12:47]name=ofd_packets/00164518 [10:12:47]NVStorageSaveData ofd_packets/00164518 [10:12:47]File name is /storage/ofd_packets/00164518 [10:12:47]Write 298 bytes [10:12:47]NVStorageSaveData done [10:12:47]OFDSenderStorePacket done [10:12:47]KKMCreateOFDPacket done [10:12:47]NVStorageSaveData kkm_last_timestamp [10:12:47]File name is /storage/kkm_last_timestamp [10:12:47]Write 4 bytes [10:12:47]NVStorageSaveData done [10:12:47]ExternCall_PrintAddStr [10:12:47]wPrintStart [10:12:47]Write to MH i2c: 01 00 00 D4 06 DA [10:12:47]Write i2c OK [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: 01 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: 01 07 00 [10:12:47]MH_I2C_Read... [10:12:47]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [10:12:47]RasterBufferAndPrint [10:12:47]line Счет N : (1)458606 [10:12:47]line ИНН: 02508201610067 [10:12:47]line Контрольно-Кассовый Чек [10:12:47]line ПРОДАЖА [10:12:47]line ТРК (МРК, ГНК) : 21 [10:12:47]line Товар: 2710194210 [10:12:47]line ДТ-К-5 [10:12:47]line 8.350 * 71.90 [10:12:47]line = 600.37 [10:12:47]line НДС 12% НСП 1% [10:12:47]line > о реализуемом товаре [10:12:47]line ОКРУГЛЕНИЕ: -0.37 [10:12:47]line ИТОГО: 600.00 [10:12:47]line Внесено: 600.00 [10:12:47]line СДАЧА: 0.00 [10:12:47]line НСП 1% : 5.31 [10:12:47]line НДС 12% : 63.76 [10:12:47]line Наличными: 600.00 [10:12:47]line Безнал.: 0.00 [10:12:47]line Место: АЗС № 72 "Партнер Нефть" [10:12:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:47]line СНО: Общий режим [10:12:47]line Чек 78 13.07.2024 10:12 [10:12:47]line Смена: 446 ФФД: 1.0 [10:12:47]line ЗНМ: 0300000160 [10:12:47]line РНМ: 0000000000090829 [10:12:47]line Версия ККМ: 001 [10:12:47]line ФМ: 0000000000874718 [10:12:47]line ФД: 164518 [10:12:47]line ФПД: 203983690878810 [10:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164518&fm=203983690878810&tin=02508201610067®Number=0000000000090829&sum=60000 [10:12:47]written 0, free lines is 4095 [10:12:48]OFD Sender: Processing packet 164518 [packets to send 104, broken 103] [10:12:48]ProducePacketName [10:12:48]name=ofd_packets/00164518 [10:12:48]OFD Sender: To server: pG, [10:12:48]CommunicateWithHost lk.salyk.kg:30040 [10:12:48]ConnectInit lk.salyk.kg [10:12:48]Connected sock=10 [10: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 34 37 31 38 0C 01 00 00 2A FB 04 01 6A FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 4E 00 00 00 F4 03 04 00 1F 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 82 02 00 35 04 06 00 B9 85 A7 6F 4F 5A 18 03 FB 49 D8 67 A2 F7 [10:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A 98 47 00 5B 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 82 02 00 F4 03 04 00 B0 F9 91 66 B6 04 01 00 00 02 96 06 BB B9 A8 C1 BB [10:12:48]CommunicateWithHost err = 0 [10:12:48]CheckOFDResponse [10:12:48]1017 (14) - 77093643461234 [10:12:48]1041 (16) - 0000000000874718 [10:12:48]1040 (4) - 164518 [10:12:48]1012 (4) - 13.07.2024 03:51 [10:12:48]1206 (1) - 0 [10:12:48]OFD Sender: Remove packet 164518 [10:12:48]ProducePacketName [10:12:48]name=ofd_packets/00164518 [10:12:48]NVStorageDeleteData [10:12:48]Write to MH i2c: 01 00 00 FE 06 04 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: 01 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: 01 07 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 0E 0D 26 [10:12:48]RasterBufferAndPrint [10:12:48]line [10:12:48]line [10:12:48]line [10:12:48]line [10:12:48]line [10:12:48]written 0, free lines is 3358 [10:12:48]MH_Cut [10:12:48]Write to MH i2c: D1 01 00 05 07 01 DE [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: D1 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: D1 01 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: D1 01 00 05 07 00 DD [10:12:48]Write to MH i2c: 01 00 00 06 07 0D [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]OFD Sender: No OFD packet to send [10:12:49]*** Cut start [10:12:49]*** Partial cut [10:12:49]*** CUTSNS_PIN = 1 [10:12:49]*** CUTSNS_PIN = 0 [10:12:49]*** Brake cut motor [10:12:49]Read from MH i2c: 01 [10:12:49]MH_I2C_Read... [10:12:49]*** Stop cut motor [10:12:49]*** Cut end [10:12:49]Read from MH i2c: 01 07 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [10:12:49]process_action close_receipt done [10:12:49]requested_data is exist [10:12:49]produce_requested_data [10:12:49]requested_item fm.sn is exist - process it [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 11 00 00 [10:12:49]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 17 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 17 00 07 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [10:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:49]wFMCommunicate OK [10:12:49]requested_item fd.num is exist - process it [10:12:49]SAM_PROTO_GetFieldsCounters [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 13 00 00 [10:12:49]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 62 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 62 00 08 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 82 02 00 0E 04 04 00 BE 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 85 [10:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 82 02 00 0E 04 04 00 BE 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 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_GetFieldsCounters done [10:12:49]requested_item shift.num is exist - process it [10:12:49]requested_item shift.opened is exist - process it [10:12:49]req_shift_opened [10:12:49]FM_GetShiftState [10:12:49]SAM_PROTO_GetShiftState [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 13 01 00 [10:12:49]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 0E 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6E [10:12:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_GetShiftState done [10:12:49]FM_GetShiftState done [10:12:49]req_shift_opened done [10:12:49]requested_item shift.open_date is exist - process it [10:12:49]req_shift_open_date [10:12:49]req_shift_open_date done [10:12:49]produce_requested_data done [10:12:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164518,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:12:49]process_action_free close_receipt [10:12:49]json_value_free [10:12:49]json_value_free done [10:12:49]process_json_proto returns [10:12:49]Send response to host [10:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164518,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:12:49]free response buf [10:12:49]execute_script done [10:12:49]execute_script returns [10:12:49]free content buf [10:12:49]Sock 9.Close socket [10:12:49]Sock 9.Thread stoped [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:25]accept exits with 7 [10:16:25]New connection [10:16:25]New thread 3067293028 created [10:16:25]Thread 3067149668 joined [10:16:25]Waiting for new connection... [10:16:25] Sock 7.Parse request [10:16:25]Sock 7.Check first char [10:16:25]Sock 7.First char is OK [10:16:25]request: POST /json_proto HTTP/1.0 [10:16:25]Method: POST [10:16:25]URL: /json_proto [10:16:25]Method is POST - this is cgi request [10:16:25]url: /json_proto [10:16:25]query_string will be loaded in cgi processing [10:16:25]execute_cgi json_proto POST (null) [10:16:25]execute_cgi path=json_proto method=POST [10:16:25]POST find Content-Length [10:16:25]Host: 172.17.56.4:8080 [10:16:25]Content-Length: 677 [10:16:25]Content-Type: application/json [10:16:25] [10:16:25]POST finish read [10:16:25]Found Content-Length = 677 [10:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:25]execute_script... [10:16: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)458608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:25]POST & json_proto [10:16:25]process_json_proto [10:16:25]json parsed OK: [10:16:25]protocol is kg_v1.0 [10:16:25]action value=close_receipt [10:16:25]process_action close_receipt [10:16:25]cmd_close_receipt [10:16:25]MH_GetDate [10:16:25]Write to MH i2c: F0 00 00 0A 07 00 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: F0 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: F0 09 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: F0 09 00 0A 07 00 FB 53 92 66 C9 DC B2 64 0A [10:16:25]GetLastDocTimeStamp 1720865567 [10:16:25]current date 1720865787 [10:16:25]FM_GetShiftState [10:16:25]SAM_PROTO_GetShiftState [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 13 01 00 [10:16:25]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 0E 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 70 [10:16:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:16:25]wFMCommunicate OK [10:16:25]SAM_PROTO_GetShiftState done [10:16:25]FM_GetShiftState done [10:16:25]opened in 1720831249 [10:16:25]opened+sec_in_day 1720917649 [10:16:25]quantity*price = 50008 [10:16:25]sum+1 = 50009 [10:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 79 13.07.2024 10:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164519 ФПД: 204556953052236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164519&fm=204556953052236&tin=02508201610067®Number=0000000000090829&sum=50000 [10:16:26]StoreToDocumentArchive [10:16:26]shift 446 fd 164519 [10:16:26]save to /storage/0446/doc_00164519 [10:16:26]save last doc name /storage/0446/doc_00164519 to /storage/kkm_last_doc_name [10:16:26]save OK [10:16:26]Clear old archive folders... [10:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:27]tlvbuf is B6EFBB30 [10:16:27]SAM_PROTO_ClearQueue [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 09 00 00 [10:16:27]Write to MH i2c: E2 08 00 18 07 80 09 00 00 00 00 00 00 91 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [10:16:27]RAPDU: 90 00 [10:16:27]wFMCommunicate OK [10:16:27]SAM_PROTO_ClearQueue done [10:16:27]KKMCreateOFDPacket [10:16:27]OFDProtocolAddRootSTLVToBuf [10:16:27]FM_MakeSignedData [10:16:27]FM_MakeSignedData [10:16:27]SAM_PROTO_SignData [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 0D 01 02 [10:16:27]Write to MH i2c: E2 08 00 19 07 80 0D 01 02 00 00 00 00 99 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [10:16:27]RAPDU: 90 00 [10:16:27]wFMCommunicate OK [10:16:27]wFMCommunicate request_size=255 [10:16:27]MH_SAM_APDU [10:16: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4F 00 00 00 F4 03 04 00 FB 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 82 02 00 35 04 06 00 BA [10:16:27]Write to MH i2c: E2 02 01 1A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4F 00 00 00 F4 03 04 00 FB 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 82 02 00 35 04 06 00 BA 00 00 4B [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [10:16:27]RAPDU: 90 00 [10:16:27]wFMCommunicate OK [10:16:27]wFMCommunicate request_size=10 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 0D 02 02 05 0B 20 85 E4 4C [10:16:27]Write to MH i2c: E2 0D 00 1B 07 80 0D 02 02 05 00 0B 20 85 E4 4C 00 00 86 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [10:16:27]RAPDU: 90 00 [10:16:27]wFMCommunicate OK [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 0D 03 02 [10:16:27]Write to MH i2c: E2 08 00 1C 07 80 0D 03 02 00 00 00 00 9E [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0B 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0B 00 1C 07 00 CA 1B 09 87 FB 98 7D 3A 90 00 5E [10:16:27]RAPDU: CA 1B 09 87 FB 98 7D 3A 90 00 [10:16:27]wFMCommunicate OK [10:16:27]SAM_PROTO_SignData done [10:16:27]FM_MakeSignedData done [10:16:27]CreateOFDProtocolMessage [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 11 00 00 [10:16:27]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 17 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [10:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:27]wFMCommunicate OK [10:16:27]CreateOFDProtocolMessage done [10:16:27]OFDSenderStorePacket 164519 [10:16:27]StoreOFDPacket docnum=164519 [10:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 28 07 01 AD 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4F 00 00 00 F4 03 04 00 FB 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 82 02 00 35 04 06 00 BA 0B 20 85 E4 4C CA 1B 09 87 FB 98 7D 3A [10:16:27]CheckFolder [10:16:27]dirname=/storage/ofd_packets [10:16:27]CheckFolder done [10:16:27]ProducePacketName [10:16:27]name=ofd_packets/00164519 [10:16:27]NVStorageSaveData ofd_packets/00164519 [10:16:27]File name is /storage/ofd_packets/00164519 [10:16:27]Write 301 bytes [10:16:27]NVStorageSaveData done [10:16:27]OFDSenderStorePacket done [10:16:27]KKMCreateOFDPacket done [10:16:27]NVStorageSaveData kkm_last_timestamp [10:16:27]File name is /storage/kkm_last_timestamp [10:16:27]Write 4 bytes [10:16:27]NVStorageSaveData done [10:16:27]ExternCall_PrintAddStr [10:16:27]wPrintStart [10:16:27]Write to MH i2c: 01 00 00 1E 07 25 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 07 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [10:16:27]RasterBufferAndPrint [10:16:27]line Счет N : (1)458608 [10:16:27]line ИНН: 02508201610067 [10:16:27]line Контрольно-Кассовый Чек [10:16:27]line ПРОДАЖА [10:16:27]line ТРК (МРК, ГНК) : 12 [10:16:27]line Товар: 2710124130 [10:16:27]line Аи-92-К-5 [10:16:27]line 7.600 * 65.80 [10:16:27]line = 500.08 [10:16:27]line НДС 12% НСП 1% [10:16:27]line > о реализуемом товаре [10:16:27]line ОКРУГЛЕНИЕ: -0.08 [10:16:27]line ИТОГО: 500.00 [10:16:27]line Внесено: 500.00 [10:16:27]line СДАЧА: 0.00 [10:16:27]line НСП 1% : 4.42 [10:16:27]line НДС 12% : 53.11 [10:16:27]line Наличными: 500.00 [10:16:27]line Безнал.: 0.00 [10:16:27]line Место: АЗС № 72 "Партнер Нефть" [10:16:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:16:27]line СНО: Общий режим [10:16:27]line Чек 79 13.07.2024 10:16 [10:16:27]line Смена: 446 ФФД: 1.0 [10:16:27]line ЗНМ: 0300000160 [10:16:27]line РНМ: 0000000000090829 [10:16:27]line Версия ККМ: 001 [10:16:27]line ФМ: 0000000000874718 [10:16:27]line ФД: 164519 [10:16:27]line ФПД: 204556953052236 [10:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164519&fm=204556953052236&tin=02508201610067®Number=0000000000090829&sum=50000 [10:16:27]OFD Sender: Processing packet 164519 [packets to send 104, broken 103] [10:16:27]ProducePacketName [10:16:27]name=ofd_packets/00164519 [10:16:27]OFD Sender: To server: pG, [10:16:27]CommunicateWithHost lk.salyk.kg:30040 [10:16:27]ConnectInit lk.salyk.kg [10:16:27]written 0, free lines is 4095 [10:16:27]Connected sock=10 [10:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 28 07 01 AD 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 4F 00 00 00 F4 03 04 00 FB 53 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 82 02 00 35 04 06 00 BA 0B 20 85 E4 4C CA 1B 09 87 FB 98 7D 3A [10:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 97 47 00 5F 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 34 37 31 38 10 04 04 00 A7 82 02 00 F4 03 04 00 8C FA 91 66 B6 04 01 00 00 8A F0 1A 88 DC A3 0F 51 [10:16:28]CommunicateWithHost err = 0 [10:16:28]CheckOFDResponse [10:16:28]1017 (14) - 77093643461234 [10:16:28]1041 (16) - 0000000000874718 [10:16:28]1040 (4) - 164519 [10:16:28]1012 (4) - 13.07.2024 03:54 [10:16:28]1206 (1) - 0 [10:16:28]OFD Sender: Remove packet 164519 [10:16:28]ProducePacketName [10:16:28]name=ofd_packets/00164519 [10:16:28]NVStorageDeleteData [10:16:28]Write to MH i2c: 01 00 00 48 07 4F [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: 01 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: 01 07 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 01 0D 64 [10:16:28]RasterBufferAndPrint [10:16:28]line [10:16:28]line [10:16:28]line [10:16:28]line [10:16:28]line [10:16:28]written 0, free lines is 3335 [10:16:28]MH_Cut [10:16:28]Write to MH i2c: D1 01 00 4F 07 01 28 [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: D1 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: D1 01 00 [10:16:28]MH_I2C_Read... [10:16:28]Read from MH i2c: D1 01 00 4F 07 00 27 [10:16:28]Write to MH i2c: 01 00 00 50 07 57 [10:16:28]Write i2c OK [10:16:28]MH_I2C_Read... [10:16:28]OFD Sender: No OFD packet to send [10:16:28]*** Cut start [10:16:28]*** Partial cut [10:16:28]*** CUTSNS_PIN = 1 [10:16:29]*** CUTSNS_PIN = 0 [10:16:29]*** Brake cut motor [10:16:29]Read from MH i2c: 01 [10:16:29]MH_I2C_Read... [10:16:29]*** Stop cut motor [10:16:29]*** Cut end [10:16:29]Read from MH i2c: 01 07 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 FF 0F 6C [10:16:29]process_action close_receipt done [10:16:29]requested_data is exist [10:16:29]produce_requested_data [10:16:29]requested_item fm.sn is exist - process it [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 11 00 00 [10:16:29]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 17 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [10:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:29]wFMCommunicate OK [10:16:29]requested_item fd.num is exist - process it [10:16:29]SAM_PROTO_GetFieldsCounters [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 13 00 00 [10:16:29]Write to MH i2c: E2 08 00 52 07 80 13 00 00 00 00 00 00 D5 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 62 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 62 00 52 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 82 02 00 0E 04 04 00 BE 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 D3 [10:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 82 02 00 0E 04 04 00 BE 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 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_GetFieldsCounters done [10:16:29]requested_item shift.num is exist - process it [10:16:29]requested_item shift.opened is exist - process it [10:16:29]req_shift_opened [10:16:29]FM_GetShiftState [10:16:29]SAM_PROTO_GetShiftState [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 13 01 00 [10:16:29]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B8 [10:16:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_GetShiftState done [10:16:29]FM_GetShiftState done [10:16:29]req_shift_opened done [10:16:29]requested_item shift.open_date is exist - process it [10:16:29]req_shift_open_date [10:16:29]req_shift_open_date done [10:16:29]produce_requested_data done [10:16:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164519,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:16:29]process_action_free close_receipt [10:16:29]json_value_free [10:16:29]json_value_free done [10:16:29]process_json_proto returns [10:16:29]Send response to host [10:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164519,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:16:29]free response buf [10:16:29]execute_script done [10:16:29]execute_script returns [10:16:29]free content buf [10:16:29]Sock 7.Close socket [10:16:29]Sock 7.Thread stoped [10:16:31]accept exits with 9 [10:16:31]New connection [10:16:31]New thread 3067149668 created [10:16:31]Thread 3067293028 joined [10:16:31]Waiting for new connection... [10:16:31] Sock 9.Parse request [10:16:31]Sock 9.Check first char [10:16:31]Sock 9.First char is OK [10:16:31]request: POST /json_proto HTTP/1.0 [10:16:31]Method: POST [10:16:31]URL: /json_proto [10:16:31]Method is POST - this is cgi request [10:16:31]url: /json_proto [10:16:31]query_string will be loaded in cgi processing [10:16:31]execute_cgi json_proto POST (null) [10:16:31]execute_cgi path=json_proto method=POST [10:16:31]POST find Content-Length [10:16:31]Host: 172.17.56.4:8080 [10:16:31]Content-Length: 679 [10:16:31]Content-Type: application/json [10:16:31] [10:16:31]POST finish read [10:16:31]Found Content-Length = 679 [10:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:31]execute_script... [10:16: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)458607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:31]POST & json_proto [10:16:31]process_json_proto [10:16:31]json parsed OK: [10:16:31]protocol is kg_v1.0 [10:16:31]action value=close_receipt [10:16:31]process_action close_receipt [10:16:31]cmd_close_receipt [10:16:31]MH_GetDate [10:16:31]Write to MH i2c: F0 00 00 54 07 4A [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: F0 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: F0 09 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: F0 09 00 54 07 00 00 54 92 66 C9 DC B2 64 5A [10:16:31]GetLastDocTimeStamp 1720865787 [10:16:31]current date 1720865792 [10:16:31]FM_GetShiftState [10:16:31]SAM_PROTO_GetShiftState [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 13 01 00 [10:16:31]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [10:16:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_GetShiftState done [10:16:31]FM_GetShiftState done [10:16:31]opened in 1720831249 [10:16:31]opened+sec_in_day 1720917649 [10:16:31]quantity*price = 500064 [10:16:31]sum+1 = 500066 [10:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 80 13.07.2024 10:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164520 ФПД: 77346429821383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164520&fm=77346429821383&tin=02508201610067®Number=0000000000090829&sum=500000 [10:16:32]StoreToDocumentArchive [10:16:32]shift 446 fd 164520 [10:16:32]save to /storage/0446/doc_00164520 [10:16:32]save last doc name /storage/0446/doc_00164520 to /storage/kkm_last_doc_name [10:16:32]save OK [10:16:32]Clear old archive folders... [10:16:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:16:32]tlvbuf is B6FAB980 [10:16:32]SAM_PROTO_ClearQueue [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 09 00 00 [10:16:32]Write to MH i2c: E2 08 00 62 07 80 09 00 00 00 00 00 00 DB [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]SAM_PROTO_ClearQueue done [10:16:32]KKMCreateOFDPacket [10:16:32]OFDProtocolAddRootSTLVToBuf [10:16:32]FM_MakeSignedData [10:16:32]FM_MakeSignedData [10:16:32]SAM_PROTO_SignData [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 01 02 [10:16:32]Write to MH i2c: E2 08 00 63 07 80 0D 01 02 00 00 00 00 E3 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=255 [10:16:32]MH_SAM_APDU [10:16: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 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 00 54 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 82 02 00 35 04 06 00 46 58 9E 79 [10:16:32]Write to MH i2c: E2 02 01 64 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 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 00 54 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 82 02 00 35 04 06 00 46 58 9E 79 00 00 A4 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=7 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 02 02 02 61 C7 [10:16:32]Write to MH i2c: E2 0A 00 65 07 80 0D 02 02 02 00 61 C7 00 00 12 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:32]Read from MH i2c: E2 03 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [10:16:32]RAPDU: 90 00 [10:16:32]wFMCommunicate OK [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 0D 03 02 [10:16:32]Write to MH i2c: E2 08 00 66 07 80 0D 03 02 00 00 00 00 E8 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0B 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0B 00 66 07 00 D6 76 01 FC 97 2E 27 A8 90 00 C6 [10:16:33]RAPDU: D6 76 01 FC 97 2E 27 A8 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_SignData done [10:16:33]FM_MakeSignedData done [10:16:33]CreateOFDProtocolMessage [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 11 00 00 [10:16:33]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [10:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:33]wFMCommunicate OK [10:16:33]CreateOFDProtocolMessage done [10:16:33]OFDSenderStorePacket 164520 [10:16:33]StoreOFDPacket docnum=164520 [10:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EE 60 04 01 B4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 00 54 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 82 02 00 35 04 06 00 46 58 9E 79 61 C7 D6 76 01 FC 97 2E 27 A8 [10:16:33]CheckFolder [10:16:33]dirname=/storage/ofd_packets [10:16:33]CheckFolder done [10:16:33]ProducePacketName [10:16:33]name=ofd_packets/00164520 [10:16:33]NVStorageSaveData ofd_packets/00164520 [10:16:33]File name is /storage/ofd_packets/00164520 [10:16:33]Write 298 bytes [10:16:33]NVStorageSaveData done [10:16:33]OFDSenderStorePacket done [10:16:33]KKMCreateOFDPacket done [10:16:33]NVStorageSaveData kkm_last_timestamp [10:16:33]File name is /storage/kkm_last_timestamp [10:16:33]Write 4 bytes [10:16:33]NVStorageSaveData done [10:16:33]ExternCall_PrintAddStr [10:16:33]wPrintStart [10:16:33]Write to MH i2c: 01 00 00 68 07 6F [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [10:16:33]RasterBufferAndPrint [10:16:33]line Счет N : (1)458607 [10:16:33]line ИНН: 02508201610067 [10:16:33]line Контрольно-Кассовый Чек [10:16:33]line ПРОДАЖА [10:16:33]line ТРК (МРК, ГНК) : 11 [10:16:33]line Товар: 2710194210 [10:16:33]line ДТ-К-5 [10:16:33]line 69.550 * 71.90 [10:16:33]line = 5000.65 [10:16:33]line НДС 12% НСП 1% [10:16:33]line > о реализуемом товаре [10:16:33]line ОКРУГЛЕНИЕ: -0.65 [10:16:33]line ИТОГО: 5000.00 [10:16:33]line Внесено: 5000.00 [10:16:33]line СДАЧА: 0.00 [10:16:33]line НСП 1% : 44.25 [10:16:33]line НДС 12% : 531.04 [10:16:33]line Наличными: 5000.00 [10:16:33]line Безнал.: 0.00 [10:16:33]line Место: АЗС № 72 "Партнер Нефть" [10:16:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:16:33]line СНО: Общий режим [10:16:33]line Чек 80 13.07.2024 10:16 [10:16:33]line Смена: 446 ФФД: 1.0 [10:16:33]line ЗНМ: 0300000160 [10:16:33]line РНМ: 0000000000090829 [10:16:33]line Версия ККМ: 001 [10:16:33]line ФМ: 0000000000874718 [10:16:33]line ФД: 164520 [10:16:33]line ФПД: 77346429821383 [10:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164520&fm=77346429821383&tin=02508201610067®Number=0000000000090829&sum=500000 [10:16:33]OFD Sender: Processing packet 164520 [packets to send 104, broken 103] [10:16:33]ProducePacketName [10:16:33]name=ofd_packets/00164520 [10:16:33]OFD Sender: To server: pG, [10:16:33]CommunicateWithHost lk.salyk.kg:30040 [10:16:33]ConnectInit lk.salyk.kg [10:16:33]written 0, free lines is 4095 [10:16:33]Connected sock=10 [10:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EE 60 04 01 B4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 00 54 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 82 02 00 35 04 06 00 46 58 9E 79 61 C7 D6 76 01 FC 97 2E 27 A8 [10:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 1B 47 00 D1 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 82 02 00 F4 03 04 00 91 FA 91 66 B6 04 01 00 00 32 A7 4A DE E5 E2 C8 7E [10:16:33]CommunicateWithHost err = 0 [10:16:33]CheckOFDResponse [10:16:33]1017 (14) - 77093643461234 [10:16:33]1041 (16) - 0000000000874718 [10:16:33]1040 (4) - 164520 [10:16:33]1012 (4) - 13.07.2024 03:54 [10:16:33]1206 (1) - 0 [10:16:33]OFD Sender: Remove packet 164520 [10:16:33]ProducePacketName [10:16:33]name=ofd_packets/00164520 [10:16:33]NVStorageDeleteData [10:16:33]Write to MH i2c: 01 00 00 92 07 99 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 0B 0D B8 [10:16:33]RasterBufferAndPrint [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]line [10:16:33]written 0, free lines is 3348 [10:16:33]MH_Cut [10:16:33]Write to MH i2c: D1 01 00 99 07 01 72 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: D1 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: D1 01 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: D1 01 00 99 07 00 71 [10:16:33]Write to MH i2c: 01 00 00 9A 07 A1 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]OFD Sender: No OFD packet to send [10:16:34]*** Cut start [10:16:34]*** Partial cut [10:16:34]*** CUTSNS_PIN = 1 [10:16:34]*** CUTSNS_PIN = 0 [10:16:34]*** Brake cut motor [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]*** Stop cut motor [10:16:34]*** Cut end [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 FF 0F B6 [10:16:34]process_action close_receipt done [10:16:34]requested_data is exist [10:16:34]produce_requested_data [10:16:34]requested_item fm.sn is exist - process it [10:16:34]wFMCommunicate request_size=4 [10:16:34]MH_SAM_APDU [10:16:34]CAPDU: 80 11 00 00 [10:16:34]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:34]Read from MH i2c: E2 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 17 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [10:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:34]wFMCommunicate OK [10:16:34]requested_item fd.num is exist - process it [10:16:34]SAM_PROTO_GetFieldsCounters [10:16:34]wFMCommunicate request_size=4 [10:16:34]MH_SAM_APDU [10:16:34]CAPDU: 80 13 00 00 [10:16:34]Write to MH i2c: E2 08 00 9C 07 80 13 00 00 00 00 00 00 1F [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:35]Read from MH i2c: E2 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 62 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 62 00 9C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 82 02 00 0E 04 04 00 BE 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 21 [10:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 82 02 00 0E 04 04 00 BE 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 [10:16:35]wFMCommunicate OK [10:16:35]SAM_PROTO_GetFieldsCounters done [10:16:35]requested_item shift.num is exist - process it [10:16:35]requested_item shift.opened is exist - process it [10:16:35]req_shift_opened [10:16:35]FM_GetShiftState [10:16:35]SAM_PROTO_GetShiftState [10:16:35]wFMCommunicate request_size=4 [10:16:35]MH_SAM_APDU [10:16:35]CAPDU: 80 13 01 00 [10:16:35]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:35]Read from MH i2c: E2 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 02 [10:16:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:16:35]wFMCommunicate OK [10:16:35]SAM_PROTO_GetShiftState done [10:16:35]FM_GetShiftState done [10:16:35]req_shift_opened done [10:16:35]requested_item shift.open_date is exist - process it [10:16:35]req_shift_open_date [10:16:35]req_shift_open_date done [10:16:35]produce_requested_data done [10:16:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164520,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:16:35]process_action_free close_receipt [10:16:35]json_value_free [10:16:35]json_value_free done [10:16:35]process_json_proto returns [10:16:35]Send response to host [10:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164520,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:16:35]free response buf [10:16:35]execute_script done [10:16:35]execute_script returns [10:16:35]free content buf [10:16:35]Sock 9.Close socket [10:16:35]Sock 9.Thread stoped [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:50]accept exits with 7 [10:21:50]New connection [10:21:50]New thread 3067293028 created [10:21:50]Thread 3067149668 joined [10:21:50]Waiting for new connection... [10:21:50] Sock 7.Parse request [10:21:50]Sock 7.Check first char [10:21:50]Sock 7.First char is OK [10:21:50]request: POST /json_proto HTTP/1.0 [10:21:50]Method: POST [10:21:50]URL: /json_proto [10:21:50]Method is POST - this is cgi request [10:21:50]url: /json_proto [10:21:50]query_string will be loaded in cgi processing [10:21:50]execute_cgi json_proto POST (null) [10:21:50]execute_cgi path=json_proto method=POST [10:21:50]POST find Content-Length [10:21:50]Host: 172.17.56.4:8080 [10:21:50]Content-Length: 1204 [10:21:50]Content-Type: application/json [10:21:50] [10:21:50]POST finish read [10:21:50]Found Content-Length = 1204 [10:21:50]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458609\u000A13.07.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 90.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 6471.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:50]execute_script... [10:21:50]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458609\u000A13.07.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 90.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 6471.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:50]POST & json_proto [10:21:50]process_json_proto [10:21:50]json parsed OK: [10:21:50]protocol is kg_v1.0 [10:21:50]action value=print_text [10:21:50]process_action print_text [10:21:50]cmd_print_text [10:21:50]ExternCall_PrintAddStr [10:21:50]wPrintStart [10:21:50]Write to MH i2c: 01 00 00 9E 07 A5 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [10:21:50]RasterBufferAndPrint [10:21:50]line *****ТОВАРНЫЙ ЧЕК***** [10:21:50]line АЗС 72 [10:21:50]line Партнер нефть [10:21:50]line 02508201610067 [10:21:50]line Кассир : Женишбеков Т. [10:21:50]line Счет N : (1)458609 [10:21:50]line 13.07.2024 09:47 [10:21:50]line ПРОДАЖА [10:21:50]line ТРК (МРК, ГНК): 21 [10:21:50]line Вид ГСМ : 2710194210 [10:21:50]line ДТ-К-5 [10:21:50]line 90.000 x 71.90 [10:21:50]line ИТОГ: 6471.00 [10:21:50]line Тип оплаты: Талоны: Топливная Карта [10:21:50]line 32771 [10:21:50]line ______________________ [10:21:50]line (подпись) [10:21:50]written 0, free lines is 4095 [10:21:50]Write to MH i2c: 01 00 00 B3 07 BA [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 F3 0D C1 [10:21:50]RasterBufferAndPrint [10:21:50]line [10:21:50]line [10:21:50]line [10:21:50]line [10:21:50]line [10:21:50]written 0, free lines is 3573 [10:21:50]MH_Cut [10:21:50]Write to MH i2c: D1 01 00 BA 07 01 93 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: D1 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: D1 01 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: D1 01 00 BA 07 00 92 [10:21:50]Write to MH i2c: 01 00 00 BB 07 C2 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** Cut start [10:21:50]*** Partial cut [10:21:50]*** CUTSNS_PIN = 1 [10:21:50]*** CUTSNS_PIN = 0 [10:21:50]*** Brake cut motor [10:21:51]Read from MH i2c: 01 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 07 00 [10:21:51]MH_I2C_Read... [10:21:51]*** Stop cut motor [10:21:51]*** Cut end [10:21:51]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [10:21:51]process_action print_text done [10:21:51]requested_data is exist [10:21:51]produce_requested_data [10:21:51]requested_item fm.sn is exist - process it [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 11 00 00 [10:21:51]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 17 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [10:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:21:51]wFMCommunicate OK [10:21:51]requested_item fd.num is exist - process it [10:21:51]SAM_PROTO_GetFieldsCounters [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 13 00 00 [10:21:51]Write to MH i2c: E2 08 00 BD 07 80 13 00 00 00 00 00 00 40 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 62 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 62 00 BD 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 82 02 00 0E 04 04 00 BE 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 42 [10:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 82 02 00 0E 04 04 00 BE 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 [10:21:51]wFMCommunicate OK [10:21:51]SAM_PROTO_GetFieldsCounters done [10:21:51]requested_item shift.num is exist - process it [10:21:51]requested_item shift.opened is exist - process it [10:21:51]req_shift_opened [10:21:51]FM_GetShiftState [10:21:51]SAM_PROTO_GetShiftState [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 13 01 00 [10:21:51]Write to MH i2c: E2 08 00 BE 07 80 13 01 00 00 00 00 00 42 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 0E 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 0E 00 BE 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 23 [10:21:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:21:51]wFMCommunicate OK [10:21:51]SAM_PROTO_GetShiftState done [10:21:51]FM_GetShiftState done [10:21:51]req_shift_opened done [10:21:51]requested_item shift.open_date is exist - process it [10:21:51]req_shift_open_date [10:21:51]req_shift_open_date done [10:21:51]produce_requested_data done [10:21:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164520,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:21:51]process_action_free print_text [10:21:51]json_value_free [10:21:51]json_value_free done [10:21:51]process_json_proto returns [10:21:51]Send response to host [10:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164520,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:21:51]free response buf [10:21:51]execute_script done [10:21:51]execute_script returns [10:21:51]free content buf [10:21:51]Sock 7.Close socket [10:21:51]Sock 7.Thread stoped [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:45]accept exits with 9 [10:22:45]New connection [10:22:45]New thread 3067149668 created [10:22:45]Thread 3067293028 joined [10:22:45]Waiting for new connection... [10:22:45] Sock 9.Parse request [10:22:45]Sock 9.Check first char [10:22:45]Sock 9.First char is OK [10:22:45]request: POST /json_proto HTTP/1.0 [10:22:45]Method: POST [10:22:45]URL: /json_proto [10:22:45]Method is POST - this is cgi request [10:22:45]url: /json_proto [10:22:45]query_string will be loaded in cgi processing [10:22:45]execute_cgi json_proto POST (null) [10:22:45]execute_cgi path=json_proto method=POST [10:22:45]POST find Content-Length [10:22:45]Host: 172.17.56.4:8080 [10:22:45]Content-Length: 790 [10:22:45]Content-Type: application/json [10:22:45] [10:22:45]POST finish read [10:22:45]Found Content-Length = 790 [10:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:45]execute_script... [10:22: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)458610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:45]POST & json_proto [10:22:45]process_json_proto [10:22:45]json parsed OK: [10:22:45]protocol is kg_v1.0 [10:22:45]action value=close_receipt [10:22:45]process_action close_receipt [10:22:45]cmd_close_receipt [10:22:45]MH_GetDate [10:22:45]Write to MH i2c: F0 00 00 BF 07 B5 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: F0 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: F0 09 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: F0 09 00 BF 07 00 77 55 92 66 C9 DC B2 64 3D [10:22:45]GetLastDocTimeStamp 1720865792 [10:22:45]current date 1720866167 [10:22:45]FM_GetShiftState [10:22:45]SAM_PROTO_GetShiftState [10:22:45]wFMCommunicate request_size=4 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 13 01 00 [10:22:45]Write to MH i2c: E2 08 00 C0 07 80 13 01 00 00 00 00 00 44 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0E 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0E 00 C0 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 25 [10:22:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:22:45]wFMCommunicate OK [10:22:45]SAM_PROTO_GetShiftState done [10:22:45]FM_GetShiftState done [10:22:45]opened in 1720831249 [10:22:45]opened+sec_in_day 1720917649 [10:22:45]quantity*price = 30001 [10:22:45]sum+1 = 30002 [10:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 81 13.07.2024 10:22 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164521 ФПД: 213115447405676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164521&fm=213115447405676&tin=02508201610067®Number=0000000000090829&sum=30001 [10:22:47]StoreToDocumentArchive [10:22:47]shift 446 fd 164521 [10:22:47]save to /storage/0446/doc_00164521 [10:22:47]save last doc name /storage/0446/doc_00164521 to /storage/kkm_last_doc_name [10:22:47]save OK [10:22:47]Clear old archive folders... [10:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:47]tlvbuf is 0143AB20 [10:22:47]SAM_PROTO_ClearQueue [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 09 00 00 [10:22:47]Write to MH i2c: E2 08 00 CD 07 80 09 00 00 00 00 00 00 46 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [10:22:47]RAPDU: 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_ClearQueue done [10:22:47]KKMCreateOFDPacket [10:22:47]OFDProtocolAddRootSTLVToBuf [10:22:47]FM_MakeSignedData [10:22:47]FM_MakeSignedData [10:22:47]SAM_PROTO_SignData [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 0D 01 02 [10:22:47]Write to MH i2c: E2 08 00 CE 07 80 0D 01 02 00 00 00 00 4E [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [10:22:47]RAPDU: 90 00 [10:22:47]wFMCommunicate OK [10:22:47]wFMCommunicate request_size=255 [10:22:47]MH_SAM_APDU [10:22: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 77 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 82 02 00 35 04 06 00 C1 [10:22:47]Write to MH i2c: E2 02 01 CF 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 77 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 82 02 00 35 04 06 00 C1 00 00 36 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 CF 07 00 90 00 4A [10:22:47]RAPDU: 90 00 [10:22:47]wFMCommunicate OK [10:22:47]wFMCommunicate request_size=10 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 0D 02 02 05 D3 CE 89 EC 6C [10:22:47]Write to MH i2c: E2 0D 00 D0 07 80 0D 02 02 05 00 D3 CE 89 EC 6C 00 00 DD [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 03 00 D0 07 00 90 00 4B [10:22:47]RAPDU: 90 00 [10:22:47]wFMCommunicate OK [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 0D 03 02 [10:22:47]Write to MH i2c: E2 08 00 D1 07 80 0D 03 02 00 00 00 00 53 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0B 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0B 00 D1 07 00 64 14 2B 9B 64 2D 6A 4C 90 00 D9 [10:22:47]RAPDU: 64 14 2B 9B 64 2D 6A 4C 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_SignData done [10:22:47]FM_MakeSignedData done [10:22:47]CreateOFDProtocolMessage [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 11 00 00 [10:22:47]Write to MH i2c: E2 08 00 D2 07 80 11 00 00 00 00 00 00 53 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 17 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 17 00 D2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [10:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:22:47]wFMCommunicate OK [10:22:47]CreateOFDProtocolMessage done [10:22:47]OFDSenderStorePacket 164521 [10:22:47]StoreOFDPacket docnum=164521 [10:22:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 65 07 01 A8 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 77 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 82 02 00 35 04 06 00 C1 D3 CE 89 EC 6C 64 14 2B 9B 64 2D 6A 4C [10:22:47]CheckFolder [10:22:47]dirname=/storage/ofd_packets [10:22:47]CheckFolder done [10:22:47]ProducePacketName [10:22:47]name=ofd_packets/00164521 [10:22:47]NVStorageSaveData ofd_packets/00164521 [10:22:47]File name is /storage/ofd_packets/00164521 [10:22:47]Write 301 bytes [10:22:47]NVStorageSaveData done [10:22:47]OFDSenderStorePacket done [10:22:47]KKMCreateOFDPacket done [10:22:47]NVStorageSaveData kkm_last_timestamp [10:22:47]File name is /storage/kkm_last_timestamp [10:22:47]Write 4 bytes [10:22:47]NVStorageSaveData done [10:22:47]ExternCall_PrintAddStr [10:22:47]wPrintStart [10:22:47]Write to MH i2c: 01 00 00 D3 07 DA [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: 01 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: 01 07 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 FF 0F EF [10:22:47]RasterBufferAndPrint [10:22:47]line Счет N : (1)458610 [10:22:47]line ИНН: 02508201610067 [10:22:47]line Контрольно-Кассовый Чек [10:22:47]line ПРОДАЖА [10:22:47]line ТРК (МРК, ГНК) : 12 [10:22:47]line Товар: 2710124130 [10:22:47]line Аи-92-К-5 [10:22:47]line 4.600 * 65.22 [10:22:47]line = 300.01 [10:22:47]line НДС 12% НСП 1% [10:22:47]line > о реализуемом товаре [10:22:47]line ИТОГО: 300.01 [10:22:47]line НСП 1% : 2.65 [10:22:47]line НДС 12% : 31.86 [10:22:47]line Наличными: 0.00 [10:22:47]line Безнал.: 300.01 [10:22:47]line Место: АЗС № 72 "Партнер Нефть" [10:22:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:22:47]line СНО: Общий режим [10:22:47]line Чек 81 13.07.2024 10:22 [10:22:47]line Смена: 446 ФФД: 1.0 [10:22:47]line ЗНМ: 0300000160 [10:22:47]line РНМ: 0000000000090829 [10:22:47]line Версия ККМ: 001 [10:22:47]line Платежная система: KICB Банк [10:22:47]line ФМ: 0000000000874718 [10:22:47]line ФД: 164521 [10:22:47]line ФПД: 213115447405676 [10:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164521&fm=213115447405676&tin=02508201610067®Number=0000000000090829&sum=30001 [10:22:47]written 0, free lines is 4095 [10:22:47]OFD Sender: Processing packet 164521 [packets to send 104, broken 103] [10:22:47]ProducePacketName [10:22:47]name=ofd_packets/00164521 [10:22:47]OFD Sender: To server: pG, [10:22:47]CommunicateWithHost lk.salyk.kg:30040 [10:22:47]ConnectInit lk.salyk.kg [10:22:47]Connected sock=10 [10:22:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 65 07 01 A8 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 77 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 82 02 00 35 04 06 00 C1 D3 CE 89 EC 6C 64 14 2B 9B 64 2D 6A 4C [10:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 9A 47 00 0D 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 82 02 00 F4 03 04 00 08 FC 91 66 B6 04 01 00 00 AD 2E 0C B3 58 CE E2 18 [10:22:47]CommunicateWithHost err = 0 [10:22:47]CheckOFDResponse [10:22:47]1017 (14) - 77093643461234 [10:22:47]1041 (16) - 0000000000874718 [10:22:47]1040 (4) - 164521 [10:22:47]1012 (4) - 13.07.2024 04:01 [10:22:47]1206 (1) - 0 [10:22:47]OFD Sender: Remove packet 164521 [10:22:47]ProducePacketName [10:22:47]name=ofd_packets/00164521 [10:22:47]NVStorageDeleteData [10:22:48]Write to MH i2c: 01 00 00 FC 07 03 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 07 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 0D 0D 24 [10:22:48]RasterBufferAndPrint [10:22:48]line [10:22:48]line [10:22:48]line [10:22:48]line [10:22:48]line [10:22:48]written 0, free lines is 3347 [10:22:48]MH_Cut [10:22:48]Write to MH i2c: D1 01 00 03 08 01 DD [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: D1 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: D1 01 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: D1 01 00 03 08 00 DC [10:22:48]Write to MH i2c: 01 00 00 04 08 0C [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]OFD Sender: No OFD packet to send [10:22:48]*** Cut start [10:22:48]*** Partial cut [10:22:48]*** CUTSNS_PIN = 1 [10:22:48]*** CUTSNS_PIN = 0 [10:22:48]*** Brake cut motor [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]*** Stop cut motor [10:22:49]*** Cut end [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 FF 0F 21 [10:22:49]process_action close_receipt done [10:22:49]requested_data is exist [10:22:49]produce_requested_data [10:22:49]requested_item fm.sn is exist - process it [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 11 00 00 [10:22:49]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [10:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:22:49]wFMCommunicate OK [10:22:49]requested_item fd.num is exist - process it [10:22:49]SAM_PROTO_GetFieldsCounters [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 13 00 00 [10:22:49]Write to MH i2c: E2 08 00 06 08 80 13 00 00 00 00 00 00 8A [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 62 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 62 00 06 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 82 02 00 0E 04 04 00 BE 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 90 [10:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 82 02 00 0E 04 04 00 BE 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 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetFieldsCounters done [10:22:49]requested_item shift.num is exist - process it [10:22:49]requested_item shift.opened is exist - process it [10:22:49]req_shift_opened [10:22:49]FM_GetShiftState [10:22:49]SAM_PROTO_GetShiftState [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 13 01 00 [10:22:49]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6D [10:22:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetShiftState done [10:22:49]FM_GetShiftState done [10:22:49]req_shift_opened done [10:22:49]requested_item shift.open_date is exist - process it [10:22:49]req_shift_open_date [10:22:49]req_shift_open_date done [10:22:49]produce_requested_data done [10:22:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164521,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:22:49]process_action_free close_receipt [10:22:49]json_value_free [10:22:49]json_value_free done [10:22:49]process_json_proto returns [10:22:49]Send response to host [10:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164521,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:22:49]free response buf [10:22:49]execute_script done [10:22:49]execute_script returns [10:22:49]free content buf [10:22:49]Sock 9.Close socket [10:22:49]Sock 9.Thread stoped [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:22:58]accept exits with 7 [10:22:58]New connection [10:22:58]New thread 3067293028 created [10:22:58]Thread 3067149668 joined [10:22:58]Waiting for new connection... [10:22:58] Sock 7.Parse request [10:22:58]Sock 7.Check first char [10:22:58]Sock 7.First char is OK [10:22:58]request: POST /json_proto HTTP/1.0 [10:22:58]Method: POST [10:22:58]URL: /json_proto [10:22:58]Method is POST - this is cgi request [10:22:58]url: /json_proto [10:22:58]query_string will be loaded in cgi processing [10:22:58]execute_cgi json_proto POST (null) [10:22:58]execute_cgi path=json_proto method=POST [10:22:58]POST find Content-Length [10:22:58]Host: 172.17.56.4:8080 [10:22:58]Content-Length: 674 [10:22:58]Content-Type: application/json [10:22:58] [10:22:58]POST finish read [10:22:58]Found Content-Length = 674 [10:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:58]execute_script... [10:22: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)458611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:58]POST & json_proto [10:22:58]process_json_proto [10:22:58]json parsed OK: [10:22:58]protocol is kg_v1.0 [10:22:58]action value=close_receipt [10:22:58]process_action close_receipt [10:22:58]cmd_close_receipt [10:22:58]MH_GetDate [10:22:58]Write to MH i2c: F0 00 00 08 08 FF [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 08 08 00 83 55 92 66 C9 DC B2 64 93 [10:22:58]GetLastDocTimeStamp 1720866167 [10:22:58]current date 1720866179 [10:22:58]FM_GetShiftState [10:22:58]SAM_PROTO_GetShiftState [10:22:58]wFMCommunicate request_size=4 [10:22:58]MH_SAM_APDU [10:22:58]CAPDU: 80 13 01 00 [10:22:58]Write to MH i2c: E2 08 00 09 08 80 13 01 00 00 00 00 00 8E [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:58]Read from MH i2c: E2 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 09 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6F [10:22:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:22:58]wFMCommunicate OK [10:22:58]SAM_PROTO_GetShiftState done [10:22:58]FM_GetShiftState done [10:22:58]opened in 1720831249 [10:22:58]opened+sec_in_day 1720917649 [10:22:58]quantity*price = 70030 [10:22:58]sum+1 = 70032 [10:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 82 13.07.2024 10:22 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164522 ФПД: 111714701569358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164522&fm=111714701569358&tin=02508201610067®Number=0000000000090829&sum=70000 [10:22:59]StoreToDocumentArchive [10:22:59]shift 446 fd 164522 [10:22:59]save to /storage/0446/doc_00164522 [10:22:59]save last doc name /storage/0446/doc_00164522 to /storage/kkm_last_doc_name [10:22:59]save OK [10:22:59]Clear old archive folders... [10:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:22:59]tlvbuf is 0140E940 [10:22:59]SAM_PROTO_ClearQueue [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 09 00 00 [10:22:59]Write to MH i2c: E2 08 00 16 08 80 09 00 00 00 00 00 00 90 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]SAM_PROTO_ClearQueue done [10:22:59]KKMCreateOFDPacket [10:22:59]OFDProtocolAddRootSTLVToBuf [10:22:59]FM_MakeSignedData [10:22:59]FM_MakeSignedData [10:22:59]SAM_PROTO_SignData [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 01 02 [10:22:59]Write to MH i2c: E2 08 00 17 08 80 0D 01 02 00 00 00 00 98 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]wFMCommunicate request_size=255 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 82 02 00 35 04 06 00 65 9A 9B 1A [10:22:59]Write to MH i2c: E2 02 01 18 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 82 02 00 35 04 06 00 65 9A 9B 1A 00 00 5F [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=7 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 02 02 02 6D 4E [10:23:00]Write to MH i2c: E2 0A 00 19 08 80 0D 02 02 02 00 6D 4E 00 00 5A [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 19 08 00 90 00 95 [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 03 02 [10:23:00]Write to MH i2c: E2 08 00 1A 08 80 0D 03 02 00 00 00 00 9D [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 1A 08 00 AF 2E CC EB 65 8B 3F 6F 90 00 D0 [10:23:00]RAPDU: AF 2E CC EB 65 8B 3F 6F 90 00 [10:23:00]wFMCommunicate OK [10:23:00]SAM_PROTO_SignData done [10:23:00]FM_MakeSignedData done [10:23:00]CreateOFDProtocolMessage [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 11 00 00 [10:23:00]Write to MH i2c: E2 08 00 1B 08 80 11 00 00 00 00 00 00 9D [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 1B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [10:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:00]wFMCommunicate OK [10:23:00]CreateOFDProtocolMessage done [10:23:00]OFDSenderStorePacket 164522 [10:23:00]StoreOFDPacket docnum=164522 [10:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 21 FA 04 01 DA 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 82 02 00 35 04 06 00 65 9A 9B 1A 6D 4E AF 2E CC EB 65 8B 3F 6F [10:23:00]CheckFolder [10:23:00]dirname=/storage/ofd_packets [10:23:00]CheckFolder done [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00164522 [10:23:00]NVStorageSaveData ofd_packets/00164522 [10:23:00]File name is /storage/ofd_packets/00164522 [10:23:00]Write 298 bytes [10:23:00]NVStorageSaveData done [10:23:00]OFDSenderStorePacket done [10:23:00]KKMCreateOFDPacket done [10:23:00]NVStorageSaveData kkm_last_timestamp [10:23:00]File name is /storage/kkm_last_timestamp [10:23:00]Write 4 bytes [10:23:00]NVStorageSaveData done [10:23:00]ExternCall_PrintAddStr [10:23:00]wPrintStart [10:23:00]Write to MH i2c: 01 00 00 1C 08 24 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 1C 08 00 00 00 00 00 FF 0F 39 [10:23:00]RasterBufferAndPrint [10:23:00]line Счет N : (1)458611 [10:23:00]line ИНН: 02508201610067 [10:23:00]line Контрольно-Кассовый Чек [10:23:00]line ПРОДАЖА [10:23:00]line ТРК (МРК, ГНК) : 21 [10:23:00]line Товар: 2710194210 [10:23:00]line ДТ-К-5 [10:23:00]line 9.740 * 71.90 [10:23:00]line = 700.31 [10:23:00]line НДС 12% НСП 1% [10:23:00]line > о реализуемом товаре [10:23:00]line ОКРУГЛЕНИЕ: -0.31 [10:23:00]line ИТОГО: 700.00 [10:23:00]line Внесено: 700.00 [10:23:00]line СДАЧА: 0.00 [10:23:00]line НСП 1% : 6.20 [10:23:00]line НДС 12% : 74.37 [10:23:00]line Наличными: 700.00 [10:23:00]line Безнал.: 0.00 [10:23:00]line Место: АЗС № 72 "Партнер Нефть" [10:23:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:23:00]line СНО: Общий режим [10:23:00]line Чек 82 13.07.2024 10:22 [10:23:00]line Смена: 446 ФФД: 1.0 [10:23:00]line ЗНМ: 0300000160 [10:23:00]line РНМ: 0000000000090829 [10:23:00]line Версия ККМ: 001 [10:23:00]line ФМ: 0000000000874718 [10:23:00]line ФД: 164522 [10:23:00]line ФПД: 111714701569358 [10:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164522&fm=111714701569358&tin=02508201610067®Number=0000000000090829&sum=70000 [10:23:00]OFD Sender: Processing packet 164522 [packets to send 104, broken 103] [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00164522 [10:23:00]OFD Sender: To server: pG, [10:23:00]CommunicateWithHost lk.salyk.kg:30040 [10:23:00]ConnectInit lk.salyk.kg [10:23:00]written 0, free lines is 4095 [10:23:00]Connected sock=10 [10:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 21 FA 04 01 DA 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 83 55 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 82 02 00 35 04 06 00 65 9A 9B 1A 6D 4E AF 2E CC EB 65 8B 3F 6F [10:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5A 03 47 00 AD 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 34 37 31 38 10 04 04 00 AA 82 02 00 F4 03 04 00 15 FC 91 66 B6 04 01 00 00 9F C3 AC D4 C7 A9 64 18 [10:23:01]CommunicateWithHost err = 0 [10:23:01]CheckOFDResponse [10:23:01]1017 (14) - 77093643461234 [10:23:01]1041 (16) - 0000000000874718 [10:23:01]1040 (4) - 164522 [10:23:01]1012 (4) - 13.07.2024 04:01 [10:23:01]1206 (1) - 0 [10:23:01]OFD Sender: Remove packet 164522 [10:23:01]ProducePacketName [10:23:01]name=ofd_packets/00164522 [10:23:01]NVStorageDeleteData [10:23:01]Write to MH i2c: 01 00 00 46 08 4E [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 07 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0C 60 [10:23:01]RasterBufferAndPrint [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]written 0, free lines is 3336 [10:23:01]MH_Cut [10:23:01]Write to MH i2c: D1 01 00 4D 08 01 27 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 01 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 01 00 4D 08 00 26 [10:23:01]Write to MH i2c: 01 00 00 4E 08 56 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]OFD Sender: No OFD packet to send [10:23:01]*** Cut start [10:23:01]*** Partial cut [10:23:01]*** CUTSNS_PIN = 1 [10:23:01]*** CUTSNS_PIN = 0 [10:23:02]*** Brake cut motor [10:23:02]Read from MH i2c: 01 [10:23:02]MH_I2C_Read... [10:23:02]*** Stop cut motor [10:23:02]*** Cut end [10:23:02]Read from MH i2c: 01 07 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [10:23:02]process_action close_receipt done [10:23:02]requested_data is exist [10:23:02]produce_requested_data [10:23:02]requested_item fm.sn is exist - process it [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 11 00 00 [10:23:02]Write to MH i2c: E2 08 00 4F 08 80 11 00 00 00 00 00 00 D1 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 4F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [10:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:02]wFMCommunicate OK [10:23:02]requested_item fd.num is exist - process it [10:23:02]SAM_PROTO_GetFieldsCounters [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 00 00 [10:23:02]Write to MH i2c: E2 08 00 50 08 80 13 00 00 00 00 00 00 D4 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 50 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 82 02 00 0E 04 04 00 BE 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 DE [10:23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 82 02 00 0E 04 04 00 BE 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 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetFieldsCounters done [10:23:02]requested_item shift.num is exist - process it [10:23:02]requested_item shift.opened is exist - process it [10:23:02]req_shift_opened [10:23:02]FM_GetShiftState [10:23:02]SAM_PROTO_GetShiftState [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 01 00 [10:23:02]Write to MH i2c: E2 08 00 51 08 80 13 01 00 00 00 00 00 D6 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 51 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B7 [10:23:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetShiftState done [10:23:02]FM_GetShiftState done [10:23:02]req_shift_opened done [10:23:02]requested_item shift.open_date is exist - process it [10:23:02]req_shift_open_date [10:23:02]req_shift_open_date done [10:23:02]produce_requested_data done [10:23:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164522,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:23:02]process_action_free close_receipt [10:23:02]json_value_free [10:23:02]json_value_free done [10:23:02]process_json_proto returns [10:23:02]Send response to host [10:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164522,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:23:02]free response buf [10:23:02]execute_script done [10:23:02]execute_script returns [10:23:02]free content buf [10:23:02]Sock 7.Close socket [10:23:02]Sock 7.Thread stoped [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:19]accept exits with 9 [10:25:19]New connection [10:25:19]New thread 3067149668 created [10:25:19]Thread 3067293028 joined [10:25:19]Waiting for new connection... [10:25:19] Sock 9.Parse request [10:25:19]Sock 9.Check first char [10:25:19]Sock 9.First char is OK [10:25:19]request: POST /json_proto HTTP/1.0 [10:25:19]Method: POST [10:25:19]URL: /json_proto [10:25:19]Method is POST - this is cgi request [10:25:19]url: /json_proto [10:25:19]query_string will be loaded in cgi processing [10:25:19]execute_cgi json_proto POST (null) [10:25:19]execute_cgi path=json_proto method=POST [10:25:19]POST find Content-Length [10:25:19]Host: 172.17.56.4:8080 [10:25:19]Content-Length: 677 [10:25:19]Content-Type: application/json [10:25:19] [10:25:19]POST finish read [10:25:19]Found Content-Length = 677 [10:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:19]execute_script... [10:25: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)458612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:19]POST & json_proto [10:25:19]process_json_proto [10:25:19]json parsed OK: [10:25:19]protocol is kg_v1.0 [10:25:19]action value=close_receipt [10:25:19]process_action close_receipt [10:25:19]cmd_close_receipt [10:25:19]MH_GetDate [10:25:19]Write to MH i2c: F0 00 00 52 08 49 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: F0 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: F0 09 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: F0 09 00 52 08 00 10 56 92 66 C9 DC B2 64 6B [10:25:19]GetLastDocTimeStamp 1720866179 [10:25:19]current date 1720866320 [10:25:19]FM_GetShiftState [10:25:19]SAM_PROTO_GetShiftState [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 13 01 00 [10:25:19]Write to MH i2c: E2 08 00 53 08 80 13 01 00 00 00 00 00 D8 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0E 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0E 00 53 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B9 [10:25:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_GetShiftState done [10:25:19]FM_GetShiftState done [10:25:19]opened in 1720831249 [10:25:19]opened+sec_in_day 1720917649 [10:25:19]quantity*price = 30004 [10:25:19]sum+1 = 30006 [10:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 83 13.07.2024 10:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164523 ФПД: 123623013646477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164523&fm=123623013646477&tin=02508201610067®Number=0000000000090829&sum=30000 [10:25:20]StoreToDocumentArchive [10:25:20]shift 446 fd 164523 [10:25:20]save to /storage/0446/doc_00164523 [10:25:20]save last doc name /storage/0446/doc_00164523 to /storage/kkm_last_doc_name [10:25:20]save OK [10:25:20]Clear old archive folders... [10:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:20]tlvbuf is 0143A850 [10:25:20]SAM_PROTO_ClearQueue [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 09 00 00 [10:25:20]Write to MH i2c: E2 08 00 60 08 80 09 00 00 00 00 00 00 DA [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 03 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [10:25:20]RAPDU: 90 00 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_ClearQueue done [10:25:20]KKMCreateOFDPacket [10:25:20]OFDProtocolAddRootSTLVToBuf [10:25:20]FM_MakeSignedData [10:25:20]FM_MakeSignedData [10:25:20]SAM_PROTO_SignData [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 0D 01 02 [10:25:20]Write to MH i2c: E2 08 00 61 08 80 0D 01 02 00 00 00 00 E2 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 03 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [10:25:20]RAPDU: 90 00 [10:25:20]wFMCommunicate OK [10:25:20]wFMCommunicate request_size=255 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 53 00 00 00 F4 03 04 00 10 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 82 02 00 35 04 06 00 70 [10:25:20]Write to MH i2c: E2 02 01 62 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 53 00 00 00 F4 03 04 00 10 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 82 02 00 35 04 06 00 70 00 00 2B [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]wFMCommunicate request_size=10 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 0D 02 02 05 6F 39 D0 80 8D [10:25:21]Write to MH i2c: E2 0D 00 63 08 80 0D 02 02 05 00 6F 39 D0 80 8D 00 00 74 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [10:25:21]RAPDU: 90 00 [10:25:21]wFMCommunicate OK [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 0D 03 02 [10:25:21]Write to MH i2c: E2 08 00 64 08 80 0D 03 02 00 00 00 00 E7 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0B 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0B 00 64 08 00 4C 54 5D AB 38 7D 7E 67 90 00 2A [10:25:21]RAPDU: 4C 54 5D AB 38 7D 7E 67 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_SignData done [10:25:21]FM_MakeSignedData done [10:25:21]CreateOFDProtocolMessage [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 11 00 00 [10:25:21]Write to MH i2c: E2 08 00 65 08 80 11 00 00 00 00 00 00 E7 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 65 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [10:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:21]wFMCommunicate OK [10:25:21]CreateOFDProtocolMessage done [10:25:21]OFDSenderStorePacket 164523 [10:25:21]StoreOFDPacket docnum=164523 [10:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C 6E 07 01 44 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 53 00 00 00 F4 03 04 00 10 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 82 02 00 35 04 06 00 70 6F 39 D0 80 8D 4C 54 5D AB 38 7D 7E 67 [10:25:21]CheckFolder [10:25:21]dirname=/storage/ofd_packets [10:25:21]CheckFolder done [10:25:21]ProducePacketName [10:25:21]name=ofd_packets/00164523 [10:25:21]NVStorageSaveData ofd_packets/00164523 [10:25:21]File name is /storage/ofd_packets/00164523 [10:25:21]Write 301 bytes [10:25:21]NVStorageSaveData done [10:25:21]OFDSenderStorePacket done [10:25:21]KKMCreateOFDPacket done [10:25:21]NVStorageSaveData kkm_last_timestamp [10:25:21]File name is /storage/kkm_last_timestamp [10:25:21]Write 4 bytes [10:25:21]NVStorageSaveData done [10:25:21]ExternCall_PrintAddStr [10:25:21]wPrintStart [10:25:21]Write to MH i2c: 01 00 00 66 08 6E [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: 01 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: 01 07 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 FF 0F 83 [10:25:21]RasterBufferAndPrint [10:25:21]line Счет N : (1)458612 [10:25:21]line ИНН: 02508201610067 [10:25:21]line Контрольно-Кассовый Чек [10:25:21]line ПРОДАЖА [10:25:21]line ТРК (МРК, ГНК) : 12 [10:25:21]line Товар: 2710124130 [10:25:21]line Аи-92-К-5 [10:25:21]line 4.560 * 65.80 [10:25:21]line = 300.05 [10:25:21]line НДС 12% НСП 1% [10:25:21]line > о реализуемом товаре [10:25:21]line ОКРУГЛЕНИЕ: -0.05 [10:25:21]line ИТОГО: 300.00 [10:25:21]line Внесено: 300.00 [10:25:21]line СДАЧА: 0.00 [10:25:21]line НСП 1% : 2.65 [10:25:21]line НДС 12% : 31.86 [10:25:21]line Наличными: 300.00 [10:25:21]line Безнал.: 0.00 [10:25:21]line Место: АЗС № 72 "Партнер Нефть" [10:25:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:25:21]line СНО: Общий режим [10:25:21]line Чек 83 13.07.2024 10:25 [10:25:21]line Смена: 446 ФФД: 1.0 [10:25:21]line ЗНМ: 0300000160 [10:25:21]line РНМ: 0000000000090829 [10:25:21]line Версия ККМ: 001 [10:25:21]line ФМ: 0000000000874718 [10:25:21]line ФД: 164523 [10:25:21]line ФПД: 123623013646477 [10:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164523&fm=123623013646477&tin=02508201610067®Number=0000000000090829&sum=30000 [10:25:21]OFD Sender: Processing packet 164523 [packets to send 104, broken 103] [10:25:21]ProducePacketName [10:25:21]name=ofd_packets/00164523 [10:25:21]OFD Sender: To server: pG, [10:25:21]CommunicateWithHost lk.salyk.kg:30040 [10:25:21]ConnectInit lk.salyk.kg [10:25:21]written 0, free lines is 4095 [10:25:21]Connected sock=10 [10:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C 6E 07 01 44 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 53 00 00 00 F4 03 04 00 10 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 82 02 00 35 04 06 00 70 6F 39 D0 80 8D 4C 54 5D AB 38 7D 7E 67 [10:25:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 22 47 00 F0 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 82 02 00 F4 03 04 00 A2 FC 91 66 B6 04 01 00 00 13 33 1C 00 6D E8 57 BE [10:25:21]CommunicateWithHost err = 0 [10:25:21]CheckOFDResponse [10:25:21]1017 (14) - 77093643461234 [10:25:21]1041 (16) - 0000000000874718 [10:25:21]1040 (4) - 164523 [10:25:21]1012 (4) - 13.07.2024 04:03 [10:25:21]1206 (1) - 0 [10:25:21]OFD Sender: Remove packet 164523 [10:25:21]ProducePacketName [10:25:21]name=ofd_packets/00164523 [10:25:21]NVStorageDeleteData [10:25:22]Write to MH i2c: 01 00 00 90 08 98 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 0C 0D B8 [10:25:22]RasterBufferAndPrint [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]line [10:25:22]written 0, free lines is 3346 [10:25:22]MH_Cut [10:25:22]Write to MH i2c: D1 01 00 97 08 01 71 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 01 00 [10:25:22]MH_I2C_Read... [10:25:22]Read from MH i2c: D1 01 00 97 08 00 70 [10:25:22]Write to MH i2c: 01 00 00 98 08 A0 [10:25:22]Write i2c OK [10:25:22]MH_I2C_Read... [10:25:22]OFD Sender: No OFD packet to send [10:25:22]*** Cut start [10:25:22]*** Partial cut [10:25:22]*** CUTSNS_PIN = 1 [10:25:22]*** CUTSNS_PIN = 0 [10:25:22]*** Brake cut motor [10:25:23]Read from MH i2c: 01 [10:25:23]MH_I2C_Read... [10:25:23]*** Stop cut motor [10:25:23]*** Cut end [10:25:23]Read from MH i2c: 01 07 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [10:25:23]process_action close_receipt done [10:25:23]requested_data is exist [10:25:23]produce_requested_data [10:25:23]requested_item fm.sn is exist - process it [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 11 00 00 [10:25:23]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [10:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:23]wFMCommunicate OK [10:25:23]requested_item fd.num is exist - process it [10:25:23]SAM_PROTO_GetFieldsCounters [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 13 00 00 [10:25:23]Write to MH i2c: E2 08 00 9A 08 80 13 00 00 00 00 00 00 1E [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 62 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 62 00 9A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 82 02 00 0E 04 04 00 BE 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 2C [10:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 82 02 00 0E 04 04 00 BE 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 [10:25:23]wFMCommunicate OK [10:25:23]SAM_PROTO_GetFieldsCounters done [10:25:23]requested_item shift.num is exist - process it [10:25:23]requested_item shift.opened is exist - process it [10:25:23]req_shift_opened [10:25:23]FM_GetShiftState [10:25:23]SAM_PROTO_GetShiftState [10:25:23]wFMCommunicate request_size=4 [10:25:23]MH_SAM_APDU [10:25:23]CAPDU: 80 13 01 00 [10:25:23]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [10:25:23]Write i2c OK [10:25:23]MH_I2C_Read... [10:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:23]Read from MH i2c: E2 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 0E 00 [10:25:23]MH_I2C_Read... [10:25:23]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 01 [10:25:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:25:23]wFMCommunicate OK [10:25:23]SAM_PROTO_GetShiftState done [10:25:23]FM_GetShiftState done [10:25:23]req_shift_opened done [10:25:23]requested_item shift.open_date is exist - process it [10:25:23]req_shift_open_date [10:25:23]req_shift_open_date done [10:25:23]produce_requested_data done [10:25:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164523,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:25:23]process_action_free close_receipt [10:25:23]json_value_free [10:25:23]json_value_free done [10:25:23]process_json_proto returns [10:25:23]Send response to host [10:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164523,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:25:23]free response buf [10:25:23]execute_script done [10:25:23]execute_script returns [10:25:23]free content buf [10:25:23]Sock 9.Close socket [10:25:23]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:36]accept exits with 7 [10:28:36]New connection [10:28:36]New thread 3067293028 created [10:28:36]Thread 3067149668 joined [10:28:36]Waiting for new connection... [10:28:36] Sock 7.Parse request [10:28:36]Sock 7.Check first char [10:28:36]Sock 7.First char is OK [10:28:36]request: POST /json_proto HTTP/1.0 [10:28:36]Method: POST [10:28:36]URL: /json_proto [10:28:36]Method is POST - this is cgi request [10:28:36]url: /json_proto [10:28:36]query_string will be loaded in cgi processing [10:28:36]execute_cgi json_proto POST (null) [10:28:36]execute_cgi path=json_proto method=POST [10:28:36]POST find Content-Length [10:28:36]Host: 172.17.56.4:8080 [10:28:36]Content-Length: 790 [10:28:36]Content-Type: application/json [10:28:36] [10:28:36]POST finish read [10:28:36]Found Content-Length = 790 [10:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:36]execute_script... [10:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:36]POST & json_proto [10:28:36]process_json_proto [10:28:36]json parsed OK: [10:28:36]protocol is kg_v1.0 [10:28:36]action value=close_receipt [10:28:36]process_action close_receipt [10:28:36]cmd_close_receipt [10:28:36]MH_GetDate [10:28:36]Write to MH i2c: F0 00 00 9C 08 93 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 09 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: F0 09 00 9C 08 00 D5 56 92 66 C9 DC B2 64 7A [10:28:36]GetLastDocTimeStamp 1720866320 [10:28:36]current date 1720866517 [10:28:36]FM_GetShiftState [10:28:36]SAM_PROTO_GetShiftState [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 13 01 00 [10:28:36]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 03 [10:28:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_GetShiftState done [10:28:36]FM_GetShiftState done [10:28:36]opened in 1720831249 [10:28:36]opened+sec_in_day 1720917649 [10:28:36]quantity*price = 20022 [10:28:36]sum+1 = 20024 [10:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 84 13.07.2024 10:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164524 ФПД: 67414595642973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164524&fm=67414595642973&tin=02508201610067®Number=0000000000090829&sum=20023 [10:28:37]StoreToDocumentArchive [10:28:37]shift 446 fd 164524 [10:28:37]save to /storage/0446/doc_00164524 [10:28:37]save last doc name /storage/0446/doc_00164524 to /storage/kkm_last_doc_name [10:28:37]save OK [10:28:37]Clear old archive folders... [10:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:37]tlvbuf is 0140F400 [10:28:37]SAM_PROTO_ClearQueue [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 09 00 00 [10:28:37]Write to MH i2c: E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]SAM_PROTO_ClearQueue done [10:28:37]KKMCreateOFDPacket [10:28:37]OFDProtocolAddRootSTLVToBuf [10:28:37]FM_MakeSignedData [10:28:37]FM_MakeSignedData [10:28:37]SAM_PROTO_SignData [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 0D 01 02 [10:28:37]Write to MH i2c: E2 08 00 AB 08 80 0D 01 02 00 00 00 00 2C [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [10:28:37]RAPDU: 90 00 [10:28:37]wFMCommunicate OK [10:28:37]wFMCommunicate request_size=255 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 82 02 00 35 04 06 00 3D [10:28:37]Write to MH i2c: E2 02 01 AC 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 82 02 00 35 04 06 00 3D 00 00 11 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]wFMCommunicate request_size=10 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 02 02 05 50 2F 06 A6 5D [10:28:38]Write to MH i2c: E2 0D 00 AD 08 80 0D 02 02 05 00 50 2F 06 A6 5D 00 00 C1 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 03 02 [10:28:38]Write to MH i2c: E2 08 00 AE 08 80 0D 03 02 00 00 00 00 31 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 AE 08 00 56 F7 A5 D7 13 AE CF 54 90 00 DF [10:28:38]RAPDU: 56 F7 A5 D7 13 AE CF 54 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_SignData done [10:28:38]FM_MakeSignedData done [10:28:38]CreateOFDProtocolMessage [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 11 00 00 [10:28:38]Write to MH i2c: E2 08 00 AF 08 80 11 00 00 00 00 00 00 31 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 AF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [10:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:38]wFMCommunicate OK [10:28:38]CreateOFDProtocolMessage done [10:28:38]OFDSenderStorePacket 164524 [10:28:38]StoreOFDPacket docnum=164524 [10:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 57 BF 07 01 73 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 82 02 00 35 04 06 00 3D 50 2F 06 A6 5D 56 F7 A5 D7 13 AE CF 54 [10:28:38]CheckFolder [10:28:38]dirname=/storage/ofd_packets [10:28:38]CheckFolder done [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00164524 [10:28:38]NVStorageSaveData ofd_packets/00164524 [10:28:38]File name is /storage/ofd_packets/00164524 [10:28:38]Write 301 bytes [10:28:38]NVStorageSaveData done [10:28:38]OFDSenderStorePacket done [10:28:38]KKMCreateOFDPacket done [10:28:38]NVStorageSaveData kkm_last_timestamp [10:28:38]File name is /storage/kkm_last_timestamp [10:28:38]Write 4 bytes [10:28:38]NVStorageSaveData done [10:28:38]ExternCall_PrintAddStr [10:28:38]wPrintStart [10:28:38]Write to MH i2c: 01 00 00 B0 08 B8 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [10:28:38]RasterBufferAndPrint [10:28:38]line Счет N : (1)458613 [10:28:38]line ИНН: 02508201610067 [10:28:38]line Контрольно-Кассовый Чек [10:28:38]line ПРОДАЖА [10:28:38]line ТРК (МРК, ГНК) : 22 [10:28:38]line Товар: 2710124130 [10:28:38]line Аи-92-К-5 [10:28:38]line 3.070 * 65.22 [10:28:38]line = 200.23 [10:28:38]line НДС 12% НСП 1% [10:28:38]line > о реализуемом товаре [10:28:38]line ИТОГО: 200.23 [10:28:38]line НСП 1% : 1.77 [10:28:38]line НДС 12% : 21.26 [10:28:38]line Наличными: 0.00 [10:28:38]line Безнал.: 200.23 [10:28:38]line Место: АЗС № 72 "Партнер Нефть" [10:28:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:28:38]line СНО: Общий режим [10:28:38]line Чек 84 13.07.2024 10:28 [10:28:38]line Смена: 446 ФФД: 1.0 [10:28:38]line ЗНМ: 0300000160 [10:28:38]line РНМ: 0000000000090829 [10:28:38]line Версия ККМ: 001 [10:28:38]line Платежная система: KICB Банк [10:28:38]line ФМ: 0000000000874718 [10:28:38]line ФД: 164524 [10:28:38]line ФПД: 67414595642973 [10:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164524&fm=67414595642973&tin=02508201610067®Number=0000000000090829&sum=20023 [10:28:38]written 0, free lines is 4095 [10:28:38]OFD Sender: Processing packet 164524 [packets to send 104, broken 103] [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00164524 [10:28:38]OFD Sender: To server: pG, [10:28:38]CommunicateWithHost lk.salyk.kg:30040 [10:28:38]ConnectInit lk.salyk.kg [10:28:38]Connected sock=10 [10:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 57 BF 07 01 73 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 82 02 00 35 04 06 00 3D 50 2F 06 A6 5D 56 F7 A5 D7 13 AE CF 54 [10:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 2F 47 00 52 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 82 02 00 F4 03 04 00 67 FD 91 66 B6 04 01 00 00 FE 62 1A 1C 47 FB 74 88 [10:28:38]CommunicateWithHost err = 0 [10:28:38]CheckOFDResponse [10:28:38]1017 (14) - 77093643461234 [10:28:38]1041 (16) - 0000000000874718 [10:28:38]1040 (4) - 164524 [10:28:38]1012 (4) - 13.07.2024 04:07 [10:28:38]1206 (1) - 0 [10:28:38]OFD Sender: Remove packet 164524 [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00164524 [10:28:38]NVStorageDeleteData [10:28:39]Write to MH i2c: 01 00 00 D9 08 E1 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 09 0D FE [10:28:39]RasterBufferAndPrint [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]written 0, free lines is 3343 [10:28:39]MH_Cut [10:28:39]Write to MH i2c: D1 01 00 E0 08 01 BA [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 01 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 01 00 E0 08 00 B9 [10:28:39]Write to MH i2c: 01 00 00 E1 08 E9 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]OFD Sender: No OFD packet to send [10:28:39]*** Cut start [10:28:39]*** Partial cut [10:28:39]*** CUTSNS_PIN = 1 [10:28:39]*** CUTSNS_PIN = 0 [10:28:39]*** Brake cut motor [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]*** Stop cut motor [10:28:40]*** Cut end [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [10:28:40]process_action close_receipt done [10:28:40]requested_data is exist [10:28:40]produce_requested_data [10:28:40]requested_item fm.sn is exist - process it [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 11 00 00 [10:28:40]Write to MH i2c: E2 08 00 E2 08 80 11 00 00 00 00 00 00 64 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 E2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [10:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:40]wFMCommunicate OK [10:28:40]requested_item fd.num is exist - process it [10:28:40]SAM_PROTO_GetFieldsCounters [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 00 00 [10:28:40]Write to MH i2c: E2 08 00 E3 08 80 13 00 00 00 00 00 00 67 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 E3 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 82 02 00 0E 04 04 00 BE 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 79 [10:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 82 02 00 0E 04 04 00 BE 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 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetFieldsCounters done [10:28:40]requested_item shift.num is exist - process it [10:28:40]requested_item shift.opened is exist - process it [10:28:40]req_shift_opened [10:28:40]FM_GetShiftState [10:28:40]SAM_PROTO_GetShiftState [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 01 00 [10:28:40]Write to MH i2c: E2 08 00 E4 08 80 13 01 00 00 00 00 00 69 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0E 00 E4 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4A [10:28:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetShiftState done [10:28:40]FM_GetShiftState done [10:28:40]req_shift_opened done [10:28:40]requested_item shift.open_date is exist - process it [10:28:40]req_shift_open_date [10:28:40]req_shift_open_date done [10:28:40]produce_requested_data done [10:28:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164524,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:28:40]process_action_free close_receipt [10:28:40]json_value_free [10:28:40]json_value_free done [10:28:40]process_json_proto returns [10:28:40]Send response to host [10:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164524,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:28:40]free response buf [10:28:40]execute_script done [10:28:40]execute_script returns [10:28:40]free content buf [10:28:40]Sock 7.Close socket [10:28:40]Sock 7.Thread stoped [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:51]accept exits with 9 [10:28:51]New connection [10:28:51]New thread 3067149668 created [10:28:51]Thread 3067293028 joined [10:28:51]Waiting for new connection... [10:28:51] Sock 9.Parse request [10:28:51]Sock 9.Check first char [10:28:51]Sock 9.First char is OK [10:28:51]request: POST /json_proto HTTP/1.0 [10:28:51]Method: POST [10:28:51]URL: /json_proto [10:28:51]Method is POST - this is cgi request [10:28:51]url: /json_proto [10:28:51]query_string will be loaded in cgi processing [10:28:51]execute_cgi json_proto POST (null) [10:28:51]execute_cgi path=json_proto method=POST [10:28:51]POST find Content-Length [10:28:51]Host: 172.17.56.4:8080 [10:28:51]Content-Length: 677 [10:28:51]Content-Type: application/json [10:28:51] [10:28:51]POST finish read [10:28:51]Found Content-Length = 677 [10:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:51]execute_script... [10:28: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)458615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:51]POST & json_proto [10:28:51]process_json_proto [10:28:51]json parsed OK: [10:28:51]protocol is kg_v1.0 [10:28:51]action value=close_receipt [10:28:51]process_action close_receipt [10:28:51]cmd_close_receipt [10:28:51]MH_GetDate [10:28:51]Write to MH i2c: F0 00 00 E5 08 DC [10:28:51]Write i2c OK [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: F0 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: F0 09 00 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: F0 09 00 E5 08 00 E5 56 92 66 C9 DC B2 64 D3 [10:28:51]GetLastDocTimeStamp 1720866517 [10:28:51]current date 1720866533 [10:28:51]FM_GetShiftState [10:28:51]SAM_PROTO_GetShiftState [10:28:51]wFMCommunicate request_size=4 [10:28:51]MH_SAM_APDU [10:28:51]CAPDU: 80 13 01 00 [10:28:51]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [10:28:51]Write i2c OK [10:28:51]MH_I2C_Read... [10:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:51]Read from MH i2c: E2 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: E2 0E 00 [10:28:51]MH_I2C_Read... [10:28:51]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4C [10:28:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:28:51]wFMCommunicate OK [10:28:51]SAM_PROTO_GetShiftState done [10:28:51]FM_GetShiftState done [10:28:51]opened in 1720831249 [10:28:51]opened+sec_in_day 1720917649 [10:28:51]quantity*price = 12041 [10:28:51]sum+1 = 12042 [10:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 85 13.07.2024 10:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164525 ФПД: 240070838499743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102853&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164525&fm=240070838499743&tin=02508201610067®Number=0000000000090829&sum=12000 [10:28:53]StoreToDocumentArchive [10:28:53]shift 446 fd 164525 [10:28:53]save to /storage/0446/doc_00164525 [10:28:53]save last doc name /storage/0446/doc_00164525 to /storage/kkm_last_doc_name [10:28:53]save OK [10:28:53]Clear old archive folders... [10:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:53]tlvbuf is 01414EA0 [10:28:53]SAM_PROTO_ClearQueue [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 09 00 00 [10:28:53]Write to MH i2c: E2 08 00 F3 08 80 09 00 00 00 00 00 00 6D [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [10:28:53]RAPDU: 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_ClearQueue done [10:28:53]KKMCreateOFDPacket [10:28:53]OFDProtocolAddRootSTLVToBuf [10:28:53]FM_MakeSignedData [10:28:53]FM_MakeSignedData [10:28:53]SAM_PROTO_SignData [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 0D 01 02 [10:28:53]Write to MH i2c: E2 08 00 F4 08 80 0D 01 02 00 00 00 00 75 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [10:28:53]RAPDU: 90 00 [10:28:53]wFMCommunicate OK [10:28:53]wFMCommunicate request_size=255 [10:28:53]MH_SAM_APDU [10:28: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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 82 02 00 35 04 06 00 DA [10:28:53]Write to MH i2c: E2 02 01 F5 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 82 02 00 35 04 06 00 DA 00 00 93 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [10:28:53]RAPDU: 90 00 [10:28:53]wFMCommunicate OK [10:28:53]wFMCommunicate request_size=10 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 0D 02 02 05 57 D9 0C B9 9F [10:28:53]Write to MH i2c: E2 0D 00 F6 08 80 0D 02 02 05 00 57 D9 0C B9 9F 00 00 16 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [10:28:53]RAPDU: 90 00 [10:28:53]wFMCommunicate OK [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 0D 03 02 [10:28:53]Write to MH i2c: E2 08 00 F7 08 80 0D 03 02 00 00 00 00 7A [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0B 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0B 00 F7 08 00 45 B7 FD 7F 72 B0 03 77 90 00 8F [10:28:53]RAPDU: 45 B7 FD 7F 72 B0 03 77 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_SignData done [10:28:53]FM_MakeSignedData done [10:28:53]CreateOFDProtocolMessage [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 11 00 00 [10:28:53]Write to MH i2c: E2 08 00 F8 08 80 11 00 00 00 00 00 00 7A [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 17 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 17 00 F8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [10:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:53]wFMCommunicate OK [10:28:53]CreateOFDProtocolMessage done [10:28:53]OFDSenderStorePacket 164525 [10:28:53]StoreOFDPacket docnum=164525 [10:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 E3 07 01 5F 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 82 02 00 35 04 06 00 DA 57 D9 0C B9 9F 45 B7 FD 7F 72 B0 03 77 [10:28:53]CheckFolder [10:28:53]dirname=/storage/ofd_packets [10:28:53]CheckFolder done [10:28:53]ProducePacketName [10:28:53]name=ofd_packets/00164525 [10:28:53]NVStorageSaveData ofd_packets/00164525 [10:28:53]File name is /storage/ofd_packets/00164525 [10:28:53]Write 301 bytes [10:28:53]NVStorageSaveData done [10:28:53]OFDSenderStorePacket done [10:28:53]KKMCreateOFDPacket done [10:28:53]NVStorageSaveData kkm_last_timestamp [10:28:53]File name is /storage/kkm_last_timestamp [10:28:53]Write 4 bytes [10:28:53]NVStorageSaveData done [10:28:53]ExternCall_PrintAddStr [10:28:53]wPrintStart [10:28:53]Write to MH i2c: 01 00 00 F9 08 01 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: 01 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: 01 07 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 FF 0F 16 [10:28:53]RasterBufferAndPrint [10:28:53]line Счет N : (1)458615 [10:28:53]line ИНН: 02508201610067 [10:28:53]line Контрольно-Кассовый Чек [10:28:53]line ПРОДАЖА [10:28:53]line ТРК (МРК, ГНК) : 22 [10:28:53]line Товар: 2710124130 [10:28:53]line Аи-92-К-5 [10:28:53]line 1.830 * 65.80 [10:28:53]line = 120.41 [10:28:53]line НДС 12% НСП 1% [10:28:53]line > о реализуемом товаре [10:28:53]line ОКРУГЛЕНИЕ: -0.41 [10:28:53]line ИТОГО: 120.00 [10:28:53]line Внесено: 120.00 [10:28:53]line СДАЧА: 0.00 [10:28:53]line НСП 1% : 1.07 [10:28:53]line НДС 12% : 12.79 [10:28:53]line Наличными: 120.00 [10:28:53]line Безнал.: 0.00 [10:28:53]line Место: АЗС № 72 "Партнер Нефть" [10:28:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:28:53]line СНО: Общий режим [10:28:53]line Чек 85 13.07.2024 10:28 [10:28:53]line Смена: 446 ФФД: 1.0 [10:28:53]line ЗНМ: 0300000160 [10:28:53]line РНМ: 0000000000090829 [10:28:53]line Версия ККМ: 001 [10:28:53]line ФМ: 0000000000874718 [10:28:53]line ФД: 164525 [10:28:53]line ФПД: 240070838499743 [10:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102853&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164525&fm=240070838499743&tin=02508201610067®Number=0000000000090829&sum=12000 [10:28:53]written 0, free lines is 4095 [10:28:53]OFD Sender: Processing packet 164525 [packets to send 104, broken 103] [10:28:53]ProducePacketName [10:28:53]name=ofd_packets/00164525 [10:28:53]OFD Sender: To server: pG, [10:28:53]CommunicateWithHost lk.salyk.kg:30040 [10:28:53]ConnectInit lk.salyk.kg [10:28:53]Connected sock=10 [10:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 E3 07 01 5F 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E5 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 82 02 00 35 04 06 00 DA 57 D9 0C B9 9F 45 B7 FD 7F 72 B0 03 77 [10:28:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 24 50 47 00 F1 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 82 02 00 F4 03 04 00 76 FD 91 66 B6 04 01 00 00 6D F4 96 B6 AB 77 34 14 [10:28:54]CommunicateWithHost err = 0 [10:28:54]CheckOFDResponse [10:28:54]1017 (14) - 77093643461234 [10:28:54]1041 (16) - 0000000000874718 [10:28:54]1040 (4) - 164525 [10:28:54]1012 (4) - 13.07.2024 04:07 [10:28:54]1206 (1) - 0 [10:28:54]OFD Sender: Remove packet 164525 [10:28:54]ProducePacketName [10:28:54]name=ofd_packets/00164525 [10:28:54]NVStorageDeleteData [10:28:54]Write to MH i2c: 01 00 00 23 09 2C [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0C 3E [10:28:54]RasterBufferAndPrint [10:28:54]line [10:28:54]line [10:28:54]line [10:28:54]line [10:28:54]line [10:28:54]written 0, free lines is 3333 [10:28:54]MH_Cut [10:28:54]Write to MH i2c: D1 01 00 2A 09 01 05 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: D1 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: D1 01 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: D1 01 00 2A 09 00 04 [10:28:54]Write to MH i2c: 01 00 00 2B 09 34 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]OFD Sender: No OFD packet to send [10:28:55]*** Cut start [10:28:55]*** Partial cut [10:28:55]*** CUTSNS_PIN = 1 [10:28:55]*** CUTSNS_PIN = 0 [10:28:55]*** Brake cut motor [10:28:55]Read from MH i2c: 01 [10:28:55]MH_I2C_Read... [10:28:55]*** Stop cut motor [10:28:55]*** Cut end [10:28:55]Read from MH i2c: 01 07 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FF 0F 49 [10:28:55]process_action close_receipt done [10:28:55]requested_data is exist [10:28:55]produce_requested_data [10:28:55]requested_item fm.sn is exist - process it [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 11 00 00 [10:28:55]Write to MH i2c: E2 08 00 2C 09 80 11 00 00 00 00 00 00 AF [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 17 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 17 00 2C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [10:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:55]wFMCommunicate OK [10:28:55]requested_item fd.num is exist - process it [10:28:55]SAM_PROTO_GetFieldsCounters [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 13 00 00 [10:28:55]Write to MH i2c: E2 08 00 2D 09 80 13 00 00 00 00 00 00 B2 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 62 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 62 00 2D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 82 02 00 0E 04 04 00 BE 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 C8 [10:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 82 02 00 0E 04 04 00 BE 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 [10:28:55]wFMCommunicate OK [10:28:55]SAM_PROTO_GetFieldsCounters done [10:28:55]requested_item shift.num is exist - process it [10:28:55]requested_item shift.opened is exist - process it [10:28:55]req_shift_opened [10:28:55]FM_GetShiftState [10:28:55]SAM_PROTO_GetShiftState [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 13 01 00 [10:28:55]Write to MH i2c: E2 08 00 2E 09 80 13 01 00 00 00 00 00 B4 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0E 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0E 00 2E 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 95 [10:28:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:28:55]wFMCommunicate OK [10:28:55]SAM_PROTO_GetShiftState done [10:28:55]FM_GetShiftState done [10:28:55]req_shift_opened done [10:28:55]requested_item shift.open_date is exist - process it [10:28:55]req_shift_open_date [10:28:55]req_shift_open_date done [10:28:55]produce_requested_data done [10:28:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164525,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:28:55]process_action_free close_receipt [10:28:55]json_value_free [10:28:55]json_value_free done [10:28:55]process_json_proto returns [10:28:55]Send response to host [10:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164525,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:28:55]free response buf [10:28:55]execute_script done [10:28:55]execute_script returns [10:28:55]free content buf [10:28:55]Sock 9.Close socket [10:28:55]Sock 9.Thread stoped [10:28:56]accept exits with 7 [10:28:56]New connection [10:28:56]New thread 3067293028 created [10:28:56]Thread 3067149668 joined [10:28:56]Waiting for new connection... [10:28:56] Sock 7.Parse request [10:28:56]Sock 7.Check first char [10:28:56]Sock 7.First char is OK [10:28:56]request: POST /json_proto HTTP/1.0 [10:28:56]Method: POST [10:28:56]URL: /json_proto [10:28:56]Method is POST - this is cgi request [10:28:56]url: /json_proto [10:28:56]query_string will be loaded in cgi processing [10:28:56]execute_cgi json_proto POST (null) [10:28:56]execute_cgi path=json_proto method=POST [10:28:56]POST find Content-Length [10:28:56]Host: 172.17.56.4:8080 [10:28:56]Content-Length: 677 [10:28:56]Content-Type: application/json [10:28:56] [10:28:56]POST finish read [10:28:56]Found Content-Length = 677 [10:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:56]execute_script... [10:28: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)458614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:56]POST & json_proto [10:28:56]process_json_proto [10:28:56]json parsed OK: [10:28:56]protocol is kg_v1.0 [10:28:56]action value=close_receipt [10:28:56]process_action close_receipt [10:28:56]cmd_close_receipt [10:28:56]MH_GetDate [10:28:56]Write to MH i2c: F0 00 00 2F 09 27 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 09 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 09 00 2F 09 00 E9 56 92 66 C9 DC B2 64 22 [10:28:56]GetLastDocTimeStamp 1720866533 [10:28:56]current date 1720866537 [10:28:56]FM_GetShiftState [10:28:56]SAM_PROTO_GetShiftState [10:28:56]wFMCommunicate request_size=4 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 13 01 00 [10:28:56]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 0E 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 97 [10:28:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:28:56]wFMCommunicate OK [10:28:56]SAM_PROTO_GetShiftState done [10:28:56]FM_GetShiftState done [10:28:56]opened in 1720831249 [10:28:56]opened+sec_in_day 1720917649 [10:28:56]quantity*price = 40006 [10:28:56]sum+1 = 40007 [10:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 86 13.07.2024 10:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164526 ФПД: 47530897708023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102857&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164526&fm=47530897708023&tin=02508201610067®Number=0000000000090829&sum=40000 [10:28:57]StoreToDocumentArchive [10:28:57]shift 446 fd 164526 [10:28:57]save to /storage/0446/doc_00164526 [10:28:57]save last doc name /storage/0446/doc_00164526 to /storage/kkm_last_doc_name [10:28:57]save OK [10:28:57]Clear old archive folders... [10:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:57]tlvbuf is 014905F0 [10:28:57]SAM_PROTO_ClearQueue [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 09 00 00 [10:28:57]Write to MH i2c: E2 08 00 3D 09 80 09 00 00 00 00 00 00 B8 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_ClearQueue done [10:28:57]KKMCreateOFDPacket [10:28:57]OFDProtocolAddRootSTLVToBuf [10:28:57]FM_MakeSignedData [10:28:57]FM_MakeSignedData [10:28:57]SAM_PROTO_SignData [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 0D 01 02 [10:28:57]Write to MH i2c: E2 08 00 3E 09 80 0D 01 02 00 00 00 00 C0 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]wFMCommunicate request_size=255 [10:28:57]MH_SAM_APDU [10:28: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E9 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 82 02 00 35 04 06 00 2B [10:28:57]Write to MH i2c: E2 02 01 3F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E9 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 82 02 00 35 04 06 00 2B 00 00 C2 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 03 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [10:28:58]RAPDU: 90 00 [10:28:58]wFMCommunicate OK [10:28:58]wFMCommunicate request_size=10 [10:28:58]MH_SAM_APDU [10:28:58]CAPDU: 80 0D 02 02 05 3A A6 46 13 F7 [10:28:58]Write to MH i2c: E2 0D 00 40 09 80 0D 02 02 05 00 3A A6 46 13 F7 00 00 FD [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 03 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [10:28:58]RAPDU: 90 00 [10:28:58]wFMCommunicate OK [10:28:58]wFMCommunicate request_size=4 [10:28:58]MH_SAM_APDU [10:28:58]CAPDU: 80 0D 03 02 [10:28:58]Write to MH i2c: E2 08 00 41 09 80 0D 03 02 00 00 00 00 C5 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 0B 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 0B 00 41 09 00 CA C1 78 96 B4 05 E3 4A 90 00 45 [10:28:58]RAPDU: CA C1 78 96 B4 05 E3 4A 90 00 [10:28:58]wFMCommunicate OK [10:28:58]SAM_PROTO_SignData done [10:28:58]FM_MakeSignedData done [10:28:58]CreateOFDProtocolMessage [10:28:58]wFMCommunicate request_size=4 [10:28:58]MH_SAM_APDU [10:28:58]CAPDU: 80 11 00 00 [10:28:58]Write to MH i2c: E2 08 00 42 09 80 11 00 00 00 00 00 00 C5 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 17 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 17 00 42 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [10:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:58]wFMCommunicate OK [10:28:58]CreateOFDProtocolMessage done [10:28:58]OFDSenderStorePacket 164526 [10:28:58]StoreOFDPacket docnum=164526 [10:28:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 7F 07 01 D4 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E9 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 82 02 00 35 04 06 00 2B 3A A6 46 13 F7 CA C1 78 96 B4 05 E3 4A [10:28:58]CheckFolder [10:28:58]dirname=/storage/ofd_packets [10:28:58]CheckFolder done [10:28:58]ProducePacketName [10:28:58]name=ofd_packets/00164526 [10:28:58]NVStorageSaveData ofd_packets/00164526 [10:28:58]File name is /storage/ofd_packets/00164526 [10:28:58]Write 301 bytes [10:28:58]NVStorageSaveData done [10:28:58]OFDSenderStorePacket done [10:28:58]KKMCreateOFDPacket done [10:28:58]NVStorageSaveData kkm_last_timestamp [10:28:58]File name is /storage/kkm_last_timestamp [10:28:58]Write 4 bytes [10:28:58]NVStorageSaveData done [10:28:58]ExternCall_PrintAddStr [10:28:58]wPrintStart [10:28:58]Write to MH i2c: 01 00 00 43 09 4C [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 07 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 07 00 43 09 00 00 00 00 00 FF 0F 61 [10:28:58]RasterBufferAndPrint [10:28:58]line Счет N : (1)458614 [10:28:58]line ИНН: 02508201610067 [10:28:58]line Контрольно-Кассовый Чек [10:28:58]line ПРОДАЖА [10:28:58]line ТРК (МРК, ГНК) : 12 [10:28:58]line Товар: 2710124130 [10:28:58]line Аи-92-К-5 [10:28:58]line 6.080 * 65.80 [10:28:58]line = 400.06 [10:28:58]line НДС 12% НСП 1% [10:28:58]line > о реализуемом товаре [10:28:58]line ОКРУГЛЕНИЕ: -0.06 [10:28:58]line ИТОГО: 400.00 [10:28:58]line Внесено: 400.00 [10:28:58]line СДАЧА: 0.00 [10:28:58]line НСП 1% : 3.54 [10:28:58]line НДС 12% : 42.48 [10:28:58]line Наличными: 400.00 [10:28:58]line Безнал.: 0.00 [10:28:58]line Место: АЗС № 72 "Партнер Нефть" [10:28:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:28:58]line СНО: Общий режим [10:28:58]line Чек 86 13.07.2024 10:28 [10:28:58]line Смена: 446 ФФД: 1.0 [10:28:58]line ЗНМ: 0300000160 [10:28:58]line РНМ: 0000000000090829 [10:28:58]line Версия ККМ: 001 [10:28:58]line ФМ: 0000000000874718 [10:28:58]line ФД: 164526 [10:28:58]line ФПД: 47530897708023 [10:28:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102857&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164526&fm=47530897708023&tin=02508201610067®Number=0000000000090829&sum=40000 [10:28:58]OFD Sender: Processing packet 164526 [packets to send 104, broken 103] [10:28:58]ProducePacketName [10:28:58]name=ofd_packets/00164526 [10:28:58]OFD Sender: To server: pG, [10:28:58]CommunicateWithHost lk.salyk.kg:30040 [10:28:58]ConnectInit lk.salyk.kg [10:28:58]written 0, free lines is 4095 [10:28:58]Connected sock=10 [10:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 7F 07 01 D4 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E9 56 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 82 02 00 35 04 06 00 2B 3A A6 46 13 F7 CA C1 78 96 B4 05 E3 4A [10:28:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3E F7 47 00 2F 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 34 37 31 38 10 04 04 00 AE 82 02 00 F4 03 04 00 7B FD 91 66 B6 04 01 00 00 4B F7 E0 35 A9 5C BA 38 [10:28:59]CommunicateWithHost err = 0 [10:28:59]CheckOFDResponse [10:28:59]1017 (14) - 77093643461234 [10:28:59]1041 (16) - 0000000000874718 [10:28:59]1040 (4) - 164526 [10:28:59]1012 (4) - 13.07.2024 04:07 [10:28:59]1206 (1) - 0 [10:28:59]OFD Sender: Remove packet 164526 [10:28:59]ProducePacketName [10:28:59]name=ofd_packets/00164526 [10:28:59]NVStorageDeleteData [10:28:59]Write to MH i2c: 01 00 00 6D 09 76 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: 01 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: 01 07 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 F7 0C 80 [10:28:59]RasterBufferAndPrint [10:28:59]line [10:28:59]line [10:28:59]line [10:28:59]line [10:28:59]line [10:28:59]written 0, free lines is 3335 [10:28:59]MH_Cut [10:28:59]Write to MH i2c: D1 01 00 74 09 01 4F [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: D1 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: D1 01 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: D1 01 00 74 09 00 4E [10:28:59]Write to MH i2c: 01 00 00 75 09 7E [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]OFD Sender: No OFD packet to send [10:28:59]*** Cut start [10:28:59]*** Partial cut [10:28:59]*** CUTSNS_PIN = 1 [10:28:59]*** CUTSNS_PIN = 0 [10:29:00]*** Brake cut motor [10:29:00]Read from MH i2c: 01 [10:29:00]MH_I2C_Read... [10:29:00]*** Stop cut motor [10:29:00]*** Cut end [10:29:00]Read from MH i2c: 01 07 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 FF 0F 93 [10:29:00]process_action close_receipt done [10:29:00]requested_data is exist [10:29:00]produce_requested_data [10:29:00]requested_item fm.sn is exist - process it [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 11 00 00 [10:29:00]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 17 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [10:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:29:00]wFMCommunicate OK [10:29:00]requested_item fd.num is exist - process it [10:29:00]SAM_PROTO_GetFieldsCounters [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 13 00 00 [10:29:00]Write to MH i2c: E2 08 00 77 09 80 13 00 00 00 00 00 00 FC [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 62 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 62 00 77 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 82 02 00 0E 04 04 00 BE 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 16 [10:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 82 02 00 0E 04 04 00 BE 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:29:00]wFMCommunicate OK [10:29:00]SAM_PROTO_GetFieldsCounters done [10:29:00]requested_item shift.num is exist - process it [10:29:00]requested_item shift.opened is exist - process it [10:29:00]req_shift_opened [10:29:00]FM_GetShiftState [10:29:00]SAM_PROTO_GetShiftState [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 13 01 00 [10:29:00]Write to MH i2c: E2 08 00 78 09 80 13 01 00 00 00 00 00 FE [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 0E 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 0E 00 78 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DF [10:29:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:29:00]wFMCommunicate OK [10:29:00]SAM_PROTO_GetShiftState done [10:29:00]FM_GetShiftState done [10:29:00]req_shift_opened done [10:29:00]requested_item shift.open_date is exist - process it [10:29:00]req_shift_open_date [10:29:00]req_shift_open_date done [10:29:00]produce_requested_data done [10:29:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164526,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:29:00]process_action_free close_receipt [10:29:00]json_value_free [10:29:00]json_value_free done [10:29:00]process_json_proto returns [10:29:00]Send response to host [10:29:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164526,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:29:00]free response buf [10:29:00]execute_script done [10:29:00]execute_script returns [10:29:00]free content buf [10:29:00]Sock 7.Close socket [10:29:00]Sock 7.Thread stoped [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:47]accept exits with 9 [10:29:47]New connection [10:29:47]New thread 3067149668 created [10:29:47]Thread 3067293028 joined [10:29:47]Waiting for new connection... [10:29:47] Sock 9.Parse request [10:29:47]Sock 9.Check first char [10:29:47]Sock 9.First char is OK [10:29:47]request: POST /json_proto HTTP/1.0 [10:29:47]Method: POST [10:29:47]URL: /json_proto [10:29:47]Method is POST - this is cgi request [10:29:47]url: /json_proto [10:29:47]query_string will be loaded in cgi processing [10:29:47]execute_cgi json_proto POST (null) [10:29:47]execute_cgi path=json_proto method=POST [10:29:47]POST find Content-Length [10:29:47]Host: 172.17.56.4:8080 [10:29:47]Content-Length: 674 [10:29:47]Content-Type: application/json [10:29:47] [10:29:47]POST finish read [10:29:47]Found Content-Length = 674 [10:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:29:47]execute_script... [10:29: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)458616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:29:47]POST & json_proto [10:29:47]process_json_proto [10:29:47]json parsed OK: [10:29:47]protocol is kg_v1.0 [10:29:47]action value=close_receipt [10:29:47]process_action close_receipt [10:29:47]cmd_close_receipt [10:29:47]MH_GetDate [10:29:47]Write to MH i2c: F0 00 00 79 09 71 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: F0 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: F0 09 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: F0 09 00 79 09 00 1C 57 92 66 C9 DC B2 64 A0 [10:29:47]GetLastDocTimeStamp 1720866537 [10:29:47]current date 1720866588 [10:29:47]FM_GetShiftState [10:29:47]SAM_PROTO_GetShiftState [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 13 01 00 [10:29:47]Write to MH i2c: E2 08 00 7A 09 80 13 01 00 00 00 00 00 00 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 0E 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 0E 00 7A 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E1 [10:29:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:29:47]wFMCommunicate OK [10:29:47]SAM_PROTO_GetShiftState done [10:29:47]FM_GetShiftState done [10:29:47]opened in 1720831249 [10:29:47]opened+sec_in_day 1720917649 [10:29:47]quantity*price = 40048 [10:29:47]sum+1 = 40049 [10:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 87 13.07.2024 10:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164527 ФПД: 151522239033371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164527&fm=151522239033371&tin=02508201610067®Number=0000000000090829&sum=40000 [10:29:48]StoreToDocumentArchive [10:29:48]shift 446 fd 164527 [10:29:48]save to /storage/0446/doc_00164527 [10:29:48]save last doc name /storage/0446/doc_00164527 to /storage/kkm_last_doc_name [10:29:48]save OK [10:29:48]Clear old archive folders... [10:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:48]tlvbuf is 0144E900 [10:29:48]SAM_PROTO_ClearQueue [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 09 00 00 [10:29:48]Write to MH i2c: E2 08 00 87 09 80 09 00 00 00 00 00 00 02 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_ClearQueue done [10:29:48]KKMCreateOFDPacket [10:29:48]OFDProtocolAddRootSTLVToBuf [10:29:48]FM_MakeSignedData [10:29:48]FM_MakeSignedData [10:29:48]SAM_PROTO_SignData [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 01 02 [10:29:48]Write to MH i2c: E2 08 00 88 09 80 0D 01 02 00 00 00 00 0A [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=255 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 57 00 00 00 F4 03 04 00 1C 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 82 02 00 35 04 06 00 89 CF 05 3B [10:29:48]Write to MH i2c: E2 02 01 89 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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 57 00 00 00 F4 03 04 00 1C 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 82 02 00 35 04 06 00 89 CF 05 3B 00 00 96 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 89 09 00 90 00 06 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=7 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 02 02 02 B0 1B [10:29:48]Write to MH i2c: E2 0A 00 8A 09 80 0D 02 02 02 00 B0 1B 00 00 DC [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [10:29:48]RAPDU: 90 00 [10:29:48]wFMCommunicate OK [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 0D 03 02 [10:29:48]Write to MH i2c: E2 08 00 8B 09 80 0D 03 02 00 00 00 00 0F [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0B 00 8B 09 00 01 3C 04 E0 DA 7B 64 C1 90 00 AB [10:29:48]RAPDU: 01 3C 04 E0 DA 7B 64 C1 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_SignData done [10:29:48]FM_MakeSignedData done [10:29:48]CreateOFDProtocolMessage [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 11 00 00 [10:29:48]Write to MH i2c: E2 08 00 8C 09 80 11 00 00 00 00 00 00 0F [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 8C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [10:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:29:48]wFMCommunicate OK [10:29:48]CreateOFDProtocolMessage done [10:29:48]OFDSenderStorePacket 164527 [10:29:48]StoreOFDPacket docnum=164527 [10:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 76 04 01 9D 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 57 00 00 00 F4 03 04 00 1C 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 82 02 00 35 04 06 00 89 CF 05 3B B0 1B 01 3C 04 E0 DA 7B 64 C1 [10:29:48]CheckFolder [10:29:48]dirname=/storage/ofd_packets [10:29:48]CheckFolder done [10:29:48]ProducePacketName [10:29:48]name=ofd_packets/00164527 [10:29:48]NVStorageSaveData ofd_packets/00164527 [10:29:48]File name is /storage/ofd_packets/00164527 [10:29:48]Write 298 bytes [10:29:48]NVStorageSaveData done [10:29:48]OFDSenderStorePacket done [10:29:48]KKMCreateOFDPacket done [10:29:48]NVStorageSaveData kkm_last_timestamp [10:29:48]File name is /storage/kkm_last_timestamp [10:29:48]Write 4 bytes [10:29:48]NVStorageSaveData done [10:29:48]ExternCall_PrintAddStr [10:29:48]wPrintStart [10:29:48]Write to MH i2c: 01 00 00 8D 09 96 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 8D 09 00 00 00 00 00 FF 0F AB [10:29:48]RasterBufferAndPrint [10:29:48]line Счет N : (1)458616 [10:29:48]line ИНН: 02508201610067 [10:29:48]line Контрольно-Кассовый Чек [10:29:48]line ПРОДАЖА [10:29:48]line ТРК (МРК, ГНК) : 11 [10:29:48]line Товар: 2710194210 [10:29:48]line ДТ-К-5 [10:29:48]line 5.570 * 71.90 [10:29:48]line = 400.48 [10:29:48]line НДС 12% НСП 1% [10:29:48]line > о реализуемом товаре [10:29:48]line ОКРУГЛЕНИЕ: -0.48 [10:29:48]line ИТОГО: 400.00 [10:29:48]line Внесено: 400.00 [10:29:48]line СДАЧА: 0.00 [10:29:48]line НСП 1% : 3.54 [10:29:48]line НДС 12% : 42.53 [10:29:48]line Наличными: 400.00 [10:29:48]line Безнал.: 0.00 [10:29:48]line Место: АЗС № 72 "Партнер Нефть" [10:29:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:29:48]line СНО: Общий режим [10:29:48]line Чек 87 13.07.2024 10:29 [10:29:48]line Смена: 446 ФФД: 1.0 [10:29:48]line ЗНМ: 0300000160 [10:29:48]line РНМ: 0000000000090829 [10:29:48]line Версия ККМ: 001 [10:29:48]line ФМ: 0000000000874718 [10:29:48]line ФД: 164527 [10:29:48]line ФПД: 151522239033371 [10:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164527&fm=151522239033371&tin=02508201610067®Number=0000000000090829&sum=40000 [10:29:49]OFD Sender: Processing packet 164527 [packets to send 104, broken 103] [10:29:49]ProducePacketName [10:29:49]name=ofd_packets/00164527 [10:29:49]OFD Sender: To server: pG, [10:29:49]CommunicateWithHost lk.salyk.kg:30040 [10:29:49]ConnectInit lk.salyk.kg [10:29:49]written 0, free lines is 4095 [10:29:49]Connected sock=10 [10:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 76 04 01 9D 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 57 00 00 00 F4 03 04 00 1C 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 82 02 00 35 04 06 00 89 CF 05 3B B0 1B 01 3C 04 E0 DA 7B 64 C1 [10:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C B5 47 00 55 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 82 02 00 F4 03 04 00 AD FD 91 66 B6 04 01 00 00 DE 4B 85 95 A9 77 A7 8D [10:29:49]CommunicateWithHost err = 0 [10:29:49]CheckOFDResponse [10:29:49]1017 (14) - 77093643461234 [10:29:49]1041 (16) - 0000000000874718 [10:29:49]1040 (4) - 164527 [10:29:49]1012 (4) - 13.07.2024 04:08 [10:29:49]1206 (1) - 0 [10:29:49]OFD Sender: Remove packet 164527 [10:29:49]ProducePacketName [10:29:49]name=ofd_packets/00164527 [10:29:49]NVStorageDeleteData [10:29:49]Write to MH i2c: 01 00 00 B7 09 C0 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: 01 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: 01 07 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FE 0C D1 [10:29:49]RasterBufferAndPrint [10:29:49]line [10:29:49]line [10:29:49]line [10:29:49]line [10:29:49]line [10:29:49]written 0, free lines is 3332 [10:29:49]MH_Cut [10:29:49]Write to MH i2c: D1 01 00 BE 09 01 99 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: D1 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: D1 01 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: D1 01 00 BE 09 00 98 [10:29:49]Write to MH i2c: 01 00 00 BF 09 C8 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]OFD Sender: No OFD packet to send [10:29:50]*** Cut start [10:29:50]*** Partial cut [10:29:50]*** CUTSNS_PIN = 1 [10:29:50]*** CUTSNS_PIN = 0 [10:29:50]*** Brake cut motor [10:29:50]Read from MH i2c: 01 [10:29:50]MH_I2C_Read... [10:29:50]*** Stop cut motor [10:29:50]*** Cut end [10:29:50]Read from MH i2c: 01 07 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [10:29:50]process_action close_receipt done [10:29:50]requested_data is exist [10:29:50]produce_requested_data [10:29:50]requested_item fm.sn is exist - process it [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 11 00 00 [10:29:50]Write to MH i2c: E2 08 00 C0 09 80 11 00 00 00 00 00 00 43 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:50]Read from MH i2c: E2 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: E2 17 00 C0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [10:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:29:50]wFMCommunicate OK [10:29:50]requested_item fd.num is exist - process it [10:29:50]SAM_PROTO_GetFieldsCounters [10:29:50]wFMCommunicate request_size=4 [10:29:50]MH_SAM_APDU [10:29:50]CAPDU: 80 13 00 00 [10:29:50]Write to MH i2c: E2 08 00 C1 09 80 13 00 00 00 00 00 00 46 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:51]Read from MH i2c: E2 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 62 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 62 00 C1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 82 02 00 0E 04 04 00 BE 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 64 [10:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 82 02 00 0E 04 04 00 BE 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 [10:29:51]wFMCommunicate OK [10:29:51]SAM_PROTO_GetFieldsCounters done [10:29:51]requested_item shift.num is exist - process it [10:29:51]requested_item shift.opened is exist - process it [10:29:51]req_shift_opened [10:29:51]FM_GetShiftState [10:29:51]SAM_PROTO_GetShiftState [10:29:51]wFMCommunicate request_size=4 [10:29:51]MH_SAM_APDU [10:29:51]CAPDU: 80 13 01 00 [10:29:51]Write to MH i2c: E2 08 00 C2 09 80 13 01 00 00 00 00 00 48 [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:51]Read from MH i2c: E2 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 0E 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: E2 0E 00 C2 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 29 [10:29:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:29:51]wFMCommunicate OK [10:29:51]SAM_PROTO_GetShiftState done [10:29:51]FM_GetShiftState done [10:29:51]req_shift_opened done [10:29:51]requested_item shift.open_date is exist - process it [10:29:51]req_shift_open_date [10:29:51]req_shift_open_date done [10:29:51]produce_requested_data done [10:29:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164527,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:29:51]process_action_free close_receipt [10:29:51]json_value_free [10:29:51]json_value_free done [10:29:51]process_json_proto returns [10:29:51]Send response to host [10:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164527,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:29:51]free response buf [10:29:51]execute_script done [10:29:51]execute_script returns [10:29:51]free content buf [10:29:51]Sock 9.Close socket [10:29:51]Sock 9.Thread stoped [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:00]accept exits with 7 [10:32:00]New connection [10:32:00]New thread 3067293028 created [10:32:00]Thread 3067149668 joined [10:32:00]Waiting for new connection... [10:32:00] Sock 7.Parse request [10:32:00]Sock 7.Check first char [10:32:00]Sock 7.First char is OK [10:32:00]request: POST /json_proto HTTP/1.0 [10:32:00]Method: POST [10:32:00]URL: /json_proto [10:32:00]Method is POST - this is cgi request [10:32:00]url: /json_proto [10:32:00]query_string will be loaded in cgi processing [10:32:00]execute_cgi json_proto POST (null) [10:32:00]execute_cgi path=json_proto method=POST [10:32:00]POST find Content-Length [10:32:00]Host: 172.17.56.4:8080 [10:32:00]Content-Length: 682 [10:32:00]Content-Type: application/json [10:32:00] [10:32:00]POST finish read [10:32:00]Found Content-Length = 682 [10:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]execute_script... [10:32: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)458617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]POST & json_proto [10:32:00]process_json_proto [10:32:00]json parsed OK: [10:32:00]protocol is kg_v1.0 [10:32:00]action value=close_receipt [10:32:00]process_action close_receipt [10:32:00]cmd_close_receipt [10:32:00]MH_GetDate [10:32:00]Write to MH i2c: F0 00 00 C3 09 BB [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 C3 09 00 A1 57 92 66 C9 DC B2 64 6F [10:32:00]GetLastDocTimeStamp 1720866588 [10:32:00]current date 1720866721 [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 C4 09 80 13 01 00 00 00 00 00 4A [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 C4 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2B [10:32:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]opened in 1720831249 [10:32:00]opened+sec_in_day 1720917649 [10:32:00]quantity*price = 200032 [10:32:00]sum+1 = 200033 [10:32:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 88 13.07.2024 10:32 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164528 ФПД: 174089038705283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103201&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164528&fm=174089038705283&tin=02508201610067®Number=0000000000090829&sum=200000 [10:32:01]StoreToDocumentArchive [10:32:01]shift 446 fd 164528 [10:32:01]save to /storage/0446/doc_00164528 [10:32:01]save last doc name /storage/0446/doc_00164528 to /storage/kkm_last_doc_name [10:32:01]save OK [10:32:01]Clear old archive folders... [10:32:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:01]tlvbuf is 01446CD0 [10:32:01]SAM_PROTO_ClearQueue [10:32:01]wFMCommunicate request_size=4 [10:32:01]MH_SAM_APDU [10:32:01]CAPDU: 80 09 00 00 [10:32:01]Write to MH i2c: E2 08 00 D1 09 80 09 00 00 00 00 00 00 4C [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:01]Read from MH i2c: E2 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 03 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [10:32:01]RAPDU: 90 00 [10:32:01]wFMCommunicate OK [10:32:01]SAM_PROTO_ClearQueue done [10:32:01]KKMCreateOFDPacket [10:32:01]OFDProtocolAddRootSTLVToBuf [10:32:01]FM_MakeSignedData [10:32:01]FM_MakeSignedData [10:32:01]SAM_PROTO_SignData [10:32:01]wFMCommunicate request_size=4 [10:32:01]MH_SAM_APDU [10:32:01]CAPDU: 80 0D 01 02 [10:32:01]Write to MH i2c: E2 08 00 D2 09 80 0D 01 02 00 00 00 00 54 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:01]Read from MH i2c: E2 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 03 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [10:32:01]RAPDU: 90 00 [10:32:01]wFMCommunicate OK [10:32:01]wFMCommunicate request_size=255 [10:32:01]MH_SAM_APDU [10:32: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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 82 02 00 35 04 06 00 9E [10:32:01]Write to MH i2c: E2 02 01 D3 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 82 02 00 35 04 06 00 9E 00 00 8C [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=10 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 05 55 43 4F B2 83 [10:32:02]Write to MH i2c: E2 0D 00 D4 09 80 0D 02 02 05 00 55 43 4F B2 83 00 00 7D [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 03 02 [10:32:02]Write to MH i2c: E2 08 00 D5 09 80 0D 03 02 00 00 00 00 59 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 D5 09 00 07 1A 04 BC 9D A1 6D 9E 90 00 84 [10:32:02]RAPDU: 07 1A 04 BC 9D A1 6D 9E 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_SignData done [10:32:02]FM_MakeSignedData done [10:32:02]CreateOFDProtocolMessage [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 D6 09 80 11 00 00 00 00 00 00 59 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 D6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [10:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:02]wFMCommunicate OK [10:32:02]CreateOFDProtocolMessage done [10:32:02]OFDSenderStorePacket 164528 [10:32:02]StoreOFDPacket docnum=164528 [10:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 02 07 01 03 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 82 02 00 35 04 06 00 9E 55 43 4F B2 83 07 1A 04 BC 9D A1 6D 9E [10:32:02]CheckFolder [10:32:02]dirname=/storage/ofd_packets [10:32:02]CheckFolder done [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00164528 [10:32:02]NVStorageSaveData ofd_packets/00164528 [10:32:02]File name is /storage/ofd_packets/00164528 [10:32:02]Write 301 bytes [10:32:02]NVStorageSaveData done [10:32:02]OFDSenderStorePacket done [10:32:02]KKMCreateOFDPacket done [10:32:02]NVStorageSaveData kkm_last_timestamp [10:32:02]File name is /storage/kkm_last_timestamp [10:32:02]Write 4 bytes [10:32:02]NVStorageSaveData done [10:32:02]ExternCall_PrintAddStr [10:32:02]wPrintStart [10:32:02]Write to MH i2c: 01 00 00 D7 09 E0 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 D7 09 00 00 00 00 00 FF 0F F5 [10:32:02]RasterBufferAndPrint [10:32:02]line Счет N : (1)458617 [10:32:02]line ИНН: 02508201610067 [10:32:02]line Контрольно-Кассовый Чек [10:32:02]line ПРОДАЖА [10:32:02]line ТРК (МРК, ГНК) : 22 [10:32:02]line Товар: 2710124130 [10:32:02]line Аи-92-К-5 [10:32:02]line 30.400 * 65.80 [10:32:02]line = 2000.32 [10:32:02]line НДС 12% НСП 1% [10:32:02]line > о реализуемом товаре [10:32:02]line ОКРУГЛЕНИЕ: -0.32 [10:32:02]line ИТОГО: 2000.00 [10:32:02]line Внесено: 2000.00 [10:32:02]line СДАЧА: 0.00 [10:32:02]line НСП 1% : 17.70 [10:32:02]line НДС 12% : 212.42 [10:32:02]line Наличными: 2000.00 [10:32:02]line Безнал.: 0.00 [10:32:02]line Место: АЗС № 72 "Партнер Нефть" [10:32:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:32:02]line СНО: Общий режим [10:32:02]line Чек 88 13.07.2024 10:32 [10:32:02]line Смена: 446 ФФД: 1.0 [10:32:02]line ЗНМ: 0300000160 [10:32:02]line РНМ: 0000000000090829 [10:32:02]line Версия ККМ: 001 [10:32:02]line ФМ: 0000000000874718 [10:32:02]line ФД: 164528 [10:32:02]line ФПД: 174089038705283 [10:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103201&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164528&fm=174089038705283&tin=02508201610067®Number=0000000000090829&sum=200000 [10:32:02]OFD Sender: Processing packet 164528 [packets to send 104, broken 103] [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00164528 [10:32:02]OFD Sender: To server: pG, [10:32:02]CommunicateWithHost lk.salyk.kg:30040 [10:32:02]ConnectInit lk.salyk.kg [10:32:02]written 0, free lines is 4095 [10:32:02]Connected sock=10 [10:32:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 02 07 01 03 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 57 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 82 02 00 35 04 06 00 9E 55 43 4F B2 83 07 1A 04 BC 9D A1 6D 9E [10:32:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A 66 47 00 B1 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 34 37 31 38 10 04 04 00 B0 82 02 00 F4 03 04 00 33 FE 91 66 B6 04 01 00 00 BD 3C 3B 86 34 CA BD FD [10:32:02]CommunicateWithHost err = 0 [10:32:02]CheckOFDResponse [10:32:02]1017 (14) - 77093643461234 [10:32:02]1041 (16) - 0000000000874718 [10:32:02]1040 (4) - 164528 [10:32:02]1012 (4) - 13.07.2024 04:10 [10:32:02]1206 (1) - 0 [10:32:02]OFD Sender: Remove packet 164528 [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00164528 [10:32:02]NVStorageDeleteData [10:32:03]Write to MH i2c: 01 00 00 01 0A 0B [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 14 0D 33 [10:32:03]RasterBufferAndPrint [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]written 0, free lines is 3354 [10:32:03]MH_Cut [10:32:03]Write to MH i2c: D1 01 00 08 0A 01 E4 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 08 0A 00 E3 [10:32:03]Write to MH i2c: 01 00 00 09 0A 13 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]OFD Sender: No OFD packet to send [10:32:03]*** Cut start [10:32:03]*** Partial cut [10:32:03]*** CUTSNS_PIN = 1 [10:32:03]*** CUTSNS_PIN = 0 [10:32:04]*** Brake cut motor [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]*** Stop cut motor [10:32:04]*** Cut end [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 FF 0F 28 [10:32:04]process_action close_receipt done [10:32:04]requested_data is exist [10:32:04]produce_requested_data [10:32:04]requested_item fm.sn is exist - process it [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 11 00 00 [10:32:04]Write to MH i2c: E2 08 00 0A 0A 80 11 00 00 00 00 00 00 8E [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 0A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [10:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:04]wFMCommunicate OK [10:32:04]requested_item fd.num is exist - process it [10:32:04]SAM_PROTO_GetFieldsCounters [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 00 00 [10:32:04]Write to MH i2c: E2 08 00 0B 0A 80 13 00 00 00 00 00 00 91 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 0B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 82 02 00 0E 04 04 00 BE 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 B3 [10:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 82 02 00 0E 04 04 00 BE 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 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetFieldsCounters done [10:32:04]requested_item shift.num is exist - process it [10:32:04]requested_item shift.opened is exist - process it [10:32:04]req_shift_opened [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 0C 0A 80 13 01 00 00 00 00 00 93 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 0C 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 74 [10:32:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetShiftState done [10:32:04]FM_GetShiftState done [10:32:04]req_shift_opened done [10:32:04]requested_item shift.open_date is exist - process it [10:32:04]req_shift_open_date [10:32:04]req_shift_open_date done [10:32:04]produce_requested_data done [10:32:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164528,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:32:04]process_action_free close_receipt [10:32:04]json_value_free [10:32:04]json_value_free done [10:32:04]process_json_proto returns [10:32:04]Send response to host [10:32:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164528,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:32:04]free response buf [10:32:04]execute_script done [10:32:04]execute_script returns [10:32:04]free content buf [10:32:04]Sock 7.Close socket [10:32:04]Sock 7.Thread stoped [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:55]accept exits with 9 [10:36:55]New connection [10:36:55]New thread 3067149668 created [10:36:55]Thread 3067293028 joined [10:36:55]Waiting for new connection... [10:36:55] Sock 9.Parse request [10:36:55]Sock 9.Check first char [10:36:55]Sock 9.First char is OK [10:36:55]request: POST /json_proto HTTP/1.0 [10:36:55]Method: POST [10:36:55]URL: /json_proto [10:36:55]Method is POST - this is cgi request [10:36:55]url: /json_proto [10:36:55]query_string will be loaded in cgi processing [10:36:55]execute_cgi json_proto POST (null) [10:36:55]execute_cgi path=json_proto method=POST [10:36:55]POST find Content-Length [10:36:55]Host: 172.17.56.4:8080 [10:36:55]Content-Length: 791 [10:36:55]Content-Type: application/json [10:36:55] [10:36:55]POST finish read [10:36:55]Found Content-Length = 791 [10:36:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:55]execute_script... [10:36: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)458618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:55]POST & json_proto [10:36:55]process_json_proto [10:36:55]json parsed OK: [10:36:55]protocol is kg_v1.0 [10:36:55]action value=close_receipt [10:36:55]process_action close_receipt [10:36:55]cmd_close_receipt [10:36:55]MH_GetDate [10:36:55]Write to MH i2c: F0 00 00 0D 0A 06 [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: F0 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: F0 09 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: F0 09 00 0D 0A 00 C8 58 92 66 C9 DC B2 64 E2 [10:36:55]GetLastDocTimeStamp 1720866721 [10:36:55]current date 1720867016 [10:36:55]FM_GetShiftState [10:36:55]SAM_PROTO_GetShiftState [10:36:55]wFMCommunicate request_size=4 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 13 01 00 [10:36:55]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 0E 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 76 [10:36:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:36:55]wFMCommunicate OK [10:36:55]SAM_PROTO_GetShiftState done [10:36:55]FM_GetShiftState done [10:36:55]opened in 1720831249 [10:36:55]opened+sec_in_day 1720917649 [10:36:55]quantity*price = 65220 [10:36:55]sum+1 = 65221 [10:36:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 89 13.07.2024 10:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164529 ФПД: 114966909667687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103656&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164529&fm=114966909667687&tin=02508201610067®Number=0000000000090829&sum=65220 [10:36:56]StoreToDocumentArchive [10:36:56]shift 446 fd 164529 [10:36:56]save to /storage/0446/doc_00164529 [10:36:56]save last doc name /storage/0446/doc_00164529 to /storage/kkm_last_doc_name [10:36:56]save OK [10:36:56]Clear old archive folders... [10:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:56]tlvbuf is 01499700 [10:36:56]SAM_PROTO_ClearQueue [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 09 00 00 [10:36:56]Write to MH i2c: E2 08 00 1B 0A 80 09 00 00 00 00 00 00 97 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_ClearQueue done [10:36:56]KKMCreateOFDPacket [10:36:56]OFDProtocolAddRootSTLVToBuf [10:36:56]FM_MakeSignedData [10:36:56]FM_MakeSignedData [10:36:56]SAM_PROTO_SignData [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 01 02 [10:36:56]Write to MH i2c: E2 08 00 1C 0A 80 0D 01 02 00 00 00 00 9F [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=255 [10:36:56]MH_SAM_APDU [10:36: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C8 58 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 82 02 00 35 04 06 00 68 [10:36:56]Write to MH i2c: E2 02 01 1D 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C8 58 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 82 02 00 35 04 06 00 68 00 00 F8 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=10 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 02 02 05 8F D1 CF C9 67 [10:36:56]Write to MH i2c: E2 0D 00 1E 0A 80 0D 02 02 05 00 8F D1 CF C9 67 00 00 0B [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 03 02 [10:36:56]Write to MH i2c: E2 08 00 1F 0A 80 0D 03 02 00 00 00 00 A4 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 1F 0A 00 95 44 38 F2 CB FF 1B 20 90 00 AD [10:36:56]RAPDU: 95 44 38 F2 CB FF 1B 20 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_SignData done [10:36:56]FM_MakeSignedData done [10:36:56]CreateOFDProtocolMessage [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 11 00 00 [10:36:56]Write to MH i2c: E2 08 00 20 0A 80 11 00 00 00 00 00 00 A4 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 20 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [10:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:56]wFMCommunicate OK [10:36:56]CreateOFDProtocolMessage done [10:36:56]OFDSenderStorePacket 164529 [10:36:56]StoreOFDPacket docnum=164529 [10:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 9A 07 01 BE 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C8 58 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 82 02 00 35 04 06 00 68 8F D1 CF C9 67 95 44 38 F2 CB FF 1B 20 [10:36:56]CheckFolder [10:36:56]dirname=/storage/ofd_packets [10:36:56]CheckFolder done [10:36:56]ProducePacketName [10:36:56]name=ofd_packets/00164529 [10:36:56]NVStorageSaveData ofd_packets/00164529 [10:36:56]File name is /storage/ofd_packets/00164529 [10:36:56]Write 301 bytes [10:36:56]NVStorageSaveData done [10:36:56]OFDSenderStorePacket done [10:36:56]KKMCreateOFDPacket done [10:36:56]NVStorageSaveData kkm_last_timestamp [10:36:56]File name is /storage/kkm_last_timestamp [10:36:56]Write 4 bytes [10:36:56]NVStorageSaveData done [10:36:56]ExternCall_PrintAddStr [10:36:56]wPrintStart [10:36:56]Write to MH i2c: 01 00 00 21 0A 2B [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 21 0A 00 00 00 00 00 FF 0F 40 [10:36:56]RasterBufferAndPrint [10:36:56]line Счет N : (1)458618 [10:36:56]line ИНН: 02508201610067 [10:36:56]line Контрольно-Кассовый Чек [10:36:56]line ПРОДАЖА [10:36:56]line ТРК (МРК, ГНК) : 22 [10:36:56]line Товар: 2710124130 [10:36:56]line Аи-92-К-5 [10:36:56]line 10.000 * 65.22 [10:36:56]line = 652.20 [10:36:56]line НДС 12% НСП 1% [10:36:56]line > о реализуемом товаре [10:36:56]line ИТОГО: 652.20 [10:36:56]line НСП 1% : 5.77 [10:36:56]line НДС 12% : 69.26 [10:36:56]line Наличными: 0.00 [10:36:56]line Безнал.: 652.20 [10:36:56]line Место: АЗС № 72 "Партнер Нефть" [10:36:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:36:56]line СНО: Общий режим [10:36:56]line Чек 89 13.07.2024 10:36 [10:36:56]line Смена: 446 ФФД: 1.0 [10:36:56]line ЗНМ: 0300000160 [10:36:56]line РНМ: 0000000000090829 [10:36:56]line Версия ККМ: 001 [10:36:56]line Платежная система: KICB Банк [10:36:56]line ФМ: 0000000000874718 [10:36:56]line ФД: 164529 [10:36:56]line ФПД: 114966909667687 [10:36:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103656&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164529&fm=114966909667687&tin=02508201610067®Number=0000000000090829&sum=65220 [10:36:57]OFD Sender: Processing packet 164529 [packets to send 104, broken 103] [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00164529 [10:36:57]OFD Sender: To server: pG, [10:36:57]CommunicateWithHost lk.salyk.kg:30040 [10:36:57]ConnectInit lk.salyk.kg [10:36:57]written 0, free lines is 4095 [10:36:57]Connected sock=10 [10:36:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 9A 07 01 BE 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C8 58 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 82 02 00 35 04 06 00 68 8F D1 CF C9 67 95 44 38 F2 CB FF 1B 20 [10:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AA 8B 47 00 99 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 34 37 31 38 10 04 04 00 B1 82 02 00 F4 03 04 00 59 FF 91 66 B6 04 01 00 00 B6 38 92 CA 2D 8C A4 C2 [10:36:57]CommunicateWithHost err = 0 [10:36:57]CheckOFDResponse [10:36:57]1017 (14) - 77093643461234 [10:36:57]1041 (16) - 0000000000874718 [10:36:57]1040 (4) - 164529 [10:36:57]1012 (4) - 13.07.2024 04:15 [10:36:57]1206 (1) - 0 [10:36:57]OFD Sender: Remove packet 164529 [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00164529 [10:36:57]NVStorageDeleteData [10:36:57]Write to MH i2c: 01 00 00 4A 0A 54 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 0F 0D 77 [10:36:57]RasterBufferAndPrint [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]written 0, free lines is 3349 [10:36:57]MH_Cut [10:36:57]Write to MH i2c: D1 01 00 51 0A 01 2D [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 51 0A 00 2C [10:36:57]Write to MH i2c: 01 00 00 52 0A 5C [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]OFD Sender: No OFD packet to send [10:36:58]*** Cut start [10:36:58]*** Partial cut [10:36:58]*** CUTSNS_PIN = 1 [10:36:58]*** CUTSNS_PIN = 0 [10:36:58]*** Brake cut motor [10:36:58]Read from MH i2c: 01 [10:36:58]MH_I2C_Read... [10:36:58]*** Stop cut motor [10:36:58]*** Cut end [10:36:58]Read from MH i2c: 01 07 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 FF 0F 71 [10:36:58]process_action close_receipt done [10:36:58]requested_data is exist [10:36:58]produce_requested_data [10:36:58]requested_item fm.sn is exist - process it [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 11 00 00 [10:36:58]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [10:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:58]wFMCommunicate OK [10:36:58]requested_item fd.num is exist - process it [10:36:58]SAM_PROTO_GetFieldsCounters [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 13 00 00 [10:36:58]Write to MH i2c: E2 08 00 54 0A 80 13 00 00 00 00 00 00 DA [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 62 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 62 00 54 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 82 02 00 0E 04 04 00 BE 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 00 [10:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 82 02 00 0E 04 04 00 BE 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 [10:36:58]wFMCommunicate OK [10:36:58]SAM_PROTO_GetFieldsCounters done [10:36:58]requested_item shift.num is exist - process it [10:36:58]requested_item shift.opened is exist - process it [10:36:58]req_shift_opened [10:36:58]FM_GetShiftState [10:36:58]SAM_PROTO_GetShiftState [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 13 01 00 [10:36:58]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0E 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BD [10:36:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:36:58]wFMCommunicate OK [10:36:58]SAM_PROTO_GetShiftState done [10:36:58]FM_GetShiftState done [10:36:58]req_shift_opened done [10:36:58]requested_item shift.open_date is exist - process it [10:36:58]req_shift_open_date [10:36:58]req_shift_open_date done [10:36:58]produce_requested_data done [10:36:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164529,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:36:58]process_action_free close_receipt [10:36:58]json_value_free [10:36:58]json_value_free done [10:36:58]process_json_proto returns [10:36:58]Send response to host [10:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164529,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:36:58]free response buf [10:36:58]execute_script done [10:36:58]execute_script returns [10:36:58]free content buf [10:36:58]Sock 9.Close socket [10:36:58]Sock 9.Thread stoped [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:24]accept exits with 7 [10:39:24]New connection [10:39:24]New thread 3067293028 created [10:39:24]Thread 3067149668 joined [10:39:24]Waiting for new connection... [10:39:24] Sock 7.Parse request [10:39:24]Sock 7.Check first char [10:39:24]Sock 7.First char is OK [10:39:24]request: POST /json_proto HTTP/1.0 [10:39:24]Method: POST [10:39:24]URL: /json_proto [10:39:24]Method is POST - this is cgi request [10:39:24]url: /json_proto [10:39:24]query_string will be loaded in cgi processing [10:39:24]execute_cgi json_proto POST (null) [10:39:24]execute_cgi path=json_proto method=POST [10:39:24]POST find Content-Length [10:39:24]Host: 172.17.56.4:8080 [10:39:24]Content-Length: 677 [10:39:24]Content-Type: application/json [10:39:24] [10:39:24]POST finish read [10:39:24]Found Content-Length = 677 [10:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:39:24]execute_script... [10:39: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)458619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:39:24]POST & json_proto [10:39:24]process_json_proto [10:39:24]json parsed OK: [10:39:24]protocol is kg_v1.0 [10:39:24]action value=close_receipt [10:39:24]process_action close_receipt [10:39:24]cmd_close_receipt [10:39:24]MH_GetDate [10:39:24]Write to MH i2c: F0 00 00 56 0A 4F [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 09 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: F0 09 00 56 0A 00 5E 59 92 66 C9 DC B2 64 C2 [10:39:24]GetLastDocTimeStamp 1720867016 [10:39:24]current date 1720867166 [10:39:24]FM_GetShiftState [10:39:24]SAM_PROTO_GetShiftState [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 13 01 00 [10:39:24]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BF [10:39:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_GetShiftState done [10:39:24]FM_GetShiftState done [10:39:24]opened in 1720831249 [10:39:24]opened+sec_in_day 1720917649 [10:39:24]quantity*price = 50008 [10:39:24]sum+1 = 50009 [10:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 90 13.07.2024 10:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164530 ФПД: 26295993882870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164530&fm=26295993882870&tin=02508201610067®Number=0000000000090829&sum=50000 [10:39:25]StoreToDocumentArchive [10:39:25]shift 446 fd 164530 [10:39:25]save to /storage/0446/doc_00164530 [10:39:25]save last doc name /storage/0446/doc_00164530 to /storage/kkm_last_doc_name [10:39:25]save OK [10:39:25]Clear old archive folders... [10:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:25]tlvbuf is 0142FF70 [10:39:25]SAM_PROTO_ClearQueue [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 09 00 00 [10:39:25]Write to MH i2c: E2 08 00 64 0A 80 09 00 00 00 00 00 00 E0 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_ClearQueue done [10:39:25]KKMCreateOFDPacket [10:39:25]OFDProtocolAddRootSTLVToBuf [10:39:25]FM_MakeSignedData [10:39:25]FM_MakeSignedData [10:39:25]SAM_PROTO_SignData [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 01 02 [10:39:25]Write to MH i2c: E2 08 00 65 0A 80 0D 01 02 00 00 00 00 E8 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [10:39:26]RAPDU: 90 00 [10:39:26]wFMCommunicate OK [10:39:26]wFMCommunicate request_size=255 [10:39:26]MH_SAM_APDU [10:39: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 00 00 00 F4 03 04 00 5E 59 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 82 02 00 35 04 06 00 17 [10:39:26]Write to MH i2c: E2 02 01 66 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 00 00 00 F4 03 04 00 5E 59 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 82 02 00 35 04 06 00 17 00 00 76 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [10:39:26]RAPDU: 90 00 [10:39:26]wFMCommunicate OK [10:39:26]wFMCommunicate request_size=10 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 0D 02 02 05 EA 83 5F D8 F6 [10:39:26]Write to MH i2c: E2 0D 00 67 0A 80 0D 02 02 05 00 EA 83 5F D8 F6 00 00 8F [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [10:39:26]RAPDU: 90 00 [10:39:26]wFMCommunicate OK [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 0D 03 02 [10:39:26]Write to MH i2c: E2 08 00 68 0A 80 0D 03 02 00 00 00 00 ED [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0B 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0B 00 68 0A 00 57 A9 65 9A 63 6C 69 F8 90 00 1D [10:39:26]RAPDU: 57 A9 65 9A 63 6C 69 F8 90 00 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_SignData done [10:39:26]FM_MakeSignedData done [10:39:26]CreateOFDProtocolMessage [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 11 00 00 [10:39:26]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [10:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:26]wFMCommunicate OK [10:39:26]CreateOFDProtocolMessage done [10:39:26]OFDSenderStorePacket 164530 [10:39:26]StoreOFDPacket docnum=164530 [10:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 F3 07 01 C7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 00 00 00 F4 03 04 00 5E 59 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 82 02 00 35 04 06 00 17 EA 83 5F D8 F6 57 A9 65 9A 63 6C 69 F8 [10:39:26]CheckFolder [10:39:26]dirname=/storage/ofd_packets [10:39:26]CheckFolder done [10:39:26]ProducePacketName [10:39:26]name=ofd_packets/00164530 [10:39:26]NVStorageSaveData ofd_packets/00164530 [10:39:26]File name is /storage/ofd_packets/00164530 [10:39:26]Write 301 bytes [10:39:26]NVStorageSaveData done [10:39:26]OFDSenderStorePacket done [10:39:26]KKMCreateOFDPacket done [10:39:26]NVStorageSaveData kkm_last_timestamp [10:39:26]File name is /storage/kkm_last_timestamp [10:39:26]Write 4 bytes [10:39:26]NVStorageSaveData done [10:39:26]ExternCall_PrintAddStr [10:39:26]wPrintStart [10:39:26]Write to MH i2c: 01 00 00 6A 0A 74 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 FF 0F 89 [10:39:26]RasterBufferAndPrint [10:39:26]line Счет N : (1)458619 [10:39:26]line ИНН: 02508201610067 [10:39:26]line Контрольно-Кассовый Чек [10:39:26]line ПРОДАЖА [10:39:26]line ТРК (МРК, ГНК) : 22 [10:39:26]line Товар: 2710124130 [10:39:26]line Аи-92-К-5 [10:39:26]line 7.600 * 65.80 [10:39:26]line = 500.08 [10:39:26]line НДС 12% НСП 1% [10:39:26]line > о реализуемом товаре [10:39:26]line ОКРУГЛЕНИЕ: -0.08 [10:39:26]line ИТОГО: 500.00 [10:39:26]line Внесено: 500.00 [10:39:26]line СДАЧА: 0.00 [10:39:26]line НСП 1% : 4.42 [10:39:26]line НДС 12% : 53.11 [10:39:26]line Наличными: 500.00 [10:39:26]line Безнал.: 0.00 [10:39:26]line Место: АЗС № 72 "Партнер Нефть" [10:39:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:39:26]line СНО: Общий режим [10:39:26]line Чек 90 13.07.2024 10:39 [10:39:26]line Смена: 446 ФФД: 1.0 [10:39:26]line ЗНМ: 0300000160 [10:39:26]line РНМ: 0000000000090829 [10:39:26]line Версия ККМ: 001 [10:39:26]line ФМ: 0000000000874718 [10:39:26]line ФД: 164530 [10:39:26]line ФПД: 26295993882870 [10:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164530&fm=26295993882870&tin=02508201610067®Number=0000000000090829&sum=50000 [10:39:26]written 0, free lines is 4095 [10:39:26]OFD Sender: Processing packet 164530 [packets to send 104, broken 103] [10:39:26]ProducePacketName [10:39:26]name=ofd_packets/00164530 [10:39:26]OFD Sender: To server: pG, [10:39:26]CommunicateWithHost lk.salyk.kg:30040 [10:39:26]ConnectInit lk.salyk.kg [10:39:26]Connected sock=10 [10:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 F3 07 01 C7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5A 00 00 00 F4 03 04 00 5E 59 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 82 02 00 35 04 06 00 17 EA 83 5F D8 F6 57 A9 65 9A 63 6C 69 F8 [10:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 E1 47 00 83 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 34 37 31 38 10 04 04 00 B2 82 02 00 F4 03 04 00 EF FF 91 66 B6 04 01 00 00 BA A5 2B 43 F5 32 CB 7F [10:39:27]CommunicateWithHost err = 0 [10:39:27]CheckOFDResponse [10:39:27]1017 (14) - 77093643461234 [10:39:27]1041 (16) - 0000000000874718 [10:39:27]1040 (4) - 164530 [10:39:27]1012 (4) - 13.07.2024 04:17 [10:39:27]1206 (1) - 0 [10:39:27]OFD Sender: Remove packet 164530 [10:39:27]ProducePacketName [10:39:27]name=ofd_packets/00164530 [10:39:27]NVStorageDeleteData [10:39:27]Write to MH i2c: 01 00 00 94 0A 9E [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: 01 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: 01 07 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 03 0D B5 [10:39:27]RasterBufferAndPrint [10:39:27]line [10:39:27]line [10:39:27]line [10:39:27]line [10:39:27]line [10:39:27]written 0, free lines is 3337 [10:39:27]MH_Cut [10:39:27]Write to MH i2c: D1 01 00 9B 0A 01 77 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: D1 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: D1 01 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: D1 01 00 9B 0A 00 76 [10:39:27]Write to MH i2c: 01 00 00 9C 0A A6 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]OFD Sender: No OFD packet to send [10:39:27]*** Cut start [10:39:27]*** Partial cut [10:39:27]*** CUTSNS_PIN = 1 [10:39:27]*** CUTSNS_PIN = 0 [10:39:28]*** Brake cut motor [10:39:28]Read from MH i2c: 01 [10:39:28]MH_I2C_Read... [10:39:28]*** Stop cut motor [10:39:28]*** Cut end [10:39:28]Read from MH i2c: 01 07 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: 01 07 00 9C 0A 00 00 00 00 00 FF 0F BB [10:39:28]process_action close_receipt done [10:39:28]requested_data is exist [10:39:28]produce_requested_data [10:39:28]requested_item fm.sn is exist - process it [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 11 00 00 [10:39:28]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 17 00 [10:39:28]MH_I2C_Read... [10:39:28]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 34 37 31 38 90 00 77 [10:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:28]wFMCommunicate OK [10:39:28]requested_item fd.num is exist - process it [10:39:28]SAM_PROTO_GetFieldsCounters [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 00 00 [10:39:28]Write to MH i2c: E2 08 00 9E 0A 80 13 00 00 00 00 00 00 24 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 9E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 82 02 00 0E 04 04 00 BE 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 4E [10:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 82 02 00 0E 04 04 00 BE 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 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetFieldsCounters done [10:39:28]requested_item shift.num is exist - process it [10:39:28]requested_item shift.opened is exist - process it [10:39:28]req_shift_opened [10:39:28]FM_GetShiftState [10:39:28]SAM_PROTO_GetShiftState [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 01 00 [10:39:28]Write to MH i2c: E2 08 00 9F 0A 80 13 01 00 00 00 00 00 26 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 9F 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 07 [10:39:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetShiftState done [10:39:28]FM_GetShiftState done [10:39:28]req_shift_opened done [10:39:28]requested_item shift.open_date is exist - process it [10:39:28]req_shift_open_date [10:39:28]req_shift_open_date done [10:39:28]produce_requested_data done [10:39:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164530,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:39:28]process_action_free close_receipt [10:39:28]json_value_free [10:39:28]json_value_free done [10:39:28]process_json_proto returns [10:39:28]Send response to host [10:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164530,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:39:28]free response buf [10:39:28]execute_script done [10:39:28]execute_script returns [10:39:28]free content buf [10:39:28]Sock 7.Close socket [10:39:28]Sock 7.Thread stoped [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45: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:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:55]accept exits with 9 [10:45:55]New connection [10:45:55]New thread 3067149668 created [10:45:55]Thread 3067293028 joined [10:45:55]Waiting for new connection... [10:45:55] Sock 9.Parse request [10:45:55]Sock 9.Check first char [10:45:55]Sock 9.First char is OK [10:45:55]request: POST /json_proto HTTP/1.0 [10:45:55]Method: POST [10:45:55]URL: /json_proto [10:45:55]Method is POST - this is cgi request [10:45:55]url: /json_proto [10:45:55]query_string will be loaded in cgi processing [10:45:55]execute_cgi json_proto POST (null) [10:45:55]execute_cgi path=json_proto method=POST [10:45:55]POST find Content-Length [10:45:55]Host: 172.17.56.4:8080 [10:45:55]Content-Length: 682 [10:45:55]Content-Type: application/json [10:45:55] [10:45:55]POST finish read [10:45:55]Found Content-Length = 682 [10:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]execute_script... [10:45: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)458620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]POST & json_proto [10:45:55]process_json_proto [10:45:55]json parsed OK: [10:45:55]protocol is kg_v1.0 [10:45:55]action value=close_receipt [10:45:55]process_action close_receipt [10:45:55]cmd_close_receipt [10:45:55]MH_GetDate [10:45:55]Write to MH i2c: F0 00 00 A0 0A 99 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 A0 0A 00 E4 5A 92 66 C9 DC B2 64 93 [10:45:55]GetLastDocTimeStamp 1720867166 [10:45:55]current date 1720867556 [10:45:55]FM_GetShiftState [10:45:55]SAM_PROTO_GetShiftState [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 13 01 00 [10:45:55]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 09 [10:45:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_GetShiftState done [10:45:55]FM_GetShiftState done [10:45:55]opened in 1720831249 [10:45:55]opened+sec_in_day 1720917649 [10:45:55]quantity*price = 100016 [10:45:55]sum+1 = 100017 [10:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 91 13.07.2024 10:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164531 ФПД: 157626572983695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104556&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164531&fm=157626572983695&tin=02508201610067®Number=0000000000090829&sum=100000 [10:45:56]StoreToDocumentArchive [10:45:56]shift 446 fd 164531 [10:45:56]save to /storage/0446/doc_00164531 [10:45:56]save last doc name /storage/0446/doc_00164531 to /storage/kkm_last_doc_name [10:45:56]save OK [10:45:56]Clear old archive folders... [10:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:56]tlvbuf is 01417A40 [10:45:56]SAM_PROTO_ClearQueue [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 09 00 00 [10:45:56]Write to MH i2c: E2 08 00 AE 0A 80 09 00 00 00 00 00 00 2A [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_ClearQueue done [10:45:56]KKMCreateOFDPacket [10:45:56]OFDProtocolAddRootSTLVToBuf [10:45:56]FM_MakeSignedData [10:45:56]FM_MakeSignedData [10:45:56]SAM_PROTO_SignData [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 01 02 [10:45:56]Write to MH i2c: E2 08 00 AF 0A 80 0D 01 02 00 00 00 00 32 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=255 [10:45:56]MH_SAM_APDU [10:45: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E4 5A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 82 02 00 35 04 06 00 8F [10:45:56]Write to MH i2c: E2 02 01 B0 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E4 5A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 82 02 00 35 04 06 00 8F 00 00 63 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=10 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 02 02 05 5C 4B E3 CD 8F [10:45:56]Write to MH i2c: E2 0D 00 B1 0A 80 0D 02 02 05 00 5C 4B E3 CD 8F 00 00 25 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 03 02 [10:45:56]Write to MH i2c: E2 08 00 B2 0A 80 0D 03 02 00 00 00 00 37 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 B2 0A 00 EA EB EF 0D 67 E9 D1 60 90 00 8A [10:45:56]RAPDU: EA EB EF 0D 67 E9 D1 60 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_SignData done [10:45:56]FM_MakeSignedData done [10:45:56]CreateOFDProtocolMessage [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 11 00 00 [10:45:56]Write to MH i2c: E2 08 00 B3 0A 80 11 00 00 00 00 00 00 37 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 B3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [10:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:45:56]wFMCommunicate OK [10:45:56]CreateOFDProtocolMessage done [10:45:56]OFDSenderStorePacket 164531 [10:45:56]StoreOFDPacket docnum=164531 [10:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 52 07 01 FC 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E4 5A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 82 02 00 35 04 06 00 8F 5C 4B E3 CD 8F EA EB EF 0D 67 E9 D1 60 [10:45:56]CheckFolder [10:45:56]dirname=/storage/ofd_packets [10:45:56]CheckFolder done [10:45:56]ProducePacketName [10:45:56]name=ofd_packets/00164531 [10:45:56]NVStorageSaveData ofd_packets/00164531 [10:45:56]File name is /storage/ofd_packets/00164531 [10:45:56]Write 301 bytes [10:45:56]NVStorageSaveData done [10:45:56]OFDSenderStorePacket done [10:45:56]KKMCreateOFDPacket done [10:45:56]NVStorageSaveData kkm_last_timestamp [10:45:56]File name is /storage/kkm_last_timestamp [10:45:56]Write 4 bytes [10:45:56]NVStorageSaveData done [10:45:56]ExternCall_PrintAddStr [10:45:56]wPrintStart [10:45:56]Write to MH i2c: 01 00 00 B4 0A BE [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [10:45:56]RasterBufferAndPrint [10:45:56]line Счет N : (1)458620 [10:45:56]line ИНН: 02508201610067 [10:45:56]line Контрольно-Кассовый Чек [10:45:56]line ПРОДАЖА [10:45:56]line ТРК (МРК, ГНК) : 22 [10:45:56]line Товар: 2710124130 [10:45:56]line Аи-92-К-5 [10:45:56]line 15.200 * 65.80 [10:45:56]line = 1000.16 [10:45:56]line НДС 12% НСП 1% [10:45:56]line > о реализуемом товаре [10:45:56]line ОКРУГЛЕНИЕ: -0.16 [10:45:56]line ИТОГО: 1000.00 [10:45:56]line Внесено: 1000.00 [10:45:56]line СДАЧА: 0.00 [10:45:56]line НСП 1% : 8.85 [10:45:56]line НДС 12% : 106.21 [10:45:56]line Наличными: 1000.00 [10:45:56]line Безнал.: 0.00 [10:45:56]line Место: АЗС № 72 "Партнер Нефть" [10:45:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:45:56]line СНО: Общий режим [10:45:56]line Чек 91 13.07.2024 10:45 [10:45:56]line Смена: 446 ФФД: 1.0 [10:45:56]line ЗНМ: 0300000160 [10:45:56]line РНМ: 0000000000090829 [10:45:56]line Версия ККМ: 001 [10:45:56]line ФМ: 0000000000874718 [10:45:56]line ФД: 164531 [10:45:56]line ФПД: 157626572983695 [10:45:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104556&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164531&fm=157626572983695&tin=02508201610067®Number=0000000000090829&sum=100000 [10:45:57]OFD Sender: Processing packet 164531 [packets to send 104, broken 103] [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00164531 [10:45:57]OFD Sender: To server: pG, [10:45:57]CommunicateWithHost lk.salyk.kg:30040 [10:45:57]ConnectInit lk.salyk.kg [10:45:57]written 0, free lines is 4095 [10:45:57]Connected sock=10 [10:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 52 07 01 FC 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 E4 5A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 82 02 00 35 04 06 00 8F 5C 4B E3 CD 8F EA EB EF 0D 67 E9 D1 60 [10:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 01 29 47 00 4F EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 82 02 00 F4 03 04 00 75 01 92 66 B6 04 01 00 00 D0 89 FD 90 37 AF C2 AB [10:45:57]CommunicateWithHost err = 0 [10:45:57]CheckOFDResponse [10:45:57]1017 (14) - 77093643461234 [10:45:57]1041 (16) - 0000000000874718 [10:45:57]1040 (4) - 164531 [10:45:57]1012 (4) - 13.07.2024 04:24 [10:45:57]1206 (1) - 0 [10:45:57]OFD Sender: Remove packet 164531 [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00164531 [10:45:57]NVStorageDeleteData [10:45:57]Write to MH i2c: 01 00 00 DE 0A E8 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 06 0D 02 [10:45:57]RasterBufferAndPrint [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]written 0, free lines is 3344 [10:45:57]MH_Cut [10:45:57]Write to MH i2c: D1 01 00 E5 0A 01 C1 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 E5 0A 00 C0 [10:45:57]Write to MH i2c: 01 00 00 E6 0A F0 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]OFD Sender: No OFD packet to send [10:45:58]*** Cut start [10:45:58]*** Partial cut [10:45:58]*** CUTSNS_PIN = 1 [10:45:58]*** CUTSNS_PIN = 0 [10:45:58]*** Brake cut motor [10:45:58]Read from MH i2c: 01 [10:45:58]MH_I2C_Read... [10:45:58]*** Stop cut motor [10:45:58]*** Cut end [10:45:58]Read from MH i2c: 01 07 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [10:45:58]process_action close_receipt done [10:45:58]requested_data is exist [10:45:58]produce_requested_data [10:45:58]requested_item fm.sn is exist - process it [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 11 00 00 [10:45:58]Write to MH i2c: E2 08 00 E7 0A 80 11 00 00 00 00 00 00 6B [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:58]Read from MH i2c: E2 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 E7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [10:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:45:58]wFMCommunicate OK [10:45:58]requested_item fd.num is exist - process it [10:45:58]SAM_PROTO_GetFieldsCounters [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 13 00 00 [10:45:58]Write to MH i2c: E2 08 00 E8 0A 80 13 00 00 00 00 00 00 6E [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 E8 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 82 02 00 0E 04 04 00 BE 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 [10:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 82 02 00 0E 04 04 00 BE 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 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetFieldsCounters done [10:45:59]requested_item shift.num is exist - process it [10:45:59]requested_item shift.opened is exist - process it [10:45:59]req_shift_opened [10:45:59]FM_GetShiftState [10:45:59]SAM_PROTO_GetShiftState [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 13 01 00 [10:45:59]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 51 [10:45:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetShiftState done [10:45:59]FM_GetShiftState done [10:45:59]req_shift_opened done [10:45:59]requested_item shift.open_date is exist - process it [10:45:59]req_shift_open_date [10:45:59]req_shift_open_date done [10:45:59]produce_requested_data done [10:45:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164531,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:45:59]process_action_free close_receipt [10:45:59]json_value_free [10:45:59]json_value_free done [10:45:59]process_json_proto returns [10:45:59]Send response to host [10:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164531,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:45:59]free response buf [10:45:59]execute_script done [10:45:59]execute_script returns [10:45:59]free content buf [10:45:59]Sock 9.Close socket [10:45:59]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [10:46:42]accept exits with 7 [10:46:42]New connection [10:46:42]New thread 3067293028 created [10:46:42]Thread 3067149668 joined [10:46:42]Waiting for new connection... [10:46:42] Sock 7.Parse request [10:46:42]Sock 7.Check first char [10:46:42]Sock 7.First char is OK [10:46:42]request: POST /json_proto HTTP/1.0 [10:46:42]Method: POST [10:46:42]URL: /json_proto [10:46:42]Method is POST - this is cgi request [10:46:42]url: /json_proto [10:46:42]query_string will be loaded in cgi processing [10:46:42]execute_cgi json_proto POST (null) [10:46:42]execute_cgi path=json_proto method=POST [10:46:42]POST find Content-Length [10:46:42]Host: 172.17.56.4:8080 [10:46:42]Content-Length: 682 [10:46:42]Content-Type: application/json [10:46:42] [10:46:42]POST finish read [10:46:42]Found Content-Length = 682 [10:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]execute_script... [10:46: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)458621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]POST & json_proto [10:46:42]process_json_proto [10:46:42]json parsed OK: [10:46:42]protocol is kg_v1.0 [10:46:42]action value=close_receipt [10:46:42]process_action close_receipt [10:46:42]cmd_close_receipt [10:46:42]MH_GetDate [10:46:42]Write to MH i2c: F0 00 00 EA 0A E3 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 EA 0A 00 14 5B 92 66 C9 DC B2 64 0E [10:46:42]GetLastDocTimeStamp 1720867556 [10:46:42]current date 1720867604 [10:46:42]FM_GetShiftState [10:46:42]SAM_PROTO_GetShiftState [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 13 01 00 [10:46:42]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 53 [10:46:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:46:42]wFMCommunicate OK [10:46:42]SAM_PROTO_GetShiftState done [10:46:42]FM_GetShiftState done [10:46:42]opened in 1720831249 [10:46:42]opened+sec_in_day 1720917649 [10:46:42]quantity*price = 100016 [10:46:42]sum+1 = 100017 [10:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 92 13.07.2024 10:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164532 ФПД: 87107397722624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164532&fm=87107397722624&tin=02508201610067®Number=0000000000090829&sum=100000 [10:46:43]StoreToDocumentArchive [10:46:43]shift 446 fd 164532 [10:46:43]save to /storage/0446/doc_00164532 [10:46:43]save last doc name /storage/0446/doc_00164532 to /storage/kkm_last_doc_name [10:46:43]save OK [10:46:43]Clear old archive folders... [10:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:43]tlvbuf is 01414BB0 [10:46:43]SAM_PROTO_ClearQueue [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 09 00 00 [10:46:43]Write to MH i2c: E2 08 00 F8 0A 80 09 00 00 00 00 00 00 74 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [10:46:43]RAPDU: 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_ClearQueue done [10:46:43]KKMCreateOFDPacket [10:46:43]OFDProtocolAddRootSTLVToBuf [10:46:43]FM_MakeSignedData [10:46:43]FM_MakeSignedData [10:46:43]SAM_PROTO_SignData [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 0D 01 02 [10:46:43]Write to MH i2c: E2 08 00 F9 0A 80 0D 01 02 00 00 00 00 7C [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=255 [10:46:44]MH_SAM_APDU [10:46: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 14 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 82 02 00 35 04 06 00 4F [10:46:44]Write to MH i2c: E2 02 01 FA 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 14 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 82 02 00 35 04 06 00 4F 00 00 A0 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=10 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 02 02 05 39 45 7F A2 00 [10:46:44]Write to MH i2c: E2 0D 00 FB 0A 80 0D 02 02 05 00 39 45 7F A2 00 00 00 28 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 03 02 [10:46:44]Write to MH i2c: E2 08 00 FC 0A 80 0D 03 02 00 00 00 00 81 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0B 00 FC 0A 00 E2 D7 83 A7 CB E4 6F 85 90 00 08 [10:46:44]RAPDU: E2 D7 83 A7 CB E4 6F 85 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_SignData done [10:46:44]FM_MakeSignedData done [10:46:44]CreateOFDProtocolMessage [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 11 00 00 [10:46:44]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [10:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:46:44]wFMCommunicate OK [10:46:44]CreateOFDProtocolMessage done [10:46:44]OFDSenderStorePacket 164532 [10:46:44]StoreOFDPacket docnum=164532 [10:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B 1E 07 01 C2 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 14 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 82 02 00 35 04 06 00 4F 39 45 7F A2 00 E2 D7 83 A7 CB E4 6F 85 [10:46:44]CheckFolder [10:46:44]dirname=/storage/ofd_packets [10:46:44]CheckFolder done [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00164532 [10:46:44]NVStorageSaveData ofd_packets/00164532 [10:46:44]File name is /storage/ofd_packets/00164532 [10:46:44]Write 301 bytes [10:46:44]NVStorageSaveData done [10:46:44]OFDSenderStorePacket done [10:46:44]KKMCreateOFDPacket done [10:46:44]NVStorageSaveData kkm_last_timestamp [10:46:44]File name is /storage/kkm_last_timestamp [10:46:44]Write 4 bytes [10:46:44]NVStorageSaveData done [10:46:44]ExternCall_PrintAddStr [10:46:44]wPrintStart [10:46:44]Write to MH i2c: 01 00 00 FE 0A 08 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [10:46:44]RasterBufferAndPrint [10:46:44]line Счет N : (1)458621 [10:46:44]line ИНН: 02508201610067 [10:46:44]line Контрольно-Кассовый Чек [10:46:44]line ПРОДАЖА [10:46:44]line ТРК (МРК, ГНК) : 12 [10:46:44]line Товар: 2710124130 [10:46:44]line Аи-92-К-5 [10:46:44]line 15.200 * 65.80 [10:46:44]line = 1000.16 [10:46:44]line НДС 12% НСП 1% [10:46:44]line > о реализуемом товаре [10:46:44]line ОКРУГЛЕНИЕ: -0.16 [10:46:44]line ИТОГО: 1000.00 [10:46:44]line Внесено: 1000.00 [10:46:44]line СДАЧА: 0.00 [10:46:44]line НСП 1% : 8.85 [10:46:44]line НДС 12% : 106.21 [10:46:44]line Наличными: 1000.00 [10:46:44]line Безнал.: 0.00 [10:46:44]line Место: АЗС № 72 "Партнер Нефть" [10:46:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:46:44]line СНО: Общий режим [10:46:44]line Чек 92 13.07.2024 10:46 [10:46:44]line Смена: 446 ФФД: 1.0 [10:46:44]line ЗНМ: 0300000160 [10:46:44]line РНМ: 0000000000090829 [10:46:44]line Версия ККМ: 001 [10:46:44]line ФМ: 0000000000874718 [10:46:44]line ФД: 164532 [10:46:44]line ФПД: 87107397722624 [10:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104644&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164532&fm=87107397722624&tin=02508201610067®Number=0000000000090829&sum=100000 [10:46:44]OFD Sender: Processing packet 164532 [packets to send 104, broken 103] [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00164532 [10:46:44]OFD Sender: To server: pG, [10:46:44]CommunicateWithHost lk.salyk.kg:30040 [10:46:44]ConnectInit lk.salyk.kg [10:46:44]written 0, free lines is 4095 [10:46:44]Connected sock=10 [10:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B 1E 07 01 C2 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 14 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 82 02 00 35 04 06 00 4F 39 45 7F A2 00 E2 D7 83 A7 CB E4 6F 85 [10:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C1 45 47 00 D4 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 82 02 00 F4 03 04 00 A5 01 92 66 B6 04 01 00 00 B7 71 27 DC B6 F7 B1 DE [10:46:45]CommunicateWithHost err = 0 [10:46:45]CheckOFDResponse [10:46:45]1017 (14) - 77093643461234 [10:46:45]1041 (16) - 0000000000874718 [10:46:45]1040 (4) - 164532 [10:46:45]1012 (4) - 13.07.2024 04:25 [10:46:45]1206 (1) - 0 [10:46:45]OFD Sender: Remove packet 164532 [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00164532 [10:46:45]NVStorageDeleteData [10:46:45]Write to MH i2c: 01 00 00 28 0B 33 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 28 0B 00 00 00 00 00 0B 0D 52 [10:46:45]RasterBufferAndPrint [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]written 0, free lines is 3345 [10:46:45]MH_Cut [10:46:45]Write to MH i2c: D1 01 00 2F 0B 01 0C [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 2F 0B 00 0B [10:46:45]Write to MH i2c: 01 00 00 30 0B 3B [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]OFD Sender: No OFD packet to send [10:46:45]*** Cut start [10:46:45]*** Partial cut [10:46:45]*** CUTSNS_PIN = 1 [10:46:45]*** CUTSNS_PIN = 0 [10:46:46]*** Brake cut motor [10:46:46]Read from MH i2c: 01 [10:46:46]MH_I2C_Read... [10:46:46]*** Stop cut motor [10:46:46]*** Cut end [10:46:46]Read from MH i2c: 01 07 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [10:46:46]process_action close_receipt done [10:46:46]requested_data is exist [10:46:46]produce_requested_data [10:46:46]requested_item fm.sn is exist - process it [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 11 00 00 [10:46:46]Write to MH i2c: E2 08 00 31 0B 80 11 00 00 00 00 00 00 B6 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 17 00 31 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [10:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:46:46]wFMCommunicate OK [10:46:46]requested_item fd.num is exist - process it [10:46:46]SAM_PROTO_GetFieldsCounters [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 13 00 00 [10:46:46]Write to MH i2c: E2 08 00 32 0B 80 13 00 00 00 00 00 00 B9 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 32 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 82 02 00 0E 04 04 00 BE 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 EB [10:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_GetFieldsCounters done [10:46:46]requested_item shift.num is exist - process it [10:46:46]requested_item shift.opened is exist - process it [10:46:46]req_shift_opened [10:46:46]FM_GetShiftState [10:46:46]SAM_PROTO_GetShiftState [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 13 01 00 [10:46:46]Write to MH i2c: E2 08 00 33 0B 80 13 01 00 00 00 00 00 BB [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0E 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0E 00 33 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9C [10:46:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_GetShiftState done [10:46:46]FM_GetShiftState done [10:46:46]req_shift_opened done [10:46:46]requested_item shift.open_date is exist - process it [10:46:46]req_shift_open_date [10:46:46]req_shift_open_date done [10:46:46]produce_requested_data done [10:46:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164532,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:46:46]process_action_free close_receipt [10:46:46]json_value_free [10:46:46]json_value_free done [10:46:46]process_json_proto returns [10:46:46]Send response to host [10:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164532,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:46:46]free response buf [10:46:46]execute_script done [10:46:46]execute_script returns [10:46:46]free content buf [10:46:46]Sock 7.Close socket [10:46:46]Sock 7.Thread stoped [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:43]accept exits with 9 [10:48:43]New connection [10:48:43]New thread 3067149668 created [10:48:43]Thread 3067293028 joined [10:48:43]Waiting for new connection... [10:48:43] Sock 9.Parse request [10:48:43]Sock 9.Check first char [10:48:43]Sock 9.First char is OK [10:48:43]request: POST /json_proto HTTP/1.0 [10:48:43]Method: POST [10:48:43]URL: /json_proto [10:48:43]Method is POST - this is cgi request [10:48:43]url: /json_proto [10:48:43]query_string will be loaded in cgi processing [10:48:43]execute_cgi json_proto POST (null) [10:48:43]execute_cgi path=json_proto method=POST [10:48:43]POST find Content-Length [10:48:43]Host: 172.17.56.4:8080 [10:48:43]Content-Length: 677 [10:48:43]Content-Type: application/json [10:48:43] [10:48:43]POST finish read [10:48:43]Found Content-Length = 677 [10:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:43]execute_script... [10:48: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)458622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:43]POST & json_proto [10:48:43]process_json_proto [10:48:43]json parsed OK: [10:48:43]protocol is kg_v1.0 [10:48:43]action value=close_receipt [10:48:43]process_action close_receipt [10:48:43]cmd_close_receipt [10:48:43]MH_GetDate [10:48:43]Write to MH i2c: F0 00 00 34 0B 2E [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: F0 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: F0 09 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: F0 09 00 34 0B 00 8C 5B 92 66 C9 DC B2 64 D1 [10:48:43]GetLastDocTimeStamp 1720867604 [10:48:43]current date 1720867724 [10:48:43]FM_GetShiftState [10:48:43]SAM_PROTO_GetShiftState [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 13 01 00 [10:48:43]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0E 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9E [10:48:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_GetShiftState done [10:48:43]FM_GetShiftState done [10:48:43]opened in 1720831249 [10:48:43]opened+sec_in_day 1720917649 [10:48:43]quantity*price = 60009 [10:48:43]sum+1 = 60011 [10:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 93 13.07.2024 10:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164533 ФПД: 65784091611776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164533&fm=65784091611776&tin=02508201610067®Number=0000000000090829&sum=60000 [10:48:44]StoreToDocumentArchive [10:48:44]shift 446 fd 164533 [10:48:44]save to /storage/0446/doc_00164533 [10:48:44]save last doc name /storage/0446/doc_00164533 to /storage/kkm_last_doc_name [10:48:44]save OK [10:48:44]Clear old archive folders... [10:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:44]tlvbuf is 014148C0 [10:48:44]SAM_PROTO_ClearQueue [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 09 00 00 [10:48:44]Write to MH i2c: E2 08 00 42 0B 80 09 00 00 00 00 00 00 BF [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_ClearQueue done [10:48:44]KKMCreateOFDPacket [10:48:44]OFDProtocolAddRootSTLVToBuf [10:48:44]FM_MakeSignedData [10:48:44]FM_MakeSignedData [10:48:44]SAM_PROTO_SignData [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 01 02 [10:48:44]Write to MH i2c: E2 08 00 43 0B 80 0D 01 02 00 00 00 00 C7 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]wFMCommunicate request_size=255 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 82 02 00 35 04 06 00 3B [10:48:44]Write to MH i2c: E2 02 01 44 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 82 02 00 35 04 06 00 3B 00 00 D0 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]wFMCommunicate request_size=10 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 02 02 05 D4 8D 69 92 80 [10:48:44]Write to MH i2c: E2 0D 00 45 0B 80 0D 02 02 05 00 D4 8D 69 92 80 00 00 B0 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 03 02 [10:48:44]Write to MH i2c: E2 08 00 46 0B 80 0D 03 02 00 00 00 00 CC [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0B 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0B 00 46 0B 00 3B C6 A7 AC D4 ED 10 65 90 00 57 [10:48:44]RAPDU: 3B C6 A7 AC D4 ED 10 65 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_SignData done [10:48:44]FM_MakeSignedData done [10:48:44]CreateOFDProtocolMessage [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 11 00 00 [10:48:44]Write to MH i2c: E2 08 00 47 0B 80 11 00 00 00 00 00 00 CC [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 47 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [10:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:44]wFMCommunicate OK [10:48:44]CreateOFDProtocolMessage done [10:48:44]OFDSenderStorePacket 164533 [10:48:44]StoreOFDPacket docnum=164533 [10:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 FC 07 01 58 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 82 02 00 35 04 06 00 3B D4 8D 69 92 80 3B C6 A7 AC D4 ED 10 65 [10:48:44]CheckFolder [10:48:44]dirname=/storage/ofd_packets [10:48:44]CheckFolder done [10:48:44]ProducePacketName [10:48:44]name=ofd_packets/00164533 [10:48:44]NVStorageSaveData ofd_packets/00164533 [10:48:44]File name is /storage/ofd_packets/00164533 [10:48:44]Write 301 bytes [10:48:44]NVStorageSaveData done [10:48:44]OFDSenderStorePacket done [10:48:44]KKMCreateOFDPacket done [10:48:44]NVStorageSaveData kkm_last_timestamp [10:48:44]File name is /storage/kkm_last_timestamp [10:48:44]Write 4 bytes [10:48:44]NVStorageSaveData done [10:48:44]ExternCall_PrintAddStr [10:48:44]wPrintStart [10:48:44]Write to MH i2c: 01 00 00 48 0B 53 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 48 0B 00 00 00 00 00 FF 0F 68 [10:48:44]RasterBufferAndPrint [10:48:44]line Счет N : (1)458622 [10:48:44]line ИНН: 02508201610067 [10:48:44]line Контрольно-Кассовый Чек [10:48:44]line ПРОДАЖА [10:48:44]line ТРК (МРК, ГНК) : 22 [10:48:44]line Товар: 2710124130 [10:48:44]line Аи-92-К-5 [10:48:44]line 9.120 * 65.80 [10:48:44]line = 600.10 [10:48:44]line НДС 12% НСП 1% [10:48:44]line > о реализуемом товаре [10:48:44]line ОКРУГЛЕНИЕ: -0.10 [10:48:44]line ИТОГО: 600.00 [10:48:44]line Внесено: 600.00 [10:48:44]line СДАЧА: 0.00 [10:48:44]line НСП 1% : 5.31 [10:48:44]line НДС 12% : 63.73 [10:48:44]line Наличными: 600.00 [10:48:44]line Безнал.: 0.00 [10:48:44]line Место: АЗС № 72 "Партнер Нефть" [10:48:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:48:44]line СНО: Общий режим [10:48:44]line Чек 93 13.07.2024 10:48 [10:48:44]line Смена: 446 ФФД: 1.0 [10:48:44]line ЗНМ: 0300000160 [10:48:44]line РНМ: 0000000000090829 [10:48:44]line Версия ККМ: 001 [10:48:44]line ФМ: 0000000000874718 [10:48:44]line ФД: 164533 [10:48:44]line ФПД: 65784091611776 [10:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164533&fm=65784091611776&tin=02508201610067®Number=0000000000090829&sum=60000 [10:48:45]written 0, free lines is 4095 [10:48:45]OFD Sender: Processing packet 164533 [packets to send 104, broken 103] [10:48:45]ProducePacketName [10:48:45]name=ofd_packets/00164533 [10:48:45]OFD Sender: To server: pG, [10:48:45]CommunicateWithHost lk.salyk.kg:30040 [10:48:45]ConnectInit lk.salyk.kg [10:48:45]Connected sock=10 [10:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 FC 07 01 58 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 8C 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 82 02 00 35 04 06 00 3B D4 8D 69 92 80 3B C6 A7 AC D4 ED 10 65 [10:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 71 47 00 57 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 82 02 00 F4 03 04 00 1D 02 92 66 B6 04 01 00 00 2E 12 9A 3C A1 19 35 12 [10:48:45]CommunicateWithHost err = 0 [10:48:45]CheckOFDResponse [10:48:45]1017 (14) - 77093643461234 [10:48:45]1041 (16) - 0000000000874718 [10:48:45]1040 (4) - 164533 [10:48:45]1012 (4) - 13.07.2024 04:27 [10:48:45]1206 (1) - 0 [10:48:45]OFD Sender: Remove packet 164533 [10:48:45]ProducePacketName [10:48:45]name=ofd_packets/00164533 [10:48:45]NVStorageDeleteData [10:48:45]Write to MH i2c: 01 00 00 72 0B 7D [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 07 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 02 0D 93 [10:48:45]RasterBufferAndPrint [10:48:45]line [10:48:45]line [10:48:45]line [10:48:45]line [10:48:45]line [10:48:45]written 0, free lines is 3336 [10:48:45]MH_Cut [10:48:45]Write to MH i2c: D1 01 00 79 0B 01 56 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: D1 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: D1 01 00 [10:48:45]MH_I2C_Read... [10:48:45]Read from MH i2c: D1 01 00 79 0B 00 55 [10:48:45]Write to MH i2c: 01 00 00 7A 0B 85 [10:48:45]Write i2c OK [10:48:45]MH_I2C_Read... [10:48:46]OFD Sender: No OFD packet to send [10:48:46]*** Cut start [10:48:46]*** Partial cut [10:48:46]*** CUTSNS_PIN = 1 [10:48:46]*** CUTSNS_PIN = 0 [10:48:46]*** Brake cut motor [10:48:46]Read from MH i2c: 01 [10:48:46]MH_I2C_Read... [10:48:46]*** Stop cut motor [10:48:46]*** Cut end [10:48:46]Read from MH i2c: 01 07 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [10:48:46]process_action close_receipt done [10:48:46]requested_data is exist [10:48:46]produce_requested_data [10:48:46]requested_item fm.sn is exist - process it [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 11 00 00 [10:48:46]Write to MH i2c: E2 08 00 7B 0B 80 11 00 00 00 00 00 00 00 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 7B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [10:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:46]wFMCommunicate OK [10:48:46]requested_item fd.num is exist - process it [10:48:46]SAM_PROTO_GetFieldsCounters [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 00 00 [10:48:46]Write to MH i2c: E2 08 00 7C 0B 80 13 00 00 00 00 00 00 03 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 62 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 62 00 7C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 82 02 00 0E 04 04 00 BE 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 39 [10:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:47]wFMCommunicate OK [10:48:47]SAM_PROTO_GetFieldsCounters done [10:48:47]requested_item shift.num is exist - process it [10:48:47]requested_item shift.opened is exist - process it [10:48:47]req_shift_opened [10:48:47]FM_GetShiftState [10:48:47]SAM_PROTO_GetShiftState [10:48:47]wFMCommunicate request_size=4 [10:48:47]MH_SAM_APDU [10:48:47]CAPDU: 80 13 01 00 [10:48:47]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [10:48:47]Write i2c OK [10:48:47]MH_I2C_Read... [10:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:47]Read from MH i2c: E2 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 0E 00 [10:48:47]MH_I2C_Read... [10:48:47]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E6 [10:48:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:48:47]wFMCommunicate OK [10:48:47]SAM_PROTO_GetShiftState done [10:48:47]FM_GetShiftState done [10:48:47]req_shift_opened done [10:48:47]requested_item shift.open_date is exist - process it [10:48:47]req_shift_open_date [10:48:47]req_shift_open_date done [10:48:47]produce_requested_data done [10:48:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164533,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:48:47]process_action_free close_receipt [10:48:47]json_value_free [10:48:47]json_value_free done [10:48:47]process_json_proto returns [10:48:47]Send response to host [10:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164533,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:48:47]free response buf [10:48:47]execute_script done [10:48:47]execute_script returns [10:48:47]free content buf [10:48:47]Sock 9.Close socket [10:48:47]Sock 9.Thread stoped [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:26]accept exits with 7 [10:49:26]New connection [10:49:26]New thread 3067293028 created [10:49:26]Thread 3067149668 joined [10:49:26]Waiting for new connection... [10:49:26] Sock 7.Parse request [10:49:26]Sock 7.Check first char [10:49:26]Sock 7.First char is OK [10:49:26]request: POST /json_proto HTTP/1.0 [10:49:26]Method: POST [10:49:26]URL: /json_proto [10:49:26]Method is POST - this is cgi request [10:49:26]url: /json_proto [10:49:26]query_string will be loaded in cgi processing [10:49:26]execute_cgi json_proto POST (null) [10:49:26]execute_cgi path=json_proto method=POST [10:49:26]POST find Content-Length [10:49:26]Host: 172.17.56.4:8080 [10:49:26]Content-Length: 679 [10:49:26]Content-Type: application/json [10:49:26] [10:49:26]POST finish read [10:49:26]Found Content-Length = 679 [10:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:26]execute_script... [10: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)458623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:26]POST & json_proto [10:49:26]process_json_proto [10:49:26]json parsed OK: [10:49:26]protocol is kg_v1.0 [10:49:26]action value=close_receipt [10:49:26]process_action close_receipt [10:49:26]cmd_close_receipt [10:49:26]MH_GetDate [10:49:26]Write to MH i2c: F0 00 00 7E 0B 78 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: F0 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: F0 09 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: F0 09 00 7E 0B 00 B7 5B 92 66 C9 DC B2 64 46 [10:49:26]GetLastDocTimeStamp 1720867724 [10:49:26]current date 1720867767 [10:49:26]FM_GetShiftState [10:49:26]SAM_PROTO_GetShiftState [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 13 01 00 [10:49:26]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0E 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E8 [10:49:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_GetShiftState done [10:49:26]FM_GetShiftState done [10:49:26]opened in 1720831249 [10:49:26]opened+sec_in_day 1720917649 [10:49:26]quantity*price = 100012 [10:49:26]sum+1 = 100014 [10:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 94 13.07.2024 10:49 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164534 ФПД: 14579886702379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164534&fm=14579886702379&tin=02508201610067®Number=0000000000090829&sum=100000 [10:49:27]StoreToDocumentArchive [10:49:27]shift 446 fd 164534 [10:49:27]save to /storage/0446/doc_00164534 [10:49:27]save last doc name /storage/0446/doc_00164534 to /storage/kkm_last_doc_name [10:49:27]save OK [10:49:27]Clear old archive folders... [10:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:49:27]tlvbuf is 01417D30 [10:49:27]SAM_PROTO_ClearQueue [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 09 00 00 [10:49:27]Write to MH i2c: E2 08 00 8C 0B 80 09 00 00 00 00 00 00 09 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]SAM_PROTO_ClearQueue done [10:49:27]KKMCreateOFDPacket [10:49:27]OFDProtocolAddRootSTLVToBuf [10:49:27]FM_MakeSignedData [10:49:27]FM_MakeSignedData [10:49:27]SAM_PROTO_SignData [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 01 02 [10:49:27]Write to MH i2c: E2 08 00 8D 0B 80 0D 01 02 00 00 00 00 11 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=255 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 00 00 00 F4 03 04 00 B7 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 82 02 00 35 04 06 00 0D 42 A4 F7 [10:49:27]Write to MH i2c: E2 02 01 8E 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 00 00 00 F4 03 04 00 B7 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 82 02 00 35 04 06 00 0D 42 A4 F7 00 00 1D [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=7 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 02 02 02 BF 2B [10:49:27]Write to MH i2c: E2 0A 00 8F 0B 80 0D 02 02 02 00 BF 2B 00 00 02 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [10:49:27]RAPDU: 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 0D 03 02 [10:49:27]Write to MH i2c: E2 08 00 90 0B 80 0D 03 02 00 00 00 00 16 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 0B 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 0B 00 90 0B 00 D1 9A 0D D9 AE E2 A9 23 90 00 C4 [10:49:27]RAPDU: D1 9A 0D D9 AE E2 A9 23 90 00 [10:49:27]wFMCommunicate OK [10:49:27]SAM_PROTO_SignData done [10:49:27]FM_MakeSignedData done [10:49:27]CreateOFDProtocolMessage [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 11 00 00 [10:49:27]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 17 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [10:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:27]wFMCommunicate OK [10:49:27]CreateOFDProtocolMessage done [10:49:27]OFDSenderStorePacket 164534 [10:49:27]StoreOFDPacket docnum=164534 [10:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D4 2D 04 01 25 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 00 00 00 F4 03 04 00 B7 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 82 02 00 35 04 06 00 0D 42 A4 F7 BF 2B D1 9A 0D D9 AE E2 A9 23 [10:49:27]CheckFolder [10:49:27]dirname=/storage/ofd_packets [10:49:27]CheckFolder done [10:49:27]ProducePacketName [10:49:27]name=ofd_packets/00164534 [10:49:27]NVStorageSaveData ofd_packets/00164534 [10:49:27]File name is /storage/ofd_packets/00164534 [10:49:27]Write 298 bytes [10:49:27]NVStorageSaveData done [10:49:27]OFDSenderStorePacket done [10:49:27]KKMCreateOFDPacket done [10:49:27]NVStorageSaveData kkm_last_timestamp [10:49:27]File name is /storage/kkm_last_timestamp [10:49:27]Write 4 bytes [10:49:27]NVStorageSaveData done [10:49:27]ExternCall_PrintAddStr [10:49:27]wPrintStart [10:49:27]Write to MH i2c: 01 00 00 92 0B 9D [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [10:49:27]RasterBufferAndPrint [10:49:27]line Счет N : (1)458623 [10:49:27]line ИНН: 02508201610067 [10:49:27]line Контрольно-Кассовый Чек [10:49:27]line ПРОДАЖА [10:49:27]line ТРК (МРК, ГНК) : 11 [10:49:27]line Товар: 2710194210 [10:49:27]line ДТ-К-5 [10:49:27]line 13.910 * 71.90 [10:49:27]line = 1000.13 [10:49:27]line НДС 12% НСП 1% [10:49:27]line > о реализуемом товаре [10:49:27]line ОКРУГЛЕНИЕ: -0.13 [10:49:27]line ИТОГО: 1000.00 [10:49:27]line Внесено: 1000.00 [10:49:27]line СДАЧА: 0.00 [10:49:27]line НСП 1% : 8.85 [10:49:27]line НДС 12% : 106.21 [10:49:27]line Наличными: 1000.00 [10:49:27]line Безнал.: 0.00 [10:49:27]line Место: АЗС № 72 "Партнер Нефть" [10:49:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:49:27]line СНО: Общий режим [10:49:27]line Чек 94 13.07.2024 10:49 [10:49:27]line Смена: 446 ФФД: 1.0 [10:49:27]line ЗНМ: 0300000160 [10:49:27]line РНМ: 0000000000090829 [10:49:27]line Версия ККМ: 001 [10:49:27]line ФМ: 0000000000874718 [10:49:27]line ФД: 164534 [10:49:27]line ФПД: 14579886702379 [10:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164534&fm=14579886702379&tin=02508201610067®Number=0000000000090829&sum=100000 [10:49:28]OFD Sender: Processing packet 164534 [packets to send 104, broken 103] [10:49:28]ProducePacketName [10:49:28]name=ofd_packets/00164534 [10:49:28]OFD Sender: To server: pG, [10:49:28]CommunicateWithHost lk.salyk.kg:30040 [10:49:28]ConnectInit lk.salyk.kg [10:49:28]written 0, free lines is 4095 [10:49:28]Connected sock=10 [10: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 34 37 31 38 0C 01 00 00 D4 2D 04 01 25 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5E 00 00 00 F4 03 04 00 B7 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 82 02 00 35 04 06 00 0D 42 A4 F7 BF 2B D1 9A 0D D9 AE E2 A9 23 [10:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A 89 47 00 91 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 82 02 00 F4 03 04 00 48 02 92 66 B6 04 01 00 00 70 EC 2A F7 D2 6A CA 42 [10:49:28]CommunicateWithHost err = 0 [10:49:28]CheckOFDResponse [10:49:28]1017 (14) - 77093643461234 [10:49:28]1041 (16) - 0000000000874718 [10:49:28]1040 (4) - 164534 [10:49:28]1012 (4) - 13.07.2024 04:27 [10:49:28]1206 (1) - 0 [10:49:28]OFD Sender: Remove packet 164534 [10:49:28]ProducePacketName [10:49:28]name=ofd_packets/00164534 [10:49:28]NVStorageDeleteData [10:49:28]Write to MH i2c: 01 00 00 BC 0B C7 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 02 0D DD [10:49:28]RasterBufferAndPrint [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]line [10:49:28]written 0, free lines is 3336 [10:49:28]MH_Cut [10:49:28]Write to MH i2c: D1 01 00 C3 0B 01 A0 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: D1 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: D1 01 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: D1 01 00 C3 0B 00 9F [10:49:28]Write to MH i2c: 01 00 00 C4 0B CF [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]OFD Sender: No OFD packet to send [10:49:29]*** Cut start [10:49:29]*** Partial cut [10:49:29]*** CUTSNS_PIN = 1 [10:49:29]*** CUTSNS_PIN = 0 [10:49:29]*** Brake cut motor [10:49:29]Read from MH i2c: 01 [10:49:29]MH_I2C_Read... [10:49:29]*** Stop cut motor [10:49:29]*** Cut end [10:49:29]Read from MH i2c: 01 07 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [10:49:29]process_action close_receipt done [10:49:29]requested_data is exist [10:49:29]produce_requested_data [10:49:29]requested_item fm.sn is exist - process it [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 11 00 00 [10:49:29]Write to MH i2c: E2 08 00 C5 0B 80 11 00 00 00 00 00 00 4A [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 17 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 17 00 C5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [10:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:29]wFMCommunicate OK [10:49:29]requested_item fd.num is exist - process it [10:49:29]SAM_PROTO_GetFieldsCounters [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 13 00 00 [10:49:29]Write to MH i2c: E2 08 00 C6 0B 80 13 00 00 00 00 00 00 4D [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 62 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 62 00 C6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 82 02 00 0E 04 04 00 BE 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 87 [10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_GetFieldsCounters done [10:49:30]requested_item shift.num is exist - process it [10:49:30]requested_item shift.opened is exist - process it [10:49:30]req_shift_opened [10:49:30]FM_GetShiftState [10:49:30]SAM_PROTO_GetShiftState [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 13 01 00 [10:49:30]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 30 [10:49:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_GetShiftState done [10:49:30]FM_GetShiftState done [10:49:30]req_shift_opened done [10:49:30]requested_item shift.open_date is exist - process it [10:49:30]req_shift_open_date [10:49:30]req_shift_open_date done [10:49:30]produce_requested_data done [10:49:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164534,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:49:30]process_action_free close_receipt [10:49:30]json_value_free [10:49:30]json_value_free done [10:49:30]process_json_proto returns [10:49:30]Send response to host [10:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164534,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:49:30]free response buf [10:49:30]execute_script done [10:49:30]execute_script returns [10:49:30]free content buf [10:49:30]Sock 7.Close socket [10:49:30]Sock 7.Thread stoped [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:05]accept exits with 9 [10:50:05]New connection [10:50:05]New thread 3067149668 created [10:50:05]Thread 3067293028 joined [10:50:05]Waiting for new connection... [10:50:05] Sock 9.Parse request [10:50:05]Sock 9.Check first char [10:50:05]Sock 9.First char is OK [10:50:05]request: POST /json_proto HTTP/1.0 [10:50:05]Method: POST [10:50:05]URL: /json_proto [10:50:05]Method is POST - this is cgi request [10:50:05]url: /json_proto [10:50:05]query_string will be loaded in cgi processing [10:50:05]execute_cgi json_proto POST (null) [10:50:05]execute_cgi path=json_proto method=POST [10:50:05]POST find Content-Length [10:50:05]Host: 172.17.56.4:8080 [10:50:05]Content-Length: 677 [10:50:05]Content-Type: application/json [10:50:05] [10:50:05]POST finish read [10:50:05]Found Content-Length = 677 [10:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:50:05]execute_script... [10: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)458624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:50:05]POST & json_proto [10:50:05]process_json_proto [10:50:05]json parsed OK: [10:50:05]protocol is kg_v1.0 [10:50:05]action value=close_receipt [10:50:05]process_action close_receipt [10:50:05]cmd_close_receipt [10:50:05]MH_GetDate [10:50:05]Write to MH i2c: F0 00 00 C8 0B C2 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 09 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 09 00 C8 0B 00 DF 5B 92 66 C9 DC B2 64 B8 [10:50:05]GetLastDocTimeStamp 1720867767 [10:50:05]current date 1720867807 [10:50:05]FM_GetShiftState [10:50:05]SAM_PROTO_GetShiftState [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 13 01 00 [10:50:05]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 32 [10:50:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_GetShiftState done [10:50:05]FM_GetShiftState done [10:50:05]opened in 1720831249 [10:50:05]opened+sec_in_day 1720917649 [10:50:05]quantity*price = 50008 [10:50:05]sum+1 = 50009 [10:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 95 13.07.2024 10:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164535 ФПД: 259827132862814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164535&fm=259827132862814&tin=02508201610067®Number=0000000000090829&sum=50000 [10:50:06]StoreToDocumentArchive [10:50:06]shift 446 fd 164535 [10:50:06]save to /storage/0446/doc_00164535 [10:50:06]save last doc name /storage/0446/doc_00164535 to /storage/kkm_last_doc_name [10:50:06]save OK [10:50:06]Clear old archive folders... [10:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:06]tlvbuf is 0144CB50 [10:50:06]SAM_PROTO_ClearQueue [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 09 00 00 [10:50:06]Write to MH i2c: E2 08 00 D6 0B 80 09 00 00 00 00 00 00 53 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]SAM_PROTO_ClearQueue done [10:50:07]KKMCreateOFDPacket [10:50:07]OFDProtocolAddRootSTLVToBuf [10:50:07]FM_MakeSignedData [10:50:07]FM_MakeSignedData [10:50:07]SAM_PROTO_SignData [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 0D 01 02 [10:50:07]Write to MH i2c: E2 08 00 D7 0B 80 0D 01 02 00 00 00 00 5B [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]wFMCommunicate request_size=255 [10:50:07]MH_SAM_APDU [10: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5F 00 00 00 F4 03 04 00 DF 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 82 02 00 35 04 06 00 EC [10:50:07]Write to MH i2c: E2 02 01 D8 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5F 00 00 00 F4 03 04 00 DF 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 82 02 00 35 04 06 00 EC 00 00 4B [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]wFMCommunicate request_size=10 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 0D 02 02 05 4F B7 F5 11 5E [10:50:07]Write to MH i2c: E2 0D 00 D9 0B 80 0D 02 02 05 00 4F B7 F5 11 5E 00 00 D2 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 0D 03 02 [10:50:07]Write to MH i2c: E2 08 00 DA 0B 80 0D 03 02 00 00 00 00 60 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0B 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0B 00 DA 0B 00 63 72 06 89 CD 78 14 7B 90 00 99 [10:50:07]RAPDU: 63 72 06 89 CD 78 14 7B 90 00 [10:50:07]wFMCommunicate OK [10:50:07]SAM_PROTO_SignData done [10:50:07]FM_MakeSignedData done [10:50:07]CreateOFDProtocolMessage [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 11 00 00 [10:50:07]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [10:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:07]wFMCommunicate OK [10:50:07]CreateOFDProtocolMessage done [10:50:07]OFDSenderStorePacket 164535 [10:50:07]StoreOFDPacket docnum=164535 [10:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 A2 07 01 E5 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5F 00 00 00 F4 03 04 00 DF 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 82 02 00 35 04 06 00 EC 4F B7 F5 11 5E 63 72 06 89 CD 78 14 7B [10:50:07]CheckFolder [10:50:07]dirname=/storage/ofd_packets [10:50:07]CheckFolder done [10:50:07]ProducePacketName [10:50:07]name=ofd_packets/00164535 [10:50:07]NVStorageSaveData ofd_packets/00164535 [10:50:07]File name is /storage/ofd_packets/00164535 [10:50:07]Write 301 bytes [10:50:07]NVStorageSaveData done [10:50:07]OFDSenderStorePacket done [10:50:07]KKMCreateOFDPacket done [10:50:07]NVStorageSaveData kkm_last_timestamp [10:50:07]File name is /storage/kkm_last_timestamp [10:50:07]Write 4 bytes [10:50:07]NVStorageSaveData done [10:50:07]ExternCall_PrintAddStr [10:50:07]wPrintStart [10:50:07]Write to MH i2c: 01 00 00 DC 0B E7 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 DC 0B 00 00 00 00 00 FF 0F FC [10:50:07]RasterBufferAndPrint [10:50:07]line Счет N : (1)458624 [10:50:07]line ИНН: 02508201610067 [10:50:07]line Контрольно-Кассовый Чек [10:50:07]line ПРОДАЖА [10:50:07]line ТРК (МРК, ГНК) : 22 [10:50:07]line Товар: 2710124130 [10:50:07]line Аи-92-К-5 [10:50:07]line 7.600 * 65.80 [10:50:07]line = 500.08 [10:50:07]line НДС 12% НСП 1% [10:50:07]line > о реализуемом товаре [10:50:07]line ОКРУГЛЕНИЕ: -0.08 [10:50:07]line ИТОГО: 500.00 [10:50:07]line Внесено: 500.00 [10:50:07]line СДАЧА: 0.00 [10:50:07]line НСП 1% : 4.42 [10:50:07]line НДС 12% : 53.11 [10:50:07]line Наличными: 500.00 [10:50:07]line Безнал.: 0.00 [10:50:07]line Место: АЗС № 72 "Партнер Нефть" [10:50:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:50:07]line СНО: Общий режим [10:50:07]line Чек 95 13.07.2024 10:50 [10:50:07]line Смена: 446 ФФД: 1.0 [10:50:07]line ЗНМ: 0300000160 [10:50:07]line РНМ: 0000000000090829 [10:50:07]line Версия ККМ: 001 [10:50:07]line ФМ: 0000000000874718 [10:50:07]line ФД: 164535 [10:50:07]line ФПД: 259827132862814 [10:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164535&fm=259827132862814&tin=02508201610067®Number=0000000000090829&sum=50000 [10:50:07]OFD Sender: Processing packet 164535 [packets to send 104, broken 103] [10:50:07]ProducePacketName [10:50:07]name=ofd_packets/00164535 [10:50:07]OFD Sender: To server: pG, [10:50:07]CommunicateWithHost lk.salyk.kg:30040 [10:50:07]ConnectInit lk.salyk.kg [10:50:07]written 0, free lines is 4095 [10:50:07]Connected sock=10 [10:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 A2 07 01 E5 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 5F 00 00 00 F4 03 04 00 DF 5B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 82 02 00 35 04 06 00 EC 4F B7 F5 11 5E 63 72 06 89 CD 78 14 7B [10:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FE 1A 47 00 C7 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 34 37 31 38 10 04 04 00 B7 82 02 00 F4 03 04 00 70 02 92 66 B6 04 01 00 00 DD 56 4E FE D6 02 F2 46 [10:50:08]CommunicateWithHost err = 0 [10:50:08]CheckOFDResponse [10:50:08]1017 (14) - 77093643461234 [10:50:08]1041 (16) - 0000000000874718 [10:50:08]1040 (4) - 164535 [10:50:08]1012 (4) - 13.07.2024 04:28 [10:50:08]1206 (1) - 0 [10:50:08]OFD Sender: Remove packet 164535 [10:50:08]ProducePacketName [10:50:08]name=ofd_packets/00164535 [10:50:08]NVStorageDeleteData [10:50:08]Write to MH i2c: 01 00 00 06 0C 12 [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: 01 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: 01 07 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 08 0D 2E [10:50:08]RasterBufferAndPrint [10:50:08]line [10:50:08]line [10:50:08]line [10:50:08]line [10:50:08]line [10:50:08]written 0, free lines is 3342 [10:50:08]MH_Cut [10:50:08]Write to MH i2c: D1 01 00 0D 0C 01 EB [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: D1 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: D1 01 00 [10:50:08]MH_I2C_Read... [10:50:08]Read from MH i2c: D1 01 00 0D 0C 00 EA [10:50:08]Write to MH i2c: 01 00 00 0E 0C 1A [10:50:08]Write i2c OK [10:50:08]MH_I2C_Read... [10:50:08]OFD Sender: No OFD packet to send [10:50:08]*** Cut start [10:50:08]*** Partial cut [10:50:08]*** CUTSNS_PIN = 1 [10:50:08]*** CUTSNS_PIN = 0 [10:50:09]*** Brake cut motor [10:50:09]Read from MH i2c: 01 [10:50:09]MH_I2C_Read... [10:50:09]*** Stop cut motor [10:50:09]*** Cut end [10:50:09]Read from MH i2c: 01 07 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 FF 0F 2F [10:50:09]process_action close_receipt done [10:50:09]requested_data is exist [10:50:09]produce_requested_data [10:50:09]requested_item fm.sn is exist - process it [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 11 00 00 [10:50:09]Write to MH i2c: E2 08 00 0F 0C 80 11 00 00 00 00 00 00 95 [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 17 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 17 00 0F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [10:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:09]wFMCommunicate OK [10:50:09]requested_item fd.num is exist - process it [10:50:09]SAM_PROTO_GetFieldsCounters [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 13 00 00 [10:50:09]Write to MH i2c: E2 08 00 10 0C 80 13 00 00 00 00 00 00 98 [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 62 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 62 00 10 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 82 02 00 0E 04 04 00 BE 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 D6 [10:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:09]wFMCommunicate OK [10:50:09]SAM_PROTO_GetFieldsCounters done [10:50:09]requested_item shift.num is exist - process it [10:50:09]requested_item shift.opened is exist - process it [10:50:09]req_shift_opened [10:50:09]FM_GetShiftState [10:50:09]SAM_PROTO_GetShiftState [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 13 01 00 [10:50:09]Write to MH i2c: E2 08 00 11 0C 80 13 01 00 00 00 00 00 9A [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 0E 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 0E 00 11 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7B [10:50:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:50:09]wFMCommunicate OK [10:50:09]SAM_PROTO_GetShiftState done [10:50:09]FM_GetShiftState done [10:50:09]req_shift_opened done [10:50:09]requested_item shift.open_date is exist - process it [10:50:09]req_shift_open_date [10:50:09]req_shift_open_date done [10:50:09]produce_requested_data done [10:50:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164535,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:50:09]process_action_free close_receipt [10:50:09]json_value_free [10:50:09]json_value_free done [10:50:09]process_json_proto returns [10:50:09]Send response to host [10:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164535,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:50:09]free response buf [10:50:09]execute_script done [10:50:09]execute_script returns [10:50:09]free content buf [10:50:09]Sock 9.Close socket [10:50:09]Sock 9.Thread stoped [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:01]accept exits with 7 [10:56:01]New connection [10:56:01]New thread 3067293028 created [10:56:01]Thread 3067149668 joined [10:56:01]Waiting for new connection... [10:56:01] Sock 7.Parse request [10:56:01]Sock 7.Check first char [10:56:01]Sock 7.First char is OK [10:56:01]request: POST /json_proto HTTP/1.0 [10:56:01]Method: POST [10:56:01]URL: /json_proto [10:56:01]Method is POST - this is cgi request [10:56:01]url: /json_proto [10:56:01]query_string will be loaded in cgi processing [10:56:01]execute_cgi json_proto POST (null) [10:56:01]execute_cgi path=json_proto method=POST [10:56:01]POST find Content-Length [10:56:01]Host: 172.17.56.4:8080 [10:56:01]Content-Length: 677 [10:56:01]Content-Type: application/json [10:56:01] [10:56:01]POST finish read [10:56:01]Found Content-Length = 677 [10:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:01]execute_script... [10:56:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:01]POST & json_proto [10:56:01]process_json_proto [10:56:01]json parsed OK: [10:56:01]protocol is kg_v1.0 [10:56:01]action value=close_receipt [10:56:01]process_action close_receipt [10:56:01]cmd_close_receipt [10:56:01]MH_GetDate [10:56:01]Write to MH i2c: F0 00 00 12 0C 0D [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: F0 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: F0 09 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: F0 09 00 12 0C 00 43 5D 92 66 C9 DC B2 64 69 [10:56:01]GetLastDocTimeStamp 1720867807 [10:56:01]current date 1720868163 [10:56:01]FM_GetShiftState [10:56:01]SAM_PROTO_GetShiftState [10:56:01]wFMCommunicate request_size=4 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 13 01 00 [10:56:01]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 0E 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7D [10:56:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:56:01]wFMCommunicate OK [10:56:01]SAM_PROTO_GetShiftState done [10:56:01]FM_GetShiftState done [10:56:01]opened in 1720831249 [10:56:01]opened+sec_in_day 1720917649 [10:56:01]quantity*price = 20003 [10:56:01]sum+1 = 20004 [10:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 96 13.07.2024 10:56 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164536 ФПД: 242275010159260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164536&fm=242275010159260&tin=02508201610067®Number=0000000000090829&sum=20000 [10:56:03]StoreToDocumentArchive [10:56:03]shift 446 fd 164536 [10:56:03]save to /storage/0446/doc_00164536 [10:56:03]save last doc name /storage/0446/doc_00164536 to /storage/kkm_last_doc_name [10:56:03]save OK [10:56:03]Clear old archive folders... [10:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:03]tlvbuf is 01446C40 [10:56:03]SAM_PROTO_ClearQueue [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 09 00 00 [10:56:03]Write to MH i2c: E2 08 00 20 0C 80 09 00 00 00 00 00 00 9E [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]SAM_PROTO_ClearQueue done [10:56:03]KKMCreateOFDPacket [10:56:03]OFDProtocolAddRootSTLVToBuf [10:56:03]FM_MakeSignedData [10:56:03]FM_MakeSignedData [10:56:03]SAM_PROTO_SignData [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 0D 01 02 [10:56:03]Write to MH i2c: E2 08 00 21 0C 80 0D 01 02 00 00 00 00 A6 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]wFMCommunicate request_size=255 [10:56:03]MH_SAM_APDU [10:56: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 43 5D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 82 02 00 35 04 06 00 DC [10:56:03]Write to MH i2c: E2 02 01 22 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 43 5D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 82 02 00 35 04 06 00 DC 00 00 8F [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]wFMCommunicate request_size=10 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 0D 02 02 05 59 0B EB 22 9C [10:56:03]Write to MH i2c: E2 0D 00 23 0C 80 0D 02 02 05 00 59 0B EB 22 9C 00 00 C0 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [10:56:03]RAPDU: 90 00 [10:56:03]wFMCommunicate OK [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 0D 03 02 [10:56:03]Write to MH i2c: E2 08 00 24 0C 80 0D 03 02 00 00 00 00 AB [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0B 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0B 00 24 0C 00 E5 C2 64 86 3A 3A 80 A1 90 00 D2 [10:56:03]RAPDU: E5 C2 64 86 3A 3A 80 A1 90 00 [10:56:03]wFMCommunicate OK [10:56:03]SAM_PROTO_SignData done [10:56:03]FM_MakeSignedData done [10:56:03]CreateOFDProtocolMessage [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 11 00 00 [10:56:03]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 17 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [10:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:03]wFMCommunicate OK [10:56:03]CreateOFDProtocolMessage done [10:56:03]OFDSenderStorePacket 164536 [10:56:03]StoreOFDPacket docnum=164536 [10:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 8C 07 01 36 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 43 5D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 82 02 00 35 04 06 00 DC 59 0B EB 22 9C E5 C2 64 86 3A 3A 80 A1 [10:56:03]CheckFolder [10:56:03]dirname=/storage/ofd_packets [10:56:03]CheckFolder done [10:56:03]ProducePacketName [10:56:03]name=ofd_packets/00164536 [10:56:03]NVStorageSaveData ofd_packets/00164536 [10:56:03]File name is /storage/ofd_packets/00164536 [10:56:03]Write 301 bytes [10:56:03]NVStorageSaveData done [10:56:03]OFDSenderStorePacket done [10:56:03]KKMCreateOFDPacket done [10:56:03]NVStorageSaveData kkm_last_timestamp [10:56:03]File name is /storage/kkm_last_timestamp [10:56:03]Write 4 bytes [10:56:03]NVStorageSaveData done [10:56:03]ExternCall_PrintAddStr [10:56:03]wPrintStart [10:56:03]Write to MH i2c: 01 00 00 26 0C 32 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: 01 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: 01 07 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 FF 0F 47 [10:56:03]RasterBufferAndPrint [10:56:03]line Счет N : (1)458625 [10:56:03]line ИНН: 02508201610067 [10:56:03]line Контрольно-Кассовый Чек [10:56:03]line ПРОДАЖА [10:56:03]line ТРК (МРК, ГНК) : 12 [10:56:03]line Товар: 2710124130 [10:56:03]line Аи-92-К-5 [10:56:03]line 3.040 * 65.80 [10:56:03]line = 200.03 [10:56:03]line НДС 12% НСП 1% [10:56:03]line > о реализуемом товаре [10:56:03]line ОКРУГЛЕНИЕ: -0.03 [10:56:03]line ИТОГО: 200.00 [10:56:03]line Внесено: 200.00 [10:56:03]line СДАЧА: 0.00 [10:56:03]line НСП 1% : 1.77 [10:56:03]line НДС 12% : 21.24 [10:56:03]line Наличными: 200.00 [10:56:03]line Безнал.: 0.00 [10:56:03]line Место: АЗС № 72 "Партнер Нефть" [10:56:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:56:03]line СНО: Общий режим [10:56:03]line Чек 96 13.07.2024 10:56 [10:56:03]line Смена: 446 ФФД: 1.0 [10:56:03]line ЗНМ: 0300000160 [10:56:03]line РНМ: 0000000000090829 [10:56:03]line Версия ККМ: 001 [10:56:03]line ФМ: 0000000000874718 [10:56:03]line ФД: 164536 [10:56:03]line ФПД: 242275010159260 [10:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164536&fm=242275010159260&tin=02508201610067®Number=0000000000090829&sum=20000 [10:56:03]written 0, free lines is 4095 [10:56:03]OFD Sender: Processing packet 164536 [packets to send 104, broken 103] [10:56:03]ProducePacketName [10:56:03]name=ofd_packets/00164536 [10:56:03]OFD Sender: To server: pG, [10:56:03]CommunicateWithHost lk.salyk.kg:30040 [10:56:03]ConnectInit lk.salyk.kg [10:56:03]Connected sock=10 [10:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 8C 07 01 36 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 43 5D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 82 02 00 35 04 06 00 DC 59 0B EB 22 9C E5 C2 64 86 3A 3A 80 A1 [10:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F 2E 47 00 07 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 82 02 00 F4 03 04 00 D4 03 92 66 B6 04 01 00 00 8F F2 68 79 39 0D 3D 57 [10:56:04]CommunicateWithHost err = 0 [10:56:04]CheckOFDResponse [10:56:04]1017 (14) - 77093643461234 [10:56:04]1041 (16) - 0000000000874718 [10:56:04]1040 (4) - 164536 [10:56:04]1012 (4) - 13.07.2024 04:34 [10:56:04]1206 (1) - 0 [10:56:04]OFD Sender: Remove packet 164536 [10:56:04]ProducePacketName [10:56:04]name=ofd_packets/00164536 [10:56:04]NVStorageDeleteData [10:56:04]Write to MH i2c: 01 00 00 50 0C 5C [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 F3 0C 62 [10:56:04]RasterBufferAndPrint [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]line [10:56:04]written 0, free lines is 3322 [10:56:04]MH_Cut [10:56:04]Write to MH i2c: D1 01 00 57 0C 01 35 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 01 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: D1 01 00 57 0C 00 34 [10:56:04]Write to MH i2c: 01 00 00 58 0C 64 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]OFD Sender: No OFD packet to send [10:56:04]*** Cut start [10:56:04]*** Partial cut [10:56:04]*** CUTSNS_PIN = 1 [10:56:04]*** CUTSNS_PIN = 0 [10:56:05]*** Brake cut motor [10:56:05]*** Stop cut motor [10:56:05]*** Cut end [10:56:05]Read from MH i2c: 01 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 58 0C 00 00 00 00 00 FF 0F 79 [10:56:05]process_action close_receipt done [10:56:05]requested_data is exist [10:56:05]produce_requested_data [10:56:05]requested_item fm.sn is exist - process it [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 11 00 00 [10:56:05]Write to MH i2c: E2 08 00 59 0C 80 11 00 00 00 00 00 00 DF [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 17 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 17 00 59 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [10:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:05]wFMCommunicate OK [10:56:05]requested_item fd.num is exist - process it [10:56:05]SAM_PROTO_GetFieldsCounters [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 13 00 00 [10:56:05]Write to MH i2c: E2 08 00 5A 0C 80 13 00 00 00 00 00 00 E2 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 62 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 62 00 5A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 82 02 00 0E 04 04 00 BE 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 24 [10:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:05]wFMCommunicate OK [10:56:05]SAM_PROTO_GetFieldsCounters done [10:56:05]requested_item shift.num is exist - process it [10:56:05]requested_item shift.opened is exist - process it [10:56:05]req_shift_opened [10:56:05]FM_GetShiftState [10:56:05]SAM_PROTO_GetShiftState [10:56:05]wFMCommunicate request_size=4 [10:56:05]MH_SAM_APDU [10:56:05]CAPDU: 80 13 01 00 [10:56:05]Write to MH i2c: E2 08 00 5B 0C 80 13 01 00 00 00 00 00 E4 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:05]Read from MH i2c: E2 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0E 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: E2 0E 00 5B 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C5 [10:56:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [10:56:05]wFMCommunicate OK [10:56:05]SAM_PROTO_GetShiftState done [10:56:05]FM_GetShiftState done [10:56:05]req_shift_opened done [10:56:05]requested_item shift.open_date is exist - process it [10:56:05]req_shift_open_date [10:56:05]req_shift_open_date done [10:56:05]produce_requested_data done [10:56:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164536,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [10:56:05]process_action_free close_receipt [10:56:05]json_value_free [10:56:05]json_value_free done [10:56:05]process_json_proto returns [10:56:05]Send response to host [10:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164536,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [10:56:05]free response buf [10:56:05]execute_script done [10:56:05]execute_script returns [10:56:05]free content buf [10:56:05]Sock 7.Close socket [10:56:05]Sock 7.Thread stoped [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:41]accept exits with 9 [11:00:41]New connection [11:00:41]New thread 3067149668 created [11:00:41]Thread 3067293028 joined [11:00:41]Waiting for new connection... [11:00:41] Sock 9.Parse request [11:00:41]Sock 9.Check first char [11:00:41]Sock 9.First char is OK [11:00:41]request: POST /json_proto HTTP/1.0 [11:00:41]Method: POST [11:00:41]URL: /json_proto [11:00:41]Method is POST - this is cgi request [11:00:41]url: /json_proto [11:00:41]query_string will be loaded in cgi processing [11:00:41]execute_cgi json_proto POST (null) [11:00:41]execute_cgi path=json_proto method=POST [11:00:41]POST find Content-Length [11:00:41]Host: 172.17.56.4:8080 [11:00:41]Content-Length: 790 [11:00:41]Content-Type: application/json [11:00:41] [11:00:41]POST finish read [11:00:41]Found Content-Length = 790 [11:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:41]execute_script... [11:00: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)458626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:41]POST & json_proto [11:00:41]process_json_proto [11:00:41]json parsed OK: [11:00:41]protocol is kg_v1.0 [11:00:41]action value=close_receipt [11:00:41]process_action close_receipt [11:00:41]cmd_close_receipt [11:00:41]MH_GetDate [11:00:41]Write to MH i2c: F0 00 00 5C 0C 57 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: F0 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: F0 09 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: F0 09 00 5C 0C 00 5A 5E 92 66 C9 DC B2 64 CB [11:00:41]GetLastDocTimeStamp 1720868163 [11:00:41]current date 1720868442 [11:00:41]FM_GetShiftState [11:00:41]SAM_PROTO_GetShiftState [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 13 01 00 [11:00:41]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0E 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [11:00:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:00:41]wFMCommunicate OK [11:00:41]SAM_PROTO_GetShiftState done [11:00:41]FM_GetShiftState done [11:00:41]opened in 1720831249 [11:00:41]opened+sec_in_day 1720917649 [11:00:41]quantity*price = 50023 [11:00:41]sum+1 = 50025 [11:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 97 13.07.2024 11:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164537 ФПД: 193727369169457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164537&fm=193727369169457&tin=02508201610067®Number=0000000000090829&sum=50024 [11:00:42]StoreToDocumentArchive [11:00:42]shift 446 fd 164537 [11:00:42]save to /storage/0446/doc_00164537 [11:00:42]save last doc name /storage/0446/doc_00164537 to /storage/kkm_last_doc_name [11:00:42]save OK [11:00:42]Clear old archive folders... [11:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:42]tlvbuf is 01434AC0 [11:00:42]SAM_PROTO_ClearQueue [11:00:42]wFMCommunicate request_size=4 [11:00:42]MH_SAM_APDU [11:00:42]CAPDU: 80 09 00 00 [11:00:42]Write to MH i2c: E2 08 00 6A 0C 80 09 00 00 00 00 00 00 E8 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:42]Read from MH i2c: E2 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [11:00:42]RAPDU: 90 00 [11:00:42]wFMCommunicate OK [11:00:42]SAM_PROTO_ClearQueue done [11:00:42]KKMCreateOFDPacket [11:00:42]OFDProtocolAddRootSTLVToBuf [11:00:42]FM_MakeSignedData [11:00:42]FM_MakeSignedData [11:00:42]SAM_PROTO_SignData [11:00:42]wFMCommunicate request_size=4 [11:00:42]MH_SAM_APDU [11:00:42]CAPDU: 80 0D 01 02 [11:00:42]Write to MH i2c: E2 08 00 6B 0C 80 0D 01 02 00 00 00 00 F0 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:42]Read from MH i2c: E2 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [11:00:42]RAPDU: 90 00 [11:00:42]wFMCommunicate OK [11:00:42]wFMCommunicate request_size=255 [11:00:42]MH_SAM_APDU [11:00: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 82 02 00 35 04 06 00 B0 [11:00:42]Write to MH i2c: E2 02 01 6C 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 82 02 00 35 04 06 00 B0 00 00 74 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:42]Read from MH i2c: E2 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [11:00:42]RAPDU: 90 00 [11:00:42]wFMCommunicate OK [11:00:42]wFMCommunicate request_size=10 [11:00:42]MH_SAM_APDU [11:00:42]CAPDU: 80 0D 02 02 05 31 AB 05 CA 31 [11:00:42]Write to MH i2c: E2 0D 00 6D 0C 80 0D 02 02 05 00 31 AB 05 CA 31 00 00 D9 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 03 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [11:00:43]RAPDU: 90 00 [11:00:43]wFMCommunicate OK [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 0D 03 02 [11:00:43]Write to MH i2c: E2 08 00 6E 0C 80 0D 03 02 00 00 00 00 F5 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0B 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0B 00 6E 0C 00 5D 5C 0C 2F E8 C9 BF D0 90 00 2A [11:00:43]RAPDU: 5D 5C 0C 2F E8 C9 BF D0 90 00 [11:00:43]wFMCommunicate OK [11:00:43]SAM_PROTO_SignData done [11:00:43]FM_MakeSignedData done [11:00:43]CreateOFDProtocolMessage [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 11 00 00 [11:00:43]Write to MH i2c: E2 08 00 6F 0C 80 11 00 00 00 00 00 00 F5 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 17 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 17 00 6F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [11:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:43]wFMCommunicate OK [11:00:43]CreateOFDProtocolMessage done [11:00:43]OFDSenderStorePacket 164537 [11:00:43]StoreOFDPacket docnum=164537 [11:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 3E 07 01 DC 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 82 02 00 35 04 06 00 B0 31 AB 05 CA 31 5D 5C 0C 2F E8 C9 BF D0 [11:00:43]CheckFolder [11:00:43]dirname=/storage/ofd_packets [11:00:43]CheckFolder done [11:00:43]ProducePacketName [11:00:43]name=ofd_packets/00164537 [11:00:43]NVStorageSaveData ofd_packets/00164537 [11:00:43]File name is /storage/ofd_packets/00164537 [11:00:43]Write 301 bytes [11:00:43]NVStorageSaveData done [11:00:43]OFDSenderStorePacket done [11:00:43]KKMCreateOFDPacket done [11:00:43]NVStorageSaveData kkm_last_timestamp [11:00:43]File name is /storage/kkm_last_timestamp [11:00:43]Write 4 bytes [11:00:43]NVStorageSaveData done [11:00:43]ExternCall_PrintAddStr [11:00:43]wPrintStart [11:00:43]Write to MH i2c: 01 00 00 70 0C 7C [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 70 0C 00 00 00 00 00 FF 0F 91 [11:00:43]RasterBufferAndPrint [11:00:43]line Счет N : (1)458626 [11:00:43]line ИНН: 02508201610067 [11:00:43]line Контрольно-Кассовый Чек [11:00:43]line ПРОДАЖА [11:00:43]line ТРК (МРК, ГНК) : 12 [11:00:43]line Товар: 2710124130 [11:00:43]line Аи-92-К-5 [11:00:43]line 7.670 * 65.22 [11:00:43]line = 500.24 [11:00:43]line НДС 12% НСП 1% [11:00:43]line > о реализуемом товаре [11:00:43]line ИТОГО: 500.24 [11:00:43]line НСП 1% : 4.43 [11:00:43]line НДС 12% : 53.12 [11:00:43]line Наличными: 0.00 [11:00:43]line Безнал.: 500.24 [11:00:43]line Место: АЗС № 72 "Партнер Нефть" [11:00:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:00:43]line СНО: Общий режим [11:00:43]line Чек 97 13.07.2024 11:00 [11:00:43]line Смена: 446 ФФД: 1.0 [11:00:43]line ЗНМ: 0300000160 [11:00:43]line РНМ: 0000000000090829 [11:00:43]line Версия ККМ: 001 [11:00:43]line Платежная система: KICB Банк [11:00:43]line ФМ: 0000000000874718 [11:00:43]line ФД: 164537 [11:00:43]line ФПД: 193727369169457 [11:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164537&fm=193727369169457&tin=02508201610067®Number=0000000000090829&sum=50024 [11:00:43]written 0, free lines is 4095 [11:00:43]OFD Sender: Processing packet 164537 [packets to send 104, broken 103] [11:00:43]ProducePacketName [11:00:43]name=ofd_packets/00164537 [11:00:43]OFD Sender: To server: pG, [11:00:43]CommunicateWithHost lk.salyk.kg:30040 [11:00:43]ConnectInit lk.salyk.kg [11:00:43]Connected sock=10 [11:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 3E 07 01 DC 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 82 02 00 35 04 06 00 B0 31 AB 05 CA 31 5D 5C 0C 2F E8 C9 BF D0 [11:00:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 94 FD 47 00 C3 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 82 02 00 F4 03 04 00 EB 04 92 66 B6 04 01 00 00 6D 04 55 82 9A 7D B1 30 [11:00:43]CommunicateWithHost err = 0 [11:00:43]CheckOFDResponse [11:00:43]1017 (14) - 77093643461234 [11:00:43]1041 (16) - 0000000000874718 [11:00:43]1040 (4) - 164537 [11:00:43]1012 (4) - 13.07.2024 04:39 [11:00:43]1206 (1) - 0 [11:00:43]OFD Sender: Remove packet 164537 [11:00:43]ProducePacketName [11:00:43]name=ofd_packets/00164537 [11:00:43]NVStorageDeleteData [11:00:43]Write to MH i2c: 01 00 00 99 0C A5 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 16 0D CF [11:00:43]RasterBufferAndPrint [11:00:43]line [11:00:43]line [11:00:43]line [11:00:43]line [11:00:43]line [11:00:43]written 0, free lines is 3357 [11:00:43]MH_Cut [11:00:43]Write to MH i2c: D1 01 00 A0 0C 01 7E [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: D1 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: D1 01 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: D1 01 00 A0 0C 00 7D [11:00:43]Write to MH i2c: 01 00 00 A1 0C AD [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]OFD Sender: No OFD packet to send [11:00:44]*** Cut start [11:00:44]*** Partial cut [11:00:44]*** CUTSNS_PIN = 1 [11:00:44]*** CUTSNS_PIN = 0 [11:00:44]*** Brake cut motor [11:00:44]Read from MH i2c: 01 [11:00:44]MH_I2C_Read... [11:00:44]*** Stop cut motor [11:00:44]*** Cut end [11:00:44]Read from MH i2c: 01 07 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 FF 0F C2 [11:00:44]process_action close_receipt done [11:00:44]requested_data is exist [11:00:44]produce_requested_data [11:00:44]requested_item fm.sn is exist - process it [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 11 00 00 [11:00:44]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 A2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [11:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:44]wFMCommunicate OK [11:00:44]requested_item fd.num is exist - process it [11:00:44]SAM_PROTO_GetFieldsCounters [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 00 00 [11:00:44]Write to MH i2c: E2 08 00 A3 0C 80 13 00 00 00 00 00 00 2B [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 62 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 62 00 A3 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 82 02 00 0E 04 04 00 BE 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 71 [11:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 82 02 00 0E 04 04 00 BE 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 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_GetFieldsCounters done [11:00:45]requested_item shift.num is exist - process it [11:00:45]requested_item shift.opened is exist - process it [11:00:45]req_shift_opened [11:00:45]FM_GetShiftState [11:00:45]SAM_PROTO_GetShiftState [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 13 01 00 [11:00:45]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0E [11:00:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_GetShiftState done [11:00:45]FM_GetShiftState done [11:00:45]req_shift_opened done [11:00:45]requested_item shift.open_date is exist - process it [11:00:45]req_shift_open_date [11:00:45]req_shift_open_date done [11:00:45]produce_requested_data done [11:00:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164537,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:00:45]process_action_free close_receipt [11:00:45]json_value_free [11:00:45]json_value_free done [11:00:45]process_json_proto returns [11:00:45]Send response to host [11:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164537,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:00:45]free response buf [11:00:45]execute_script done [11:00:45]execute_script returns [11:00:45]free content buf [11:00:45]Sock 9.Close socket [11:00:45]Sock 9.Thread stoped [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:07]accept exits with 7 [11:02:07]New connection [11:02:07]New thread 3067293028 created [11:02:07]Thread 3067149668 joined [11:02:07]Waiting for new connection... [11:02:07] Sock 7.Parse request [11:02:07]Sock 7.Check first char [11:02:07]Sock 7.First char is OK [11:02:07]request: POST /json_proto HTTP/1.0 [11:02:07]Method: POST [11:02:07]URL: /json_proto [11:02:07]Method is POST - this is cgi request [11:02:07]url: /json_proto [11:02:07]query_string will be loaded in cgi processing [11:02:07]execute_cgi json_proto POST (null) [11:02:07]execute_cgi path=json_proto method=POST [11:02:07]POST find Content-Length [11:02:07]Host: 172.17.56.4:8080 [11:02:07]Content-Length: 677 [11:02:07]Content-Type: application/json [11:02:07] [11:02:07]POST finish read [11:02:07]Found Content-Length = 677 [11:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:07]execute_script... [11:02: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)458627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:07]POST & json_proto [11:02:07]process_json_proto [11:02:07]json parsed OK: [11:02:07]protocol is kg_v1.0 [11:02:07]action value=close_receipt [11:02:07]process_action close_receipt [11:02:07]cmd_close_receipt [11:02:07]MH_GetDate [11:02:07]Write to MH i2c: F0 00 00 A5 0C A0 [11:02:07]Write i2c OK [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: F0 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: F0 09 00 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: F0 09 00 A5 0C 00 B0 5E 92 66 C9 DC B2 64 6A [11:02:07]GetLastDocTimeStamp 1720868442 [11:02:07]current date 1720868528 [11:02:07]FM_GetShiftState [11:02:07]SAM_PROTO_GetShiftState [11:02:07]wFMCommunicate request_size=4 [11:02:07]MH_SAM_APDU [11:02:07]CAPDU: 80 13 01 00 [11:02:07]Write to MH i2c: E2 08 00 A6 0C 80 13 01 00 00 00 00 00 2F [11:02:07]Write i2c OK [11:02:07]MH_I2C_Read... [11:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:07]Read from MH i2c: E2 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 0E 00 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 0E 00 A6 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [11:02:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:07]wFMCommunicate OK [11:02:07]SAM_PROTO_GetShiftState done [11:02:07]FM_GetShiftState done [11:02:07]opened in 1720831249 [11:02:07]opened+sec_in_day 1720917649 [11:02:07]quantity*price = 12041 [11:02:07]sum+1 = 12042 [11:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 98 13.07.2024 11:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164538 ФПД: 242114024524357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164538&fm=242114024524357&tin=02508201610067®Number=0000000000090829&sum=12000 [11:02:08]StoreToDocumentArchive [11:02:08]shift 446 fd 164538 [11:02:08]save to /storage/0446/doc_00164538 [11:02:08]save last doc name /storage/0446/doc_00164538 to /storage/kkm_last_doc_name [11:02:08]save OK [11:02:08]Clear old archive folders... [11:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:08]tlvbuf is 01417CF0 [11:02:08]SAM_PROTO_ClearQueue [11:02:08]wFMCommunicate request_size=4 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 09 00 00 [11:02:08]Write to MH i2c: E2 08 00 B3 0C 80 09 00 00 00 00 00 00 31 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [11:02:08]RAPDU: 90 00 [11:02:08]wFMCommunicate OK [11:02:08]SAM_PROTO_ClearQueue done [11:02:08]KKMCreateOFDPacket [11:02:08]OFDProtocolAddRootSTLVToBuf [11:02:08]FM_MakeSignedData [11:02:08]FM_MakeSignedData [11:02:08]SAM_PROTO_SignData [11:02:08]wFMCommunicate request_size=4 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 0D 01 02 [11:02:08]Write to MH i2c: E2 08 00 B4 0C 80 0D 01 02 00 00 00 00 39 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [11:02:08]RAPDU: 90 00 [11:02:08]wFMCommunicate OK [11:02:08]wFMCommunicate request_size=255 [11:02:08]MH_SAM_APDU [11:02: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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B0 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 82 02 00 35 04 06 00 DC [11:02:08]Write to MH i2c: E2 02 01 B5 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B0 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 82 02 00 35 04 06 00 DC 00 00 46 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [11:02:08]RAPDU: 90 00 [11:02:08]wFMCommunicate OK [11:02:08]wFMCommunicate request_size=10 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 0D 02 02 05 33 90 6D 4A 45 [11:02:08]Write to MH i2c: E2 0D 00 B6 0C 80 0D 02 02 05 00 33 90 6D 4A 45 00 00 05 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 03 00 B6 0C 00 90 00 36 [11:02:08]RAPDU: 90 00 [11:02:08]wFMCommunicate OK [11:02:08]wFMCommunicate request_size=4 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 0D 03 02 [11:02:08]Write to MH i2c: E2 08 00 B7 0C 80 0D 03 02 00 00 00 00 3E [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 0B 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 0B 00 B7 0C 00 F6 1E 4E F5 D6 46 85 57 90 00 8E [11:02:08]RAPDU: F6 1E 4E F5 D6 46 85 57 90 00 [11:02:08]wFMCommunicate OK [11:02:08]SAM_PROTO_SignData done [11:02:08]FM_MakeSignedData done [11:02:08]CreateOFDProtocolMessage [11:02:08]wFMCommunicate request_size=4 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 11 00 00 [11:02:08]Write to MH i2c: E2 08 00 B8 0C 80 11 00 00 00 00 00 00 3E [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 17 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 17 00 B8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [11:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:08]wFMCommunicate OK [11:02:08]CreateOFDProtocolMessage done [11:02:08]OFDSenderStorePacket 164538 [11:02:08]StoreOFDPacket docnum=164538 [11:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A F1 07 01 79 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B0 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 82 02 00 35 04 06 00 DC 33 90 6D 4A 45 F6 1E 4E F5 D6 46 85 57 [11:02:08]CheckFolder [11:02:08]dirname=/storage/ofd_packets [11:02:08]CheckFolder done [11:02:08]ProducePacketName [11:02:08]name=ofd_packets/00164538 [11:02:08]NVStorageSaveData ofd_packets/00164538 [11:02:08]File name is /storage/ofd_packets/00164538 [11:02:08]Write 301 bytes [11:02:08]NVStorageSaveData done [11:02:08]OFDSenderStorePacket done [11:02:08]KKMCreateOFDPacket done [11:02:08]NVStorageSaveData kkm_last_timestamp [11:02:08]File name is /storage/kkm_last_timestamp [11:02:08]Write 4 bytes [11:02:08]NVStorageSaveData done [11:02:08]ExternCall_PrintAddStr [11:02:08]wPrintStart [11:02:08]Write to MH i2c: 01 00 00 B9 0C C5 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: 01 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: 01 07 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: 01 07 00 B9 0C 00 00 00 00 00 FF 0F DA [11:02:08]RasterBufferAndPrint [11:02:08]line Счет N : (1)458627 [11:02:08]line ИНН: 02508201610067 [11:02:08]line Контрольно-Кассовый Чек [11:02:08]line ПРОДАЖА [11:02:08]line ТРК (МРК, ГНК) : 12 [11:02:08]line Товар: 2710124130 [11:02:08]line Аи-92-К-5 [11:02:08]line 1.830 * 65.80 [11:02:08]line = 120.41 [11:02:08]line НДС 12% НСП 1% [11:02:08]line > о реализуемом товаре [11:02:08]line ОКРУГЛЕНИЕ: -0.41 [11:02:08]line ИТОГО: 120.00 [11:02:08]line Внесено: 120.00 [11:02:08]line СДАЧА: 0.00 [11:02:08]line НСП 1% : 1.07 [11:02:08]line НДС 12% : 12.79 [11:02:08]line Наличными: 120.00 [11:02:08]line Безнал.: 0.00 [11:02:08]line Место: АЗС № 72 "Партнер Нефть" [11:02:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:02:08]line СНО: Общий режим [11:02:08]line Чек 98 13.07.2024 11:02 [11:02:08]line Смена: 446 ФФД: 1.0 [11:02:08]line ЗНМ: 0300000160 [11:02:08]line РНМ: 0000000000090829 [11:02:08]line Версия ККМ: 001 [11:02:08]line ФМ: 0000000000874718 [11:02:08]line ФД: 164538 [11:02:08]line ФПД: 242114024524357 [11:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164538&fm=242114024524357&tin=02508201610067®Number=0000000000090829&sum=12000 [11:02:09]written 0, free lines is 4095 [11:02:09]OFD Sender: Processing packet 164538 [packets to send 104, broken 103] [11:02:09]ProducePacketName [11:02:09]name=ofd_packets/00164538 [11:02:09]OFD Sender: To server: pG, [11:02:09]CommunicateWithHost lk.salyk.kg:30040 [11:02:09]ConnectInit lk.salyk.kg [11:02:09]Connected sock=11 [11:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A F1 07 01 79 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 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B0 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 82 02 00 35 04 06 00 DC 33 90 6D 4A 45 F6 1E 4E F5 D6 46 85 57 [11:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 76 BF 47 00 A7 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 82 02 00 F4 03 04 00 41 05 92 66 B6 04 01 00 00 A9 66 87 BB 48 48 3B 3C [11:02:09]CommunicateWithHost err = 0 [11:02:09]CheckOFDResponse [11:02:09]1017 (14) - 77093643461234 [11:02:09]1041 (16) - 0000000000874718 [11:02:09]1040 (4) - 164538 [11:02:09]1012 (4) - 13.07.2024 04:40 [11:02:09]1206 (1) - 0 [11:02:09]OFD Sender: Remove packet 164538 [11:02:09]ProducePacketName [11:02:09]name=ofd_packets/00164538 [11:02:09]NVStorageDeleteData [11:02:09]Write to MH i2c: 01 00 00 E3 0C EF [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 07 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 02 0D 05 [11:02:09]RasterBufferAndPrint [11:02:09]line [11:02:09]line [11:02:09]line [11:02:09]line [11:02:09]line [11:02:09]written 0, free lines is 3336 [11:02:09]MH_Cut [11:02:09]Write to MH i2c: D1 01 00 EA 0C 01 C8 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: D1 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: D1 01 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: D1 01 00 EA 0C 00 C7 [11:02:09]Write to MH i2c: 01 00 00 EB 0C F7 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]OFD Sender: No OFD packet to send [11:02:10]*** Cut start [11:02:10]*** Partial cut [11:02:10]*** CUTSNS_PIN = 1 [11:02:10]*** CUTSNS_PIN = 0 [11:02:10]*** Brake cut motor [11:02:10]Read from MH i2c: 01 [11:02:10]MH_I2C_Read... [11:02:10]*** Stop cut motor [11:02:10]*** Cut end [11:02:10]Read from MH i2c: 01 07 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 FF 0F 0C [11:02:10]process_action close_receipt done [11:02:10]requested_data is exist [11:02:10]produce_requested_data [11:02:10]requested_item fm.sn is exist - process it [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 11 00 00 [11:02:10]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:10]Read from MH i2c: E2 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 17 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: E2 17 00 EC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [11:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:10]wFMCommunicate OK [11:02:10]requested_item fd.num is exist - process it [11:02:10]SAM_PROTO_GetFieldsCounters [11:02:10]wFMCommunicate request_size=4 [11:02:10]MH_SAM_APDU [11:02:10]CAPDU: 80 13 00 00 [11:02:10]Write to MH i2c: E2 08 00 ED 0C 80 13 00 00 00 00 00 00 75 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 62 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 62 00 ED 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 82 02 00 0E 04 04 00 BE 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 BF [11:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 82 02 00 0E 04 04 00 BE 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 [11:02:11]wFMCommunicate OK [11:02:11]SAM_PROTO_GetFieldsCounters done [11:02:11]requested_item shift.num is exist - process it [11:02:11]requested_item shift.opened is exist - process it [11:02:11]req_shift_opened [11:02:11]FM_GetShiftState [11:02:11]SAM_PROTO_GetShiftState [11:02:11]wFMCommunicate request_size=4 [11:02:11]MH_SAM_APDU [11:02:11]CAPDU: 80 13 01 00 [11:02:11]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [11:02:11]Write i2c OK [11:02:11]MH_I2C_Read... [11:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:11]Read from MH i2c: E2 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 0E 00 [11:02:11]MH_I2C_Read... [11:02:11]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 58 [11:02:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:11]wFMCommunicate OK [11:02:11]SAM_PROTO_GetShiftState done [11:02:11]FM_GetShiftState done [11:02:11]req_shift_opened done [11:02:11]requested_item shift.open_date is exist - process it [11:02:11]req_shift_open_date [11:02:11]req_shift_open_date done [11:02:11]produce_requested_data done [11:02:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164538,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:02:11]process_action_free close_receipt [11:02:11]json_value_free [11:02:11]json_value_free done [11:02:11]process_json_proto returns [11:02:11]Send response to host [11:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164538,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:02:11]free response buf [11:02:11]execute_script done [11:02:11]execute_script returns [11:02:11]free content buf [11:02:11]Sock 7.Close socket [11:02:11]Sock 7.Thread stoped [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:47]accept exits with 9 [11:02:47]New connection [11:02:47]New thread 3067149668 created [11:02:47]Thread 3067293028 joined [11:02:47]Waiting for new connection... [11:02:47] Sock 9.Parse request [11:02:47]Sock 9.Check first char [11:02:47]Sock 9.First char is OK [11:02:47]request: POST /json_proto HTTP/1.0 [11:02:47]Method: POST [11:02:47]URL: /json_proto [11:02:47]Method is POST - this is cgi request [11:02:47]url: /json_proto [11:02:47]query_string will be loaded in cgi processing [11:02:47]execute_cgi json_proto POST (null) [11:02:47]execute_cgi path=json_proto method=POST [11:02:47]POST find Content-Length [11:02:47]Host: 172.17.56.4:8080 [11:02:47]Content-Length: 790 [11:02:47]Content-Type: application/json [11:02:47] [11:02:47]POST finish read [11:02:47]Found Content-Length = 790 [11:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]execute_script... [11:02: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)458628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:47]POST & json_proto [11:02:47]process_json_proto [11:02:47]json parsed OK: [11:02:47]protocol is kg_v1.0 [11:02:47]action value=close_receipt [11:02:47]process_action close_receipt [11:02:47]cmd_close_receipt [11:02:47]MH_GetDate [11:02:47]Write to MH i2c: F0 00 00 EF 0C EA [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: F0 09 00 EF 0C 00 D8 5E 92 66 C9 DC B2 64 DC [11:02:47]GetLastDocTimeStamp 1720868528 [11:02:47]current date 1720868568 [11:02:47]FM_GetShiftState [11:02:47]SAM_PROTO_GetShiftState [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 01 00 [11:02:47]Write to MH i2c: E2 08 00 F0 0C 80 13 01 00 00 00 00 00 79 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0E 00 F0 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [11:02:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_GetShiftState done [11:02:47]FM_GetShiftState done [11:02:47]opened in 1720831249 [11:02:47]opened+sec_in_day 1720917649 [11:02:47]quantity*price = 40045 [11:02:47]sum+1 = 40046 [11:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 99 13.07.2024 11:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164539 ФПД: 98958109785299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164539&fm=98958109785299&tin=02508201610067®Number=0000000000090829&sum=40045 [11:02:48]StoreToDocumentArchive [11:02:48]shift 446 fd 164539 [11:02:48]save to /storage/0446/doc_00164539 [11:02:48]save last doc name /storage/0446/doc_00164539 to /storage/kkm_last_doc_name [11:02:48]save OK [11:02:48]Clear old archive folders... [11:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:48]tlvbuf is 014179C0 [11:02:48]SAM_PROTO_ClearQueue [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 09 00 00 [11:02:48]Write to MH i2c: E2 08 00 FD 0C 80 09 00 00 00 00 00 00 7B [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_ClearQueue done [11:02:48]KKMCreateOFDPacket [11:02:48]OFDProtocolAddRootSTLVToBuf [11:02:48]FM_MakeSignedData [11:02:48]FM_MakeSignedData [11:02:48]SAM_PROTO_SignData [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 01 02 [11:02:48]Write to MH i2c: E2 08 00 FE 0C 80 0D 01 02 00 00 00 00 83 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=255 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 82 02 00 35 04 06 00 5A [11:02:48]Write to MH i2c: E2 02 01 FF 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 82 02 00 35 04 06 00 5A 00 00 4D [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [11:02:48]RAPDU: 90 00 [11:02:48]wFMCommunicate OK [11:02:48]wFMCommunicate request_size=10 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 0D 02 02 05 00 7A FB 3C D3 [11:02:48]Write to MH i2c: E2 0D 00 00 0D 80 0D 02 02 05 00 00 7A FB 3C D3 00 00 15 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [11:02:49]RAPDU: 90 00 [11:02:49]wFMCommunicate OK [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 0D 03 02 [11:02:49]Write to MH i2c: E2 08 00 01 0D 80 0D 03 02 00 00 00 00 89 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0B 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0B 00 01 0D 00 D5 2F A7 21 8A 4A B1 6B 90 00 46 [11:02:49]RAPDU: D5 2F A7 21 8A 4A B1 6B 90 00 [11:02:49]wFMCommunicate OK [11:02:49]SAM_PROTO_SignData done [11:02:49]FM_MakeSignedData done [11:02:49]CreateOFDProtocolMessage [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 11 00 00 [11:02:49]Write to MH i2c: E2 08 00 02 0D 80 11 00 00 00 00 00 00 89 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 02 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [11:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:49]wFMCommunicate OK [11:02:49]CreateOFDProtocolMessage done [11:02:49]OFDSenderStorePacket 164539 [11:02:49]StoreOFDPacket docnum=164539 [11:02:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 E9 07 01 98 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 82 02 00 35 04 06 00 5A 00 7A FB 3C D3 D5 2F A7 21 8A 4A B1 6B [11:02:49]CheckFolder [11:02:49]dirname=/storage/ofd_packets [11:02:49]CheckFolder done [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00164539 [11:02:49]NVStorageSaveData ofd_packets/00164539 [11:02:49]File name is /storage/ofd_packets/00164539 [11:02:49]Write 301 bytes [11:02:49]NVStorageSaveData done [11:02:49]OFDSenderStorePacket done [11:02:49]KKMCreateOFDPacket done [11:02:49]NVStorageSaveData kkm_last_timestamp [11:02:49]File name is /storage/kkm_last_timestamp [11:02:49]Write 4 bytes [11:02:49]NVStorageSaveData done [11:02:49]ExternCall_PrintAddStr [11:02:49]wPrintStart [11:02:49]Write to MH i2c: 01 00 00 03 0D 10 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [11:02:49]RasterBufferAndPrint [11:02:49]line Счет N : (1)458628 [11:02:49]line ИНН: 02508201610067 [11:02:49]line Контрольно-Кассовый Чек [11:02:49]line ПРОДАЖА [11:02:49]line ТРК (МРК, ГНК) : 22 [11:02:49]line Товар: 2710124130 [11:02:49]line Аи-92-К-5 [11:02:49]line 6.140 * 65.22 [11:02:49]line = 400.45 [11:02:49]line НДС 12% НСП 1% [11:02:49]line > о реализуемом товаре [11:02:49]line ИТОГО: 400.45 [11:02:49]line НСП 1% : 3.54 [11:02:49]line НДС 12% : 42.53 [11:02:49]line Наличными: 0.00 [11:02:49]line Безнал.: 400.45 [11:02:49]line Место: АЗС № 72 "Партнер Нефть" [11:02:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:02:49]line СНО: Общий режим [11:02:49]line Чек 99 13.07.2024 11:02 [11:02:49]line Смена: 446 ФФД: 1.0 [11:02:49]line ЗНМ: 0300000160 [11:02:49]line РНМ: 0000000000090829 [11:02:49]line Версия ККМ: 001 [11:02:49]line Платежная система: KICB Банк [11:02:49]line ФМ: 0000000000874718 [11:02:49]line ФД: 164539 [11:02:49]line ФПД: 98958109785299 [11:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164539&fm=98958109785299&tin=02508201610067®Number=0000000000090829&sum=40045 [11:02:49]written 0, free lines is 4095 [11:02:49]OFD Sender: Processing packet 164539 [packets to send 104, broken 103] [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00164539 [11:02:49]OFD Sender: To server: pG, [11:02:49]CommunicateWithHost lk.salyk.kg:30040 [11:02:49]ConnectInit lk.salyk.kg [11:02:49]Connected sock=10 [11:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 E9 07 01 98 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 82 02 00 35 04 06 00 5A 00 7A FB 3C D3 D5 2F A7 21 8A 4A B1 6B [11:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA F0 47 00 43 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 34 37 31 38 10 04 04 00 BB 82 02 00 F4 03 04 00 69 05 92 66 B6 04 01 00 00 D2 35 F3 FE D7 D5 D2 5F [11:02:49]CommunicateWithHost err = 0 [11:02:49]CheckOFDResponse [11:02:49]1017 (14) - 77093643461234 [11:02:49]1041 (16) - 0000000000874718 [11:02:49]1040 (4) - 164539 [11:02:49]1012 (4) - 13.07.2024 04:41 [11:02:49]1206 (1) - 0 [11:02:49]OFD Sender: Remove packet 164539 [11:02:49]ProducePacketName [11:02:49]name=ofd_packets/00164539 [11:02:49]NVStorageDeleteData [11:02:49]Write to MH i2c: 01 00 00 2C 0D 39 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 19 0D 66 [11:02:49]RasterBufferAndPrint [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]line [11:02:49]written 0, free lines is 3359 [11:02:49]MH_Cut [11:02:49]Write to MH i2c: D1 01 00 33 0D 01 12 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 01 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: D1 01 00 33 0D 00 11 [11:02:49]Write to MH i2c: 01 00 00 34 0D 41 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]OFD Sender: No OFD packet to send [11:02:50]*** Cut start [11:02:50]*** Partial cut [11:02:50]*** CUTSNS_PIN = 1 [11:02:50]*** CUTSNS_PIN = 0 [11:02:50]*** Brake cut motor [11:02:50]Read from MH i2c: 01 [11:02:50]MH_I2C_Read... [11:02:50]*** Stop cut motor [11:02:50]*** Cut end [11:02:50]Read from MH i2c: 01 07 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 FF 0F 56 [11:02:50]process_action close_receipt done [11:02:50]requested_data is exist [11:02:50]produce_requested_data [11:02:50]requested_item fm.sn is exist - process it [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 11 00 00 [11:02:50]Write to MH i2c: E2 08 00 35 0D 80 11 00 00 00 00 00 00 BC [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:50]Read from MH i2c: E2 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 17 00 [11:02:50]MH_I2C_Read... [11:02:50]Read from MH i2c: E2 17 00 35 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [11:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:50]wFMCommunicate OK [11:02:50]requested_item fd.num is exist - process it [11:02:50]SAM_PROTO_GetFieldsCounters [11:02:50]wFMCommunicate request_size=4 [11:02:50]MH_SAM_APDU [11:02:50]CAPDU: 80 13 00 00 [11:02:50]Write to MH i2c: E2 08 00 36 0D 80 13 00 00 00 00 00 00 BF [11:02:50]Write i2c OK [11:02:50]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 62 00 36 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 82 02 00 0E 04 04 00 BE 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 0D [11:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 82 02 00 0E 04 04 00 BE 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 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetFieldsCounters done [11:02:51]requested_item shift.num is exist - process it [11:02:51]requested_item shift.opened is exist - process it [11:02:51]req_shift_opened [11:02:51]FM_GetShiftState [11:02:51]SAM_PROTO_GetShiftState [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 13 01 00 [11:02:51]Write to MH i2c: E2 08 00 37 0D 80 13 01 00 00 00 00 00 C1 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 37 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A2 [11:02:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetShiftState done [11:02:51]FM_GetShiftState done [11:02:51]req_shift_opened done [11:02:51]requested_item shift.open_date is exist - process it [11:02:51]req_shift_open_date [11:02:51]req_shift_open_date done [11:02:51]produce_requested_data done [11:02:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164539,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:02:51]process_action_free close_receipt [11:02:51]json_value_free [11:02:51]json_value_free done [11:02:51]process_json_proto returns [11:02:51]Send response to host [11:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164539,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:02:51]free response buf [11:02:51]execute_script done [11:02:51]execute_script returns [11:02:51]free content buf [11:02:51]Sock 9.Close socket [11:02:51]Sock 9.Thread stoped [11:02:51]accept exits with 7 [11:02:51]New connection [11:02:51]New thread 3067293028 created [11:02:51]Thread 3067149668 joined [11:02:51]Waiting for new connection... [11:02:51] Sock 7.Parse request [11:02:51]Sock 7.Check first char [11:02:51]Sock 7.First char is OK [11:02:51]request: POST /json_proto HTTP/1.0 [11:02:51]Method: POST [11:02:51]URL: /json_proto [11:02:51]Method is POST - this is cgi request [11:02:51]url: /json_proto [11:02:51]query_string will be loaded in cgi processing [11:02:51]execute_cgi json_proto POST (null) [11:02:51]execute_cgi path=json_proto method=POST [11:02:51]POST find Content-Length [11:02:51]Host: 172.17.56.4:8080 [11:02:51]Content-Length: 640 [11:02:51]Content-Type: application/json [11:02:51] [11:02:51]POST finish read [11:02:51]Found Content-Length = 640 [11:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:51]execute_script... [11:02:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:51]POST & json_proto [11:02:51]process_json_proto [11:02:51]json parsed OK: [11:02:51]protocol is kg_v1.0 [11:02:51]action value=close_receipt [11:02:51]process_action close_receipt [11:02:51]cmd_close_receipt [11:02:51]MH_GetDate [11:02:51]Write to MH i2c: F0 00 00 38 0D 34 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: F0 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: F0 09 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: F0 09 00 38 0D 00 DD 5E 92 66 C9 DC B2 64 2B [11:02:51]GetLastDocTimeStamp 1720868568 [11:02:51]current date 1720868573 [11:02:51]FM_GetShiftState [11:02:51]SAM_PROTO_GetShiftState [11:02:51]wFMCommunicate request_size=4 [11:02:51]MH_SAM_APDU [11:02:51]CAPDU: 80 13 01 00 [11:02:51]Write to MH i2c: E2 08 00 39 0D 80 13 01 00 00 00 00 00 C3 [11:02:51]Write i2c OK [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 [11:02:51]MH_I2C_Read... [11:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:51]Read from MH i2c: E2 0E 00 [11:02:51]MH_I2C_Read... [11:02:51]Read from MH i2c: E2 0E 00 39 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A4 [11:02:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:51]wFMCommunicate OK [11:02:51]SAM_PROTO_GetShiftState done [11:02:51]FM_GetShiftState done [11:02:51]opened in 1720831249 [11:02:51]opened+sec_in_day 1720917649 [11:02:51]quantity*price = 65800 [11:02:51]sum+1 = 65801 [11:02:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 100 13.07.2024 11:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164540 ФПД: 48693664503740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110253&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164540&fm=48693664503740&tin=02508201610067®Number=0000000000090829&sum=65800 [11:02:53]StoreToDocumentArchive [11:02:53]shift 446 fd 164540 [11:02:53]save to /storage/0446/doc_00164540 [11:02:53]save last doc name /storage/0446/doc_00164540 to /storage/kkm_last_doc_name [11:02:53]save OK [11:02:53]Clear old archive folders... [11:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:53]tlvbuf is 014813C0 [11:02:53]SAM_PROTO_ClearQueue [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 09 00 00 [11:02:53]Write to MH i2c: E2 08 00 46 0D 80 09 00 00 00 00 00 00 C5 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_ClearQueue done [11:02:53]KKMCreateOFDPacket [11:02:53]OFDProtocolAddRootSTLVToBuf [11:02:53]FM_MakeSignedData [11:02:53]FM_MakeSignedData [11:02:53]SAM_PROTO_SignData [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 01 02 [11:02:53]Write to MH i2c: E2 08 00 47 0D 80 0D 01 02 00 00 00 00 CD [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]wFMCommunicate request_size=255 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 64 00 00 00 F4 03 04 00 DD 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 82 02 00 35 04 06 00 2C [11:02:53]Write to MH i2c: E2 02 01 48 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 64 00 00 00 F4 03 04 00 DD 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 82 02 00 35 04 06 00 2C 00 00 70 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]wFMCommunicate request_size=10 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 02 02 05 49 60 93 57 BC [11:02:53]Write to MH i2c: E2 0D 00 49 0D 80 0D 02 02 05 00 49 60 93 57 BC 00 00 29 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [11:02:53]RAPDU: 90 00 [11:02:53]wFMCommunicate OK [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 0D 03 02 [11:02:53]Write to MH i2c: E2 08 00 4A 0D 80 0D 03 02 00 00 00 00 D2 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0B 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0B 00 4A 0D 00 04 5C 2F 7E CD 89 EF DB 90 00 00 [11:02:53]RAPDU: 04 5C 2F 7E CD 89 EF DB 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_SignData done [11:02:53]FM_MakeSignedData done [11:02:53]CreateOFDProtocolMessage [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 11 00 00 [11:02:53]Write to MH i2c: E2 08 00 4B 0D 80 11 00 00 00 00 00 00 D2 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 17 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 17 00 4B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [11:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:53]wFMCommunicate OK [11:02:53]CreateOFDProtocolMessage done [11:02:53]OFDSenderStorePacket 164540 [11:02:53]StoreOFDPacket docnum=164540 [11:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 20 07 01 EC 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 64 00 00 00 F4 03 04 00 DD 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 82 02 00 35 04 06 00 2C 49 60 93 57 BC 04 5C 2F 7E CD 89 EF DB [11:02:53]CheckFolder [11:02:53]dirname=/storage/ofd_packets [11:02:53]CheckFolder done [11:02:53]ProducePacketName [11:02:53]name=ofd_packets/00164540 [11:02:53]NVStorageSaveData ofd_packets/00164540 [11:02:53]File name is /storage/ofd_packets/00164540 [11:02:53]Write 301 bytes [11:02:53]NVStorageSaveData done [11:02:53]OFDSenderStorePacket done [11:02:53]KKMCreateOFDPacket done [11:02:53]NVStorageSaveData kkm_last_timestamp [11:02:53]File name is /storage/kkm_last_timestamp [11:02:53]Write 4 bytes [11:02:53]NVStorageSaveData done [11:02:53]ExternCall_PrintAddStr [11:02:53]wPrintStart [11:02:53]Write to MH i2c: 01 00 00 4C 0D 59 [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: 01 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: 01 07 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: 01 07 00 4C 0D 00 00 00 00 00 FF 0F 6E [11:02:53]RasterBufferAndPrint [11:02:53]line Счет N : (1)458629 [11:02:53]line ИНН: 02508201610067 [11:02:53]line Контрольно-Кассовый Чек [11:02:53]line ПРОДАЖА [11:02:53]line ТРК (МРК, ГНК) : 12 [11:02:53]line Товар: 2710124130 [11:02:53]line Аи-92-К-5 [11:02:53]line 10.000 * 65.80 [11:02:53]line = 658.00 [11:02:53]line НДС 12% НСП 1% [11:02:53]line > о реализуемом товаре [11:02:53]line ИТОГО: 658.00 [11:02:53]line НСП 1% : 5.82 [11:02:53]line НДС 12% : 69.88 [11:02:53]line Наличными: 658.00 [11:02:53]line Безнал.: 0.00 [11:02:53]line Место: АЗС № 72 "Партнер Нефть" [11:02:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:02:53]line СНО: Общий режим [11:02:53]line Чек 100 13.07.2024 11:02 [11:02:53]line Смена: 446 ФФД: 1.0 [11:02:53]line ЗНМ: 0300000160 [11:02:53]line РНМ: 0000000000090829 [11:02:53]line Версия ККМ: 001 [11:02:53]line ФМ: 0000000000874718 [11:02:53]line ФД: 164540 [11:02:53]line ФПД: 48693664503740 [11:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110253&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164540&fm=48693664503740&tin=02508201610067®Number=0000000000090829&sum=65800 [11:02:53]OFD Sender: Processing packet 164540 [packets to send 104, broken 103] [11:02:53]ProducePacketName [11:02:53]name=ofd_packets/00164540 [11:02:53]OFD Sender: To server: pG, [11:02:53]CommunicateWithHost lk.salyk.kg:30040 [11:02:53]ConnectInit lk.salyk.kg [11:02:53]written 0, free lines is 4095 [11:02:53]Connected sock=10 [11:02:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 20 07 01 EC 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 64 00 00 00 F4 03 04 00 DD 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 82 02 00 35 04 06 00 2C 49 60 93 57 BC 04 5C 2F 7E CD 89 EF DB [11:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 17 47 00 3F 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 34 37 31 38 10 04 04 00 BC 82 02 00 F4 03 04 00 6E 05 92 66 B6 04 01 00 00 90 14 C9 FC 6F 8C 0D F2 [11:02:54]CommunicateWithHost err = 0 [11:02:54]CheckOFDResponse [11:02:54]1017 (14) - 77093643461234 [11:02:54]1041 (16) - 0000000000874718 [11:02:54]1040 (4) - 164540 [11:02:54]1012 (4) - 13.07.2024 04:41 [11:02:54]1206 (1) - 0 [11:02:54]OFD Sender: Remove packet 164540 [11:02:54]ProducePacketName [11:02:54]name=ofd_packets/00164540 [11:02:54]NVStorageDeleteData [11:02:54]Write to MH i2c: 01 00 00 73 0D 80 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 3C 0D D0 [11:02:54]RasterBufferAndPrint [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]line [11:02:54]written 0, free lines is 3403 [11:02:54]MH_Cut [11:02:54]Write to MH i2c: D1 01 00 7A 0D 01 59 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 01 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: D1 01 00 7A 0D 00 58 [11:02:54]Write to MH i2c: 01 00 00 7B 0D 88 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]OFD Sender: No OFD packet to send [11:02:54]*** Cut start [11:02:54]*** Partial cut [11:02:54]*** CUTSNS_PIN = 1 [11:02:54]*** CUTSNS_PIN = 0 [11:02:54]*** Brake cut motor [11:02:55]Read from MH i2c: *** Stop cut motor [11:02:55]*** Cut end [11:02:55]01 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [11:02:55]process_action close_receipt done [11:02:55]requested_data is exist [11:02:55]produce_requested_data [11:02:55]requested_item fm.sn is exist - process it [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 11 00 00 [11:02:55]Write to MH i2c: E2 08 00 7C 0D 80 11 00 00 00 00 00 00 03 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 17 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 17 00 7C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [11:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:55]wFMCommunicate OK [11:02:55]requested_item fd.num is exist - process it [11:02:55]SAM_PROTO_GetFieldsCounters [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 13 00 00 [11:02:55]Write to MH i2c: E2 08 00 7D 0D 80 13 00 00 00 00 00 00 06 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 62 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 62 00 7D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 82 02 00 0E 04 04 00 BE 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 58 [11:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 82 02 00 0E 04 04 00 BE 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 [11:02:55]wFMCommunicate OK [11:02:55]SAM_PROTO_GetFieldsCounters done [11:02:55]requested_item shift.num is exist - process it [11:02:55]requested_item shift.opened is exist - process it [11:02:55]req_shift_opened [11:02:55]FM_GetShiftState [11:02:55]SAM_PROTO_GetShiftState [11:02:55]wFMCommunicate request_size=4 [11:02:55]MH_SAM_APDU [11:02:55]CAPDU: 80 13 01 00 [11:02:55]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:55]Read from MH i2c: E2 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0E 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E9 [11:02:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:02:55]wFMCommunicate OK [11:02:55]SAM_PROTO_GetShiftState done [11:02:55]FM_GetShiftState done [11:02:55]req_shift_opened done [11:02:55]requested_item shift.open_date is exist - process it [11:02:55]req_shift_open_date [11:02:55]req_shift_open_date done [11:02:55]produce_requested_data done [11:02:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164540,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:02:55]process_action_free close_receipt [11:02:55]json_value_free [11:02:55]json_value_free done [11:02:55]process_json_proto returns [11:02:55]Send response to host [11:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164540,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:02:55]free response buf [11:02:55]execute_script done [11:02:55]execute_script returns [11:02:55]free content buf [11:02:55]Sock 7.Close socket [11:02:55]Sock 7.Thread stoped [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:15]accept exits with 9 [11:03:15]New connection [11:03:15]New thread 3067149668 created [11:03:15]Thread 3067293028 joined [11:03:15]Waiting for new connection... [11:03:15] Sock 9.Parse request [11:03:15]Sock 9.Check first char [11:03:15]Sock 9.First char is OK [11:03:15]request: POST /json_proto HTTP/1.0 [11:03:15]Method: POST [11:03:15]URL: /json_proto [11:03:15]Method is POST - this is cgi request [11:03:15]url: /json_proto [11:03:15]query_string will be loaded in cgi processing [11:03:15]execute_cgi json_proto POST (null) [11:03:15]execute_cgi path=json_proto method=POST [11:03:15]POST find Content-Length [11:03:15]Host: 172.17.56.4:8080 [11:03:15]Content-Length: 637 [11:03:15]Content-Type: application/json [11:03:15] [11:03:15]POST finish read [11:03:15]Found Content-Length = 637 [11:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:15]execute_script... [11:03: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)458630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:15]POST & json_proto [11:03:15]process_json_proto [11:03:15]json parsed OK: [11:03:15]protocol is kg_v1.0 [11:03:15]action value=close_receipt [11:03:15]process_action close_receipt [11:03:15]cmd_close_receipt [11:03:15]MH_GetDate [11:03:15]Write to MH i2c: F0 00 00 7F 0D 7B [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: F0 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: F0 09 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: F0 09 00 7F 0D 00 F4 5E 92 66 C9 DC B2 64 89 [11:03:15]GetLastDocTimeStamp 1720868573 [11:03:15]current date 1720868596 [11:03:15]FM_GetShiftState [11:03:15]SAM_PROTO_GetShiftState [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 13 01 00 [11:03:15]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0E 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EB [11:03:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:03:15]wFMCommunicate OK [11:03:15]SAM_PROTO_GetShiftState done [11:03:15]FM_GetShiftState done [11:03:15]opened in 1720831249 [11:03:15]opened+sec_in_day 1720917649 [11:03:15]quantity*price = 71900 [11:03:15]sum+1 = 71901 [11:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 101 13.07.2024 11:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164541 ФПД: 261433285883467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164541&fm=261433285883467&tin=02508201610067®Number=0000000000090829&sum=71900 [11:03:16]StoreToDocumentArchive [11:03:16]shift 446 fd 164541 [11:03:16]save to /storage/0446/doc_00164541 [11:03:16]save last doc name /storage/0446/doc_00164541 to /storage/kkm_last_doc_name [11:03:16]save OK [11:03:16]Clear old archive folders... [11:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:03:16]tlvbuf is 0144C8B0 [11:03:16]SAM_PROTO_ClearQueue [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 09 00 00 [11:03:16]Write to MH i2c: E2 08 00 8D 0D 80 09 00 00 00 00 00 00 0C [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [11:03:16]RAPDU: 90 00 [11:03:16]wFMCommunicate OK [11:03:16]SAM_PROTO_ClearQueue done [11:03:16]KKMCreateOFDPacket [11:03:16]OFDProtocolAddRootSTLVToBuf [11:03:16]FM_MakeSignedData [11:03:16]FM_MakeSignedData [11:03:16]SAM_PROTO_SignData [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 0D 01 02 [11:03:16]Write to MH i2c: E2 08 00 8E 0D 80 0D 01 02 00 00 00 00 14 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [11:03:16]RAPDU: 90 00 [11:03:16]wFMCommunicate OK [11:03:16]wFMCommunicate request_size=255 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 F4 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 82 02 00 35 04 06 00 ED C5 AE 23 [11:03:16]Write to MH i2c: E2 02 01 8F 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 F4 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 82 02 00 35 04 06 00 ED C5 AE 23 00 00 5F [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 03 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [11:03:17]RAPDU: 90 00 [11:03:17]wFMCommunicate OK [11:03:17]wFMCommunicate request_size=7 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 0D 02 02 02 36 4B [11:03:17]Write to MH i2c: E2 0A 00 90 0D 80 0D 02 02 02 00 36 4B 00 00 9C [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 03 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [11:03:17]RAPDU: 90 00 [11:03:17]wFMCommunicate OK [11:03:17]wFMCommunicate request_size=4 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 0D 03 02 [11:03:17]Write to MH i2c: E2 08 00 91 0D 80 0D 03 02 00 00 00 00 19 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 0B 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 0B 00 91 0D 00 65 10 72 DB 96 3B 83 53 90 00 83 [11:03:17]RAPDU: 65 10 72 DB 96 3B 83 53 90 00 [11:03:17]wFMCommunicate OK [11:03:17]SAM_PROTO_SignData done [11:03:17]FM_MakeSignedData done [11:03:17]CreateOFDProtocolMessage [11:03:17]wFMCommunicate request_size=4 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 11 00 00 [11:03:17]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 17 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [11:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:17]wFMCommunicate OK [11:03:17]CreateOFDProtocolMessage done [11:03:17]OFDSenderStorePacket 164541 [11:03:17]StoreOFDPacket docnum=164541 [11:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FA 78 04 01 E7 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 F4 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 82 02 00 35 04 06 00 ED C5 AE 23 36 4B 65 10 72 DB 96 3B 83 53 [11:03:17]CheckFolder [11:03:17]dirname=/storage/ofd_packets [11:03:17]CheckFolder done [11:03:17]ProducePacketName [11:03:17]name=ofd_packets/00164541 [11:03:17]NVStorageSaveData ofd_packets/00164541 [11:03:17]File name is /storage/ofd_packets/00164541 [11:03:17]Write 298 bytes [11:03:17]NVStorageSaveData done [11:03:17]OFDSenderStorePacket done [11:03:17]KKMCreateOFDPacket done [11:03:17]NVStorageSaveData kkm_last_timestamp [11:03:17]File name is /storage/kkm_last_timestamp [11:03:17]Write 4 bytes [11:03:17]NVStorageSaveData done [11:03:17]ExternCall_PrintAddStr [11:03:17]wPrintStart [11:03:17]Write to MH i2c: 01 00 00 93 0D A0 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [11:03:17]RasterBufferAndPrint [11:03:17]line Счет N : (1)458630 [11:03:17]line ИНН: 02508201610067 [11:03:17]line Контрольно-Кассовый Чек [11:03:17]line ПРОДАЖА [11:03:17]line ТРК (МРК, ГНК) : 21 [11:03:17]line Товар: 2710194210 [11:03:17]line ДТ-К-5 [11:03:17]line 10.000 * 71.90 [11:03:17]line = 719.00 [11:03:17]line НДС 12% НСП 1% [11:03:17]line > о реализуемом товаре [11:03:17]line ИТОГО: 719.00 [11:03:17]line НСП 1% : 6.36 [11:03:17]line НДС 12% : 76.35 [11:03:17]line Наличными: 719.00 [11:03:17]line Безнал.: 0.00 [11:03:17]line Место: АЗС № 72 "Партнер Нефть" [11:03:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:03:17]line СНО: Общий режим [11:03:17]line Чек 101 13.07.2024 11:03 [11:03:17]line Смена: 446 ФФД: 1.0 [11:03:17]line ЗНМ: 0300000160 [11:03:17]line РНМ: 0000000000090829 [11:03:17]line Версия ККМ: 001 [11:03:17]line ФМ: 0000000000874718 [11:03:17]line ФД: 164541 [11:03:17]line ФПД: 261433285883467 [11:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164541&fm=261433285883467&tin=02508201610067®Number=0000000000090829&sum=71900 [11:03:17]OFD Sender: Processing packet 164541 [packets to send 104, broken 103] [11:03:17]ProducePacketName [11:03:17]name=ofd_packets/00164541 [11:03:17]OFD Sender: To server: pG, [11:03:17]CommunicateWithHost lk.salyk.kg:30040 [11:03:17]ConnectInit lk.salyk.kg [11:03:17]written 0, free lines is 4095 [11:03:17]Connected sock=10 [11:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FA 78 04 01 E7 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 F4 5E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 82 02 00 35 04 06 00 ED C5 AE 23 36 4B 65 10 72 DB 96 3B 83 53 [11:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F3 C0 47 00 14 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 82 02 00 F4 03 04 00 85 05 92 66 B6 04 01 00 00 6C 5A 93 7F C1 1C 73 12 [11:03:17]CommunicateWithHost err = 0 [11:03:17]CheckOFDResponse [11:03:17]1017 (14) - 77093643461234 [11:03:17]1041 (16) - 0000000000874718 [11:03:17]1040 (4) - 164541 [11:03:17]1012 (4) - 13.07.2024 04:41 [11:03:17]1206 (1) - 0 [11:03:17]OFD Sender: Remove packet 164541 [11:03:17]ProducePacketName [11:03:17]name=ofd_packets/00164541 [11:03:17]NVStorageDeleteData [11:03:17]Write to MH i2c: 01 00 00 BA 0D C7 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 2B 0D 06 [11:03:17]RasterBufferAndPrint [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]line [11:03:17]written 0, free lines is 3377 [11:03:17]MH_Cut [11:03:17]Write to MH i2c: D1 01 00 C1 0D 01 A0 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 01 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: D1 01 00 C1 0D 00 9F [11:03:17]Write to MH i2c: 01 00 00 C2 0D CF [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:18]OFD Sender: No OFD packet to send [11:03:18]*** Cut start [11:03:18]*** Partial cut [11:03:18]*** CUTSNS_PIN = 1 [11:03:18]*** CUTSNS_PIN = 0 [11:03:18]*** Brake cut motor [11:03:18]Read from MH i2c: 01 [11:03:18]MH_I2C_Read... [11:03:18]*** Stop cut motor [11:03:18]*** Cut end [11:03:18]Read from MH i2c: 01 07 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 FF 0F E4 [11:03:18]process_action close_receipt done [11:03:18]requested_data is exist [11:03:18]produce_requested_data [11:03:18]requested_item fm.sn is exist - process it [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 11 00 00 [11:03:18]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:19]Read from MH i2c: E2 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 17 00 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [11:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:19]wFMCommunicate OK [11:03:19]requested_item fd.num is exist - process it [11:03:19]SAM_PROTO_GetFieldsCounters [11:03:19]wFMCommunicate request_size=4 [11:03:19]MH_SAM_APDU [11:03:19]CAPDU: 80 13 00 00 [11:03:19]Write to MH i2c: E2 08 00 C4 0D 80 13 00 00 00 00 00 00 4D [11:03:19]Write i2c OK [11:03:19]MH_I2C_Read... [11:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:19]Read from MH i2c: E2 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 62 00 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 62 00 C4 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 82 02 00 0E 04 04 00 BE 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 A3 [11:03: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 82 02 00 0E 04 04 00 BE 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 [11:03:19]wFMCommunicate OK [11:03:19]SAM_PROTO_GetFieldsCounters done [11:03:19]requested_item shift.num is exist - process it [11:03:19]requested_item shift.opened is exist - process it [11:03:19]req_shift_opened [11:03:19]FM_GetShiftState [11:03:19]SAM_PROTO_GetShiftState [11:03:19]wFMCommunicate request_size=4 [11:03:19]MH_SAM_APDU [11:03:19]CAPDU: 80 13 01 00 [11:03:19]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [11:03:19]Write i2c OK [11:03:19]MH_I2C_Read... [11:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:19]Read from MH i2c: E2 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 0E 00 [11:03:19]MH_I2C_Read... [11:03:19]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 30 [11:03:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:03:19]wFMCommunicate OK [11:03:19]SAM_PROTO_GetShiftState done [11:03:19]FM_GetShiftState done [11:03:19]req_shift_opened done [11:03:19]requested_item shift.open_date is exist - process it [11:03:19]req_shift_open_date [11:03:19]req_shift_open_date done [11:03:19]produce_requested_data done [11:03:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164541,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:03:19]process_action_free close_receipt [11:03:19]json_value_free [11:03:19]json_value_free done [11:03:19]process_json_proto returns [11:03:19]Send response to host [11:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164541,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:03:19]free response buf [11:03:19]execute_script done [11:03:19]execute_script returns [11:03:19]free content buf [11:03:19]Sock 9.Close socket [11:03:19]Sock 9.Thread stoped [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]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]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [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:50]accept exits with 7 [11:11:50]New connection [11:11:50]New thread 3067293028 created [11:11:50]Thread 3067149668 joined [11:11:50]Waiting for new connection... [11:11:50] Sock 7.Parse request [11:11:50]Sock 7.Check first char [11:11:50]Sock 7.First char is OK [11:11:50]request: POST /json_proto HTTP/1.0 [11:11:50]Method: POST [11:11:50]URL: /json_proto [11:11:50]Method is POST - this is cgi request [11:11:50]url: /json_proto [11:11:50]query_string will be loaded in cgi processing [11:11:50]execute_cgi json_proto POST (null) [11:11:50]execute_cgi path=json_proto method=POST [11:11:50]POST find Content-Length [11:11:50]Host: 172.17.56.4:8080 [11:11:50]Content-Length: 1197 [11:11:50]Content-Type: application/json [11:11:50] [11:11:50]POST finish read [11:11:50]Found Content-Length = 1197 [11:11:50]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458631\u000A13.07.2024 10:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040657\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]execute_script... [11:11:50]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458631\u000A13.07.2024 10:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040657\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:50]POST & json_proto [11:11:50]process_json_proto [11:11:50]json parsed OK: [11:11:50]protocol is kg_v1.0 [11:11:50]action value=print_text [11:11:50]process_action print_text [11:11:50]cmd_print_text [11:11:50]ExternCall_PrintAddStr [11:11:50]wPrintStart [11:11:50]Write to MH i2c: 01 00 00 C6 0D D3 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: 01 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: 01 07 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: 01 07 00 C6 0D 00 00 00 00 00 FF 0F E8 [11:11:50]RasterBufferAndPrint [11:11:50]line *****ТОВАРНЫЙ ЧЕК***** [11:11:50]line АЗС 72 [11:11:50]line Партнер нефть [11:11:50]line 02508201610067 [11:11:50]line Кассир : Женишбеков Т. [11:11:50]line Счет N : (1)458631 [11:11:50]line 13.07.2024 10:37 [11:11:50]line ПРОДАЖА [11:11:50]line ТРК (МРК, ГНК): 12 [11:11:50]line Вид ГСМ : 2710124130 [11:11:50]line Аи-92-К-5 [11:11:50]line 20.000 x 65.80 [11:11:50]line ИТОГ: 1316.00 [11:11:50]line Тип оплаты: Талоны: Партнер нефть [11:11:50]line 3040657 [11:11:50]line ______________________ [11:11:50]line (подпись) [11:11:50]written 0, free lines is 4095 [11:11:51]Write to MH i2c: 01 00 00 DB 0D E8 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 F6 0D F2 [11:11:51]RasterBufferAndPrint [11:11:51]line [11:11:51]line [11:11:51]line [11:11:51]line [11:11:51]line [11:11:51]written 0, free lines is 3576 [11:11:51]MH_Cut [11:11:51]Write to MH i2c: D1 01 00 E2 0D 01 C1 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: D1 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: D1 01 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: D1 01 00 E2 0D 00 C0 [11:11:51]Write to MH i2c: 01 00 00 E3 0D F0 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** Cut start [11:11:51]*** Partial cut [11:11:51]*** CUTSNS_PIN = 1 [11:11:51]*** CUTSNS_PIN = 0 [11:11:51]*** Brake cut motor [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]*** Stop cut motor [11:11:52]*** Cut end [11:11:52]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 FF 0F 05 [11:11:52]process_action print_text done [11:11:52]requested_data is exist [11:11:52]produce_requested_data [11:11:52]requested_item fm.sn is exist - process it [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 11 00 00 [11:11:52]Write to MH i2c: E2 08 00 E4 0D 80 11 00 00 00 00 00 00 6B [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 17 00 E4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [11:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:11:52]wFMCommunicate OK [11:11:52]requested_item fd.num is exist - process it [11:11:52]SAM_PROTO_GetFieldsCounters [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 13 00 00 [11:11:52]Write to MH i2c: E2 08 00 E5 0D 80 13 00 00 00 00 00 00 6E [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 62 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 62 00 E5 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 82 02 00 0E 04 04 00 BE 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 C4 [11:11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 82 02 00 0E 04 04 00 BE 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 [11:11:52]wFMCommunicate OK [11:11:52]SAM_PROTO_GetFieldsCounters done [11:11:52]requested_item shift.num is exist - process it [11:11:52]requested_item shift.opened is exist - process it [11:11:52]req_shift_opened [11:11:52]FM_GetShiftState [11:11:52]SAM_PROTO_GetShiftState [11:11:52]wFMCommunicate request_size=4 [11:11:52]MH_SAM_APDU [11:11:52]CAPDU: 80 13 01 00 [11:11:52]Write to MH i2c: E2 08 00 E6 0D 80 13 01 00 00 00 00 00 70 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:52]Read from MH i2c: E2 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: E2 0E 00 E6 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 51 [11:11:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:11:52]wFMCommunicate OK [11:11:52]SAM_PROTO_GetShiftState done [11:11:52]FM_GetShiftState done [11:11:52]req_shift_opened done [11:11:52]requested_item shift.open_date is exist - process it [11:11:52]req_shift_open_date [11:11:52]req_shift_open_date done [11:11:52]produce_requested_data done [11:11:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164541,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:11:52]process_action_free print_text [11:11:52]json_value_free [11:11:52]json_value_free done [11:11:52]process_json_proto returns [11:11:52]Send response to host [11:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164541,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:11:52]free response buf [11:11:52]execute_script done [11:11:52]execute_script returns [11:11:52]free content buf [11:11:52]Sock 7.Close socket [11:11:52]Sock 7.Thread stoped [11:11:53]OFD Sender: No OFD packet to send [11:11:58]accept exits with 9 [11:11:58]New connection [11:11:58]New thread 3067149668 created [11:11:58]Thread 3067293028 joined [11:11:58]Waiting for new connection... [11:11:58] Sock 9.Parse request [11:11:58]Sock 9.Check first char [11:11:58]Sock 9.First char is OK [11:11:58]request: POST /json_proto HTTP/1.0 [11:11:58]Method: POST [11:11:58]URL: /json_proto [11:11:58]Method is POST - this is cgi request [11:11:58]url: /json_proto [11:11:58]query_string will be loaded in cgi processing [11:11:58]execute_cgi json_proto POST (null) [11:11:58]execute_cgi path=json_proto method=POST [11:11:58]POST find Content-Length [11:11:58]Host: 172.17.56.4:8080 [11:11:58]Content-Length: 677 [11:11:58]Content-Type: application/json [11:11:58] [11:11:58]POST finish read [11:11:58]Found Content-Length = 677 [11:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:58]execute_script... [11: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)458632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:58]POST & json_proto [11:11:58]process_json_proto [11:11:58]json parsed OK: [11:11:58]protocol is kg_v1.0 [11:11:58]action value=close_receipt [11:11:58]process_action close_receipt [11:11:58]cmd_close_receipt [11:11:58]MH_GetDate [11:11:58]Write to MH i2c: F0 00 00 E7 0D E3 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 E7 0D 00 00 61 92 66 C9 DC B2 64 00 [11:11:58]GetLastDocTimeStamp 1720868596 [11:11:58]current date 1720869120 [11:11:58]FM_GetShiftState [11:11:58]SAM_PROTO_GetShiftState [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 01 00 [11:11:58]Write to MH i2c: E2 08 00 E8 0D 80 13 01 00 00 00 00 00 72 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 E8 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 53 [11:11:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetShiftState done [11:11:58]FM_GetShiftState done [11:11:58]opened in 1720831249 [11:11:58]opened+sec_in_day 1720917649 [11:11:58]quantity*price = 20003 [11:11:58]sum+1 = 20004 [11:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 102 13.07.2024 11:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164542 ФПД: 272806875006382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164542&fm=272806875006382&tin=02508201610067®Number=0000000000090829&sum=20000 [11:11:59]StoreToDocumentArchive [11:11:59]shift 446 fd 164542 [11:11:59]save to /storage/0446/doc_00164542 [11:11:59]save last doc name /storage/0446/doc_00164542 to /storage/kkm_last_doc_name [11:11:59]save OK [11:11:59]Clear old archive folders... [11:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:59]tlvbuf is 01449CC0 [11:11:59]SAM_PROTO_ClearQueue [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 09 00 00 [11:11:59]Write to MH i2c: E2 08 00 F5 0D 80 09 00 00 00 00 00 00 74 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_ClearQueue done [11:11:59]KKMCreateOFDPacket [11:11:59]OFDProtocolAddRootSTLVToBuf [11:11:59]FM_MakeSignedData [11:11:59]FM_MakeSignedData [11:11:59]SAM_PROTO_SignData [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 01 02 [11:11:59]Write to MH i2c: E2 08 00 F6 0D 80 0D 01 02 00 00 00 00 7C [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=255 [11:11:59]MH_SAM_APDU [11: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 00 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 82 02 00 35 04 06 00 F8 [11:11:59]Write to MH i2c: E2 02 01 F7 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 00 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 82 02 00 35 04 06 00 F8 00 00 4E [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=10 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 02 02 05 1D CC E0 85 AE [11:12:00]Write to MH i2c: E2 0D 00 F8 0D 80 0D 02 02 05 00 1D CC E0 85 AE 00 00 85 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 03 02 [11:12:00]Write to MH i2c: E2 08 00 F9 0D 80 0D 03 02 00 00 00 00 81 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 F9 0D 00 12 E2 95 01 B2 FE 60 A6 90 00 C2 [11:12:00]RAPDU: 12 E2 95 01 B2 FE 60 A6 90 00 [11:12:00]wFMCommunicate OK [11:12:00]SAM_PROTO_SignData done [11:12:00]FM_MakeSignedData done [11:12:00]CreateOFDProtocolMessage [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 11 00 00 [11:12:00]Write to MH i2c: E2 08 00 FA 0D 80 11 00 00 00 00 00 00 81 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 FA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [11:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:12:00]wFMCommunicate OK [11:12:00]CreateOFDProtocolMessage done [11:12:00]OFDSenderStorePacket 164542 [11:12:00]StoreOFDPacket docnum=164542 [11:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 84 07 01 A9 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 00 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 82 02 00 35 04 06 00 F8 1D CC E0 85 AE 12 E2 95 01 B2 FE 60 A6 [11:12:00]CheckFolder [11:12:00]dirname=/storage/ofd_packets [11:12:00]CheckFolder done [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00164542 [11:12:00]NVStorageSaveData ofd_packets/00164542 [11:12:00]File name is /storage/ofd_packets/00164542 [11:12:00]Write 301 bytes [11:12:00]NVStorageSaveData done [11:12:00]OFDSenderStorePacket done [11:12:00]KKMCreateOFDPacket done [11:12:00]NVStorageSaveData kkm_last_timestamp [11:12:00]File name is /storage/kkm_last_timestamp [11:12:00]Write 4 bytes [11:12:00]NVStorageSaveData done [11:12:00]ExternCall_PrintAddStr [11:12:00]wPrintStart [11:12:00]Write to MH i2c: 01 00 00 FB 0D 08 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 FB 0D 00 00 00 00 00 FF 0F 1D [11:12:00]RasterBufferAndPrint [11:12:00]line Счет N : (1)458632 [11:12:00]line ИНН: 02508201610067 [11:12:00]line Контрольно-Кассовый Чек [11:12:00]line ПРОДАЖА [11:12:00]line ТРК (МРК, ГНК) : 22 [11:12:00]line Товар: 2710124130 [11:12:00]line Аи-92-К-5 [11:12:00]line 3.040 * 65.80 [11:12:00]line = 200.03 [11:12:00]line НДС 12% НСП 1% [11:12:00]line > о реализуемом товаре [11:12:00]line ОКРУГЛЕНИЕ: -0.03 [11:12:00]line ИТОГО: 200.00 [11:12:00]line Внесено: 200.00 [11:12:00]line СДАЧА: 0.00 [11:12:00]line НСП 1% : 1.77 [11:12:00]line НДС 12% : 21.24 [11:12:00]line Наличными: 200.00 [11:12:00]line Безнал.: 0.00 [11:12:00]line Место: АЗС № 72 "Партнер Нефть" [11:12:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:12:00]line СНО: Общий режим [11:12:00]line Чек 102 13.07.2024 11:12 [11:12:00]line Смена: 446 ФФД: 1.0 [11:12:00]line ЗНМ: 0300000160 [11:12:00]line РНМ: 0000000000090829 [11:12:00]line Версия ККМ: 001 [11:12:00]line ФМ: 0000000000874718 [11:12:00]line ФД: 164542 [11:12:00]line ФПД: 272806875006382 [11:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164542&fm=272806875006382&tin=02508201610067®Number=0000000000090829&sum=20000 [11:12:00]OFD Sender: Processing packet 164542 [packets to send 104, broken 103] [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00164542 [11:12:00]OFD Sender: To server: pG, [11:12:00]CommunicateWithHost lk.salyk.kg:30040 [11:12:00]ConnectInit lk.salyk.kg [11:12:00]written 0, free lines is 4095 [11:12:00]Connected sock=10 [11: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 34 37 31 38 0F 01 00 00 FC 84 07 01 A9 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 00 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 82 02 00 35 04 06 00 F8 1D CC E0 85 AE 12 E2 95 01 B2 FE 60 A6 [11:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E7 E2 47 00 E6 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 34 37 31 38 10 04 04 00 BE 82 02 00 F4 03 04 00 91 07 92 66 B6 04 01 00 00 F9 11 F9 51 87 B6 40 C1 [11:12:00]CommunicateWithHost err = 0 [11:12:00]CheckOFDResponse [11:12:00]1017 (14) - 77093643461234 [11:12:00]1041 (16) - 0000000000874718 [11:12:00]1040 (4) - 164542 [11:12:00]1012 (4) - 13.07.2024 04:50 [11:12:00]1206 (1) - 0 [11:12:00]OFD Sender: Remove packet 164542 [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00164542 [11:12:00]NVStorageDeleteData [11:12:01]Write to MH i2c: 01 00 00 25 0E 33 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FE 0C 44 [11:12:01]RasterBufferAndPrint [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]written 0, free lines is 3332 [11:12:01]MH_Cut [11:12:01]Write to MH i2c: D1 01 00 2C 0E 01 0C [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 01 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 01 00 2C 0E 00 0B [11:12:01]Write to MH i2c: 01 00 00 2D 0E 3B [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]OFD Sender: No OFD packet to send [11:12:01]*** Cut start [11:12:01]*** Partial cut [11:12:01]*** CUTSNS_PIN = 1 [11:12:01]*** CUTSNS_PIN = 0 [11:12:01]*** Brake cut motor [11:12:02]Read from MH i2c: 01 [11:12:02]MH_I2C_Read... [11:12:02]*** Stop cut motor [11:12:02]*** Cut end [11:12:02]Read from MH i2c: 01 07 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 FF 0F 50 [11:12:02]process_action close_receipt done [11:12:02]requested_data is exist [11:12:02]produce_requested_data [11:12:02]requested_item fm.sn is exist - process it [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 11 00 00 [11:12:02]Write to MH i2c: E2 08 00 2E 0E 80 11 00 00 00 00 00 00 B6 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 17 00 2E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [11:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:12:02]wFMCommunicate OK [11:12:02]requested_item fd.num is exist - process it [11:12:02]SAM_PROTO_GetFieldsCounters [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 13 00 00 [11:12:02]Write to MH i2c: E2 08 00 2F 0E 80 13 00 00 00 00 00 00 B9 [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 62 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 62 00 2F 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 82 02 00 0E 04 04 00 BE 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 [11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_GetFieldsCounters done [11:12:02]requested_item shift.num is exist - process it [11:12:02]requested_item shift.opened is exist - process it [11:12:02]req_shift_opened [11:12:02]FM_GetShiftState [11:12:02]SAM_PROTO_GetShiftState [11:12:02]wFMCommunicate request_size=4 [11:12:02]MH_SAM_APDU [11:12:02]CAPDU: 80 13 01 00 [11:12:02]Write to MH i2c: E2 08 00 30 0E 80 13 01 00 00 00 00 00 BB [11:12:02]Write i2c OK [11:12:02]MH_I2C_Read... [11:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:02]Read from MH i2c: E2 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0E 00 [11:12:02]MH_I2C_Read... [11:12:02]Read from MH i2c: E2 0E 00 30 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9C [11:12:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:12:02]wFMCommunicate OK [11:12:02]SAM_PROTO_GetShiftState done [11:12:02]FM_GetShiftState done [11:12:02]req_shift_opened done [11:12:02]requested_item shift.open_date is exist - process it [11:12:02]req_shift_open_date [11:12:02]req_shift_open_date done [11:12:02]produce_requested_data done [11:12:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164542,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:12:02]process_action_free close_receipt [11:12:02]json_value_free [11:12:02]json_value_free done [11:12:02]process_json_proto returns [11:12:02]Send response to host [11:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164542,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:12:02]free response buf [11:12:02]execute_script done [11:12:02]execute_script returns [11:12:02]free content buf [11:12:02]Sock 9.Close socket [11:12:02]Sock 9.Thread stoped [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:14:57]accept exits with 7 [11:14:57]New connection [11:14:57]New thread 3067293028 created [11:14:57]Thread 3067149668 joined [11:14:57]Waiting for new connection... [11:14:57] Sock 7.Parse request [11:14:57]Sock 7.Check first char [11:14:57]Sock 7.First char is OK [11:14:57]request: POST /json_proto HTTP/1.0 [11:14:57]Method: POST [11:14:57]URL: /json_proto [11:14:57]Method is POST - this is cgi request [11:14:57]url: /json_proto [11:14:57]query_string will be loaded in cgi processing [11:14:57]execute_cgi json_proto POST (null) [11:14:57]execute_cgi path=json_proto method=POST [11:14:57]POST find Content-Length [11:14:57]Host: 172.17.56.4:8080 [11:14:57]Content-Length: 677 [11:14:57]Content-Type: application/json [11:14:57] [11:14:57]POST finish read [11:14:57]Found Content-Length = 677 [11:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:57]execute_script... [11:14: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)458633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:57]POST & json_proto [11:14:57]process_json_proto [11:14:57]json parsed OK: [11:14:57]protocol is kg_v1.0 [11:14:57]action value=close_receipt [11:14:57]process_action close_receipt [11:14:57]cmd_close_receipt [11:14:57]MH_GetDate [11:14:57]Write to MH i2c: F0 00 00 31 0E 2E [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: F0 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: F0 09 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: F0 09 00 31 0E 00 B3 61 92 66 C9 DC B2 64 FE [11:14:57]GetLastDocTimeStamp 1720869120 [11:14:57]current date 1720869299 [11:14:57]FM_GetShiftState [11:14:57]SAM_PROTO_GetShiftState [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 13 01 00 [11:14:57]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9E [11:14:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:14:57]wFMCommunicate OK [11:14:57]SAM_PROTO_GetShiftState done [11:14:57]FM_GetShiftState done [11:14:57]opened in 1720831249 [11:14:57]opened+sec_in_day 1720917649 [11:14:57]quantity*price = 20003 [11:14:57]sum+1 = 20004 [11:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 103 13.07.2024 11:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164543 ФПД: 155415526287600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164543&fm=155415526287600&tin=02508201610067®Number=0000000000090829&sum=20000 [11:14:59]StoreToDocumentArchive [11:14:59]shift 446 fd 164543 [11:14:59]save to /storage/0446/doc_00164543 [11:14:59]save last doc name /storage/0446/doc_00164543 to /storage/kkm_last_doc_name [11:14:59]save OK [11:14:59]Clear old archive folders... [11:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:59]tlvbuf is 01449A00 [11:14:59]SAM_PROTO_ClearQueue [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 09 00 00 [11:14:59]Write to MH i2c: E2 08 00 3F 0E 80 09 00 00 00 00 00 00 BF [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_ClearQueue done [11:14:59]KKMCreateOFDPacket [11:14:59]OFDProtocolAddRootSTLVToBuf [11:14:59]FM_MakeSignedData [11:14:59]FM_MakeSignedData [11:14:59]SAM_PROTO_SignData [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 01 02 [11:14:59]Write to MH i2c: E2 08 00 40 0E 80 0D 01 02 00 00 00 00 C7 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=255 [11:14:59]MH_SAM_APDU [11:14: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 82 02 00 35 04 06 00 8D [11:14:59]Write to MH i2c: E2 02 01 41 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 82 02 00 35 04 06 00 8D 00 00 E3 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 41 0E 00 90 00 C3 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=10 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 02 02 05 59 7F 3C A8 F0 [11:14:59]Write to MH i2c: E2 0D 00 42 0E 80 0D 02 02 05 00 59 7F 3C A8 F0 00 00 80 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [11:14:59]RAPDU: 90 00 [11:14:59]wFMCommunicate OK [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 0D 03 02 [11:14:59]Write to MH i2c: E2 08 00 43 0E 80 0D 03 02 00 00 00 00 CC [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0B 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0B 00 43 0E 00 AE 8E 5C 91 96 C1 C1 75 90 00 83 [11:14:59]RAPDU: AE 8E 5C 91 96 C1 C1 75 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_SignData done [11:14:59]FM_MakeSignedData done [11:14:59]CreateOFDProtocolMessage [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 11 00 00 [11:14:59]Write to MH i2c: E2 08 00 44 0E 80 11 00 00 00 00 00 00 CC [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 44 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [11:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:14:59]wFMCommunicate OK [11:14:59]CreateOFDProtocolMessage done [11:14:59]OFDSenderStorePacket 164543 [11:14:59]StoreOFDPacket docnum=164543 [11:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 96 07 01 9B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 82 02 00 35 04 06 00 8D 59 7F 3C A8 F0 AE 8E 5C 91 96 C1 C1 75 [11:14:59]CheckFolder [11:14:59]dirname=/storage/ofd_packets [11:14:59]CheckFolder done [11:14:59]ProducePacketName [11:14:59]name=ofd_packets/00164543 [11:14:59]NVStorageSaveData ofd_packets/00164543 [11:14:59]File name is /storage/ofd_packets/00164543 [11:14:59]Write 301 bytes [11:14:59]NVStorageSaveData done [11:14:59]OFDSenderStorePacket done [11:14:59]KKMCreateOFDPacket done [11:14:59]NVStorageSaveData kkm_last_timestamp [11:14:59]File name is /storage/kkm_last_timestamp [11:14:59]Write 4 bytes [11:14:59]NVStorageSaveData done [11:14:59]ExternCall_PrintAddStr [11:14:59]wPrintStart [11:14:59]Write to MH i2c: 01 00 00 45 0E 53 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 07 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: 01 07 00 45 0E 00 00 00 00 00 FF 0F 68 [11:14:59]RasterBufferAndPrint [11:14:59]line Счет N : (1)458633 [11:14:59]line ИНН: 02508201610067 [11:14:59]line Контрольно-Кассовый Чек [11:14:59]line ПРОДАЖА [11:14:59]line ТРК (МРК, ГНК) : 12 [11:14:59]line Товар: 2710124130 [11:14:59]line Аи-92-К-5 [11:14:59]line 3.040 * 65.80 [11:14:59]line = 200.03 [11:14:59]line НДС 12% НСП 1% [11:14:59]line > о реализуемом товаре [11:14:59]line ОКРУГЛЕНИЕ: -0.03 [11:14:59]line ИТОГО: 200.00 [11:14:59]line Внесено: 200.00 [11:14:59]line СДАЧА: 0.00 [11:14:59]line НСП 1% : 1.77 [11:14:59]line НДС 12% : 21.24 [11:14:59]line Наличными: 200.00 [11:14:59]line Безнал.: 0.00 [11:14:59]line Место: АЗС № 72 "Партнер Нефть" [11:14:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:14:59]line СНО: Общий режим [11:14:59]line Чек 103 13.07.2024 11:14 [11:14:59]line Смена: 446 ФФД: 1.0 [11:14:59]line ЗНМ: 0300000160 [11:14:59]line РНМ: 0000000000090829 [11:14:59]line Версия ККМ: 001 [11:14:59]line ФМ: 0000000000874718 [11:14:59]line ФД: 164543 [11:14:59]line ФПД: 155415526287600 [11:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164543&fm=155415526287600&tin=02508201610067®Number=0000000000090829&sum=20000 [11:14:59]OFD Sender: Processing packet 164543 [packets to send 104, broken 103] [11:14:59]ProducePacketName [11:14:59]name=ofd_packets/00164543 [11:14:59]OFD Sender: To server: pG, [11:14:59]CommunicateWithHost lk.salyk.kg:30040 [11:14:59]ConnectInit lk.salyk.kg [11:14:59]written 0, free lines is 4095 [11:15:00]Connected sock=10 [11:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 96 07 01 9B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B3 61 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 82 02 00 35 04 06 00 8D 59 7F 3C A8 F0 AE 8E 5C 91 96 C1 C1 75 [11:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB E9 47 00 03 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 82 02 00 F4 03 04 00 44 08 92 66 B6 04 01 00 00 A2 67 EE 65 C3 6A 23 46 [11:15:00]CommunicateWithHost err = 0 [11:15:00]CheckOFDResponse [11:15:00]1017 (14) - 77093643461234 [11:15:00]1041 (16) - 0000000000874718 [11:15:00]1040 (4) - 164543 [11:15:00]1012 (4) - 13.07.2024 04:53 [11:15:00]1206 (1) - 0 [11:15:00]OFD Sender: Remove packet 164543 [11:15:00]ProducePacketName [11:15:00]name=ofd_packets/00164543 [11:15:00]NVStorageDeleteData [11:15:00]Write to MH i2c: 01 00 00 6F 0E 7D [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 06 0D 97 [11:15:00]RasterBufferAndPrint [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]line [11:15:00]written 0, free lines is 3340 [11:15:00]MH_Cut [11:15:00]Write to MH i2c: D1 01 00 76 0E 01 56 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 01 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: D1 01 00 76 0E 00 55 [11:15:00]Write to MH i2c: 01 00 00 77 0E 85 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]OFD Sender: No OFD packet to send [11:15:01]*** Cut start [11:15:01]*** Partial cut [11:15:01]*** CUTSNS_PIN = 1 [11:15:01]*** CUTSNS_PIN = 0 [11:15:01]*** Brake cut motor [11:15:01]Read from MH i2c: 01 [11:15:01]MH_I2C_Read... [11:15:01]*** Stop cut motor [11:15:01]*** Cut end [11:15:01]Read from MH i2c: 01 07 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [11:15:01]process_action close_receipt done [11:15:01]requested_data is exist [11:15:01]produce_requested_data [11:15:01]requested_item fm.sn is exist - process it [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 11 00 00 [11:15:01]Write to MH i2c: E2 08 00 78 0E 80 11 00 00 00 00 00 00 00 [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 17 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 17 00 78 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [11:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:15:01]wFMCommunicate OK [11:15:01]requested_item fd.num is exist - process it [11:15:01]SAM_PROTO_GetFieldsCounters [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 13 00 00 [11:15:01]Write to MH i2c: E2 08 00 79 0E 80 13 00 00 00 00 00 00 03 [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 62 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 62 00 79 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 82 02 00 0E 04 04 00 BE 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 61 [11:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_GetFieldsCounters done [11:15:01]requested_item shift.num is exist - process it [11:15:01]requested_item shift.opened is exist - process it [11:15:01]req_shift_opened [11:15:01]FM_GetShiftState [11:15:01]SAM_PROTO_GetShiftState [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 13 01 00 [11:15:01]Write to MH i2c: E2 08 00 7A 0E 80 13 01 00 00 00 00 00 05 [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 7A 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E6 [11:15:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_GetShiftState done [11:15:01]FM_GetShiftState done [11:15:01]req_shift_opened done [11:15:01]requested_item shift.open_date is exist - process it [11:15:01]req_shift_open_date [11:15:01]req_shift_open_date done [11:15:01]produce_requested_data done [11:15:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164543,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:15:01]process_action_free close_receipt [11:15:01]json_value_free [11:15:01]json_value_free done [11:15:01]process_json_proto returns [11:15:01]Send response to host [11:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164543,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:15:01]free response buf [11:15:01]execute_script done [11:15:01]execute_script returns [11:15:01]free content buf [11:15:01]Sock 7.Close socket [11:15:01]Sock 7.Thread stoped [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:36]accept exits with 9 [11:16:36]New connection [11:16:36]New thread 3067149668 created [11:16:36]Thread 3067293028 joined [11:16:36]Waiting for new connection... [11:16:36] Sock 9.Parse request [11:16:36]Sock 9.Check first char [11:16:36]Sock 9.First char is OK [11:16:36]request: POST /json_proto HTTP/1.0 [11:16:36]Method: POST [11:16:36]URL: /json_proto [11:16:36]Method is POST - this is cgi request [11:16:36]url: /json_proto [11:16:36]query_string will be loaded in cgi processing [11:16:36]execute_cgi json_proto POST (null) [11:16:36]execute_cgi path=json_proto method=POST [11:16:36]POST find Content-Length [11:16:36]Host: 172.17.56.4:8080 [11:16:36]Content-Length: 679 [11:16:36]Content-Type: application/json [11:16:36] [11:16:36]POST finish read [11:16:36]Found Content-Length = 679 [11:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:16:36]execute_script... [11:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:16:36]POST & json_proto [11:16:36]process_json_proto [11:16:36]json parsed OK: [11:16:36]protocol is kg_v1.0 [11:16:36]action value=close_receipt [11:16:36]process_action close_receipt [11:16:36]cmd_close_receipt [11:16:36]MH_GetDate [11:16:36]Write to MH i2c: F0 00 00 7B 0E 78 [11:16:36]Write i2c OK [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 09 00 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: F0 09 00 7B 0E 00 15 62 92 66 C9 DC B2 64 AB [11:16:36]GetLastDocTimeStamp 1720869299 [11:16:36]current date 1720869397 [11:16:36]FM_GetShiftState [11:16:36]SAM_PROTO_GetShiftState [11:16:36]wFMCommunicate request_size=4 [11:16:36]MH_SAM_APDU [11:16:36]CAPDU: 80 13 01 00 [11:16:36]Write to MH i2c: E2 08 00 7C 0E 80 13 01 00 00 00 00 00 07 [11:16:36]Write i2c OK [11:16:36]MH_I2C_Read... [11:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:36]Read from MH i2c: E2 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: E2 0E 00 [11:16:36]MH_I2C_Read... [11:16:36]Read from MH i2c: E2 0E 00 7C 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E8 [11:16:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:16:36]wFMCommunicate OK [11:16:36]SAM_PROTO_GetShiftState done [11:16:36]FM_GetShiftState done [11:16:36]opened in 1720831249 [11:16:36]opened+sec_in_day 1720917649 [11:16:36]quantity*price = 100012 [11:16:36]sum+1 = 100014 [11:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 104 13.07.2024 11:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164544 ФПД: 111100560298355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111637&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164544&fm=111100560298355&tin=02508201610067®Number=0000000000090829&sum=100000 [11:16:37]StoreToDocumentArchive [11:16:37]shift 446 fd 164544 [11:16:37]save to /storage/0446/doc_00164544 [11:16:37]save last doc name /storage/0446/doc_00164544 to /storage/kkm_last_doc_name [11:16:37]save OK [11:16:37]Clear old archive folders... [11:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:37]tlvbuf is 014747E0 [11:16:37]SAM_PROTO_ClearQueue [11:16:37]wFMCommunicate request_size=4 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 09 00 00 [11:16:37]Write to MH i2c: E2 08 00 89 0E 80 09 00 00 00 00 00 00 09 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [11:16:37]RAPDU: 90 00 [11:16:37]wFMCommunicate OK [11:16:37]SAM_PROTO_ClearQueue done [11:16:37]KKMCreateOFDPacket [11:16:37]OFDProtocolAddRootSTLVToBuf [11:16:37]FM_MakeSignedData [11:16:37]FM_MakeSignedData [11:16:37]SAM_PROTO_SignData [11:16:37]wFMCommunicate request_size=4 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 0D 01 02 [11:16:37]Write to MH i2c: E2 08 00 8A 0E 80 0D 01 02 00 00 00 00 11 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [11:16:37]RAPDU: 90 00 [11:16:37]wFMCommunicate OK [11:16:37]wFMCommunicate request_size=255 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 00 00 00 F4 03 04 00 15 62 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 82 02 00 35 04 06 00 65 0B 9D 6E [11:16:37]Write to MH i2c: E2 02 01 8B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 00 00 00 F4 03 04 00 15 62 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 82 02 00 35 04 06 00 65 0B 9D 6E 00 00 27 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [11:16:37]RAPDU: 90 00 [11:16:37]wFMCommunicate OK [11:16:37]wFMCommunicate request_size=7 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 0D 02 02 02 51 73 [11:16:37]Write to MH i2c: E2 0A 00 8C 0E 80 0D 02 02 02 00 51 73 00 00 DC [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [11:16:37]RAPDU: 90 00 [11:16:37]wFMCommunicate OK [11:16:37]wFMCommunicate request_size=4 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 0D 03 02 [11:16:37]Write to MH i2c: E2 08 00 8D 0E 80 0D 03 02 00 00 00 00 16 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 0B 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 0B 00 8D 0E 00 87 2B 7C 5E F2 DF 56 FD 90 00 C7 [11:16:37]RAPDU: 87 2B 7C 5E F2 DF 56 FD 90 00 [11:16:37]wFMCommunicate OK [11:16:37]SAM_PROTO_SignData done [11:16:37]FM_MakeSignedData done [11:16:37]CreateOFDProtocolMessage [11:16:37]wFMCommunicate request_size=4 [11:16:37]MH_SAM_APDU [11:16:37]CAPDU: 80 11 00 00 [11:16:37]Write to MH i2c: E2 08 00 8E 0E 80 11 00 00 00 00 00 00 16 [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:37]Read from MH i2c: E2 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 17 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: E2 17 00 8E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [11:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:37]wFMCommunicate OK [11:16:37]CreateOFDProtocolMessage done [11:16:37]OFDSenderStorePacket 164544 [11:16:37]StoreOFDPacket docnum=164544 [11:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 A6 04 01 BB 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 00 00 00 F4 03 04 00 15 62 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 82 02 00 35 04 06 00 65 0B 9D 6E 51 73 87 2B 7C 5E F2 DF 56 FD [11:16:37]CheckFolder [11:16:37]dirname=/storage/ofd_packets [11:16:37]CheckFolder done [11:16:37]ProducePacketName [11:16:37]name=ofd_packets/00164544 [11:16:37]NVStorageSaveData ofd_packets/00164544 [11:16:37]File name is /storage/ofd_packets/00164544 [11:16:37]Write 298 bytes [11:16:37]NVStorageSaveData done [11:16:37]OFDSenderStorePacket done [11:16:37]KKMCreateOFDPacket done [11:16:37]NVStorageSaveData kkm_last_timestamp [11:16:37]File name is /storage/kkm_last_timestamp [11:16:37]Write 4 bytes [11:16:37]NVStorageSaveData done [11:16:37]ExternCall_PrintAddStr [11:16:37]wPrintStart [11:16:37]Write to MH i2c: 01 00 00 8F 0E 9D [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 07 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 07 00 8F 0E 00 00 00 00 00 FF 0F B2 [11:16:37]RasterBufferAndPrint [11:16:37]line Счет N : (1)458634 [11:16:37]line ИНН: 02508201610067 [11:16:37]line Контрольно-Кассовый Чек [11:16:37]line ПРОДАЖА [11:16:37]line ТРК (МРК, ГНК) : 21 [11:16:37]line Товар: 2710194210 [11:16:37]line ДТ-К-5 [11:16:37]line 13.910 * 71.90 [11:16:37]line = 1000.13 [11:16:37]line НДС 12% НСП 1% [11:16:37]line > о реализуемом товаре [11:16:37]line ОКРУГЛЕНИЕ: -0.13 [11:16:37]line ИТОГО: 1000.00 [11:16:37]line Внесено: 1000.00 [11:16:37]line СДАЧА: 0.00 [11:16:37]line НСП 1% : 8.85 [11:16:37]line НДС 12% : 106.21 [11:16:37]line Наличными: 1000.00 [11:16:37]line Безнал.: 0.00 [11:16:37]line Место: АЗС № 72 "Партнер Нефть" [11:16:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:16:37]line СНО: Общий режим [11:16:37]line Чек 104 13.07.2024 11:16 [11:16:37]line Смена: 446 ФФД: 1.0 [11:16:37]line ЗНМ: 0300000160 [11:16:37]line РНМ: 0000000000090829 [11:16:37]line Версия ККМ: 001 [11:16:37]line ФМ: 0000000000874718 [11:16:37]line ФД: 164544 [11:16:37]line ФПД: 111100560298355 [11:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111637&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164544&fm=111100560298355&tin=02508201610067®Number=0000000000090829&sum=100000 [11:16:38]OFD Sender: Processing packet 164544 [packets to send 104, broken 103] [11:16:38]ProducePacketName [11:16:38]name=ofd_packets/00164544 [11:16:38]OFD Sender: To server: pG, [11:16:38]CommunicateWithHost lk.salyk.kg:30040 [11:16:38]ConnectInit lk.salyk.kg [11:16:38]written 0, free lines is 4095 [11:16:38]Connected sock=10 [11:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 A6 04 01 BB 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 00 00 00 F4 03 04 00 15 62 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 82 02 00 35 04 06 00 65 0B 9D 6E 51 73 87 2B 7C 5E F2 DF 56 FD [11:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D FE 47 00 77 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 34 37 31 38 10 04 04 00 C0 82 02 00 F4 03 04 00 A6 08 92 66 B6 04 01 00 00 AB 38 84 12 24 63 FB C4 [11:16:38]CommunicateWithHost err = 0 [11:16:38]CheckOFDResponse [11:16:38]1017 (14) - 77093643461234 [11:16:38]1041 (16) - 0000000000874718 [11:16:38]1040 (4) - 164544 [11:16:38]1012 (4) - 13.07.2024 04:55 [11:16:38]1206 (1) - 0 [11:16:38]OFD Sender: Remove packet 164544 [11:16:38]ProducePacketName [11:16:38]name=ofd_packets/00164544 [11:16:38]NVStorageDeleteData [11:16:38]Write to MH i2c: 01 00 00 B9 0E C7 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 FE 0C D8 [11:16:38]RasterBufferAndPrint [11:16:38]line [11:16:38]line [11:16:38]line [11:16:38]line [11:16:38]line [11:16:38]written 0, free lines is 3332 [11:16:38]MH_Cut [11:16:38]Write to MH i2c: D1 01 00 C0 0E 01 A0 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: D1 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: D1 01 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: D1 01 00 C0 0E 00 9F [11:16:38]Write to MH i2c: 01 00 00 C1 0E CF [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:39]OFD Sender: No OFD packet to send [11:16:39]*** Cut start [11:16:39]*** Partial cut [11:16:39]*** CUTSNS_PIN = 1 [11:16:39]*** CUTSNS_PIN = 0 [11:16:39]*** Brake cut motor [11:16:39]Read from MH i2c: 01 [11:16:39]MH_I2C_Read... [11:16:39]*** Stop cut motor [11:16:39]*** Cut end [11:16:39]Read from MH i2c: 01 07 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [11:16:39]process_action close_receipt done [11:16:39]requested_data is exist [11:16:39]produce_requested_data [11:16:39]requested_item fm.sn is exist - process it [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 11 00 00 [11:16:39]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [11:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:40]wFMCommunicate OK [11:16:40]requested_item fd.num is exist - process it [11:16:40]SAM_PROTO_GetFieldsCounters [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 13 00 00 [11:16:40]Write to MH i2c: E2 08 00 C3 0E 80 13 00 00 00 00 00 00 4D [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 62 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 62 00 C3 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 82 02 00 0E 04 04 00 BE 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 AF [11:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:40]wFMCommunicate OK [11:16:40]SAM_PROTO_GetFieldsCounters done [11:16:40]requested_item shift.num is exist - process it [11:16:40]requested_item shift.opened is exist - process it [11:16:40]req_shift_opened [11:16:40]FM_GetShiftState [11:16:40]SAM_PROTO_GetShiftState [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 13 01 00 [11:16:40]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0E 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 30 [11:16:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:16:40]wFMCommunicate OK [11:16:40]SAM_PROTO_GetShiftState done [11:16:40]FM_GetShiftState done [11:16:40]req_shift_opened done [11:16:40]requested_item shift.open_date is exist - process it [11:16:40]req_shift_open_date [11:16:40]req_shift_open_date done [11:16:40]produce_requested_data done [11:16:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164544,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:16:40]process_action_free close_receipt [11:16:40]json_value_free [11:16:40]json_value_free done [11:16:40]process_json_proto returns [11:16:40]Send response to host [11:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164544,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:16:40]free response buf [11:16:40]execute_script done [11:16:40]execute_script returns [11:16:40]free content buf [11:16:40]Sock 9.Close socket [11:16:40]Sock 9.Thread stoped [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]accept exits with 7 [11:23:04]New connection [11:23:04]New thread 3067293028 created [11:23:04]Thread 3067149668 joined [11:23:04]Waiting for new connection... [11:23:04] Sock 7.Parse request [11:23:04]Sock 7.Check first char [11:23:04]Sock 7.First char is OK [11:23:04]request: POST /json_proto HTTP/1.0 [11:23:04]Method: POST [11:23:04]URL: /json_proto [11:23:04]Method is POST - this is cgi request [11:23:04]url: /json_proto [11:23:04]query_string will be loaded in cgi processing [11:23:04]execute_cgi json_proto POST (null) [11:23:04]execute_cgi path=json_proto method=POST [11:23:04]POST find Content-Length [11:23:04]Host: 172.17.56.4:8080 [11:23:04]Content-Length: 791 [11:23:04]Content-Type: application/json [11:23:04] [11:23:04]POST finish read [11:23:04]Found Content-Length = 791 [11:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:04]execute_script... [11:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:04]POST & json_proto [11:23:04]process_json_proto [11:23:04]json parsed OK: [11:23:04]protocol is kg_v1.0 [11:23:04]action value=close_receipt [11:23:04]process_action close_receipt [11:23:04]cmd_close_receipt [11:23:04]MH_GetDate [11:23:04]Write to MH i2c: F0 00 00 C5 0E C2 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 09 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: F0 09 00 C5 0E 00 99 63 92 66 C9 DC B2 64 7A [11:23:04]GetLastDocTimeStamp 1720869397 [11:23:04]current date 1720869785 [11:23:04]FM_GetShiftState [11:23:04]SAM_PROTO_GetShiftState [11:23:04]wFMCommunicate request_size=4 [11:23:04]MH_SAM_APDU [11:23:04]CAPDU: 80 13 01 00 [11:23:04]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:04]Read from MH i2c: E2 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: E2 0E 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 32 [11:23:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:23:04]wFMCommunicate OK [11:23:04]SAM_PROTO_GetShiftState done [11:23:04]FM_GetShiftState done [11:23:04]opened in 1720831249 [11:23:04]opened+sec_in_day 1720917649 [11:23:04]quantity*price = 65220 [11:23:04]sum+1 = 65221 [11:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 105 13.07.2024 11:23 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164545 ФПД: 126180827523751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164545&fm=126180827523751&tin=02508201610067®Number=0000000000090829&sum=65220 [11:23:05]StoreToDocumentArchive [11:23:05]shift 446 fd 164545 [11:23:05]save to /storage/0446/doc_00164545 [11:23:05]save last doc name /storage/0446/doc_00164545 to /storage/kkm_last_doc_name [11:23:05]save OK [11:23:05]Clear old archive folders... [11:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:05]tlvbuf is 01474580 [11:23:05]SAM_PROTO_ClearQueue [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 09 00 00 [11:23:05]Write to MH i2c: E2 08 00 D3 0E 80 09 00 00 00 00 00 00 53 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_ClearQueue done [11:23:05]KKMCreateOFDPacket [11:23:05]OFDProtocolAddRootSTLVToBuf [11:23:05]FM_MakeSignedData [11:23:05]FM_MakeSignedData [11:23:05]SAM_PROTO_SignData [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 01 02 [11:23:05]Write to MH i2c: E2 08 00 D4 0E 80 0D 01 02 00 00 00 00 5B [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 D4 0E 00 90 00 56 [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]wFMCommunicate request_size=255 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 99 63 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 82 02 00 35 04 06 00 72 [11:23:05]Write to MH i2c: E2 02 01 D5 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 99 63 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 82 02 00 35 04 06 00 72 00 00 BA [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]wFMCommunicate request_size=10 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 02 02 05 C2 C3 66 EA A7 [11:23:05]Write to MH i2c: E2 0D 00 D6 0E 80 0D 02 02 05 00 C2 C3 66 EA A7 00 00 E4 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [11:23:05]RAPDU: 90 00 [11:23:05]wFMCommunicate OK [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 0D 03 02 [11:23:05]Write to MH i2c: E2 08 00 D7 0E 80 0D 03 02 00 00 00 00 60 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0B 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0B 00 D7 0E 00 69 B5 60 EB 6E 2F 02 13 90 00 7C [11:23:05]RAPDU: 69 B5 60 EB 6E 2F 02 13 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_SignData done [11:23:05]FM_MakeSignedData done [11:23:05]CreateOFDProtocolMessage [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 11 00 00 [11:23:05]Write to MH i2c: E2 08 00 D8 0E 80 11 00 00 00 00 00 00 60 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 D8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [11:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:23:05]wFMCommunicate OK [11:23:05]CreateOFDProtocolMessage done [11:23:05]OFDSenderStorePacket 164545 [11:23:05]StoreOFDPacket docnum=164545 [11:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 3F 07 01 49 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 99 63 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 82 02 00 35 04 06 00 72 C2 C3 66 EA A7 69 B5 60 EB 6E 2F 02 13 [11:23:05]CheckFolder [11:23:05]dirname=/storage/ofd_packets [11:23:05]CheckFolder done [11:23:05]ProducePacketName [11:23:05]name=ofd_packets/00164545 [11:23:05]NVStorageSaveData ofd_packets/00164545 [11:23:05]File name is /storage/ofd_packets/00164545 [11:23:05]Write 301 bytes [11:23:05]NVStorageSaveData done [11:23:05]OFDSenderStorePacket done [11:23:05]KKMCreateOFDPacket done [11:23:05]NVStorageSaveData kkm_last_timestamp [11:23:05]File name is /storage/kkm_last_timestamp [11:23:05]Write 4 bytes [11:23:05]NVStorageSaveData done [11:23:05]ExternCall_PrintAddStr [11:23:05]wPrintStart [11:23:05]Write to MH i2c: 01 00 00 D9 0E E7 [11:23:05]OFD Sender: Processing packet 164545 [packets to send 104, broken 103] [11:23:05]ProducePacketName [11:23:05]name=ofd_packets/00164545 [11:23:05]OFD Sender: To server: pG, [11:23:05]CommunicateWithHost lk.salyk.kg:30040 [11:23:05]ConnectInit lk.salyk.kg [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 D9 0E 00 00 00 00 00 FF 0F FC [11:23:05]RasterBufferAndPrint [11:23:05]line Счет N : (1)458635 [11:23:05]line ИНН: 02508201610067 [11:23:05]line Контрольно-Кассовый Чек [11:23:05]line ПРОДАЖА [11:23:05]line ТРК (МРК, ГНК) : 22 [11:23:05]line Товар: 2710124130 [11:23:05]line Аи-92-К-5 [11:23:05]line 10.000 * 65.22 [11:23:05]line = 652.20 [11:23:05]line НДС 12% НСП 1% [11:23:05]line > о реализуемом товаре [11:23:05]line ИТОГО: 652.20 [11:23:05]line НСП 1% : 5.77 [11:23:05]line НДС 12% : 69.26 [11:23:05]line Наличными: 0.00 [11:23:05]line Безнал.: 652.20 [11:23:05]line Место: АЗС № 72 "Партнер Нефть" [11:23:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:23:05]line СНО: Общий режим [11:23:05]line Чек 105 13.07.2024 11:23 [11:23:05]line Смена: 446 ФФД: 1.0 [11:23:05]line ЗНМ: 0300000160 [11:23:05]line РНМ: 0000000000090829 [11:23:05]line Версия ККМ: 001 [11:23:05]line Платежная система: KICB Банк [11:23:05]line ФМ: 0000000000874718 [11:23:05]line ФД: 164545 [11:23:05]line ФПД: 126180827523751 [11:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164545&fm=126180827523751&tin=02508201610067®Number=0000000000090829&sum=65220 [11:23:06]Connected sock=10 [11:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 3F 07 01 49 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 99 63 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 82 02 00 35 04 06 00 72 C2 C3 66 EA A7 69 B5 60 EB 6E 2F 02 13 [11:23:06]written 0, free lines is 4095 [11:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 A5 47 00 EB 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 34 37 31 38 10 04 04 00 C1 82 02 00 F4 03 04 00 2A 0A 92 66 B6 04 01 00 00 46 0B 7D 81 A9 B1 4F 0E [11:23:06]CommunicateWithHost err = 0 [11:23:06]CheckOFDResponse [11:23:06]1017 (14) - 77093643461234 [11:23:06]1041 (16) - 0000000000874718 [11:23:06]1040 (4) - 164545 [11:23:06]1012 (4) - 13.07.2024 05:01 [11:23:06]1206 (1) - 0 [11:23:06]OFD Sender: Remove packet 164545 [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00164545 [11:23:06]NVStorageDeleteData [11:23:06]Write to MH i2c: 01 00 00 02 0F 11 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 02 0F 00 00 00 00 00 0B 0D 30 [11:23:06]RasterBufferAndPrint [11:23:06]line [11:23:06]line [11:23:06]line [11:23:06]line [11:23:06]line [11:23:06]written 0, free lines is 3345 [11:23:06]MH_Cut [11:23:06]Write to MH i2c: D1 01 00 09 0F 01 EA [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: D1 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: D1 01 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: D1 01 00 09 0F 00 E9 [11:23:06]Write to MH i2c: 01 00 00 0A 0F 19 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]OFD Sender: No OFD packet to send [11:23:07]*** Cut start [11:23:07]*** Partial cut [11:23:07]*** CUTSNS_PIN = 1 [11:23:07]*** CUTSNS_PIN = 0 [11:23:07]*** Brake cut motor [11:23:07]Read from MH i2c: 01 [11:23:07]MH_I2C_Read... [11:23:07]*** Stop cut motor [11:23:07]*** Cut end [11:23:07]Read from MH i2c: 01 07 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [11:23:07]process_action close_receipt done [11:23:07]requested_data is exist [11:23:07]produce_requested_data [11:23:07]requested_item fm.sn is exist - process it [11:23:07]wFMCommunicate request_size=4 [11:23:07]MH_SAM_APDU [11:23:07]CAPDU: 80 11 00 00 [11:23:07]Write to MH i2c: E2 08 00 0B 0F 80 11 00 00 00 00 00 00 94 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 17 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 17 00 0B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [11:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:23:07]wFMCommunicate OK [11:23:07]requested_item fd.num is exist - process it [11:23:07]SAM_PROTO_GetFieldsCounters [11:23:07]wFMCommunicate request_size=4 [11:23:07]MH_SAM_APDU [11:23:07]CAPDU: 80 13 00 00 [11:23:07]Write to MH i2c: E2 08 00 0C 0F 80 13 00 00 00 00 00 00 97 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 62 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 62 00 0C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 82 02 00 0E 04 04 00 BE 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 FD [11:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_GetFieldsCounters done [11:23:08]requested_item shift.num is exist - process it [11:23:08]requested_item shift.opened is exist - process it [11:23:08]req_shift_opened [11:23:08]FM_GetShiftState [11:23:08]SAM_PROTO_GetShiftState [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 13 01 00 [11:23:08]Write to MH i2c: E2 08 00 0D 0F 80 13 01 00 00 00 00 00 99 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0E 00 0D 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7A [11:23:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_GetShiftState done [11:23:08]FM_GetShiftState done [11:23:08]req_shift_opened done [11:23:08]requested_item shift.open_date is exist - process it [11:23:08]req_shift_open_date [11:23:08]req_shift_open_date done [11:23:08]produce_requested_data done [11:23:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164545,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:23:08]process_action_free close_receipt [11:23:08]json_value_free [11:23:08]json_value_free done [11:23:08]process_json_proto returns [11:23:08]Send response to host [11:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164545,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:23:08]free response buf [11:23:08]execute_script done [11:23:08]execute_script returns [11:23:08]free content buf [11:23:08]Sock 7.Close socket [11:23:08]Sock 7.Thread stoped [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:24:59]accept exits with 9 [11:24:59]New connection [11:24:59]New thread 3067149668 created [11:24:59]Thread 3067293028 joined [11:24:59]Waiting for new connection... [11:24:59] Sock 9.Parse request [11:24:59]Sock 9.Check first char [11:24:59]Sock 9.First char is OK [11:24:59]request: POST /json_proto HTTP/1.0 [11:24:59]Method: POST [11:24:59]URL: /json_proto [11:24:59]Method is POST - this is cgi request [11:24:59]url: /json_proto [11:24:59]query_string will be loaded in cgi processing [11:24:59]execute_cgi json_proto POST (null) [11:24:59]execute_cgi path=json_proto method=POST [11:24:59]POST find Content-Length [11:24:59]Host: 172.17.56.4:8080 [11:24:59]Content-Length: 679 [11:24:59]Content-Type: application/json [11:24:59] [11:24:59]POST finish read [11:24:59]Found Content-Length = 679 [11:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.780, "sum" : 1350.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:59]execute_script... [11:24: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)458636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.780, "sum" : 1350.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:59]POST & json_proto [11:24:59]process_json_proto [11:24:59]json parsed OK: [11:24:59]protocol is kg_v1.0 [11:24:59]action value=close_receipt [11:24:59]process_action close_receipt [11:24:59]cmd_close_receipt [11:24:59]MH_GetDate [11:24:59]Write to MH i2c: F0 00 00 0E 0F 0C [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 09 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: F0 09 00 0E 0F 00 0C 64 92 66 C9 DC B2 64 38 [11:24:59]GetLastDocTimeStamp 1720869785 [11:24:59]current date 1720869900 [11:24:59]FM_GetShiftState [11:24:59]SAM_PROTO_GetShiftState [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 13 01 00 [11:24:59]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [11:24:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_GetShiftState done [11:24:59]FM_GetShiftState done [11:24:59]opened in 1720831249 [11:24:59]opened+sec_in_day 1720917649 [11:24:59]quantity*price = 135028 [11:24:59]sum+1 = 135029 [11:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.39 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 106 13.07.2024 11:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164546 ФПД: 115242594713026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164546&fm=115242594713026&tin=02508201610067®Number=0000000000090829&sum=135000 [11:25:00]StoreToDocumentArchive [11:25:00]shift 446 fd 164546 [11:25:00]save to /storage/0446/doc_00164546 [11:25:00]save last doc name /storage/0446/doc_00164546 to /storage/kkm_last_doc_name [11:25:00]save OK [11:25:00]Clear old archive folders... [11:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:00]tlvbuf is B6EFB370 [11:25:00]SAM_PROTO_ClearQueue [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 09 00 00 [11:25:00]Write to MH i2c: E2 08 00 1C 0F 80 09 00 00 00 00 00 00 9D [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_ClearQueue done [11:25:00]KKMCreateOFDPacket [11:25:00]OFDProtocolAddRootSTLVToBuf [11:25:00]FM_MakeSignedData [11:25:00]FM_MakeSignedData [11:25:00]SAM_PROTO_SignData [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 01 02 [11:25:00]Write to MH i2c: E2 08 00 1D 0F 80 0D 01 02 00 00 00 00 A5 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=255 [11:25:00]MH_SAM_APDU [11:25: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 5C 49 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 74 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 0C 64 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 82 02 00 35 04 06 00 68 D0 01 EB [11:25:00]Write to MH i2c: E2 02 01 1E 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 74 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 0C 64 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 82 02 00 35 04 06 00 68 D0 01 EB 00 00 1B [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=7 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 02 02 02 BD C2 [11:25:00]Write to MH i2c: E2 0A 00 1F 0F 80 0D 02 02 02 00 BD C2 00 00 2B [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 03 02 [11:25:00]Write to MH i2c: E2 08 00 20 0F 80 0D 03 02 00 00 00 00 AA [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 20 0F 00 BA 09 CC BA 9A 64 A4 C1 90 00 57 [11:25:00]RAPDU: BA 09 CC BA 9A 64 A4 C1 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_SignData done [11:25:00]FM_MakeSignedData done [11:25:00]CreateOFDProtocolMessage [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 11 00 00 [11:25:00]Write to MH i2c: E2 08 00 21 0F 80 11 00 00 00 00 00 00 AA [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 21 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [11:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:25:00]wFMCommunicate OK [11:25:00]CreateOFDProtocolMessage done [11:25:00]OFDSenderStorePacket 164546 [11:25:00]StoreOFDPacket docnum=164546 [11:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4E C0 04 01 FA 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 74 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 0C 64 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 82 02 00 35 04 06 00 68 D0 01 EB BD C2 BA 09 CC BA 9A 64 A4 C1 [11:25:00]CheckFolder [11:25:00]dirname=/storage/ofd_packets [11:25:00]CheckFolder done [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00164546 [11:25:00]NVStorageSaveData ofd_packets/00164546 [11:25:00]File name is /storage/ofd_packets/00164546 [11:25:00]Write 298 bytes [11:25:00]NVStorageSaveData done [11:25:00]OFDSenderStorePacket done [11:25:00]KKMCreateOFDPacket done [11:25:00]NVStorageSaveData kkm_last_timestamp [11:25:00]File name is /storage/kkm_last_timestamp [11:25:00]Write 4 bytes [11:25:00]NVStorageSaveData done [11:25:00]ExternCall_PrintAddStr [11:25:00]wPrintStart [11:25:00]Write to MH i2c: 01 00 00 22 0F 31 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 22 0F 00 00 00 00 00 FF 0F 46 [11:25:00]RasterBufferAndPrint [11:25:00]line Счет N : (1)458636 [11:25:00]line ИНН: 02508201610067 [11:25:00]line Контрольно-Кассовый Чек [11:25:00]line ПРОДАЖА [11:25:00]line ТРК (МРК, ГНК) : 11 [11:25:00]line Товар: 2710194210 [11:25:00]line ДТ-К-5 [11:25:00]line 18.780 * 71.90 [11:25:00]line = 1350.28 [11:25:00]line НДС 12% НСП 1% [11:25:00]line > о реализуемом товаре [11:25:00]line ОКРУГЛЕНИЕ: -0.28 [11:25:00]line ИТОГО: 1350.00 [11:25:00]line Внесено: 1350.00 [11:25:00]line СДАЧА: 0.00 [11:25:00]line НСП 1% : 11.95 [11:25:00]line НДС 12% : 143.39 [11:25:00]line Наличными: 1350.00 [11:25:00]line Безнал.: 0.00 [11:25:00]line Место: АЗС № 72 "Партнер Нефть" [11:25:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:25:00]line СНО: Общий режим [11:25:00]line Чек 106 13.07.2024 11:25 [11:25:00]line Смена: 446 ФФД: 1.0 [11:25:00]line ЗНМ: 0300000160 [11:25:00]line РНМ: 0000000000090829 [11:25:00]line Версия ККМ: 001 [11:25:00]line ФМ: 0000000000874718 [11:25:00]line ФД: 164546 [11:25:00]line ФПД: 115242594713026 [11:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164546&fm=115242594713026&tin=02508201610067®Number=0000000000090829&sum=135000 [11:25:01]OFD Sender: Processing packet 164546 [packets to send 104, broken 103] [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00164546 [11:25:01]OFD Sender: To server: pG, [11:25:01]CommunicateWithHost lk.salyk.kg:30040 [11:25:01]ConnectInit lk.salyk.kg [11:25:01]written 0, free lines is 4095 [11:25:01]Connected sock=10 [11:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4E C0 04 01 FA 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 74 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 0C 64 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 82 02 00 35 04 06 00 68 D0 01 EB BD C2 BA 09 CC BA 9A 64 A4 C1 [11:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 1F 47 00 38 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 34 37 31 38 10 04 04 00 C2 82 02 00 F4 03 04 00 9E 0A 92 66 B6 04 01 00 00 73 5D 26 88 87 E0 3E 1B [11:25:01]CommunicateWithHost err = 0 [11:25:01]CheckOFDResponse [11:25:01]1017 (14) - 77093643461234 [11:25:01]1041 (16) - 0000000000874718 [11:25:01]1040 (4) - 164546 [11:25:01]1012 (4) - 13.07.2024 05:03 [11:25:01]1206 (1) - 0 [11:25:01]OFD Sender: Remove packet 164546 [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00164546 [11:25:01]NVStorageDeleteData [11:25:01]Write to MH i2c: 01 00 00 4C 0F 5B [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 12 0D 81 [11:25:01]RasterBufferAndPrint [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]written 0, free lines is 3352 [11:25:01]MH_Cut [11:25:01]Write to MH i2c: D1 01 00 53 0F 01 34 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 53 0F 00 33 [11:25:01]Write to MH i2c: 01 00 00 54 0F 63 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:02]OFD Sender: No OFD packet to send [11:25:02]*** Cut start [11:25:02]*** Partial cut [11:25:02]*** CUTSNS_PIN = 1 [11:25:02]*** CUTSNS_PIN = 0 [11:25:02]*** Brake cut motor [11:25:03]Read from MH i2c: 01 [11:25:03]MH_I2C_Read... [11:25:03]*** Stop cut motor [11:25:03]*** Cut end [11:25:03]Read from MH i2c: 01 07 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [11:25:03]process_action close_receipt done [11:25:03]requested_data is exist [11:25:03]produce_requested_data [11:25:03]requested_item fm.sn is exist - process it [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 11 00 00 [11:25:03]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [11:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:25:03]wFMCommunicate OK [11:25:03]requested_item fd.num is exist - process it [11:25:03]SAM_PROTO_GetFieldsCounters [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 00 00 [11:25:03]Write to MH i2c: E2 08 00 56 0F 80 13 00 00 00 00 00 00 E1 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 62 00 56 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 82 02 00 0E 04 04 00 BE 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 4B [11:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetFieldsCounters done [11:25:03]requested_item shift.num is exist - process it [11:25:03]requested_item shift.opened is exist - process it [11:25:03]req_shift_opened [11:25:03]FM_GetShiftState [11:25:03]SAM_PROTO_GetShiftState [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 13 01 00 [11:25:03]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:03]Read from MH i2c: E2 0E 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C4 [11:25:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_GetShiftState done [11:25:03]FM_GetShiftState done [11:25:03]req_shift_opened done [11:25:03]requested_item shift.open_date is exist - process it [11:25:03]req_shift_open_date [11:25:03]req_shift_open_date done [11:25:03]produce_requested_data done [11:25:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164546,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:25:03]process_action_free close_receipt [11:25:03]json_value_free [11:25:03]json_value_free done [11:25:03]process_json_proto returns [11:25:03]Send response to host [11:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164546,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:25:03]free response buf [11:25:03]execute_script done [11:25:03]execute_script returns [11:25:03]free content buf [11:25:03]Sock 9.Close socket [11:25:03]Sock 9.Thread stoped [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:18]accept exits with 7 [11:29:18]New connection [11:29:18]New thread 3067293028 created [11:29:18]Thread 3067149668 joined [11:29:18]Waiting for new connection... [11:29:18] Sock 7.Parse request [11:29:18]Sock 7.Check first char [11:29:18]Sock 7.First char is OK [11:29:18]request: POST /json_proto HTTP/1.0 [11:29:18]Method: POST [11:29:18]URL: /json_proto [11:29:18]Method is POST - this is cgi request [11:29:18]url: /json_proto [11:29:18]query_string will be loaded in cgi processing [11:29:18]execute_cgi json_proto POST (null) [11:29:18]execute_cgi path=json_proto method=POST [11:29:18]POST find Content-Length [11:29:18]Host: 172.17.56.4:8080 [11:29:18]Content-Length: 675 [11:29:18]Content-Type: application/json [11:29:18] [11:29:18]POST finish read [11:29:18]Found Content-Length = 675 [11:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.220, "sum" : 950.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:18]execute_script... [11:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.220, "sum" : 950.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:18]POST & json_proto [11:29:18]process_json_proto [11:29:18]json parsed OK: [11:29:18]protocol is kg_v1.0 [11:29:18]action value=close_receipt [11:29:18]process_action close_receipt [11:29:18]cmd_close_receipt [11:29:18]MH_GetDate [11:29:18]Write to MH i2c: F0 00 00 58 0F 56 [11:29:18]Write i2c OK [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: F0 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: F0 09 00 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: F0 09 00 58 0F 00 0F 65 92 66 C9 DC B2 64 86 [11:29:18]GetLastDocTimeStamp 1720869900 [11:29:18]current date 1720870159 [11:29:18]FM_GetShiftState [11:29:18]SAM_PROTO_GetShiftState [11:29:18]wFMCommunicate request_size=4 [11:29:18]MH_SAM_APDU [11:29:18]CAPDU: 80 13 01 00 [11:29:18]Write to MH i2c: E2 08 00 59 0F 80 13 01 00 00 00 00 00 E5 [11:29:18]Write i2c OK [11:29:18]MH_I2C_Read... [11:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:18]Read from MH i2c: E2 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 0E 00 [11:29:18]MH_I2C_Read... [11:29:18]Read from MH i2c: E2 0E 00 59 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [11:29:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:18]wFMCommunicate OK [11:29:18]SAM_PROTO_GetShiftState done [11:29:18]FM_GetShiftState done [11:29:18]opened in 1720831249 [11:29:18]opened+sec_in_day 1720917649 [11:29:18]quantity*price = 95051 [11:29:18]sum+1 = 95053 [11:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.94 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 107 13.07.2024 11:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164547 ФПД: 85464672338825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164547&fm=85464672338825&tin=02508201610067®Number=0000000000090829&sum=95000 [11:29:19]StoreToDocumentArchive [11:29:19]shift 446 fd 164547 [11:29:19]save to /storage/0446/doc_00164547 [11:29:19]save last doc name /storage/0446/doc_00164547 to /storage/kkm_last_doc_name [11:29:19]save OK [11:29:19]Clear old archive folders... [11:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:19]tlvbuf is B6EFBEF0 [11:29:19]SAM_PROTO_ClearQueue [11:29:19]wFMCommunicate request_size=4 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 09 00 00 [11:29:19]Write to MH i2c: E2 08 00 66 0F 80 09 00 00 00 00 00 00 E7 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [11:29:19]RAPDU: 90 00 [11:29:19]wFMCommunicate OK [11:29:19]SAM_PROTO_ClearQueue done [11:29:19]KKMCreateOFDPacket [11:29:19]OFDProtocolAddRootSTLVToBuf [11:29:19]FM_MakeSignedData [11:29:19]FM_MakeSignedData [11:29:19]SAM_PROTO_SignData [11:29:19]wFMCommunicate request_size=4 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 0D 01 02 [11:29:19]Write to MH i2c: E2 08 00 67 0F 80 0D 01 02 00 00 00 00 EF [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [11:29:19]RAPDU: 90 00 [11:29:19]wFMCommunicate OK [11:29:19]wFMCommunicate request_size=255 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0F 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 82 02 00 35 04 06 00 4D BA CB 6F [11:29:19]Write to MH i2c: E2 02 01 68 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0F 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 82 02 00 35 04 06 00 4D BA CB 6F 00 00 32 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [11:29:19]RAPDU: 90 00 [11:29:19]wFMCommunicate OK [11:29:19]wFMCommunicate request_size=7 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 0D 02 02 02 83 89 [11:29:19]Write to MH i2c: E2 0A 00 69 0F 80 0D 02 02 02 00 83 89 00 00 02 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [11:29:19]RAPDU: 90 00 [11:29:19]wFMCommunicate OK [11:29:19]wFMCommunicate request_size=4 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 0D 03 02 [11:29:19]Write to MH i2c: E2 08 00 6A 0F 80 0D 03 02 00 00 00 00 F4 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 0B 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 0B 00 6A 0F 00 DC 78 8A F8 FE 7B 81 BE 90 00 83 [11:29:19]RAPDU: DC 78 8A F8 FE 7B 81 BE 90 00 [11:29:19]wFMCommunicate OK [11:29:19]SAM_PROTO_SignData done [11:29:19]FM_MakeSignedData done [11:29:19]CreateOFDProtocolMessage [11:29:19]wFMCommunicate request_size=4 [11:29:19]MH_SAM_APDU [11:29:19]CAPDU: 80 11 00 00 [11:29:19]Write to MH i2c: E2 08 00 6B 0F 80 11 00 00 00 00 00 00 F4 [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:19]Read from MH i2c: E2 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 17 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: E2 17 00 6B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [11:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:19]wFMCommunicate OK [11:29:19]CreateOFDProtocolMessage done [11:29:19]OFDSenderStorePacket 164547 [11:29:19]StoreOFDPacket docnum=164547 [11:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 97 04 01 BD D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0F 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 82 02 00 35 04 06 00 4D BA CB 6F 83 89 DC 78 8A F8 FE 7B 81 BE [11:29:19]CheckFolder [11:29:19]dirname=/storage/ofd_packets [11:29:19]CheckFolder done [11:29:19]ProducePacketName [11:29:19]name=ofd_packets/00164547 [11:29:19]NVStorageSaveData ofd_packets/00164547 [11:29:19]File name is /storage/ofd_packets/00164547 [11:29:19]Write 298 bytes [11:29:19]NVStorageSaveData done [11:29:19]OFDSenderStorePacket done [11:29:19]KKMCreateOFDPacket done [11:29:19]NVStorageSaveData kkm_last_timestamp [11:29:19]File name is /storage/kkm_last_timestamp [11:29:19]Write 4 bytes [11:29:19]NVStorageSaveData done [11:29:19]ExternCall_PrintAddStr [11:29:19]wPrintStart [11:29:19]Write to MH i2c: 01 00 00 6C 0F 7B [11:29:19]Write i2c OK [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: 01 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: 01 07 00 [11:29:19]MH_I2C_Read... [11:29:19]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [11:29:19]RasterBufferAndPrint [11:29:19]line Счет N : (1)458637 [11:29:19]line ИНН: 02508201610067 [11:29:19]line Контрольно-Кассовый Чек [11:29:19]line ПРОДАЖА [11:29:19]line ТРК (МРК, ГНК) : 11 [11:29:19]line Товар: 2710194210 [11:29:19]line ДТ-К-5 [11:29:19]line 13.220 * 71.90 [11:29:19]line = 950.52 [11:29:19]line НДС 12% НСП 1% [11:29:19]line > о реализуемом товаре [11:29:19]line ОКРУГЛЕНИЕ: -0.52 [11:29:19]line ИТОГО: 950.00 [11:29:19]line Внесено: 950.00 [11:29:19]line СДАЧА: 0.00 [11:29:19]line НСП 1% : 8.41 [11:29:19]line НДС 12% : 100.94 [11:29:19]line Наличными: 950.00 [11:29:19]line Безнал.: 0.00 [11:29:19]line Место: АЗС № 72 "Партнер Нефть" [11:29:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:29:19]line СНО: Общий режим [11:29:19]line Чек 107 13.07.2024 11:29 [11:29:19]line Смена: 446 ФФД: 1.0 [11:29:19]line ЗНМ: 0300000160 [11:29:19]line РНМ: 0000000000090829 [11:29:19]line Версия ККМ: 001 [11:29:19]line ФМ: 0000000000874718 [11:29:19]line ФД: 164547 [11:29:19]line ФПД: 85464672338825 [11:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164547&fm=85464672338825&tin=02508201610067®Number=0000000000090829&sum=95000 [11:29:20]OFD Sender: Processing packet 164547 [packets to send 104, broken 103] [11:29:20]ProducePacketName [11:29:20]name=ofd_packets/00164547 [11:29:20]OFD Sender: To server: pG, [11:29:20]CommunicateWithHost lk.salyk.kg:30040 [11:29:20]ConnectInit lk.salyk.kg [11:29:20]written 0, free lines is 4095 [11:29:20]Connected sock=10 [11:29:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 97 04 01 BD D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 0F 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 82 02 00 35 04 06 00 4D BA CB 6F 83 89 DC 78 8A F8 FE 7B 81 BE [11:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 9E 47 00 8F 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 82 02 00 F4 03 04 00 A1 0B 92 66 B6 04 01 00 00 AC 52 5F A8 75 D2 5D F2 [11:29:20]CommunicateWithHost err = 0 [11:29:20]CheckOFDResponse [11:29:20]1017 (14) - 77093643461234 [11:29:20]1041 (16) - 0000000000874718 [11:29:20]1040 (4) - 164547 [11:29:20]1012 (4) - 13.07.2024 05:07 [11:29:20]1206 (1) - 0 [11:29:20]OFD Sender: Remove packet 164547 [11:29:20]ProducePacketName [11:29:20]name=ofd_packets/00164547 [11:29:20]NVStorageDeleteData [11:29:20]Write to MH i2c: 01 00 00 96 0F A5 [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 07 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 FC 0C B4 [11:29:20]RasterBufferAndPrint [11:29:20]line [11:29:20]line [11:29:20]line [11:29:20]line [11:29:20]line [11:29:20]written 0, free lines is 3330 [11:29:20]MH_Cut [11:29:20]Write to MH i2c: D1 01 00 9D 0F 01 7E [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: D1 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: D1 01 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: D1 01 00 9D 0F 00 7D [11:29:20]Write to MH i2c: 01 00 00 9E 0F AD [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:21]OFD Sender: No OFD packet to send [11:29:21]*** Cut start [11:29:21]*** Partial cut [11:29:21]*** CUTSNS_PIN = 1 [11:29:21]*** CUTSNS_PIN = 0 [11:29:21]*** Brake cut motor [11:29:21]Read from MH i2c: 01 [11:29:21]MH_I2C_Read... [11:29:21]*** Stop cut motor [11:29:21]*** Cut end [11:29:21]Read from MH i2c: 01 07 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [11:29:21]process_action close_receipt done [11:29:21]requested_data is exist [11:29:21]produce_requested_data [11:29:21]requested_item fm.sn is exist - process it [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 11 00 00 [11:29:21]Write to MH i2c: E2 08 00 9F 0F 80 11 00 00 00 00 00 00 28 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 17 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 17 00 9F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [11:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:22]wFMCommunicate OK [11:29:22]requested_item fd.num is exist - process it [11:29:22]SAM_PROTO_GetFieldsCounters [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 13 00 00 [11:29:22]Write to MH i2c: E2 08 00 A0 0F 80 13 00 00 00 00 00 00 2B [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 62 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 62 00 A0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 82 02 00 0E 04 04 00 BE 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 99 [11:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_GetFieldsCounters done [11:29:22]requested_item shift.num is exist - process it [11:29:22]requested_item shift.opened is exist - process it [11:29:22]req_shift_opened [11:29:22]FM_GetShiftState [11:29:22]SAM_PROTO_GetShiftState [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 13 01 00 [11:29:22]Write to MH i2c: E2 08 00 A1 0F 80 13 01 00 00 00 00 00 2D [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:22]Read from MH i2c: E2 0E 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0E 00 A1 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0E [11:29:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_GetShiftState done [11:29:22]FM_GetShiftState done [11:29:22]req_shift_opened done [11:29:22]requested_item shift.open_date is exist - process it [11:29:22]req_shift_open_date [11:29:22]req_shift_open_date done [11:29:22]produce_requested_data done [11:29:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164547,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:29:22]process_action_free close_receipt [11:29:22]json_value_free [11:29:22]json_value_free done [11:29:22]process_json_proto returns [11:29:22]Send response to host [11:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164547,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:29:22]free response buf [11:29:22]execute_script done [11:29:22]execute_script returns [11:29:22]free content buf [11:29:22]Sock 7.Close socket [11:29:22]Sock 7.Thread stoped [11:29:22]accept exits with 9 [11:29:22]New connection [11:29:22]New thread 3067149668 created [11:29:22]Thread 3067293028 joined [11:29:22]Waiting for new connection... [11:29:22] Sock 9.Parse request [11:29:22]Sock 9.Check first char [11:29:22]Sock 9.First char is OK [11:29:22]request: POST /json_proto HTTP/1.0 [11:29:22]Method: POST [11:29:22]URL: /json_proto [11:29:22]Method is POST - this is cgi request [11:29:22]url: /json_proto [11:29:22]query_string will be loaded in cgi processing [11:29:22]execute_cgi json_proto POST (null) [11:29:22]execute_cgi path=json_proto method=POST [11:29:22]POST find Content-Length [11:29:22]Host: 172.17.56.4:8080 [11:29:22]Content-Length: 679 [11:29:22]Content-Type: application/json [11:29:22] [11:29:22]POST finish read [11:29:22]Found Content-Length = 679 [11:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:22]execute_script... [11:29: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)458638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:22]POST & json_proto [11:29:22]process_json_proto [11:29:22]json parsed OK: [11:29:22]protocol is kg_v1.0 [11:29:22]action value=close_receipt [11:29:22]process_action close_receipt [11:29:22]cmd_close_receipt [11:29:22]MH_GetDate [11:29:22]Write to MH i2c: F0 00 00 A2 0F A0 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: F0 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: F0 09 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: F0 09 00 A2 0F 00 14 65 92 66 C9 DC B2 64 D5 [11:29:22]GetLastDocTimeStamp 1720870159 [11:29:22]current date 1720870164 [11:29:22]FM_GetShiftState [11:29:22]SAM_PROTO_GetShiftState [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 13 01 00 [11:29:22]Write to MH i2c: E2 08 00 A3 0F 80 13 01 00 00 00 00 00 2F [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0E 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0E 00 A3 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [11:29:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_GetShiftState done [11:29:22]FM_GetShiftState done [11:29:22]opened in 1720831249 [11:29:22]opened+sec_in_day 1720917649 [11:29:22]quantity*price = 100012 [11:29:22]sum+1 = 100014 [11:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 108 13.07.2024 11:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164548 ФПД: 164820199371055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164548&fm=164820199371055&tin=02508201610067®Number=0000000000090829&sum=100000 [11:29:24]StoreToDocumentArchive [11:29:24]shift 446 fd 164548 [11:29:24]save to /storage/0446/doc_00164548 [11:29:24]save last doc name /storage/0446/doc_00164548 to /storage/kkm_last_doc_name [11:29:24]save OK [11:29:24]Clear old archive folders... [11:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:24]tlvbuf is 01411FC0 [11:29:24]SAM_PROTO_ClearQueue [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 09 00 00 [11:29:24]Write to MH i2c: E2 08 00 B0 0F 80 09 00 00 00 00 00 00 31 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [11:29:24]RAPDU: 90 00 [11:29:24]wFMCommunicate OK [11:29:24]SAM_PROTO_ClearQueue done [11:29:24]KKMCreateOFDPacket [11:29:24]OFDProtocolAddRootSTLVToBuf [11:29:24]FM_MakeSignedData [11:29:24]FM_MakeSignedData [11:29:24]SAM_PROTO_SignData [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 0D 01 02 [11:29:24]Write to MH i2c: E2 08 00 B1 0F 80 0D 01 02 00 00 00 00 39 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [11:29:24]RAPDU: 90 00 [11:29:24]wFMCommunicate OK [11:29:24]wFMCommunicate request_size=255 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 14 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 82 02 00 35 04 06 00 95 E7 31 6F [11:29:24]Write to MH i2c: E2 02 01 B2 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 14 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 82 02 00 35 04 06 00 95 E7 31 6F 00 00 FA [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [11:29:24]RAPDU: 90 00 [11:29:24]wFMCommunicate OK [11:29:24]wFMCommunicate request_size=7 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 0D 02 02 02 71 2F [11:29:24]Write to MH i2c: E2 0A 00 B3 0F 80 0D 02 02 02 00 71 2F 00 00 E0 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [11:29:24]RAPDU: 90 00 [11:29:24]wFMCommunicate OK [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 0D 03 02 [11:29:24]Write to MH i2c: E2 08 00 B4 0F 80 0D 03 02 00 00 00 00 3E [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 0B 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 0B 00 B4 0F 00 02 6F E5 AD 4A 3C 3F 9E 90 00 A5 [11:29:24]RAPDU: 02 6F E5 AD 4A 3C 3F 9E 90 00 [11:29:24]wFMCommunicate OK [11:29:24]SAM_PROTO_SignData done [11:29:24]FM_MakeSignedData done [11:29:24]CreateOFDProtocolMessage [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 11 00 00 [11:29:24]Write to MH i2c: E2 08 00 B5 0F 80 11 00 00 00 00 00 00 3E [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 17 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 17 00 B5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [11:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:24]wFMCommunicate OK [11:29:24]CreateOFDProtocolMessage done [11:29:24]OFDSenderStorePacket 164548 [11:29:24]StoreOFDPacket docnum=164548 [11:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 6D 04 01 8E 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 14 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 82 02 00 35 04 06 00 95 E7 31 6F 71 2F 02 6F E5 AD 4A 3C 3F 9E [11:29:24]CheckFolder [11:29:24]dirname=/storage/ofd_packets [11:29:24]CheckFolder done [11:29:24]ProducePacketName [11:29:24]name=ofd_packets/00164548 [11:29:24]NVStorageSaveData ofd_packets/00164548 [11:29:24]File name is /storage/ofd_packets/00164548 [11:29:24]Write 298 bytes [11:29:24]NVStorageSaveData done [11:29:24]OFDSenderStorePacket done [11:29:24]KKMCreateOFDPacket done [11:29:24]NVStorageSaveData kkm_last_timestamp [11:29:24]File name is /storage/kkm_last_timestamp [11:29:24]Write 4 bytes [11:29:24]NVStorageSaveData done [11:29:24]ExternCall_PrintAddStr [11:29:24]wPrintStart [11:29:24]Write to MH i2c: 01 00 00 B6 0F C5 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: 01 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: 01 07 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: 01 07 00 B6 0F 00 00 00 00 00 FF 0F DA [11:29:24]RasterBufferAndPrint [11:29:24]line Счет N : (1)458638 [11:29:24]line ИНН: 02508201610067 [11:29:24]line Контрольно-Кассовый Чек [11:29:24]line ПРОДАЖА [11:29:24]line ТРК (МРК, ГНК) : 21 [11:29:24]line Товар: 2710194210 [11:29:24]line ДТ-К-5 [11:29:24]line 13.910 * 71.90 [11:29:24]line = 1000.13 [11:29:24]line НДС 12% НСП 1% [11:29:24]line > о реализуемом товаре [11:29:24]line ОКРУГЛЕНИЕ: -0.13 [11:29:24]line ИТОГО: 1000.00 [11:29:24]line Внесено: 1000.00 [11:29:24]line СДАЧА: 0.00 [11:29:24]line НСП 1% : 8.85 [11:29:24]line НДС 12% : 106.21 [11:29:24]line Наличными: 1000.00 [11:29:24]line Безнал.: 0.00 [11:29:24]line Место: АЗС № 72 "Партнер Нефть" [11:29:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:29:25]line СНО: Общий режим [11:29:25]line Чек 108 13.07.2024 11:29 [11:29:25]line Смена: 446 ФФД: 1.0 [11:29:25]line ЗНМ: 0300000160 [11:29:25]line РНМ: 0000000000090829 [11:29:25]line Версия ККМ: 001 [11:29:25]line ФМ: 0000000000874718 [11:29:25]line ФД: 164548 [11:29:25]line ФПД: 164820199371055 [11:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164548&fm=164820199371055&tin=02508201610067®Number=0000000000090829&sum=100000 [11:29:25]OFD Sender: Processing packet 164548 [packets to send 104, broken 103] [11:29:25]ProducePacketName [11:29:25]name=ofd_packets/00164548 [11:29:25]OFD Sender: To server: pG, [11:29:25]CommunicateWithHost lk.salyk.kg:30040 [11:29:25]ConnectInit lk.salyk.kg [11:29:25]written 0, free lines is 4095 [11:29:25]Connected sock=10 [11:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 6D 04 01 8E 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 14 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 82 02 00 35 04 06 00 95 E7 31 6F 71 2F 02 6F E5 AD 4A 3C 3F 9E [11:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 AB 47 00 1F F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 82 02 00 F4 03 04 00 A5 0B 92 66 B6 04 01 00 00 33 E0 BA 66 A5 9F 5C 0F [11:29:25]CommunicateWithHost err = 0 [11:29:25]CheckOFDResponse [11:29:25]1017 (14) - 77093643461234 [11:29:25]1041 (16) - 0000000000874718 [11:29:25]1040 (4) - 164548 [11:29:25]1012 (4) - 13.07.2024 05:07 [11:29:25]1206 (1) - 0 [11:29:25]OFD Sender: Remove packet 164548 [11:29:25]ProducePacketName [11:29:25]name=ofd_packets/00164548 [11:29:25]NVStorageDeleteData [11:29:25]Write to MH i2c: 01 00 00 E0 0F EF [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: 01 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: 01 07 00 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: 01 07 00 E0 0F 00 00 00 00 00 07 0D 0A [11:29:25]RasterBufferAndPrint [11:29:25]line [11:29:25]line [11:29:25]line [11:29:25]line [11:29:25]line [11:29:25]written 0, free lines is 3350 [11:29:25]MH_Cut [11:29:25]Write to MH i2c: D1 01 00 E7 0F 01 C8 [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: D1 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: D1 01 00 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: D1 01 00 E7 0F 00 C7 [11:29:25]Write to MH i2c: 01 00 00 E8 0F F7 [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:25]OFD Sender: No OFD packet to send [11:29:26]*** Cut start [11:29:26]*** Partial cut [11:29:26]*** CUTSNS_PIN = 1 [11:29:26]*** CUTSNS_PIN = 0 [11:29:26]*** Brake cut motor [11:29:26]Read from MH i2c: 01 [11:29:26]MH_I2C_Read... [11:29:26]*** Stop cut motor [11:29:26]*** Cut end [11:29:26]Read from MH i2c: 01 07 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 FF 0F 0C [11:29:26]process_action close_receipt done [11:29:26]requested_data is exist [11:29:26]produce_requested_data [11:29:26]requested_item fm.sn is exist - process it [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 11 00 00 [11:29:26]Write to MH i2c: E2 08 00 E9 0F 80 11 00 00 00 00 00 00 72 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 E9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [11:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:26]wFMCommunicate OK [11:29:26]requested_item fd.num is exist - process it [11:29:26]SAM_PROTO_GetFieldsCounters [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 13 00 00 [11:29:26]Write to MH i2c: E2 08 00 EA 0F 80 13 00 00 00 00 00 00 75 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 62 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 62 00 EA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 82 02 00 0E 04 04 00 BE 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 E7 [11:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_GetFieldsCounters done [11:29:26]requested_item shift.num is exist - process it [11:29:26]requested_item shift.opened is exist - process it [11:29:26]req_shift_opened [11:29:26]FM_GetShiftState [11:29:26]SAM_PROTO_GetShiftState [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 13 01 00 [11:29:26]Write to MH i2c: E2 08 00 EB 0F 80 13 01 00 00 00 00 00 77 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:27]Read from MH i2c: E2 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 0E 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 0E 00 EB 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 58 [11:29:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:27]wFMCommunicate OK [11:29:27]SAM_PROTO_GetShiftState done [11:29:27]FM_GetShiftState done [11:29:27]req_shift_opened done [11:29:27]requested_item shift.open_date is exist - process it [11:29:27]req_shift_open_date [11:29:27]req_shift_open_date done [11:29:27]produce_requested_data done [11:29:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164548,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:29:27]process_action_free close_receipt [11:29:27]json_value_free [11:29:27]json_value_free done [11:29:27]process_json_proto returns [11:29:27]Send response to host [11:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164548,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:29:27]free response buf [11:29:27]execute_script done [11:29:27]execute_script returns [11:29:27]free content buf [11:29:27]Sock 9.Close socket [11:29:27]Sock 9.Thread stoped [11:29:27]accept exits with 7 [11:29:27]New connection [11:29:27]New thread 3067293028 created [11:29:27]Thread 3067149668 joined [11:29:27]Waiting for new connection... [11:29:27] Sock 7.Parse request [11:29:27]Sock 7.Check first char [11:29:27]Sock 7.First char is OK [11:29:27]request: POST /json_proto HTTP/1.0 [11:29:27]Method: POST [11:29:27]URL: /json_proto [11:29:27]Method is POST - this is cgi request [11:29:27]url: /json_proto [11:29:27]query_string will be loaded in cgi processing [11:29:27]execute_cgi json_proto POST (null) [11:29:27]execute_cgi path=json_proto method=POST [11:29:27]POST find Content-Length [11:29:27]Host: 172.17.56.4:8080 [11:29:27]Content-Length: 677 [11:29:27]Content-Type: application/json [11:29:27] [11:29:27]POST finish read [11:29:27]Found Content-Length = 677 [11:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:27]execute_script... [11:29: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)458639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:27]POST & json_proto [11:29:27]process_json_proto [11:29:27]json parsed OK: [11:29:27]protocol is kg_v1.0 [11:29:27]action value=close_receipt [11:29:27]process_action close_receipt [11:29:27]cmd_close_receipt [11:29:27]MH_GetDate [11:29:27]Write to MH i2c: F0 00 00 EC 0F EA [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: F0 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: F0 09 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: F0 09 00 EC 0F 00 18 65 92 66 C9 DC B2 64 23 [11:29:27]GetLastDocTimeStamp 1720870164 [11:29:27]current date 1720870168 [11:29:27]FM_GetShiftState [11:29:27]SAM_PROTO_GetShiftState [11:29:27]wFMCommunicate request_size=4 [11:29:27]MH_SAM_APDU [11:29:27]CAPDU: 80 13 01 00 [11:29:27]Write to MH i2c: E2 08 00 ED 0F 80 13 01 00 00 00 00 00 79 [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:27]Read from MH i2c: E2 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 0E 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 0E 00 ED 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [11:29:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:27]wFMCommunicate OK [11:29:27]SAM_PROTO_GetShiftState done [11:29:27]FM_GetShiftState done [11:29:27]opened in 1720831249 [11:29:27]opened+sec_in_day 1720917649 [11:29:27]quantity*price = 50008 [11:29:27]sum+1 = 50009 [11:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 109 13.07.2024 11:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164549 ФПД: 246554642976977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112929&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164549&fm=246554642976977&tin=02508201610067®Number=0000000000090829&sum=50000 [11:29:28]StoreToDocumentArchive [11:29:28]shift 446 fd 164549 [11:29:28]save to /storage/0446/doc_00164549 [11:29:28]save last doc name /storage/0446/doc_00164549 to /storage/kkm_last_doc_name [11:29:28]save OK [11:29:28]Clear old archive folders... [11:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:28]tlvbuf is 014A8AA0 [11:29:28]SAM_PROTO_ClearQueue [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 09 00 00 [11:29:28]Write to MH i2c: E2 08 00 FA 0F 80 09 00 00 00 00 00 00 7B [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]SAM_PROTO_ClearQueue done [11:29:28]KKMCreateOFDPacket [11:29:28]OFDProtocolAddRootSTLVToBuf [11:29:28]FM_MakeSignedData [11:29:28]FM_MakeSignedData [11:29:28]SAM_PROTO_SignData [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 0D 01 02 [11:29:28]Write to MH i2c: E2 08 00 FB 0F 80 0D 01 02 00 00 00 00 83 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 FB 0F 00 90 00 7E [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]wFMCommunicate request_size=255 [11:29:28]MH_SAM_APDU [11:29: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6D 00 00 00 F4 03 04 00 19 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 82 02 00 35 04 06 00 E0 [11:29:28]Write to MH i2c: E2 02 01 FC 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6D 00 00 00 F4 03 04 00 19 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 82 02 00 35 04 06 00 E0 00 00 C7 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [11:29:29]RAPDU: 90 00 [11:29:29]wFMCommunicate OK [11:29:29]wFMCommunicate request_size=10 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 0D 02 02 05 3D 79 E9 90 D1 [11:29:29]Write to MH i2c: E2 0D 00 FD 0F 80 0D 02 02 05 00 3D 79 E9 90 D1 00 00 90 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [11:29:29]RAPDU: 90 00 [11:29:29]wFMCommunicate OK [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 0D 03 02 [11:29:29]Write to MH i2c: E2 08 00 FE 0F 80 0D 03 02 00 00 00 00 88 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0B 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 0B 00 FE 0F 00 B0 FC 19 33 A2 78 47 1D 90 00 FF [11:29:29]RAPDU: B0 FC 19 33 A2 78 47 1D 90 00 [11:29:29]wFMCommunicate OK [11:29:29]SAM_PROTO_SignData done [11:29:29]FM_MakeSignedData done [11:29:29]CreateOFDProtocolMessage [11:29:29]wFMCommunicate request_size=4 [11:29:29]MH_SAM_APDU [11:29:29]CAPDU: 80 11 00 00 [11:29:29]Write to MH i2c: E2 08 00 FF 0F 80 11 00 00 00 00 00 00 88 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:29]Read from MH i2c: E2 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 17 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: E2 17 00 FF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [11:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:29]wFMCommunicate OK [11:29:29]CreateOFDProtocolMessage done [11:29:29]OFDSenderStorePacket 164549 [11:29:29]StoreOFDPacket docnum=164549 [11:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB C4 07 01 4E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6D 00 00 00 F4 03 04 00 19 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 82 02 00 35 04 06 00 E0 3D 79 E9 90 D1 B0 FC 19 33 A2 78 47 1D [11:29:29]CheckFolder [11:29:29]dirname=/storage/ofd_packets [11:29:29]CheckFolder done [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00164549 [11:29:29]NVStorageSaveData ofd_packets/00164549 [11:29:29]File name is /storage/ofd_packets/00164549 [11:29:29]Write 301 bytes [11:29:29]NVStorageSaveData done [11:29:29]OFDSenderStorePacket done [11:29:29]KKMCreateOFDPacket done [11:29:29]NVStorageSaveData kkm_last_timestamp [11:29:29]File name is /storage/kkm_last_timestamp [11:29:29]Write 4 bytes [11:29:29]NVStorageSaveData done [11:29:29]ExternCall_PrintAddStr [11:29:29]wPrintStart [11:29:29]Write to MH i2c: 01 00 00 00 10 10 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 00 10 00 00 00 00 00 FF 0F 25 [11:29:29]RasterBufferAndPrint [11:29:29]line Счет N : (1)458639 [11:29:29]line ИНН: 02508201610067 [11:29:29]line Контрольно-Кассовый Чек [11:29:29]line ПРОДАЖА [11:29:29]line ТРК (МРК, ГНК) : 22 [11:29:29]line Товар: 2710124130 [11:29:29]line Аи-92-К-5 [11:29:29]line 7.600 * 65.80 [11:29:29]line = 500.08 [11:29:29]line НДС 12% НСП 1% [11:29:29]line > о реализуемом товаре [11:29:29]line ОКРУГЛЕНИЕ: -0.08 [11:29:29]line ИТОГО: 500.00 [11:29:29]line Внесено: 500.00 [11:29:29]line СДАЧА: 0.00 [11:29:29]line НСП 1% : 4.42 [11:29:29]line НДС 12% : 53.11 [11:29:29]line Наличными: 500.00 [11:29:29]line Безнал.: 0.00 [11:29:29]line Место: АЗС № 72 "Партнер Нефть" [11:29:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:29:29]line СНО: Общий режим [11:29:29]line Чек 109 13.07.2024 11:29 [11:29:29]line Смена: 446 ФФД: 1.0 [11:29:29]line ЗНМ: 0300000160 [11:29:29]line РНМ: 0000000000090829 [11:29:29]line Версия ККМ: 001 [11:29:29]line ФМ: 0000000000874718 [11:29:29]line ФД: 164549 [11:29:29]line ФПД: 246554642976977 [11:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112929&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164549&fm=246554642976977&tin=02508201610067®Number=0000000000090829&sum=50000 [11:29:29]written 0, free lines is 4095 [11:29:29]OFD Sender: Processing packet 164549 [packets to send 104, broken 103] [11:29:29]ProducePacketName [11:29:29]name=ofd_packets/00164549 [11:29:29]OFD Sender: To server: pG, [11:29:29]CommunicateWithHost lk.salyk.kg:30040 [11:29:29]ConnectInit lk.salyk.kg [11:29:29]Connected sock=11 [11:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB C4 07 01 4E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6D 00 00 00 F4 03 04 00 19 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 82 02 00 35 04 06 00 E0 3D 79 E9 90 D1 B0 FC 19 33 A2 78 47 1D [11:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BF 98 47 00 52 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 34 37 31 38 10 04 04 00 C5 82 02 00 F4 03 04 00 AA 0B 92 66 B6 04 01 00 00 4F 27 65 52 A7 7C 74 38 [11:29:30]CommunicateWithHost err = 0 [11:29:30]CheckOFDResponse [11:29:30]1017 (14) - 77093643461234 [11:29:30]1041 (16) - 0000000000874718 [11:29:30]1040 (4) - 164549 [11:29:30]1012 (4) - 13.07.2024 05:07 [11:29:30]1206 (1) - 0 [11:29:30]OFD Sender: Remove packet 164549 [11:29:30]ProducePacketName [11:29:30]name=ofd_packets/00164549 [11:29:30]NVStorageDeleteData [11:29:30]Write to MH i2c: 01 00 00 2A 10 3A [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 2A 10 00 00 00 00 00 24 0D 72 [11:29:30]RasterBufferAndPrint [11:29:30]line [11:29:30]line [11:29:30]line [11:29:30]line [11:29:30]line [11:29:30]written 0, free lines is 3386 [11:29:30]MH_Cut [11:29:30]Write to MH i2c: D1 01 00 31 10 01 13 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 01 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: D1 01 00 31 10 00 12 [11:29:30]Write to MH i2c: 01 00 00 32 10 42 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]OFD Sender: No OFD packet to send [11:29:30]*** Cut start [11:29:30]*** Partial cut [11:29:30]*** CUTSNS_PIN = 1 [11:29:30]*** CUTSNS_PIN = 0 [11:29:30]*** Brake cut motor [11:29:31]Read from MH i2c: 01 [11:29:31]MH_I2C_Read... [11:29:31]*** Stop cut motor [11:29:31]*** Cut end [11:29:31]Read from MH i2c: 01 07 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 FF 0F 57 [11:29:31]process_action close_receipt done [11:29:31]requested_data is exist [11:29:31]produce_requested_data [11:29:31]requested_item fm.sn is exist - process it [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 11 00 00 [11:29:31]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [11:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:31]wFMCommunicate OK [11:29:31]requested_item fd.num is exist - process it [11:29:31]SAM_PROTO_GetFieldsCounters [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 00 00 [11:29:31]Write to MH i2c: E2 08 00 34 10 80 13 00 00 00 00 00 00 C0 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 62 00 34 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 82 02 00 0E 04 04 00 BE 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 36 [11:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetFieldsCounters done [11:29:31]requested_item shift.num is exist - process it [11:29:31]requested_item shift.opened is exist - process it [11:29:31]req_shift_opened [11:29:31]FM_GetShiftState [11:29:31]SAM_PROTO_GetShiftState [11:29:31]wFMCommunicate request_size=4 [11:29:31]MH_SAM_APDU [11:29:31]CAPDU: 80 13 01 00 [11:29:31]Write to MH i2c: E2 08 00 35 10 80 13 01 00 00 00 00 00 C2 [11:29:31]Write i2c OK [11:29:31]MH_I2C_Read... [11:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:31]Read from MH i2c: E2 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 [11:29:31]MH_I2C_Read... [11:29:31]Read from MH i2c: E2 0E 00 35 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A3 [11:29:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:29:31]wFMCommunicate OK [11:29:31]SAM_PROTO_GetShiftState done [11:29:31]FM_GetShiftState done [11:29:31]req_shift_opened done [11:29:31]requested_item shift.open_date is exist - process it [11:29:31]req_shift_open_date [11:29:31]req_shift_open_date done [11:29:31]produce_requested_data done [11:29:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164549,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:29:31]process_action_free close_receipt [11:29:31]json_value_free [11:29:31]json_value_free done [11:29:31]process_json_proto returns [11:29:31]Send response to host [11:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164549,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:29:31]free response buf [11:29:31]execute_script done [11:29:31]execute_script returns [11:29:31]free content buf [11:29:31]Sock 7.Close socket [11:29:31]Sock 7.Thread stoped [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:34]accept exits with 9 [11:30:34]New connection [11:30:34]New thread 3067149668 created [11:30:34]Thread 3067293028 joined [11:30:34]Waiting for new connection... [11:30:34] Sock 9.Parse request [11:30:34]Sock 9.Check first char [11:30:34]Sock 9.First char is OK [11:30:34]request: POST /json_proto HTTP/1.0 [11:30:34]Method: POST [11:30:34]URL: /json_proto [11:30:34]Method is POST - this is cgi request [11:30:34]url: /json_proto [11:30:34]query_string will be loaded in cgi processing [11:30:34]execute_cgi json_proto POST (null) [11:30:34]execute_cgi path=json_proto method=POST [11:30:34]POST find Content-Length [11:30:34]Host: 172.17.56.4:8080 [11:30:34]Content-Length: 640 [11:30:34]Content-Type: application/json [11:30:34] [11:30:34]POST finish read [11:30:34]Found Content-Length = 640 [11:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:34]execute_script... [11:30: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)458640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:34]POST & json_proto [11:30:34]process_json_proto [11:30:34]json parsed OK: [11:30:34]protocol is kg_v1.0 [11:30:34]action value=close_receipt [11:30:34]process_action close_receipt [11:30:34]cmd_close_receipt [11:30:34]MH_GetDate [11:30:34]Write to MH i2c: F0 00 00 36 10 35 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: F0 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: F0 09 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: F0 09 00 36 10 00 5C 65 92 66 C9 DC B2 64 B2 [11:30:34]GetLastDocTimeStamp 1720870169 [11:30:34]current date 1720870236 [11:30:34]FM_GetShiftState [11:30:34]SAM_PROTO_GetShiftState [11:30:34]wFMCommunicate request_size=4 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 13 01 00 [11:30:34]Write to MH i2c: E2 08 00 37 10 80 13 01 00 00 00 00 00 C4 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 0E 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 0E 00 37 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A5 [11:30:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:30:34]wFMCommunicate OK [11:30:34]SAM_PROTO_GetShiftState done [11:30:34]FM_GetShiftState done [11:30:34]opened in 1720831249 [11:30:34]opened+sec_in_day 1720917649 [11:30:34]quantity*price = 65800 [11:30:34]sum+1 = 65801 [11:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 110 13.07.2024 11:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164550 ФПД: 152685394109961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164550&fm=152685394109961&tin=02508201610067®Number=0000000000090829&sum=65800 [11:30:35]StoreToDocumentArchive [11:30:35]shift 446 fd 164550 [11:30:35]save to /storage/0446/doc_00164550 [11:30:35]save last doc name /storage/0446/doc_00164550 to /storage/kkm_last_doc_name [11:30:35]save OK [11:30:35]Clear old archive folders... [11:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:35]tlvbuf is 01497430 [11:30:35]SAM_PROTO_ClearQueue [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 09 00 00 [11:30:35]Write to MH i2c: E2 08 00 44 10 80 09 00 00 00 00 00 00 C6 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_ClearQueue done [11:30:35]KKMCreateOFDPacket [11:30:35]OFDProtocolAddRootSTLVToBuf [11:30:35]FM_MakeSignedData [11:30:35]FM_MakeSignedData [11:30:35]SAM_PROTO_SignData [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 0D 01 02 [11:30:35]Write to MH i2c: E2 08 00 45 10 80 0D 01 02 00 00 00 00 CE [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]wFMCommunicate request_size=255 [11:30:35]MH_SAM_APDU [11:30: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6E 00 00 00 F4 03 04 00 5C 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 82 02 00 35 04 06 00 8A [11:30:35]Write to MH i2c: E2 02 01 46 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6E 00 00 00 F4 03 04 00 5C 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 82 02 00 35 04 06 00 8A 00 00 69 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]wFMCommunicate request_size=10 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 02 02 05 DD D6 AD A6 09 [11:30:36]Write to MH i2c: E2 0D 00 47 10 80 0D 02 02 05 00 DD D6 AD A6 09 00 00 EA [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [11:30:36]RAPDU: 90 00 [11:30:36]wFMCommunicate OK [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 0D 03 02 [11:30:36]Write to MH i2c: E2 08 00 48 10 80 0D 03 02 00 00 00 00 D3 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0B 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0B 00 48 10 00 8D F1 D5 2F 36 A8 D9 8B 90 00 98 [11:30:36]RAPDU: 8D F1 D5 2F 36 A8 D9 8B 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_SignData done [11:30:36]FM_MakeSignedData done [11:30:36]CreateOFDProtocolMessage [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 11 00 00 [11:30:36]Write to MH i2c: E2 08 00 49 10 80 11 00 00 00 00 00 00 D3 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 49 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [11:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:36]wFMCommunicate OK [11:30:36]CreateOFDProtocolMessage done [11:30:36]OFDSenderStorePacket 164550 [11:30:36]StoreOFDPacket docnum=164550 [11:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 0E 07 01 CE 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6E 00 00 00 F4 03 04 00 5C 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 82 02 00 35 04 06 00 8A DD D6 AD A6 09 8D F1 D5 2F 36 A8 D9 8B [11:30:36]CheckFolder [11:30:36]dirname=/storage/ofd_packets [11:30:36]CheckFolder done [11:30:36]ProducePacketName [11:30:36]name=ofd_packets/00164550 [11:30:36]NVStorageSaveData ofd_packets/00164550 [11:30:36]File name is /storage/ofd_packets/00164550 [11:30:36]Write 301 bytes [11:30:36]NVStorageSaveData done [11:30:36]OFDSenderStorePacket done [11:30:36]KKMCreateOFDPacket done [11:30:36]NVStorageSaveData kkm_last_timestamp [11:30:36]File name is /storage/kkm_last_timestamp [11:30:36]Write 4 bytes [11:30:36]NVStorageSaveData done [11:30:36]ExternCall_PrintAddStr [11:30:36]wPrintStart [11:30:36]Write to MH i2c: 01 00 00 4A 10 5A [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 4A 10 00 00 00 00 00 FF 0F 6F [11:30:36]RasterBufferAndPrint [11:30:36]line Счет N : (1)458640 [11:30:36]line ИНН: 02508201610067 [11:30:36]line Контрольно-Кассовый Чек [11:30:36]line ПРОДАЖА [11:30:36]line ТРК (МРК, ГНК) : 12 [11:30:36]line Товар: 2710124130 [11:30:36]line Аи-92-К-5 [11:30:36]line 10.000 * 65.80 [11:30:36]line = 658.00 [11:30:36]line НДС 12% НСП 1% [11:30:36]line > о реализуемом товаре [11:30:36]line ИТОГО: 658.00 [11:30:36]line НСП 1% : 5.82 [11:30:36]line НДС 12% : 69.88 [11:30:36]line Наличными: 658.00 [11:30:36]line Безнал.: 0.00 [11:30:36]line Место: АЗС № 72 "Партнер Нефть" [11:30:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:36]line СНО: Общий режим [11:30:36]line Чек 110 13.07.2024 11:30 [11:30:36]line Смена: 446 ФФД: 1.0 [11:30:36]line ЗНМ: 0300000160 [11:30:36]line РНМ: 0000000000090829 [11:30:36]line Версия ККМ: 001 [11:30:36]line ФМ: 0000000000874718 [11:30:36]line ФД: 164550 [11:30:36]line ФПД: 152685394109961 [11:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164550&fm=152685394109961&tin=02508201610067®Number=0000000000090829&sum=65800 [11:30:36]written 0, free lines is 4095 [11:30:36]OFD Sender: Processing packet 164550 [packets to send 104, broken 103] [11:30:36]ProducePacketName [11:30:36]name=ofd_packets/00164550 [11:30:36]OFD Sender: To server: pG, [11:30:36]CommunicateWithHost lk.salyk.kg:30040 [11:30:36]ConnectInit lk.salyk.kg [11:30:36]Connected sock=10 [11:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 0E 07 01 CE 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6E 00 00 00 F4 03 04 00 5C 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 82 02 00 35 04 06 00 8A DD D6 AD A6 09 8D F1 D5 2F 36 A8 D9 8B [11:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 01 46 47 00 5B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 82 02 00 F4 03 04 00 ED 0B 92 66 B6 04 01 00 00 A7 2F F3 17 88 90 DD CA [11:30:36]CommunicateWithHost err = 0 [11:30:36]CheckOFDResponse [11:30:36]1017 (14) - 77093643461234 [11:30:36]1041 (16) - 0000000000874718 [11:30:36]1040 (4) - 164550 [11:30:36]1012 (4) - 13.07.2024 05:09 [11:30:36]1206 (1) - 0 [11:30:36]OFD Sender: Remove packet 164550 [11:30:36]ProducePacketName [11:30:36]name=ofd_packets/00164550 [11:30:36]NVStorageDeleteData [11:30:37]Write to MH i2c: 01 00 00 71 10 81 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 07 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 07 00 71 10 00 00 00 00 00 25 0D BA [11:30:37]RasterBufferAndPrint [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]line [11:30:37]written 0, free lines is 3371 [11:30:37]MH_Cut [11:30:37]Write to MH i2c: D1 01 00 78 10 01 5A [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 01 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: D1 01 00 78 10 00 59 [11:30:37]Write to MH i2c: 01 00 00 79 10 89 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]OFD Sender: No OFD packet to send [11:30:37]*** Cut start [11:30:37]*** Partial cut [11:30:37]*** CUTSNS_PIN = 1 [11:30:37]*** CUTSNS_PIN = 0 [11:30:37]*** Brake cut motor [11:30:38]Read from MH i2c: 01 [11:30:38]MH_I2C_Read... [11:30:38]*** Stop cut motor [11:30:38]*** Cut end [11:30:38]Read from MH i2c: 01 07 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: 01 07 00 79 10 00 00 00 00 00 FF 0F 9E [11:30:38]process_action close_receipt done [11:30:38]requested_data is exist [11:30:38]produce_requested_data [11:30:38]requested_item fm.sn is exist - process it [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 11 00 00 [11:30:38]Write to MH i2c: E2 08 00 7A 10 80 11 00 00 00 00 00 00 04 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 17 00 7A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [11:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:38]wFMCommunicate OK [11:30:38]requested_item fd.num is exist - process it [11:30:38]SAM_PROTO_GetFieldsCounters [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 13 00 00 [11:30:38]Write to MH i2c: E2 08 00 7B 10 80 13 00 00 00 00 00 00 07 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 62 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 62 00 7B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 82 02 00 0E 04 04 00 BE 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 81 [11:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:38]wFMCommunicate OK [11:30:38]SAM_PROTO_GetFieldsCounters done [11:30:38]requested_item shift.num is exist - process it [11:30:38]requested_item shift.opened is exist - process it [11:30:38]req_shift_opened [11:30:38]FM_GetShiftState [11:30:38]SAM_PROTO_GetShiftState [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 13 01 00 [11:30:38]Write to MH i2c: E2 08 00 7C 10 80 13 01 00 00 00 00 00 09 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 0E 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 0E 00 7C 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EA [11:30:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:30:38]wFMCommunicate OK [11:30:38]SAM_PROTO_GetShiftState done [11:30:38]FM_GetShiftState done [11:30:38]req_shift_opened done [11:30:38]requested_item shift.open_date is exist - process it [11:30:38]req_shift_open_date [11:30:38]req_shift_open_date done [11:30:38]produce_requested_data done [11:30:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164550,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:30:38]process_action_free close_receipt [11:30:38]json_value_free [11:30:38]json_value_free done [11:30:38]process_json_proto returns [11:30:38]Send response to host [11:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164550,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:30:38]free response buf [11:30:38]execute_script done [11:30:38]execute_script returns [11:30:38]free content buf [11:30:38]Sock 9.Close socket [11:30:38]Sock 9.Thread stoped [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:22]accept exits with 7 [11:32:22]New connection [11:32:22]New thread 3067293028 created [11:32:22]Thread 3067149668 joined [11:32:22]Waiting for new connection... [11:32:22] Sock 7.Parse request [11:32:22]Sock 7.Check first char [11:32:22]Sock 7.First char is OK [11:32:22]request: POST /json_proto HTTP/1.0 [11:32:22]Method: POST [11:32:22]URL: /json_proto [11:32:22]Method is POST - this is cgi request [11:32:22]url: /json_proto [11:32:22]query_string will be loaded in cgi processing [11:32:22]execute_cgi json_proto POST (null) [11:32:22]execute_cgi path=json_proto method=POST [11:32:22]POST find Content-Length [11:32:22]Host: 172.17.56.4:8080 [11:32:22]Content-Length: 640 [11:32:22]Content-Type: application/json [11:32:22] [11:32:22]POST finish read [11:32:22]Found Content-Length = 640 [11:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:22]execute_script... [11:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:22]POST & json_proto [11:32:22]process_json_proto [11:32:22]json parsed OK: [11:32:22]protocol is kg_v1.0 [11:32:22]action value=close_receipt [11:32:22]process_action close_receipt [11:32:22]cmd_close_receipt [11:32:22]MH_GetDate [11:32:22]Write to MH i2c: F0 00 00 7D 10 7C [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: F0 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: F0 09 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: F0 09 00 7D 10 00 C8 65 92 66 C9 DC B2 64 65 [11:32:22]GetLastDocTimeStamp 1720870236 [11:32:22]current date 1720870344 [11:32:22]FM_GetShiftState [11:32:22]SAM_PROTO_GetShiftState [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 13 01 00 [11:32:22]Write to MH i2c: E2 08 00 7E 10 80 13 01 00 00 00 00 00 0B [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 0E 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 0E 00 7E 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EC [11:32:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_GetShiftState done [11:32:22]FM_GetShiftState done [11:32:22]opened in 1720831249 [11:32:22]opened+sec_in_day 1720917649 [11:32:22]quantity*price = 65800 [11:32:22]sum+1 = 65801 [11:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 111 13.07.2024 11:32 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164551 ФПД: 167932271717747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164551&fm=167932271717747&tin=02508201610067®Number=0000000000090829&sum=65800 [11:32:23]StoreToDocumentArchive [11:32:23]shift 446 fd 164551 [11:32:23]save to /storage/0446/doc_00164551 [11:32:23]save last doc name /storage/0446/doc_00164551 to /storage/kkm_last_doc_name [11:32:23]save OK [11:32:23]Clear old archive folders... [11:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:23]tlvbuf is B6F2D690 [11:32:23]SAM_PROTO_ClearQueue [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 09 00 00 [11:32:23]Write to MH i2c: E2 08 00 8B 10 80 09 00 00 00 00 00 00 0D [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:24]Read from MH i2c: E2 03 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [11:32:24]RAPDU: 90 00 [11:32:24]wFMCommunicate OK [11:32:24]SAM_PROTO_ClearQueue done [11:32:24]KKMCreateOFDPacket [11:32:24]OFDProtocolAddRootSTLVToBuf [11:32:24]FM_MakeSignedData [11:32:24]FM_MakeSignedData [11:32:24]SAM_PROTO_SignData [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 0D 01 02 [11:32:24]Write to MH i2c: E2 08 00 8C 10 80 0D 01 02 00 00 00 00 15 [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [11:32:24]RAPDU: 90 00 [11:32:24]wFMCommunicate OK [11:32:24]wFMCommunicate request_size=255 [11:32:24]MH_SAM_APDU [11:32: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6F 00 00 00 F4 03 04 00 C8 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 82 02 00 35 04 06 00 98 [11:32:24]Write to MH i2c: E2 02 01 8D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6F 00 00 00 F4 03 04 00 C8 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 82 02 00 35 04 06 00 98 00 00 2C [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [11:32:24]RAPDU: 90 00 [11:32:24]wFMCommunicate OK [11:32:24]wFMCommunicate request_size=10 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 0D 02 02 05 BB C7 66 ED 73 [11:32:24]Write to MH i2c: E2 0D 00 8E 10 80 0D 02 02 05 00 BB C7 66 ED 73 00 00 6A [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [11:32:24]RAPDU: 90 00 [11:32:24]wFMCommunicate OK [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 0D 03 02 [11:32:24]Write to MH i2c: E2 08 00 8F 10 80 0D 03 02 00 00 00 00 1A [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 0B 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 0B 00 8F 10 00 F6 F1 6D 9B D1 27 67 25 90 00 8E [11:32:24]RAPDU: F6 F1 6D 9B D1 27 67 25 90 00 [11:32:24]wFMCommunicate OK [11:32:24]SAM_PROTO_SignData done [11:32:24]FM_MakeSignedData done [11:32:24]CreateOFDProtocolMessage [11:32:24]wFMCommunicate request_size=4 [11:32:24]MH_SAM_APDU [11:32:24]CAPDU: 80 11 00 00 [11:32:24]Write to MH i2c: E2 08 00 90 10 80 11 00 00 00 00 00 00 1A [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:24]Read from MH i2c: E2 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 17 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: E2 17 00 90 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [11:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:24]wFMCommunicate OK [11:32:24]CreateOFDProtocolMessage done [11:32:24]OFDSenderStorePacket 164551 [11:32:24]StoreOFDPacket docnum=164551 [11:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D3 FD 07 01 3F 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6F 00 00 00 F4 03 04 00 C8 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 82 02 00 35 04 06 00 98 BB C7 66 ED 73 F6 F1 6D 9B D1 27 67 25 [11:32:24]CheckFolder [11:32:24]dirname=/storage/ofd_packets [11:32:24]CheckFolder done [11:32:24]ProducePacketName [11:32:24]name=ofd_packets/00164551 [11:32:24]NVStorageSaveData ofd_packets/00164551 [11:32:24]File name is /storage/ofd_packets/00164551 [11:32:24]Write 301 bytes [11:32:24]NVStorageSaveData done [11:32:24]OFDSenderStorePacket done [11:32:24]KKMCreateOFDPacket done [11:32:24]NVStorageSaveData kkm_last_timestamp [11:32:24]File name is /storage/kkm_last_timestamp [11:32:24]Write 4 bytes [11:32:24]NVStorageSaveData done [11:32:24]ExternCall_PrintAddStr [11:32:24]wPrintStart [11:32:24]Write to MH i2c: 01 00 00 91 10 A1 [11:32:24]Write i2c OK [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: 01 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: 01 07 00 [11:32:24]MH_I2C_Read... [11:32:24]Read from MH i2c: 01 07 00 91 10 00 00 00 00 00 FF 0F B6 [11:32:24]RasterBufferAndPrint [11:32:24]line Счет N : (1)458641 [11:32:24]line ИНН: 02508201610067 [11:32:24]line Контрольно-Кассовый Чек [11:32:24]line ПРОДАЖА [11:32:24]line ТРК (МРК, ГНК) : 22 [11:32:24]line Товар: 2710124130 [11:32:24]line Аи-92-К-5 [11:32:24]line 10.000 * 65.80 [11:32:24]line = 658.00 [11:32:24]line НДС 12% НСП 1% [11:32:24]line > о реализуемом товаре [11:32:24]line ИТОГО: 658.00 [11:32:24]line НСП 1% : 5.82 [11:32:24]line НДС 12% : 69.88 [11:32:24]line Наличными: 658.00 [11:32:24]line Безнал.: 0.00 [11:32:24]line Место: АЗС № 72 "Партнер Нефть" [11:32:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:32:24]line СНО: Общий режим [11:32:24]line Чек 111 13.07.2024 11:32 [11:32:24]line Смена: 446 ФФД: 1.0 [11:32:24]line ЗНМ: 0300000160 [11:32:24]line РНМ: 0000000000090829 [11:32:24]line Версия ККМ: 001 [11:32:24]line ФМ: 0000000000874718 [11:32:24]line ФД: 164551 [11:32:24]line ФПД: 167932271717747 [11:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164551&fm=167932271717747&tin=02508201610067®Number=0000000000090829&sum=65800 [11:32:24]OFD Sender: Processing packet 164551 [packets to send 104, broken 103] [11:32:24]ProducePacketName [11:32:24]name=ofd_packets/00164551 [11:32:24]OFD Sender: To server: pG, [11:32:24]CommunicateWithHost lk.salyk.kg:30040 [11:32:24]ConnectInit lk.salyk.kg [11:32:24]written 0, free lines is 4095 [11:32:24]Connected sock=10 [11:32:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D3 FD 07 01 3F 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 6F 00 00 00 F4 03 04 00 C8 65 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 82 02 00 35 04 06 00 98 BB C7 66 ED 73 F6 F1 6D 9B D1 27 67 25 [11:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 3C 47 00 83 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 82 02 00 F4 03 04 00 59 0C 92 66 B6 04 01 00 00 8C 99 31 9B 66 B0 97 5F [11:32:25]CommunicateWithHost err = 0 [11:32:25]CheckOFDResponse [11:32:25]1017 (14) - 77093643461234 [11:32:25]1041 (16) - 0000000000874718 [11:32:25]1040 (4) - 164551 [11:32:25]1012 (4) - 13.07.2024 05:10 [11:32:25]1206 (1) - 0 [11:32:25]OFD Sender: Remove packet 164551 [11:32:25]ProducePacketName [11:32:25]name=ofd_packets/00164551 [11:32:25]NVStorageDeleteData [11:32:25]Write to MH i2c: 01 00 00 B8 10 C8 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: 01 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: 01 07 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 25 0D 01 [11:32:25]RasterBufferAndPrint [11:32:25]line [11:32:25]line [11:32:25]line [11:32:25]line [11:32:25]line [11:32:25]written 0, free lines is 3371 [11:32:25]MH_Cut [11:32:25]Write to MH i2c: D1 01 00 BF 10 01 A1 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: D1 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: D1 01 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: D1 01 00 BF 10 00 A0 [11:32:25]Write to MH i2c: 01 00 00 C0 10 D0 [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]OFD Sender: No OFD packet to send [11:32:25]*** Cut start [11:32:25]*** Partial cut [11:32:25]*** CUTSNS_PIN = 1 [11:32:25]*** CUTSNS_PIN = 0 [11:32:26]*** Brake cut motor [11:32:26]Read from MH i2c: 01 [11:32:26]MH_I2C_Read... [11:32:26]*** Stop cut motor [11:32:26]*** Cut end [11:32:26]Read from MH i2c: 01 07 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: 01 07 00 C0 10 00 00 00 00 00 FF 0F E5 [11:32:26]process_action close_receipt done [11:32:26]requested_data is exist [11:32:26]produce_requested_data [11:32:26]requested_item fm.sn is exist - process it [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 11 00 00 [11:32:26]Write to MH i2c: E2 08 00 C1 10 80 11 00 00 00 00 00 00 4B [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 17 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 17 00 C1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [11:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:26]wFMCommunicate OK [11:32:26]requested_item fd.num is exist - process it [11:32:26]SAM_PROTO_GetFieldsCounters [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 13 00 00 [11:32:26]Write to MH i2c: E2 08 00 C2 10 80 13 00 00 00 00 00 00 4E [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 62 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 62 00 C2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 82 02 00 0E 04 04 00 BE 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 [11:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetFieldsCounters done [11:32:26]requested_item shift.num is exist - process it [11:32:26]requested_item shift.opened is exist - process it [11:32:26]req_shift_opened [11:32:26]FM_GetShiftState [11:32:26]SAM_PROTO_GetShiftState [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 13 01 00 [11:32:26]Write to MH i2c: E2 08 00 C3 10 80 13 01 00 00 00 00 00 50 [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 C3 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 31 [11:32:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetShiftState done [11:32:26]FM_GetShiftState done [11:32:26]req_shift_opened done [11:32:26]requested_item shift.open_date is exist - process it [11:32:26]req_shift_open_date [11:32:26]req_shift_open_date done [11:32:26]produce_requested_data done [11:32:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164551,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:32:26]process_action_free close_receipt [11:32:26]json_value_free [11:32:26]json_value_free done [11:32:26]process_json_proto returns [11:32:26]Send response to host [11:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164551,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:32:26]free response buf [11:32:26]execute_script done [11:32:26]execute_script returns [11:32:26]free content buf [11:32:26]Sock 7.Close socket [11:32:26]Sock 7.Thread stoped [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:35:58]accept exits with 9 [11:35:58]New connection [11:35:58]New thread 3067149668 created [11:35:58]Thread 3067293028 joined [11:35:58]Waiting for new connection... [11:35:58] Sock 9.Parse request [11:35:58]Sock 9.Check first char [11:35:58]Sock 9.First char is OK [11:35:58]request: POST /json_proto HTTP/1.0 [11:35:58]Method: POST [11:35:58]URL: /json_proto [11:35:58]Method is POST - this is cgi request [11:35:58]url: /json_proto [11:35:58]query_string will be loaded in cgi processing [11:35:58]execute_cgi json_proto POST (null) [11:35:58]execute_cgi path=json_proto method=POST [11:35:58]POST find Content-Length [11:35:58]Host: 172.17.56.4:8080 [11:35:58]Content-Length: 682 [11:35:58]Content-Type: application/json [11:35:58] [11:35:58]POST finish read [11:35:58]Found Content-Length = 682 [11:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:58]execute_script... [11:35: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)458642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:58]POST & json_proto [11:35:58]process_json_proto [11:35:58]json parsed OK: [11:35:58]protocol is kg_v1.0 [11:35:58]action value=close_receipt [11:35:58]process_action close_receipt [11:35:58]cmd_close_receipt [11:35:58]MH_GetDate [11:35:58]Write to MH i2c: F0 00 00 C4 10 C3 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: F0 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: F0 09 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: F0 09 00 C4 10 00 9F 66 92 66 C9 DC B2 64 84 [11:35:58]GetLastDocTimeStamp 1720870344 [11:35:58]current date 1720870559 [11:35:58]FM_GetShiftState [11:35:58]SAM_PROTO_GetShiftState [11:35:58]wFMCommunicate request_size=4 [11:35:58]MH_SAM_APDU [11:35:58]CAPDU: 80 13 01 00 [11:35:58]Write to MH i2c: E2 08 00 C5 10 80 13 01 00 00 00 00 00 52 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0E 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0E 00 C5 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 33 [11:35:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:35:58]wFMCommunicate OK [11:35:58]SAM_PROTO_GetShiftState done [11:35:58]FM_GetShiftState done [11:35:58]opened in 1720831249 [11:35:58]opened+sec_in_day 1720917649 [11:35:58]quantity*price = 100016 [11:35:58]sum+1 = 100017 [11:35:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 112 13.07.2024 11:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164552 ФПД: 253204403247468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164552&fm=253204403247468&tin=02508201610067®Number=0000000000090829&sum=100000 [11:35:59]StoreToDocumentArchive [11:35:59]shift 446 fd 164552 [11:35:59]save to /storage/0446/doc_00164552 [11:35:59]save last doc name /storage/0446/doc_00164552 to /storage/kkm_last_doc_name [11:35:59]save OK [11:35:59]Clear old archive folders... [11:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:59]tlvbuf is 01478C30 [11:35:59]SAM_PROTO_ClearQueue [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 09 00 00 [11:35:59]Write to MH i2c: E2 08 00 D2 10 80 09 00 00 00 00 00 00 54 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:59]Read from MH i2c: E2 03 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [11:35:59]RAPDU: 90 00 [11:35:59]wFMCommunicate OK [11:35:59]SAM_PROTO_ClearQueue done [11:35:59]KKMCreateOFDPacket [11:35:59]OFDProtocolAddRootSTLVToBuf [11:35:59]FM_MakeSignedData [11:35:59]FM_MakeSignedData [11:35:59]SAM_PROTO_SignData [11:35:59]wFMCommunicate request_size=4 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 0D 01 02 [11:35:59]Write to MH i2c: E2 08 00 D3 10 80 0D 01 02 00 00 00 00 5C [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 03 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [11:35:59]RAPDU: 90 00 [11:35:59]wFMCommunicate OK [11:35:59]wFMCommunicate request_size=255 [11:35:59]MH_SAM_APDU [11:35: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A0 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 82 02 00 35 04 06 00 E6 [11:35:59]Write to MH i2c: E2 02 01 D4 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A0 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 82 02 00 35 04 06 00 E6 00 00 D6 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:59]Read from MH i2c: E2 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 03 00 [11:35:59]MH_I2C_Read... [11:35:59]Read from MH i2c: E2 03 00 D4 10 00 90 00 58 [11:35:59]RAPDU: 90 00 [11:35:59]wFMCommunicate OK [11:35:59]wFMCommunicate request_size=10 [11:35:59]MH_SAM_APDU [11:35:59]CAPDU: 80 0D 02 02 05 49 BE 82 D9 6C [11:35:59]Write to MH i2c: E2 0D 00 D5 10 80 0D 02 02 05 00 49 BE 82 D9 6C 00 00 37 [11:35:59]Write i2c OK [11:35:59]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 03 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [11:36:00]RAPDU: 90 00 [11:36:00]wFMCommunicate OK [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 0D 03 02 [11:36:00]Write to MH i2c: E2 08 00 D6 10 80 0D 03 02 00 00 00 00 61 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0B 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 0B 00 D6 10 00 11 71 C5 F9 8D B1 D9 9B 90 00 54 [11:36:00]RAPDU: 11 71 C5 F9 8D B1 D9 9B 90 00 [11:36:00]wFMCommunicate OK [11:36:00]SAM_PROTO_SignData done [11:36:00]FM_MakeSignedData done [11:36:00]CreateOFDProtocolMessage [11:36:00]wFMCommunicate request_size=4 [11:36:00]MH_SAM_APDU [11:36:00]CAPDU: 80 11 00 00 [11:36:00]Write to MH i2c: E2 08 00 D7 10 80 11 00 00 00 00 00 00 61 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:00]Read from MH i2c: E2 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 17 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: E2 17 00 D7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [11:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:00]wFMCommunicate OK [11:36:00]CreateOFDProtocolMessage done [11:36:00]OFDSenderStorePacket 164552 [11:36:00]StoreOFDPacket docnum=164552 [11:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 4C 07 01 F3 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A0 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 82 02 00 35 04 06 00 E6 49 BE 82 D9 6C 11 71 C5 F9 8D B1 D9 9B [11:36:00]CheckFolder [11:36:00]dirname=/storage/ofd_packets [11:36:00]CheckFolder done [11:36:00]ProducePacketName [11:36:00]name=ofd_packets/00164552 [11:36:00]NVStorageSaveData ofd_packets/00164552 [11:36:00]File name is /storage/ofd_packets/00164552 [11:36:00]Write 301 bytes [11:36:00]NVStorageSaveData done [11:36:00]OFDSenderStorePacket done [11:36:00]KKMCreateOFDPacket done [11:36:00]NVStorageSaveData kkm_last_timestamp [11:36:00]File name is /storage/kkm_last_timestamp [11:36:00]Write 4 bytes [11:36:00]NVStorageSaveData done [11:36:00]ExternCall_PrintAddStr [11:36:00]wPrintStart [11:36:00]Write to MH i2c: 01 00 00 D8 10 E8 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 07 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [11:36:00]RasterBufferAndPrint [11:36:00]line Счет N : (1)458642 [11:36:00]line ИНН: 02508201610067 [11:36:00]line Контрольно-Кассовый Чек [11:36:00]line ПРОДАЖА [11:36:00]line ТРК (МРК, ГНК) : 12 [11:36:00]line Товар: 2710124130 [11:36:00]line Аи-92-К-5 [11:36:00]line 15.200 * 65.80 [11:36:00]line = 1000.16 [11:36:00]line НДС 12% НСП 1% [11:36:00]line > о реализуемом товаре [11:36:00]line ОКРУГЛЕНИЕ: -0.16 [11:36:00]line ИТОГО: 1000.00 [11:36:00]line Внесено: 1000.00 [11:36:00]line СДАЧА: 0.00 [11:36:00]line НСП 1% : 8.85 [11:36:00]line НДС 12% : 106.21 [11:36:00]line Наличными: 1000.00 [11:36:00]line Безнал.: 0.00 [11:36:00]line Место: АЗС № 72 "Партнер Нефть" [11:36:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:36:00]line СНО: Общий режим [11:36:00]line Чек 112 13.07.2024 11:36 [11:36:00]line Смена: 446 ФФД: 1.0 [11:36:00]line ЗНМ: 0300000160 [11:36:00]line РНМ: 0000000000090829 [11:36:00]line Версия ККМ: 001 [11:36:00]line ФМ: 0000000000874718 [11:36:00]line ФД: 164552 [11:36:00]line ФПД: 253204403247468 [11:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113600&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164552&fm=253204403247468&tin=02508201610067®Number=0000000000090829&sum=100000 [11:36:00]OFD Sender: Processing packet 164552 [packets to send 104, broken 103] [11:36:00]ProducePacketName [11:36:00]name=ofd_packets/00164552 [11:36:00]OFD Sender: To server: pG, [11:36:00]CommunicateWithHost lk.salyk.kg:30040 [11:36:00]ConnectInit lk.salyk.kg [11:36:00]written 0, free lines is 4095 [11:36:00]Connected sock=10 [11:36:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 4C 07 01 F3 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 A0 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 82 02 00 35 04 06 00 E6 49 BE 82 D9 6C 11 71 C5 F9 8D B1 D9 9B [11:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 53 47 00 FB 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 34 37 31 38 10 04 04 00 C8 82 02 00 F4 03 04 00 31 0D 92 66 B6 04 01 00 00 96 A3 88 A2 16 D3 3F FE [11:36:00]CommunicateWithHost err = 0 [11:36:00]CheckOFDResponse [11:36:00]1017 (14) - 77093643461234 [11:36:00]1041 (16) - 0000000000874718 [11:36:00]1040 (4) - 164552 [11:36:00]1012 (4) - 13.07.2024 05:14 [11:36:00]1206 (1) - 0 [11:36:00]OFD Sender: Remove packet 164552 [11:36:00]ProducePacketName [11:36:00]name=ofd_packets/00164552 [11:36:00]NVStorageDeleteData [11:36:00]Write to MH i2c: 01 00 00 02 11 13 [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 07 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: 01 07 00 02 11 00 00 00 00 00 02 0D 29 [11:36:00]RasterBufferAndPrint [11:36:00]line [11:36:00]line [11:36:00]line [11:36:00]line [11:36:00]line [11:36:00]written 0, free lines is 3336 [11:36:00]MH_Cut [11:36:00]Write to MH i2c: D1 01 00 09 11 01 EC [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: D1 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: D1 01 00 [11:36:00]MH_I2C_Read... [11:36:00]Read from MH i2c: D1 01 00 09 11 00 EB [11:36:00]Write to MH i2c: 01 00 00 0A 11 1B [11:36:00]Write i2c OK [11:36:00]MH_I2C_Read... [11:36:01]OFD Sender: No OFD packet to send [11:36:01]*** Cut start [11:36:01]*** Partial cut [11:36:01]*** CUTSNS_PIN = 1 [11:36:01]*** CUTSNS_PIN = 0 [11:36:01]*** Brake cut motor [11:36:02]Read from MH i2c: 01 [11:36:02]MH_I2C_Read... [11:36:02]*** Stop cut motor [11:36:02]*** Cut end [11:36:02]Read from MH i2c: 01 07 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 FF 0F 30 [11:36:02]process_action close_receipt done [11:36:02]requested_data is exist [11:36:02]produce_requested_data [11:36:02]requested_item fm.sn is exist - process it [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 11 00 00 [11:36:02]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 17 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [11:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:02]wFMCommunicate OK [11:36:02]requested_item fd.num is exist - process it [11:36:02]SAM_PROTO_GetFieldsCounters [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 13 00 00 [11:36:02]Write to MH i2c: E2 08 00 0C 11 80 13 00 00 00 00 00 00 99 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 62 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 62 00 0C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 82 02 00 0E 04 04 00 BE 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 [11:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_GetFieldsCounters done [11:36:02]requested_item shift.num is exist - process it [11:36:02]requested_item shift.opened is exist - process it [11:36:02]req_shift_opened [11:36:02]FM_GetShiftState [11:36:02]SAM_PROTO_GetShiftState [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 13 01 00 [11:36:02]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [11:36:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_GetShiftState done [11:36:02]FM_GetShiftState done [11:36:02]req_shift_opened done [11:36:02]requested_item shift.open_date is exist - process it [11:36:02]req_shift_open_date [11:36:02]req_shift_open_date done [11:36:02]produce_requested_data done [11:36:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164552,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:36:02]process_action_free close_receipt [11:36:02]json_value_free [11:36:02]json_value_free done [11:36:02]process_json_proto returns [11:36:02]Send response to host [11:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164552,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:36:02]free response buf [11:36:02]execute_script done [11:36:02]execute_script returns [11:36:02]free content buf [11:36:02]Sock 9.Close socket [11:36:02]Sock 9.Thread stoped [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:32]accept exits with 7 [11:37:32]New connection [11:37:32]New thread 3067293028 created [11:37:32]Thread 3067149668 joined [11:37:32]Waiting for new connection... [11:37:32] Sock 7.Parse request [11:37:32]Sock 7.Check first char [11:37:32]Sock 7.First char is OK [11:37:32]request: POST /json_proto HTTP/1.0 [11:37:32]Method: POST [11:37:32]URL: /json_proto [11:37:32]Method is POST - this is cgi request [11:37:32]url: /json_proto [11:37:32]query_string will be loaded in cgi processing [11:37:32]execute_cgi json_proto POST (null) [11:37:32]execute_cgi path=json_proto method=POST [11:37:32]POST find Content-Length [11:37:32]Host: 172.17.56.4:8080 [11:37:32]Content-Length: 790 [11:37:32]Content-Type: application/json [11:37:32] [11:37:32]POST finish read [11:37:32]Found Content-Length = 790 [11:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:32]execute_script... [11:37: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)458643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:32]POST & json_proto [11:37:32]process_json_proto [11:37:32]json parsed OK: [11:37:32]protocol is kg_v1.0 [11:37:32]action value=close_receipt [11:37:32]process_action close_receipt [11:37:32]cmd_close_receipt [11:37:32]MH_GetDate [11:37:32]Write to MH i2c: F0 00 00 0E 11 0E [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 09 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: F0 09 00 0E 11 00 FE 66 92 66 C9 DC B2 64 2E [11:37:32]GetLastDocTimeStamp 1720870560 [11:37:32]current date 1720870654 [11:37:32]FM_GetShiftState [11:37:32]SAM_PROTO_GetShiftState [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 13 01 00 [11:37:32]Write to MH i2c: E2 08 00 0F 11 80 13 01 00 00 00 00 00 9D [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0E 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0E 00 0F 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7E [11:37:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:37:32]wFMCommunicate OK [11:37:32]SAM_PROTO_GetShiftState done [11:37:32]FM_GetShiftState done [11:37:32]opened in 1720831249 [11:37:32]opened+sec_in_day 1720917649 [11:37:32]quantity*price = 20022 [11:37:32]sum+1 = 20024 [11:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 113 13.07.2024 11:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164553 ФПД: 243393641963991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164553&fm=243393641963991&tin=02508201610067®Number=0000000000090829&sum=20023 [11:37:34]StoreToDocumentArchive [11:37:34]shift 446 fd 164553 [11:37:34]save to /storage/0446/doc_00164553 [11:37:34]save last doc name /storage/0446/doc_00164553 to /storage/kkm_last_doc_name [11:37:34]save OK [11:37:34]Clear old archive folders... [11:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:34]tlvbuf is 014182F0 [11:37:34]SAM_PROTO_ClearQueue [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 09 00 00 [11:37:34]Write to MH i2c: E2 08 00 1C 11 80 09 00 00 00 00 00 00 9F [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [11:37:34]RAPDU: 90 00 [11:37:34]wFMCommunicate OK [11:37:34]SAM_PROTO_ClearQueue done [11:37:34]KKMCreateOFDPacket [11:37:34]OFDProtocolAddRootSTLVToBuf [11:37:34]FM_MakeSignedData [11:37:34]FM_MakeSignedData [11:37:34]SAM_PROTO_SignData [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 0D 01 02 [11:37:34]Write to MH i2c: E2 08 00 1D 11 80 0D 01 02 00 00 00 00 A7 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [11:37:34]RAPDU: 90 00 [11:37:34]wFMCommunicate OK [11:37:34]wFMCommunicate request_size=255 [11:37:34]MH_SAM_APDU [11:37: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FE 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 82 02 00 35 04 06 00 DD [11:37:34]Write to MH i2c: E2 02 01 1E 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FE 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 82 02 00 35 04 06 00 DD 00 00 9F [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [11:37:34]RAPDU: 90 00 [11:37:34]wFMCommunicate OK [11:37:34]wFMCommunicate request_size=10 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 0D 02 02 05 5D 7F 91 E1 D7 [11:37:34]Write to MH i2c: E2 0D 00 1F 11 80 0D 02 02 05 00 5D 7F 91 E1 D7 00 00 D9 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 03 00 1F 11 00 90 00 A4 [11:37:34]RAPDU: 90 00 [11:37:34]wFMCommunicate OK [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 0D 03 02 [11:37:34]Write to MH i2c: E2 08 00 20 11 80 0D 03 02 00 00 00 00 AC [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 0B 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 0B 00 20 11 00 48 16 84 87 51 0A 6F 4F 90 00 2F [11:37:34]RAPDU: 48 16 84 87 51 0A 6F 4F 90 00 [11:37:34]wFMCommunicate OK [11:37:34]SAM_PROTO_SignData done [11:37:34]FM_MakeSignedData done [11:37:34]CreateOFDProtocolMessage [11:37:34]wFMCommunicate request_size=4 [11:37:34]MH_SAM_APDU [11:37:34]CAPDU: 80 11 00 00 [11:37:34]Write to MH i2c: E2 08 00 21 11 80 11 00 00 00 00 00 00 AC [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:34]Read from MH i2c: E2 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 17 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: E2 17 00 21 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [11:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:37:34]wFMCommunicate OK [11:37:34]CreateOFDProtocolMessage done [11:37:34]OFDSenderStorePacket 164553 [11:37:34]StoreOFDPacket docnum=164553 [11:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 48 07 01 DA C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FE 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 82 02 00 35 04 06 00 DD 5D 7F 91 E1 D7 48 16 84 87 51 0A 6F 4F [11:37:34]CheckFolder [11:37:34]dirname=/storage/ofd_packets [11:37:34]CheckFolder done [11:37:34]ProducePacketName [11:37:34]name=ofd_packets/00164553 [11:37:34]NVStorageSaveData ofd_packets/00164553 [11:37:34]File name is /storage/ofd_packets/00164553 [11:37:34]Write 301 bytes [11:37:34]NVStorageSaveData done [11:37:34]OFDSenderStorePacket done [11:37:34]KKMCreateOFDPacket done [11:37:34]NVStorageSaveData kkm_last_timestamp [11:37:34]File name is /storage/kkm_last_timestamp [11:37:34]Write 4 bytes [11:37:34]NVStorageSaveData done [11:37:34]ExternCall_PrintAddStr [11:37:34]wPrintStart [11:37:34]Write to MH i2c: 01 00 00 22 11 33 [11:37:34]Write i2c OK [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 [11:37:34]MH_I2C_Read... [11:37:34]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 FF 0F 48 [11:37:34]RasterBufferAndPrint [11:37:34]line Счет N : (1)458643 [11:37:34]line ИНН: 02508201610067 [11:37:34]line Контрольно-Кассовый Чек [11:37:34]line ПРОДАЖА [11:37:34]line ТРК (МРК, ГНК) : 12 [11:37:34]line Товар: 2710124130 [11:37:34]line Аи-92-К-5 [11:37:34]line 3.070 * 65.22 [11:37:34]line = 200.23 [11:37:34]line НДС 12% НСП 1% [11:37:34]line > о реализуемом товаре [11:37:34]line ИТОГО: 200.23 [11:37:34]line НСП 1% : 1.77 [11:37:34]line НДС 12% : 21.26 [11:37:34]line Наличными: 0.00 [11:37:34]line Безнал.: 200.23 [11:37:34]line Место: АЗС № 72 "Партнер Нефть" [11:37:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:37:34]line СНО: Общий режим [11:37:34]line Чек 113 13.07.2024 11:37 [11:37:34]line Смена: 446 ФФД: 1.0 [11:37:34]line ЗНМ: 0300000160 [11:37:34]line РНМ: 0000000000090829 [11:37:34]line Версия ККМ: 001 [11:37:34]line Платежная система: KICB Банк [11:37:34]line ФМ: 0000000000874718 [11:37:34]line ФД: 164553 [11:37:34]line ФПД: 243393641963991 [11:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164553&fm=243393641963991&tin=02508201610067®Number=0000000000090829&sum=20023 [11:37:34]written 0, free lines is 4095 [11:37:34]OFD Sender: Processing packet 164553 [packets to send 104, broken 103] [11:37:34]ProducePacketName [11:37:34]name=ofd_packets/00164553 [11:37:34]OFD Sender: To server: pG, [11:37:34]CommunicateWithHost lk.salyk.kg:30040 [11:37:34]ConnectInit lk.salyk.kg [11:37:34]Connected sock=10 [11:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 48 07 01 DA C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FE 66 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 82 02 00 35 04 06 00 DD 5D 7F 91 E1 D7 48 16 84 87 51 0A 6F 4F [11:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 2A 47 00 38 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 82 02 00 F4 03 04 00 8F 0D 92 66 B6 04 01 00 00 FF 1A 1C FB 6B D6 C4 E5 [11:37:35]CommunicateWithHost err = 0 [11:37:35]CheckOFDResponse [11:37:35]1017 (14) - 77093643461234 [11:37:35]1041 (16) - 0000000000874718 [11:37:35]1040 (4) - 164553 [11:37:35]1012 (4) - 13.07.2024 05:15 [11:37:35]1206 (1) - 0 [11:37:35]OFD Sender: Remove packet 164553 [11:37:35]ProducePacketName [11:37:35]name=ofd_packets/00164553 [11:37:35]NVStorageDeleteData [11:37:35]Write to MH i2c: 01 00 00 4B 11 5C [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 1A 0D 8A [11:37:35]RasterBufferAndPrint [11:37:35]line [11:37:35]line [11:37:35]line [11:37:35]line [11:37:35]line [11:37:35]written 0, free lines is 3361 [11:37:35]MH_Cut [11:37:35]Write to MH i2c: D1 01 00 52 11 01 35 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: D1 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: D1 01 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: D1 01 00 52 11 00 34 [11:37:35]Write to MH i2c: 01 00 00 53 11 64 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]OFD Sender: No OFD packet to send [11:37:35]*** Cut start [11:37:35]*** Partial cut [11:37:35]*** CUTSNS_PIN = 1 [11:37:35]*** CUTSNS_PIN = 0 [11:37:35]*** Brake cut motor [11:37:36]Read from MH i2c: 01 [11:37:36]MH_I2C_Read... [11:37:36]*** Stop cut motor [11:37:36]*** Cut end [11:37:36]Read from MH i2c: 01 07 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 FF 0F 79 [11:37:36]process_action close_receipt done [11:37:36]requested_data is exist [11:37:36]produce_requested_data [11:37:36]requested_item fm.sn is exist - process it [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 11 00 00 [11:37:36]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 54 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [11:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:37:36]wFMCommunicate OK [11:37:36]requested_item fd.num is exist - process it [11:37:36]SAM_PROTO_GetFieldsCounters [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 13 00 00 [11:37:36]Write to MH i2c: E2 08 00 55 11 80 13 00 00 00 00 00 00 E2 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 62 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 62 00 55 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 82 02 00 0E 04 04 00 BE 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 68 [11:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_GetFieldsCounters done [11:37:36]requested_item shift.num is exist - process it [11:37:36]requested_item shift.opened is exist - process it [11:37:36]req_shift_opened [11:37:36]FM_GetShiftState [11:37:36]SAM_PROTO_GetShiftState [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 13 01 00 [11:37:36]Write to MH i2c: E2 08 00 56 11 80 13 01 00 00 00 00 00 E4 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 56 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C5 [11:37:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_GetShiftState done [11:37:36]FM_GetShiftState done [11:37:36]req_shift_opened done [11:37:36]requested_item shift.open_date is exist - process it [11:37:36]req_shift_open_date [11:37:36]req_shift_open_date done [11:37:36]produce_requested_data done [11:37:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164553,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:37:36]process_action_free close_receipt [11:37:36]json_value_free [11:37:36]json_value_free done [11:37:36]process_json_proto returns [11:37:36]Send response to host [11:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164553,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:37:36]free response buf [11:37:36]execute_script done [11:37:36]execute_script returns [11:37:36]free content buf [11:37:36]Sock 7.Close socket [11:37:36]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:39:57]accept exits with 9 [11:39:57]New connection [11:39:57]New thread 3067149668 created [11:39:57]Thread 3067293028 joined [11:39:57]Waiting for new connection... [11:39:57] Sock 9.Parse request [11:39:57]Sock 9.Check first char [11:39:57]Sock 9.First char is OK [11:39:57]request: POST /json_proto HTTP/1.0 [11:39:57]Method: POST [11:39:57]URL: /json_proto [11:39:57]Method is POST - this is cgi request [11:39:57]url: /json_proto [11:39:57]query_string will be loaded in cgi processing [11:39:57]execute_cgi json_proto POST (null) [11:39:57]execute_cgi path=json_proto method=POST [11:39:57]POST find Content-Length [11:39:57]Host: 172.17.56.4:8080 [11:39:57]Content-Length: 677 [11:39:57]Content-Type: application/json [11:39:57] [11:39:57]POST finish read [11:39:57]Found Content-Length = 677 [11:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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:39:57]execute_script... [11:39:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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:39:57]POST & json_proto [11:39:57]process_json_proto [11:39:57]json parsed OK: [11:39:57]protocol is kg_v1.0 [11:39:57]action value=close_receipt [11:39:57]process_action close_receipt [11:39:57]cmd_close_receipt [11:39:57]MH_GetDate [11:39:57]Write to MH i2c: F0 00 00 57 11 57 [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 57 11 00 8E 67 92 66 C9 DC B2 64 08 [11:39:57]GetLastDocTimeStamp 1720870654 [11:39:57]current date 1720870798 [11:39:57]FM_GetShiftState [11:39:57]SAM_PROTO_GetShiftState [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 13 01 00 [11:39:57]Write to MH i2c: E2 08 00 58 11 80 13 01 00 00 00 00 00 E6 [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 58 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [11:39:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:39:57]wFMCommunicate OK [11:39:57]SAM_PROTO_GetShiftState done [11:39:57]FM_GetShiftState done [11:39:57]opened in 1720831249 [11:39:57]opened+sec_in_day 1720917649 [11:39:57]quantity*price = 25004 [11:39:57]sum+1 = 25005 [11:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 114 13.07.2024 11:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164554 ФПД: 86587288900739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164554&fm=86587288900739&tin=02508201610067®Number=0000000000090829&sum=25000 [11:39:58]StoreToDocumentArchive [11:39:58]shift 446 fd 164554 [11:39:58]save to /storage/0446/doc_00164554 [11:39:58]save last doc name /storage/0446/doc_00164554 to /storage/kkm_last_doc_name [11:39:58]save OK [11:39:58]Clear old archive folders... [11:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:58]tlvbuf is 01496BB0 [11:39:58]SAM_PROTO_ClearQueue [11:39:58]wFMCommunicate request_size=4 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 09 00 00 [11:39:58]Write to MH i2c: E2 08 00 65 11 80 09 00 00 00 00 00 00 E8 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [11:39:58]RAPDU: 90 00 [11:39:58]wFMCommunicate OK [11:39:58]SAM_PROTO_ClearQueue done [11:39:58]KKMCreateOFDPacket [11:39:58]OFDProtocolAddRootSTLVToBuf [11:39:58]FM_MakeSignedData [11:39:58]FM_MakeSignedData [11:39:58]SAM_PROTO_SignData [11:39:58]wFMCommunicate request_size=4 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 0D 01 02 [11:39:58]Write to MH i2c: E2 08 00 66 11 80 0D 01 02 00 00 00 00 F0 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [11:39:58]RAPDU: 90 00 [11:39:58]wFMCommunicate OK [11:39:58]wFMCommunicate request_size=255 [11:39:58]MH_SAM_APDU [11:39: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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8E 67 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 82 02 00 35 04 06 00 4E [11:39:58]Write to MH i2c: E2 02 01 67 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8E 67 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 82 02 00 35 04 06 00 4E 00 00 D2 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [11:39:58]RAPDU: 90 00 [11:39:58]wFMCommunicate OK [11:39:58]wFMCommunicate request_size=10 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 0D 02 02 05 C0 2C 98 D4 83 [11:39:58]Write to MH i2c: E2 0D 00 68 11 80 0D 02 02 05 00 C0 2C 98 D4 83 00 00 D8 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 03 00 68 11 00 90 00 ED [11:39:58]RAPDU: 90 00 [11:39:58]wFMCommunicate OK [11:39:58]wFMCommunicate request_size=4 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 0D 03 02 [11:39:58]Write to MH i2c: E2 08 00 69 11 80 0D 03 02 00 00 00 00 F5 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 0B 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 0B 00 69 11 00 9C 35 06 14 AB 19 1E B8 90 00 7B [11:39:58]RAPDU: 9C 35 06 14 AB 19 1E B8 90 00 [11:39:58]wFMCommunicate OK [11:39:58]SAM_PROTO_SignData done [11:39:58]FM_MakeSignedData done [11:39:58]CreateOFDProtocolMessage [11:39:58]wFMCommunicate request_size=4 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 11 00 00 [11:39:58]Write to MH i2c: E2 08 00 6A 11 80 11 00 00 00 00 00 00 F5 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 17 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 17 00 6A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [11:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:39:58]wFMCommunicate OK [11:39:58]CreateOFDProtocolMessage done [11:39:58]OFDSenderStorePacket 164554 [11:39:58]StoreOFDPacket docnum=164554 [11:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE F9 07 01 5E 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8E 67 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 82 02 00 35 04 06 00 4E C0 2C 98 D4 83 9C 35 06 14 AB 19 1E B8 [11:39:58]CheckFolder [11:39:58]dirname=/storage/ofd_packets [11:39:58]CheckFolder done [11:39:58]ProducePacketName [11:39:58]name=ofd_packets/00164554 [11:39:58]NVStorageSaveData ofd_packets/00164554 [11:39:58]File name is /storage/ofd_packets/00164554 [11:39:58]Write 301 bytes [11:39:58]NVStorageSaveData done [11:39:58]OFDSenderStorePacket done [11:39:58]KKMCreateOFDPacket done [11:39:58]NVStorageSaveData kkm_last_timestamp [11:39:58]File name is /storage/kkm_last_timestamp [11:39:58]Write 4 bytes [11:39:58]NVStorageSaveData done [11:39:58]ExternCall_PrintAddStr [11:39:58]wPrintStart [11:39:58]Write to MH i2c: 01 00 00 6B 11 7C [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 07 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 07 00 6B 11 00 00 00 00 00 FF 0F 91 [11:39:58]RasterBufferAndPrint [11:39:58]line Счет N : (1)458644 [11:39:58]line ИНН: 02508201610067 [11:39:58]line Контрольно-Кассовый Чек [11:39:58]line ПРОДАЖА [11:39:58]line ТРК (МРК, ГНК) : 22 [11:39:58]line Товар: 2710124130 [11:39:58]line Аи-92-К-5 [11:39:58]line 3.800 * 65.80 [11:39:58]line = 250.04 [11:39:58]line НДС 12% НСП 1% [11:39:58]line > о реализуемом товаре [11:39:58]line ОКРУГЛЕНИЕ: -0.04 [11:39:58]line ИТОГО: 250.00 [11:39:58]line Внесено: 250.00 [11:39:58]line СДАЧА: 0.00 [11:39:58]line НСП 1% : 2.21 [11:39:58]line НДС 12% : 26.55 [11:39:58]line Наличными: 250.00 [11:39:58]line Безнал.: 0.00 [11:39:58]line Место: АЗС № 72 "Партнер Нефть" [11:39:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:39:58]line СНО: Общий режим [11:39:58]line Чек 114 13.07.2024 11:39 [11:39:58]line Смена: 446 ФФД: 1.0 [11:39:58]line ЗНМ: 0300000160 [11:39:58]line РНМ: 0000000000090829 [11:39:58]line Версия ККМ: 001 [11:39:58]line ФМ: 0000000000874718 [11:39:58]line ФД: 164554 [11:39:58]line ФПД: 86587288900739 [11:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164554&fm=86587288900739&tin=02508201610067®Number=0000000000090829&sum=25000 [11:39:59]written 0, free lines is 4095 [11:39:59]OFD Sender: Processing packet 164554 [packets to send 104, broken 103] [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00164554 [11:39:59]OFD Sender: To server: pG, [11:39:59]CommunicateWithHost lk.salyk.kg:30040 [11:39:59]ConnectInit lk.salyk.kg [11:39:59]Connected sock=10 [11:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE F9 07 01 5E 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8E 67 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 82 02 00 35 04 06 00 4E C0 2C 98 D4 83 9C 35 06 14 AB 19 1E B8 [11:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 20 1C 47 00 90 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 82 02 00 F4 03 04 00 1F 0E 92 66 B6 04 01 00 00 FF 73 98 66 47 C9 B8 CA [11:39:59]CommunicateWithHost err = 0 [11:39:59]CheckOFDResponse [11:39:59]1017 (14) - 77093643461234 [11:39:59]1041 (16) - 0000000000874718 [11:39:59]1040 (4) - 164554 [11:39:59]1012 (4) - 13.07.2024 05:18 [11:39:59]1206 (1) - 0 [11:39:59]OFD Sender: Remove packet 164554 [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00164554 [11:39:59]NVStorageDeleteData [11:39:59]Write to MH i2c: 01 00 00 95 11 A6 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 02 0D BC [11:39:59]RasterBufferAndPrint [11:39:59]line [11:39:59]line [11:39:59]line [11:39:59]line [11:39:59]line [11:39:59]written 0, free lines is 3336 [11:39:59]MH_Cut [11:39:59]Write to MH i2c: D1 01 00 9C 11 01 7F [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: D1 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: D1 01 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: D1 01 00 9C 11 00 7E [11:39:59]Write to MH i2c: 01 00 00 9D 11 AE [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:40:00]OFD Sender: No OFD packet to send [11:40:00]*** Cut start [11:40:00]*** Partial cut [11:40:00]*** CUTSNS_PIN = 1 [11:40:00]*** CUTSNS_PIN = 0 [11:40:00]*** Brake cut motor [11:40:00]Read from MH i2c: 01 [11:40:00]MH_I2C_Read... [11:40:00]*** Stop cut motor [11:40:00]*** Cut end [11:40:00]Read from MH i2c: 01 07 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 07 00 9D 11 00 00 00 00 00 FF 0F C3 [11:40:00]process_action close_receipt done [11:40:00]requested_data is exist [11:40:00]produce_requested_data [11:40:00]requested_item fm.sn is exist - process it [11:40:00]wFMCommunicate request_size=4 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 11 00 00 [11:40:00]Write to MH i2c: E2 08 00 9E 11 80 11 00 00 00 00 00 00 29 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 17 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 17 00 9E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [11:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:40:00]wFMCommunicate OK [11:40:00]requested_item fd.num is exist - process it [11:40:00]SAM_PROTO_GetFieldsCounters [11:40:00]wFMCommunicate request_size=4 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 13 00 00 [11:40:00]Write to MH i2c: E2 08 00 9F 11 80 13 00 00 00 00 00 00 2C [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 9F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 82 02 00 0E 04 04 00 BE 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 B6 [11:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetFieldsCounters done [11:40:01]requested_item shift.num is exist - process it [11:40:01]requested_item shift.opened is exist - process it [11:40:01]req_shift_opened [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 A0 11 80 13 01 00 00 00 00 00 2E [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 A0 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0F [11:40:01]RAPDU: 09 00 01 11 CD 91 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]req_shift_opened done [11:40:01]requested_item shift.open_date is exist - process it [11:40:01]req_shift_open_date [11:40:01]req_shift_open_date done [11:40:01]produce_requested_data done [11:40:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164554,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:40:01]process_action_free close_receipt [11:40:01]json_value_free [11:40:01]json_value_free done [11:40:01]process_json_proto returns [11:40:01]Send response to host [11:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164554,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:40:01]free response buf [11:40:01]execute_script done [11:40:01]execute_script returns [11:40:01]free content buf [11:40:01]Sock 9.Close socket [11:40:01]Sock 9.Thread stoped [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:04]accept exits with 7 [11:44:04]New connection [11:44:04]New thread 3067293028 created [11:44:04]Thread 3067149668 joined [11:44:04]Waiting for new connection... [11:44:04] Sock 7.Parse request [11:44:04]Sock 7.Check first char [11:44:04]Sock 7.First char is OK [11:44:04]request: POST /json_proto HTTP/1.0 [11:44:04]Method: POST [11:44:04]URL: /json_proto [11:44:04]Method is POST - this is cgi request [11:44:04]url: /json_proto [11:44:04]query_string will be loaded in cgi processing [11:44:04]execute_cgi json_proto POST (null) [11:44:04]execute_cgi path=json_proto method=POST [11:44:04]POST find Content-Length [11:44:04]Host: 172.17.56.4:8080 [11:44:04]Content-Length: 677 [11:44:04]Content-Type: application/json [11:44:04] [11:44:04]POST finish read [11:44:04]Found Content-Length = 677 [11:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:04]execute_script... [11:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:04]POST & json_proto [11:44:04]process_json_proto [11:44:04]json parsed OK: [11:44:04]protocol is kg_v1.0 [11:44:04]action value=close_receipt [11:44:04]process_action close_receipt [11:44:04]cmd_close_receipt [11:44:04]MH_GetDate [11:44:04]Write to MH i2c: F0 00 00 A1 11 A1 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 A1 11 00 85 68 92 66 C9 DC B2 64 4A [11:44:04]GetLastDocTimeStamp 1720870798 [11:44:04]current date 1720871045 [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 A2 11 80 13 01 00 00 00 00 00 30 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 A2 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 11 [11:44:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetShiftState done [11:44:04]FM_GetShiftState done [11:44:04]opened in 1720831249 [11:44:04]opened+sec_in_day 1720917649 [11:44:04]quantity*price = 50008 [11:44:04]sum+1 = 50009 [11:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 115 13.07.2024 11:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164555 ФПД: 100344446599095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114405&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164555&fm=100344446599095&tin=02508201610067®Number=0000000000090829&sum=50000 [11:44:05]StoreToDocumentArchive [11:44:05]shift 446 fd 164555 [11:44:05]save to /storage/0446/doc_00164555 [11:44:05]save last doc name /storage/0446/doc_00164555 to /storage/kkm_last_doc_name [11:44:05]save OK [11:44:05]Clear old archive folders... [11:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:05]tlvbuf is 0144C680 [11:44:05]SAM_PROTO_ClearQueue [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 09 00 00 [11:44:05]Write to MH i2c: E2 08 00 AF 11 80 09 00 00 00 00 00 00 32 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_ClearQueue done [11:44:05]KKMCreateOFDPacket [11:44:05]OFDProtocolAddRootSTLVToBuf [11:44:05]FM_MakeSignedData [11:44:05]FM_MakeSignedData [11:44:05]SAM_PROTO_SignData [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 01 02 [11:44:05]Write to MH i2c: E2 08 00 B0 11 80 0D 01 02 00 00 00 00 3A [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=255 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 73 00 00 00 F4 03 04 00 85 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 82 02 00 35 04 06 00 5B [11:44:05]Write to MH i2c: E2 02 01 B1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 73 00 00 00 F4 03 04 00 85 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 82 02 00 35 04 06 00 5B 00 00 74 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 B1 11 00 90 00 36 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=10 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 05 43 43 18 3F B7 [11:44:05]Write to MH i2c: E2 0D 00 B2 11 80 0D 02 02 05 00 43 43 18 3F B7 00 00 DB [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 B2 11 00 90 00 37 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 03 02 [11:44:05]Write to MH i2c: E2 08 00 B3 11 80 0D 03 02 00 00 00 00 3F [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 B3 11 00 56 4F 80 94 F6 99 CE BD 90 00 13 [11:44:05]RAPDU: 56 4F 80 94 F6 99 CE BD 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_SignData done [11:44:05]FM_MakeSignedData done [11:44:05]CreateOFDProtocolMessage [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 11 00 00 [11:44:05]Write to MH i2c: E2 08 00 B4 11 80 11 00 00 00 00 00 00 3F [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 B4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 95 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 164555 [11:44:06]StoreOFDPacket docnum=164555 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 78 07 01 49 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 73 00 00 00 F4 03 04 00 85 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 82 02 00 35 04 06 00 5B 43 43 18 3F B7 56 4F 80 94 F6 99 CE BD [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00164555 [11:44:06]NVStorageSaveData ofd_packets/00164555 [11:44:06]File name is /storage/ofd_packets/00164555 [11:44:06]Write 301 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 B5 11 C6 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 FF 0F DB [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (1)458645 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line ТРК (МРК, ГНК) : 12 [11:44:06]line Товар: 2710124130 [11:44:06]line Аи-92-К-5 [11:44:06]line 7.600 * 65.80 [11:44:06]line = 500.08 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ОКРУГЛЕНИЕ: -0.08 [11:44:06]line ИТОГО: 500.00 [11:44:06]line Внесено: 500.00 [11:44:06]line СДАЧА: 0.00 [11:44:06]line НСП 1% : 4.42 [11:44:06]line НДС 12% : 53.11 [11:44:06]line Наличными: 500.00 [11:44:06]line Безнал.: 0.00 [11:44:06]line Место: АЗС № 72 "Партнер Нефть" [11:44:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 115 13.07.2024 11:44 [11:44:06]line Смена: 446 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000160 [11:44:06]line РНМ: 0000000000090829 [11:44:06]line Версия ККМ: 001 [11:44:06]line ФМ: 0000000000874718 [11:44:06]line ФД: 164555 [11:44:06]line ФПД: 100344446599095 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114405&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164555&fm=100344446599095&tin=02508201610067®Number=0000000000090829&sum=50000 [11:44:06]written 0, free lines is 4095 [11:44:06]OFD Sender: Processing packet 164555 [packets to send 104, broken 103] [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00164555 [11:44:06]OFD Sender: To server: pG, [11:44:06]CommunicateWithHost lk.salyk.kg:30040 [11:44:06]ConnectInit lk.salyk.kg [11:44:06]Connected sock=10 [11:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 78 07 01 49 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 73 00 00 00 F4 03 04 00 85 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 82 02 00 35 04 06 00 5B 43 43 18 3F B7 56 4F 80 94 F6 99 CE BD [11:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E 67 47 00 10 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 82 02 00 F4 03 04 00 17 0F 92 66 B6 04 01 00 00 99 CB 8D E3 30 B0 D5 3A [11:44:06]CommunicateWithHost err = 0 [11:44:06]CheckOFDResponse [11:44:06]1017 (14) - 77093643461234 [11:44:06]1041 (16) - 0000000000874718 [11:44:06]1040 (4) - 164555 [11:44:06]1012 (4) - 13.07.2024 05:22 [11:44:06]1206 (1) - 0 [11:44:06]OFD Sender: Remove packet 164555 [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00164555 [11:44:06]NVStorageDeleteData [11:44:06]Write to MH i2c: 01 00 00 DF 11 F0 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 EF 0C F2 [11:44:06]RasterBufferAndPrint [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]line [11:44:06]written 0, free lines is 3318 [11:44:06]MH_Cut [11:44:06]Write to MH i2c: D1 01 00 E6 11 01 C9 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: D1 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: D1 01 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: D1 01 00 E6 11 00 C8 [11:44:06]Write to MH i2c: 01 00 00 E7 11 F8 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:07]OFD Sender: No OFD packet to send [11:44:07]*** Cut start [11:44:07]*** Partial cut [11:44:07]*** CUTSNS_PIN = 1 [11:44:07]*** CUTSNS_PIN = 0 [11:44:07]*** Brake cut motor [11:44:08]Read from MH i2c: 01 [11:44:08]MH_I2C_Read... [11:44:08]*** Stop cut motor [11:44:08]*** Cut end [11:44:08]Read from MH i2c: 01 07 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 FF 0F 0D [11:44:08]process_action close_receipt done [11:44:08]requested_data is exist [11:44:08]produce_requested_data [11:44:08]requested_item fm.sn is exist - process it [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 11 00 00 [11:44:08]Write to MH i2c: E2 08 00 E8 11 80 11 00 00 00 00 00 00 73 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 E8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [11:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:44:08]wFMCommunicate OK [11:44:08]requested_item fd.num is exist - process it [11:44:08]SAM_PROTO_GetFieldsCounters [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 00 00 [11:44:08]Write to MH i2c: E2 08 00 E9 11 80 13 00 00 00 00 00 00 76 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 E9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 82 02 00 0E 04 04 00 BE 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 04 [11:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetFieldsCounters done [11:44:08]requested_item shift.num is exist - process it [11:44:08]requested_item shift.opened is exist - process it [11:44:08]req_shift_opened [11:44:08]FM_GetShiftState [11:44:08]SAM_PROTO_GetShiftState [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 01 00 [11:44:08]Write to MH i2c: E2 08 00 EA 11 80 13 01 00 00 00 00 00 78 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 EA 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 59 [11:44:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetShiftState done [11:44:08]FM_GetShiftState done [11:44:08]req_shift_opened done [11:44:08]requested_item shift.open_date is exist - process it [11:44:08]req_shift_open_date [11:44:08]req_shift_open_date done [11:44:08]produce_requested_data done [11:44:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164555,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:44:08]process_action_free close_receipt [11:44:08]json_value_free [11:44:08]json_value_free done [11:44:08]process_json_proto returns [11:44:08]Send response to host [11:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164555,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:44:08]free response buf [11:44:08]execute_script done [11:44:08]execute_script returns [11:44:08]free content buf [11:44:08]Sock 7.Close socket [11:44:08]Sock 7.Thread stoped [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:26]accept exits with 9 [11:44:26]New connection [11:44:26]New thread 3067149668 created [11:44:26]Thread 3067293028 joined [11:44:26]Waiting for new connection... [11:44:26] Sock 9.Parse request [11:44:26]Sock 9.Check first char [11:44:26]Sock 9.First char is OK [11:44:26]request: POST /json_proto HTTP/1.0 [11:44:26]Method: POST [11:44:26]URL: /json_proto [11:44:26]Method is POST - this is cgi request [11:44:26]url: /json_proto [11:44:26]query_string will be loaded in cgi processing [11:44:26]execute_cgi json_proto POST (null) [11:44:26]execute_cgi path=json_proto method=POST [11:44:26]POST find Content-Length [11:44:26]Host: 172.17.56.4:8080 [11:44:26]Content-Length: 677 [11:44:26]Content-Type: application/json [11:44:26] [11:44:26]POST finish read [11:44:26]Found Content-Length = 677 [11:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:44:26]execute_script... [11:44: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)458646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:44:26]POST & json_proto [11:44:26]process_json_proto [11:44:26]json parsed OK: [11:44:26]protocol is kg_v1.0 [11:44:26]action value=close_receipt [11:44:26]process_action close_receipt [11:44:26]cmd_close_receipt [11:44:26]MH_GetDate [11:44:26]Write to MH i2c: F0 00 00 EB 11 EB [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 09 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 09 00 EB 11 00 9B 68 92 66 C9 DC B2 64 AA [11:44:26]GetLastDocTimeStamp 1720871045 [11:44:26]current date 1720871067 [11:44:26]FM_GetShiftState [11:44:26]SAM_PROTO_GetShiftState [11:44:26]wFMCommunicate request_size=4 [11:44:26]MH_SAM_APDU [11:44:26]CAPDU: 80 13 01 00 [11:44:26]Write to MH i2c: E2 08 00 EC 11 80 13 01 00 00 00 00 00 7A [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:26]Read from MH i2c: E2 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 EC 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5B [11:44:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:44:26]wFMCommunicate OK [11:44:26]SAM_PROTO_GetShiftState done [11:44:26]FM_GetShiftState done [11:44:26]opened in 1720831249 [11:44:26]opened+sec_in_day 1720917649 [11:44:26]quantity*price = 30004 [11:44:26]sum+1 = 30006 [11:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 116 13.07.2024 11:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164556 ФПД: 214436562252448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164556&fm=214436562252448&tin=02508201610067®Number=0000000000090829&sum=30000 [11:44:27]StoreToDocumentArchive [11:44:27]shift 446 fd 164556 [11:44:27]save to /storage/0446/doc_00164556 [11:44:27]save last doc name /storage/0446/doc_00164556 to /storage/kkm_last_doc_name [11:44:27]save OK [11:44:27]Clear old archive folders... [11:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:27]tlvbuf is 0144BE80 [11:44:27]SAM_PROTO_ClearQueue [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 09 00 00 [11:44:27]Write to MH i2c: E2 08 00 F9 11 80 09 00 00 00 00 00 00 7C [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 F9 11 00 90 00 7E [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_ClearQueue done [11:44:27]KKMCreateOFDPacket [11:44:27]OFDProtocolAddRootSTLVToBuf [11:44:27]FM_MakeSignedData [11:44:27]FM_MakeSignedData [11:44:27]SAM_PROTO_SignData [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 01 02 [11:44:27]Write to MH i2c: E2 08 00 FA 11 80 0D 01 02 00 00 00 00 84 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]wFMCommunicate request_size=255 [11:44:27]MH_SAM_APDU [11:44: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 74 00 00 00 F4 03 04 00 9B 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 82 02 00 35 04 06 00 C3 [11:44:27]Write to MH i2c: E2 02 01 FB 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 74 00 00 00 F4 03 04 00 9B 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 82 02 00 35 04 06 00 C3 00 00 FF [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]wFMCommunicate request_size=10 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 02 02 05 07 67 1E B2 A0 [11:44:27]Write to MH i2c: E2 0D 00 FC 11 80 0D 02 02 05 00 07 67 1E B2 A0 00 00 6F [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 03 02 [11:44:27]Write to MH i2c: E2 08 00 FD 11 80 0D 03 02 00 00 00 00 89 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0B 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0B 00 FD 11 00 A5 D9 15 8C C4 71 98 96 90 00 0C [11:44:27]RAPDU: A5 D9 15 8C C4 71 98 96 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_SignData done [11:44:27]FM_MakeSignedData done [11:44:27]CreateOFDProtocolMessage [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 11 00 00 [11:44:27]Write to MH i2c: E2 08 00 FE 11 80 11 00 00 00 00 00 00 89 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 17 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 17 00 FE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [11:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:44:27]wFMCommunicate OK [11:44:27]CreateOFDProtocolMessage done [11:44:27]OFDSenderStorePacket 164556 [11:44:27]StoreOFDPacket docnum=164556 [11:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 90 07 01 54 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 74 00 00 00 F4 03 04 00 9B 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 82 02 00 35 04 06 00 C3 07 67 1E B2 A0 A5 D9 15 8C C4 71 98 96 [11:44:27]CheckFolder [11:44:27]dirname=/storage/ofd_packets [11:44:27]CheckFolder done [11:44:27]ProducePacketName [11:44:27]name=ofd_packets/00164556 [11:44:27]NVStorageSaveData ofd_packets/00164556 [11:44:27]File name is /storage/ofd_packets/00164556 [11:44:27]Write 301 bytes [11:44:27]NVStorageSaveData done [11:44:27]OFDSenderStorePacket done [11:44:27]KKMCreateOFDPacket done [11:44:27]NVStorageSaveData kkm_last_timestamp [11:44:27]File name is /storage/kkm_last_timestamp [11:44:27]Write 4 bytes [11:44:27]NVStorageSaveData done [11:44:27]ExternCall_PrintAddStr [11:44:27]wPrintStart [11:44:27]Write to MH i2c: 01 00 00 FF 11 10 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: 01 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: 01 07 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 FF 0F 25 [11:44:27]RasterBufferAndPrint [11:44:27]line Счет N : (1)458646 [11:44:27]line ИНН: 02508201610067 [11:44:27]line Контрольно-Кассовый Чек [11:44:27]line ПРОДАЖА [11:44:27]line ТРК (МРК, ГНК) : 22 [11:44:27]line Товар: 2710124130 [11:44:27]line Аи-92-К-5 [11:44:27]line 4.560 * 65.80 [11:44:27]line = 300.05 [11:44:27]line НДС 12% НСП 1% [11:44:27]line > о реализуемом товаре [11:44:27]line ОКРУГЛЕНИЕ: -0.05 [11:44:27]line ИТОГО: 300.00 [11:44:27]line Внесено: 300.00 [11:44:27]line СДАЧА: 0.00 [11:44:27]line НСП 1% : 2.65 [11:44:27]line НДС 12% : 31.86 [11:44:27]line Наличными: 300.00 [11:44:27]line Безнал.: 0.00 [11:44:27]line Место: АЗС № 72 "Партнер Нефть" [11:44:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:44:27]line СНО: Общий режим [11:44:27]line Чек 116 13.07.2024 11:44 [11:44:27]line Смена: 446 ФФД: 1.0 [11:44:27]line ЗНМ: 0300000160 [11:44:27]line РНМ: 0000000000090829 [11:44:27]line Версия ККМ: 001 [11:44:27]line ФМ: 0000000000874718 [11:44:27]line ФД: 164556 [11:44:27]line ФПД: 214436562252448 [11:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164556&fm=214436562252448&tin=02508201610067®Number=0000000000090829&sum=30000 [11:44:28]written 0, free lines is 4095 [11:44:28]OFD Sender: Processing packet 164556 [packets to send 104, broken 103] [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00164556 [11:44:28]OFD Sender: To server: pG, [11:44:28]CommunicateWithHost lk.salyk.kg:30040 [11:44:28]ConnectInit lk.salyk.kg [11:44:28]Connected sock=10 [11:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 90 07 01 54 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 74 00 00 00 F4 03 04 00 9B 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 82 02 00 35 04 06 00 C3 07 67 1E B2 A0 A5 D9 15 8C C4 71 98 96 [11:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 9D 47 00 0D 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 34 37 31 38 10 04 04 00 CC 82 02 00 F4 03 04 00 2C 0F 92 66 B6 04 01 00 00 24 C6 27 60 C7 79 C0 61 [11:44:28]CommunicateWithHost err = 0 [11:44:28]CheckOFDResponse [11:44:28]1017 (14) - 77093643461234 [11:44:28]1041 (16) - 0000000000874718 [11:44:28]1040 (4) - 164556 [11:44:28]1012 (4) - 13.07.2024 05:22 [11:44:28]1206 (1) - 0 [11:44:28]OFD Sender: Remove packet 164556 [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00164556 [11:44:28]NVStorageDeleteData [11:44:28]Write to MH i2c: 01 00 00 29 12 3B [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 F3 0C 41 [11:44:28]RasterBufferAndPrint [11:44:28]line [11:44:28]line [11:44:28]line [11:44:28]line [11:44:28]line [11:44:28]written 0, free lines is 3322 [11:44:28]MH_Cut [11:44:28]Write to MH i2c: D1 01 00 30 12 01 14 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: D1 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: D1 01 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: D1 01 00 30 12 00 13 [11:44:28]Write to MH i2c: 01 00 00 31 12 43 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:29]OFD Sender: No OFD packet to send [11:44:29]*** Cut start [11:44:29]*** Partial cut [11:44:29]*** CUTSNS_PIN = 1 [11:44:29]*** CUTSNS_PIN = 0 [11:44:29]*** Brake cut motor [11:44:29]Read from MH i2c: 01 [11:44:29]MH_I2C_Read... [11:44:29]*** Stop cut motor [11:44:29]*** Cut end [11:44:29]Read from MH i2c: 01 07 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 FF 0F 58 [11:44:29]process_action close_receipt done [11:44:29]requested_data is exist [11:44:29]produce_requested_data [11:44:29]requested_item fm.sn is exist - process it [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 11 00 00 [11:44:29]Write to MH i2c: E2 08 00 32 12 80 11 00 00 00 00 00 00 BE [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 32 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [11:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:44:29]wFMCommunicate OK [11:44:29]requested_item fd.num is exist - process it [11:44:29]SAM_PROTO_GetFieldsCounters [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 13 00 00 [11:44:29]Write to MH i2c: E2 08 00 33 12 80 13 00 00 00 00 00 00 C1 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 62 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 62 00 33 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 82 02 00 0E 04 04 00 BE 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 53 [11:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:30]wFMCommunicate OK [11:44:30]SAM_PROTO_GetFieldsCounters done [11:44:30]requested_item shift.num is exist - process it [11:44:30]requested_item shift.opened is exist - process it [11:44:30]req_shift_opened [11:44:30]FM_GetShiftState [11:44:30]SAM_PROTO_GetShiftState [11:44:30]wFMCommunicate request_size=4 [11:44:30]MH_SAM_APDU [11:44:30]CAPDU: 80 13 01 00 [11:44:30]Write to MH i2c: E2 08 00 34 12 80 13 01 00 00 00 00 00 C3 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 0E 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 0E 00 34 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A4 [11:44:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:44:30]wFMCommunicate OK [11:44:30]SAM_PROTO_GetShiftState done [11:44:30]FM_GetShiftState done [11:44:30]req_shift_opened done [11:44:30]requested_item shift.open_date is exist - process it [11:44:30]req_shift_open_date [11:44:30]req_shift_open_date done [11:44:30]produce_requested_data done [11:44:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164556,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:44:30]process_action_free close_receipt [11:44:30]json_value_free [11:44:30]json_value_free done [11:44:30]process_json_proto returns [11:44:30]Send response to host [11:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164556,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:44:30]free response buf [11:44:30]execute_script done [11:44:30]execute_script returns [11:44:30]free content buf [11:44:30]Sock 9.Close socket [11:44:30]Sock 9.Thread stoped [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:39]accept exits with 7 [11:45:39]New connection [11:45:39]New thread 3067293028 created [11:45:39]Thread 3067149668 joined [11:45:39]Waiting for new connection... [11:45:39] Sock 7.Parse request [11:45:39]Sock 7.Check first char [11:45:39]Sock 7.First char is OK [11:45:39]request: POST /json_proto HTTP/1.0 [11:45:39]Method: POST [11:45:39]URL: /json_proto [11:45:39]Method is POST - this is cgi request [11:45:39]url: /json_proto [11:45:39]query_string will be loaded in cgi processing [11:45:39]execute_cgi json_proto POST (null) [11:45:39]execute_cgi path=json_proto method=POST [11:45:39]POST find Content-Length [11:45:39]Host: 172.17.56.4:8080 [11:45:39]Content-Length: 677 [11:45:39]Content-Type: application/json [11:45:39] [11:45:39]POST finish read [11:45:39]Found Content-Length = 677 [11:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:39]execute_script... [11:45: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)458647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:39]POST & json_proto [11:45:39]process_json_proto [11:45:39]json parsed OK: [11:45:39]protocol is kg_v1.0 [11:45:39]action value=close_receipt [11:45:39]process_action close_receipt [11:45:39]cmd_close_receipt [11:45:39]MH_GetDate [11:45:39]Write to MH i2c: F0 00 00 35 12 36 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 09 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: F0 09 00 35 12 00 E4 68 92 66 C9 DC B2 64 3E [11:45:39]GetLastDocTimeStamp 1720871067 [11:45:39]current date 1720871140 [11:45:39]FM_GetShiftState [11:45:39]SAM_PROTO_GetShiftState [11:45:39]wFMCommunicate request_size=4 [11:45:39]MH_SAM_APDU [11:45:39]CAPDU: 80 13 01 00 [11:45:39]Write to MH i2c: E2 08 00 36 12 80 13 01 00 00 00 00 00 C5 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:39]Read from MH i2c: E2 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 0E 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: E2 0E 00 36 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A6 [11:45:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:45:39]wFMCommunicate OK [11:45:39]SAM_PROTO_GetShiftState done [11:45:39]FM_GetShiftState done [11:45:39]opened in 1720831249 [11:45:39]opened+sec_in_day 1720917649 [11:45:39]quantity*price = 35005 [11:45:39]sum+1 = 35007 [11:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 117 13.07.2024 11:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164557 ФПД: 91722318018416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164557&fm=91722318018416&tin=02508201610067®Number=0000000000090829&sum=35000 [11:45:40]StoreToDocumentArchive [11:45:40]shift 446 fd 164557 [11:45:40]save to /storage/0446/doc_00164557 [11:45:40]save last doc name /storage/0446/doc_00164557 to /storage/kkm_last_doc_name [11:45:40]save OK [11:45:40]Clear old archive folders... [11:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:40]tlvbuf is 01496CC0 [11:45:40]SAM_PROTO_ClearQueue [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 09 00 00 [11:45:40]Write to MH i2c: E2 08 00 43 12 80 09 00 00 00 00 00 00 C7 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 43 12 00 90 00 C9 [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_ClearQueue done [11:45:40]KKMCreateOFDPacket [11:45:40]OFDProtocolAddRootSTLVToBuf [11:45:40]FM_MakeSignedData [11:45:40]FM_MakeSignedData [11:45:40]SAM_PROTO_SignData [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 0D 01 02 [11:45:40]Write to MH i2c: E2 08 00 44 12 80 0D 01 02 00 00 00 00 CF [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 44 12 00 90 00 CA [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]wFMCommunicate request_size=255 [11:45:40]MH_SAM_APDU [11: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 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E4 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 82 02 00 35 04 06 00 53 [11:45:40]Write to MH i2c: E2 02 01 45 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E4 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 82 02 00 35 04 06 00 53 00 00 34 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]wFMCommunicate request_size=10 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 0D 02 02 05 6B C4 2E F7 70 [11:45:40]Write to MH i2c: E2 0D 00 46 12 80 0D 02 02 05 00 6B C4 2E F7 70 00 00 A0 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [11:45:40]RAPDU: 90 00 [11:45:40]wFMCommunicate OK [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 0D 03 02 [11:45:40]Write to MH i2c: E2 08 00 47 12 80 0D 03 02 00 00 00 00 D4 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0B 00 47 12 00 57 46 34 11 AA 0B 17 55 90 00 D8 [11:45:40]RAPDU: 57 46 34 11 AA 0B 17 55 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_SignData done [11:45:40]FM_MakeSignedData done [11:45:40]CreateOFDProtocolMessage [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 11 00 00 [11:45:40]Write to MH i2c: E2 08 00 48 12 80 11 00 00 00 00 00 00 D4 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 17 00 48 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [11:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:45:40]wFMCommunicate OK [11:45:40]CreateOFDProtocolMessage done [11:45:40]OFDSenderStorePacket 164557 [11:45:40]StoreOFDPacket docnum=164557 [11:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 96 07 01 D1 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E4 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 82 02 00 35 04 06 00 53 6B C4 2E F7 70 57 46 34 11 AA 0B 17 55 [11:45:40]CheckFolder [11:45:40]dirname=/storage/ofd_packets [11:45:40]CheckFolder done [11:45:40]ProducePacketName [11:45:40]name=ofd_packets/00164557 [11:45:40]NVStorageSaveData ofd_packets/00164557 [11:45:40]File name is /storage/ofd_packets/00164557 [11:45:40]Write 301 bytes [11:45:40]NVStorageSaveData done [11:45:40]OFDSenderStorePacket done [11:45:40]KKMCreateOFDPacket done [11:45:40]NVStorageSaveData kkm_last_timestamp [11:45:40]File name is /storage/kkm_last_timestamp [11:45:40]Write 4 bytes [11:45:40]NVStorageSaveData done [11:45:40]ExternCall_PrintAddStr [11:45:40]wPrintStart [11:45:40]Write to MH i2c: 01 00 00 49 12 5B [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 49 12 00 00 00 00 00 FF 0F 70 [11:45:40]RasterBufferAndPrint [11:45:40]line Счет N : (1)458647 [11:45:40]line ИНН: 02508201610067 [11:45:40]line Контрольно-Кассовый Чек [11:45:40]line ПРОДАЖА [11:45:40]line ТРК (МРК, ГНК) : 12 [11:45:40]line Товар: 2710124130 [11:45:40]line Аи-92-К-5 [11:45:40]line 5.320 * 65.80 [11:45:40]line = 350.06 [11:45:40]line НДС 12% НСП 1% [11:45:40]line > о реализуемом товаре [11:45:40]line ОКРУГЛЕНИЕ: -0.06 [11:45:40]line ИТОГО: 350.00 [11:45:40]line Внесено: 350.00 [11:45:40]line СДАЧА: 0.00 [11:45:40]line НСП 1% : 3.10 [11:45:40]line НДС 12% : 37.17 [11:45:40]line Наличными: 350.00 [11:45:40]line Безнал.: 0.00 [11:45:40]line Место: АЗС № 72 "Партнер Нефть" [11:45:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:45:40]line СНО: Общий режим [11:45:40]line Чек 117 13.07.2024 11:45 [11:45:40]line Смена: 446 ФФД: 1.0 [11:45:40]line ЗНМ: 0300000160 [11:45:40]line РНМ: 0000000000090829 [11:45:40]line Версия ККМ: 001 [11:45:40]line ФМ: 0000000000874718 [11:45:40]line ФД: 164557 [11:45:40]line ФПД: 91722318018416 [11:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164557&fm=91722318018416&tin=02508201610067®Number=0000000000090829&sum=35000 [11:45:40]written 0, free lines is 4095 [11:45:41]OFD Sender: Processing packet 164557 [packets to send 104, broken 103] [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00164557 [11:45:41]OFD Sender: To server: pG, [11:45:41]CommunicateWithHost lk.salyk.kg:30040 [11:45:41]ConnectInit lk.salyk.kg [11:45:41]Connected sock=10 [11: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 34 37 31 38 0F 01 00 00 63 96 07 01 D1 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 E4 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 82 02 00 35 04 06 00 53 6B C4 2E F7 70 57 46 34 11 AA 0B 17 55 [11:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 5E 47 00 51 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 82 02 00 F4 03 04 00 75 0F 92 66 B6 04 01 00 00 53 D6 0B 5D D1 F8 28 25 [11:45:41]CommunicateWithHost err = 0 [11:45:41]CheckOFDResponse [11:45:41]1017 (14) - 77093643461234 [11:45:41]1041 (16) - 0000000000874718 [11:45:41]1040 (4) - 164557 [11:45:41]1012 (4) - 13.07.2024 05:24 [11:45:41]1206 (1) - 0 [11:45:41]OFD Sender: Remove packet 164557 [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00164557 [11:45:41]NVStorageDeleteData [11:45:41]Write to MH i2c: 01 00 00 73 12 85 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 0A 0D A3 [11:45:41]RasterBufferAndPrint [11:45:41]line [11:45:41]line [11:45:41]line [11:45:41]line [11:45:41]line [11:45:41]written 0, free lines is 3344 [11:45:41]MH_Cut [11:45:41]Write to MH i2c: D1 01 00 7A 12 01 5E [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: D1 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: D1 01 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: D1 01 00 7A 12 00 5D [11:45:41]Write to MH i2c: 01 00 00 7B 12 8D [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]OFD Sender: No OFD packet to send [11:45:42]*** Cut start [11:45:42]*** Partial cut [11:45:42]*** CUTSNS_PIN = 1 [11:45:42]*** CUTSNS_PIN = 0 [11:45:42]*** Brake cut motor [11:45:42]Read from MH i2c: 01 [11:45:42]MH_I2C_Read... [11:45:42]*** Stop cut motor [11:45:42]*** Cut end [11:45:42]Read from MH i2c: 01 07 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 7B 12 00 00 00 00 00 FF 0F A2 [11:45:42]process_action close_receipt done [11:45:42]requested_data is exist [11:45:42]produce_requested_data [11:45:42]requested_item fm.sn is exist - process it [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 11 00 00 [11:45:42]Write to MH i2c: E2 08 00 7C 12 80 11 00 00 00 00 00 00 08 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 7C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [11:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:45:42]wFMCommunicate OK [11:45:42]requested_item fd.num is exist - process it [11:45:42]SAM_PROTO_GetFieldsCounters [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 00 00 [11:45:42]Write to MH i2c: E2 08 00 7D 12 80 13 00 00 00 00 00 00 0B [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 62 00 7D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 82 02 00 0E 04 04 00 BE 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 A1 [11:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetFieldsCounters done [11:45:42]requested_item shift.num is exist - process it [11:45:42]requested_item shift.opened is exist - process it [11:45:42]req_shift_opened [11:45:42]FM_GetShiftState [11:45:42]SAM_PROTO_GetShiftState [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 13 01 00 [11:45:42]Write to MH i2c: E2 08 00 7E 12 80 13 01 00 00 00 00 00 0D [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0E 00 7E 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EE [11:45:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_GetShiftState done [11:45:42]FM_GetShiftState done [11:45:42]req_shift_opened done [11:45:42]requested_item shift.open_date is exist - process it [11:45:42]req_shift_open_date [11:45:42]req_shift_open_date done [11:45:42]produce_requested_data done [11:45:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164557,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:45:42]process_action_free close_receipt [11:45:42]json_value_free [11:45:42]json_value_free done [11:45:42]process_json_proto returns [11:45:42]Send response to host [11:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164557,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:45:42]free response buf [11:45:42]execute_script done [11:45:42]execute_script returns [11:45:42]free content buf [11:45:42]Sock 7.Close socket [11:45:42]Sock 7.Thread stoped [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:02]accept exits with 9 [11:46:02]New connection [11:46:02]New thread 3067149668 created [11:46:02]Thread 3067293028 joined [11:46:02]Waiting for new connection... [11:46:02] Sock 9.Parse request [11:46:02]Sock 9.Check first char [11:46:02]Sock 9.First char is OK [11:46:02]request: POST /json_proto HTTP/1.0 [11:46:02]Method: POST [11:46:02]URL: /json_proto [11:46:02]Method is POST - this is cgi request [11:46:02]url: /json_proto [11:46:02]query_string will be loaded in cgi processing [11:46:02]execute_cgi json_proto POST (null) [11:46:02]execute_cgi path=json_proto method=POST [11:46:02]POST find Content-Length [11:46:02]Host: 172.17.56.4:8080 [11:46:02]Content-Length: 682 [11:46:02]Content-Type: application/json [11:46:02] [11:46:02]POST finish read [11:46:02]Found Content-Length = 682 [11:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:02]execute_script... [11:46: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)458648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:02]POST & json_proto [11:46:02]process_json_proto [11:46:02]json parsed OK: [11:46:02]protocol is kg_v1.0 [11:46:02]action value=close_receipt [11:46:02]process_action close_receipt [11:46:02]cmd_close_receipt [11:46:02]MH_GetDate [11:46:02]Write to MH i2c: F0 00 00 7F 12 80 [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 09 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 09 00 7F 12 00 FC 68 92 66 C9 DC B2 64 A0 [11:46:02]GetLastDocTimeStamp 1720871140 [11:46:02]current date 1720871164 [11:46:02]FM_GetShiftState [11:46:02]SAM_PROTO_GetShiftState [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 13 01 00 [11:46:02]Write to MH i2c: E2 08 00 80 12 80 13 01 00 00 00 00 00 0F [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 80 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F0 [11:46:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:46:02]wFMCommunicate OK [11:46:02]SAM_PROTO_GetShiftState done [11:46:02]FM_GetShiftState done [11:46:02]opened in 1720831249 [11:46:02]opened+sec_in_day 1720917649 [11:46:02]quantity*price = 100016 [11:46:02]sum+1 = 100017 [11:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 118 13.07.2024 11:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164558 ФПД: 142926092356235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164558&fm=142926092356235&tin=02508201610067®Number=0000000000090829&sum=100000 [11:46:03]StoreToDocumentArchive [11:46:03]shift 446 fd 164558 [11:46:03]save to /storage/0446/doc_00164558 [11:46:03]save last doc name /storage/0446/doc_00164558 to /storage/kkm_last_doc_name [11:46:03]save OK [11:46:03]Clear old archive folders... [11:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:03]tlvbuf is 0144EE10 [11:46:03]SAM_PROTO_ClearQueue [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 09 00 00 [11:46:03]Write to MH i2c: E2 08 00 8D 12 80 09 00 00 00 00 00 00 11 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 8D 12 00 90 00 13 [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_ClearQueue done [11:46:03]KKMCreateOFDPacket [11:46:03]OFDProtocolAddRootSTLVToBuf [11:46:03]FM_MakeSignedData [11:46:03]FM_MakeSignedData [11:46:03]SAM_PROTO_SignData [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 01 02 [11:46:03]Write to MH i2c: E2 08 00 8E 12 80 0D 01 02 00 00 00 00 19 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 8E 12 00 90 00 14 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=255 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FC 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 82 02 00 35 04 06 00 81 [11:46:04]Write to MH i2c: E2 02 01 8F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FC 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 82 02 00 35 04 06 00 81 00 00 98 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=10 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 02 02 05 FD 92 F6 CA 8B [11:46:04]Write to MH i2c: E2 0D 00 90 12 80 0D 02 02 05 00 FD 92 F6 CA 8B 00 00 00 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 03 02 [11:46:04]Write to MH i2c: E2 08 00 91 12 80 0D 03 02 00 00 00 00 1E [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0B 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0B 00 91 12 00 67 5D 71 E8 F3 67 88 6D 90 00 8B [11:46:04]RAPDU: 67 5D 71 E8 F3 67 88 6D 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_SignData done [11:46:04]FM_MakeSignedData done [11:46:04]CreateOFDProtocolMessage [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 11 00 00 [11:46:04]Write to MH i2c: E2 08 00 92 12 80 11 00 00 00 00 00 00 1E [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 92 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [11:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:04]wFMCommunicate OK [11:46:04]CreateOFDProtocolMessage done [11:46:04]OFDSenderStorePacket 164558 [11:46:04]StoreOFDPacket docnum=164558 [11:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 1D 07 01 CE 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FC 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 82 02 00 35 04 06 00 81 FD 92 F6 CA 8B 67 5D 71 E8 F3 67 88 6D [11:46:04]CheckFolder [11:46:04]dirname=/storage/ofd_packets [11:46:04]CheckFolder done [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00164558 [11:46:04]NVStorageSaveData ofd_packets/00164558 [11:46:04]File name is /storage/ofd_packets/00164558 [11:46:04]Write 301 bytes [11:46:04]NVStorageSaveData done [11:46:04]OFDSenderStorePacket done [11:46:04]KKMCreateOFDPacket done [11:46:04]NVStorageSaveData kkm_last_timestamp [11:46:04]File name is /storage/kkm_last_timestamp [11:46:04]Write 4 bytes [11:46:04]NVStorageSaveData done [11:46:04]ExternCall_PrintAddStr [11:46:04]wPrintStart [11:46:04]Write to MH i2c: 01 00 00 93 12 A5 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 93 12 00 00 00 00 00 FF 0F BA [11:46:04]RasterBufferAndPrint [11:46:04]line Счет N : (1)458648 [11:46:04]line ИНН: 02508201610067 [11:46:04]line Контрольно-Кассовый Чек [11:46:04]line ПРОДАЖА [11:46:04]line ТРК (МРК, ГНК) : 22 [11:46:04]line Товар: 2710124130 [11:46:04]line Аи-92-К-5 [11:46:04]line 15.200 * 65.80 [11:46:04]line = 1000.16 [11:46:04]line НДС 12% НСП 1% [11:46:04]line > о реализуемом товаре [11:46:04]line ОКРУГЛЕНИЕ: -0.16 [11:46:04]line ИТОГО: 1000.00 [11:46:04]line Внесено: 1000.00 [11:46:04]line СДАЧА: 0.00 [11:46:04]line НСП 1% : 8.85 [11:46:04]line НДС 12% : 106.21 [11:46:04]line Наличными: 1000.00 [11:46:04]line Безнал.: 0.00 [11:46:04]line Место: АЗС № 72 "Партнер Нефть" [11:46:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:46:04]line СНО: Общий режим [11:46:04]line Чек 118 13.07.2024 11:46 [11:46:04]line Смена: 446 ФФД: 1.0 [11:46:04]line ЗНМ: 0300000160 [11:46:04]line РНМ: 0000000000090829 [11:46:04]line Версия ККМ: 001 [11:46:04]line ФМ: 0000000000874718 [11:46:04]line ФД: 164558 [11:46:04]line ФПД: 142926092356235 [11:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164558&fm=142926092356235&tin=02508201610067®Number=0000000000090829&sum=100000 [11:46:04]written 0, free lines is 4095 [11:46:04]OFD Sender: Processing packet 164558 [packets to send 104, broken 103] [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00164558 [11:46:04]OFD Sender: To server: pG, [11:46:04]CommunicateWithHost lk.salyk.kg:30040 [11:46:04]ConnectInit lk.salyk.kg [11:46:04]Connected sock=10 [11:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 1D 07 01 CE 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 FC 68 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 82 02 00 35 04 06 00 81 FD 92 F6 CA 8B 67 5D 71 E8 F3 67 88 6D [11:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 86 47 00 C6 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 34 37 31 38 10 04 04 00 CE 82 02 00 F4 03 04 00 8D 0F 92 66 B6 04 01 00 00 21 28 CE 96 80 4C C3 43 [11:46:04]CommunicateWithHost err = 0 [11:46:04]CheckOFDResponse [11:46:04]1017 (14) - 77093643461234 [11:46:04]1041 (16) - 0000000000874718 [11:46:04]1040 (4) - 164558 [11:46:04]1012 (4) - 13.07.2024 05:24 [11:46:04]1206 (1) - 0 [11:46:04]OFD Sender: Remove packet 164558 [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00164558 [11:46:04]NVStorageDeleteData [11:46:04]Write to MH i2c: 01 00 00 BD 12 CF [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 BD 12 00 00 00 00 00 00 0D E3 [11:46:04]RasterBufferAndPrint [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]written 0, free lines is 3334 [11:46:04]MH_Cut [11:46:04]Write to MH i2c: D1 01 00 C4 12 01 A8 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 01 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 01 00 C4 12 00 A7 [11:46:04]Write to MH i2c: 01 00 00 C5 12 D7 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:05]OFD Sender: No OFD packet to send [11:46:05]*** Cut start [11:46:05]*** Partial cut [11:46:05]*** CUTSNS_PIN = 1 [11:46:05]*** CUTSNS_PIN = 0 [11:46:05]*** Brake cut motor [11:46:06]Read from MH i2c: 01 [11:46:06]MH_I2C_Read... [11:46:06]*** Stop cut motor [11:46:06]*** Cut end [11:46:06]Read from MH i2c: 01 07 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 FF 0F EC [11:46:06]process_action close_receipt done [11:46:06]requested_data is exist [11:46:06]produce_requested_data [11:46:06]requested_item fm.sn is exist - process it [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 11 00 00 [11:46:06]Write to MH i2c: E2 08 00 C6 12 80 11 00 00 00 00 00 00 52 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:06]Read from MH i2c: E2 17 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 17 00 C6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [11:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:46:06]wFMCommunicate OK [11:46:06]requested_item fd.num is exist - process it [11:46:06]SAM_PROTO_GetFieldsCounters [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 13 00 00 [11:46:06]Write to MH i2c: E2 08 00 C7 12 80 13 00 00 00 00 00 00 55 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 62 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 62 00 C7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 82 02 00 0E 04 04 00 BE 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 EF [11:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:06]wFMCommunicate OK [11:46:06]SAM_PROTO_GetFieldsCounters done [11:46:06]requested_item shift.num is exist - process it [11:46:06]requested_item shift.opened is exist - process it [11:46:06]req_shift_opened [11:46:06]FM_GetShiftState [11:46:06]SAM_PROTO_GetShiftState [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 13 01 00 [11:46:06]Write to MH i2c: E2 08 00 C8 12 80 13 01 00 00 00 00 00 57 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0E 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0E 00 C8 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 38 [11:46:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:46:06]wFMCommunicate OK [11:46:06]SAM_PROTO_GetShiftState done [11:46:06]FM_GetShiftState done [11:46:06]req_shift_opened done [11:46:06]requested_item shift.open_date is exist - process it [11:46:06]req_shift_open_date [11:46:06]req_shift_open_date done [11:46:06]produce_requested_data done [11:46:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164558,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:46:06]process_action_free close_receipt [11:46:06]json_value_free [11:46:06]json_value_free done [11:46:06]process_json_proto returns [11:46:06]Send response to host [11:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164558,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:46:06]free response buf [11:46:06]execute_script done [11:46:06]execute_script returns [11:46:06]free content buf [11:46:06]Sock 9.Close socket [11:46:06]Sock 9.Thread stoped [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:39]accept exits with 7 [11:48:39]New connection [11:48:39]New thread 3067293028 created [11:48:39]Thread 3067149668 joined [11:48:39]Waiting for new connection... [11:48:39] Sock 7.Parse request [11:48:39]Sock 7.Check first char [11:48:39]Sock 7.First char is OK [11:48:39]request: POST /json_proto HTTP/1.0 [11:48:39]Method: POST [11:48:39]URL: /json_proto [11:48:39]Method is POST - this is cgi request [11:48:39]url: /json_proto [11:48:39]query_string will be loaded in cgi processing [11:48:39]execute_cgi json_proto POST (null) [11:48:39]execute_cgi path=json_proto method=POST [11:48:39]POST find Content-Length [11:48:39]Host: 172.17.56.4:8080 [11:48:39]Content-Length: 677 [11:48:39]Content-Type: application/json [11:48:39] [11:48:39]POST finish read [11:48:39]Found Content-Length = 677 [11:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:48:39]execute_script... [11:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:48:39]POST & json_proto [11:48:39]process_json_proto [11:48:39]json parsed OK: [11:48:39]protocol is kg_v1.0 [11:48:39]action value=close_receipt [11:48:39]process_action close_receipt [11:48:39]cmd_close_receipt [11:48:39]MH_GetDate [11:48:39]Write to MH i2c: F0 00 00 C9 12 CA [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: F0 09 00 C9 12 00 98 69 92 66 C9 DC B2 64 87 [11:48:39]GetLastDocTimeStamp 1720871164 [11:48:39]current date 1720871320 [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 CA 12 80 13 01 00 00 00 00 00 59 [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 CA 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3A [11:48:39]RAPDU: 09 00 01 11 CD 91 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]opened in 1720831249 [11:48:39]opened+sec_in_day 1720917649 [11:48:39]quantity*price = 60009 [11:48:39]sum+1 = 60011 [11:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 119 13.07.2024 11:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164559 ФПД: 58249630624692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164559&fm=58249630624692&tin=02508201610067®Number=0000000000090829&sum=60000 [11:48:40]StoreToDocumentArchive [11:48:40]shift 446 fd 164559 [11:48:40]save to /storage/0446/doc_00164559 [11:48:40]save last doc name /storage/0446/doc_00164559 to /storage/kkm_last_doc_name [11:48:40]save OK [11:48:40]Clear old archive folders... [11:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:40]tlvbuf is 0144EB80 [11:48:40]SAM_PROTO_ClearQueue [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 09 00 00 [11:48:40]Write to MH i2c: E2 08 00 D7 12 80 09 00 00 00 00 00 00 5B [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [11:48:40]RAPDU: 90 00 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_ClearQueue done [11:48:40]KKMCreateOFDPacket [11:48:40]OFDProtocolAddRootSTLVToBuf [11:48:40]FM_MakeSignedData [11:48:40]FM_MakeSignedData [11:48:40]SAM_PROTO_SignData [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 0D 01 02 [11:48:40]Write to MH i2c: E2 08 00 D8 12 80 0D 01 02 00 00 00 00 63 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 D8 12 00 90 00 5E [11:48:40]RAPDU: 90 00 [11:48:40]wFMCommunicate OK [11:48:40]wFMCommunicate request_size=255 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 82 02 00 35 04 06 00 34 [11:48:40]Write to MH i2c: E2 02 01 D9 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 82 02 00 35 04 06 00 34 00 00 B4 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 03 00 D9 12 00 90 00 5F [11:48:40]RAPDU: 90 00 [11:48:40]wFMCommunicate OK [11:48:40]wFMCommunicate request_size=10 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 0D 02 02 05 FA 4C 8A AB B4 [11:48:40]Write to MH i2c: E2 0D 00 DA 12 80 0D 02 02 05 00 FA 4C 8A AB B4 00 00 9F [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 03 00 DA 12 00 90 00 60 [11:48:41]RAPDU: 90 00 [11:48:41]wFMCommunicate OK [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 0D 03 02 [11:48:41]Write to MH i2c: E2 08 00 DB 12 80 0D 03 02 00 00 00 00 68 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 0B 00 DB 12 00 B1 20 9F 06 16 72 26 49 90 00 D6 [11:48:41]RAPDU: B1 20 9F 06 16 72 26 49 90 00 [11:48:41]wFMCommunicate OK [11:48:41]SAM_PROTO_SignData done [11:48:41]FM_MakeSignedData done [11:48:41]CreateOFDProtocolMessage [11:48:41]wFMCommunicate request_size=4 [11:48:41]MH_SAM_APDU [11:48:41]CAPDU: 80 11 00 00 [11:48:41]Write to MH i2c: E2 08 00 DC 12 80 11 00 00 00 00 00 00 68 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:41]Read from MH i2c: E2 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 17 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: E2 17 00 DC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [11:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:48:41]wFMCommunicate OK [11:48:41]CreateOFDProtocolMessage done [11:48:41]OFDSenderStorePacket 164559 [11:48:41]StoreOFDPacket docnum=164559 [11:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F 74 07 01 BB 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 82 02 00 35 04 06 00 34 FA 4C 8A AB B4 B1 20 9F 06 16 72 26 49 [11:48:41]CheckFolder [11:48:41]dirname=/storage/ofd_packets [11:48:41]CheckFolder done [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00164559 [11:48:41]NVStorageSaveData ofd_packets/00164559 [11:48:41]File name is /storage/ofd_packets/00164559 [11:48:41]Write 301 bytes [11:48:41]NVStorageSaveData done [11:48:41]OFDSenderStorePacket done [11:48:41]KKMCreateOFDPacket done [11:48:41]NVStorageSaveData kkm_last_timestamp [11:48:41]File name is /storage/kkm_last_timestamp [11:48:41]Write 4 bytes [11:48:41]NVStorageSaveData done [11:48:41]ExternCall_PrintAddStr [11:48:41]wPrintStart [11:48:41]Write to MH i2c: 01 00 00 DD 12 EF [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 FF 0F 04 [11:48:41]RasterBufferAndPrint [11:48:41]line Счет N : (1)458649 [11:48:41]line ИНН: 02508201610067 [11:48:41]line Контрольно-Кассовый Чек [11:48:41]line ПРОДАЖА [11:48:41]line ТРК (МРК, ГНК) : 12 [11:48:41]line Товар: 2710124130 [11:48:41]line Аи-92-К-5 [11:48:41]line 9.120 * 65.80 [11:48:41]line = 600.10 [11:48:41]line НДС 12% НСП 1% [11:48:41]line > о реализуемом товаре [11:48:41]line ОКРУГЛЕНИЕ: -0.10 [11:48:41]line ИТОГО: 600.00 [11:48:41]line Внесено: 600.00 [11:48:41]line СДАЧА: 0.00 [11:48:41]line НСП 1% : 5.31 [11:48:41]line НДС 12% : 63.73 [11:48:41]line Наличными: 600.00 [11:48:41]line Безнал.: 0.00 [11:48:41]line Место: АЗС № 72 "Партнер Нефть" [11:48:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:48:41]line СНО: Общий режим [11:48:41]line Чек 119 13.07.2024 11:48 [11:48:41]line Смена: 446 ФФД: 1.0 [11:48:41]line ЗНМ: 0300000160 [11:48:41]line РНМ: 0000000000090829 [11:48:41]line Версия ККМ: 001 [11:48:41]line ФМ: 0000000000874718 [11:48:41]line ФД: 164559 [11:48:41]line ФПД: 58249630624692 [11:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164559&fm=58249630624692&tin=02508201610067®Number=0000000000090829&sum=60000 [11:48:41]OFD Sender: Processing packet 164559 [packets to send 104, broken 103] [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00164559 [11:48:41]OFD Sender: To server: pG, [11:48:41]CommunicateWithHost lk.salyk.kg:30040 [11:48:41]ConnectInit lk.salyk.kg [11:48:41]written 0, free lines is 4095 [11:48:41]Connected sock=10 [11:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F 74 07 01 BB 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 99 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 82 02 00 35 04 06 00 34 FA 4C 8A AB B4 B1 20 9F 06 16 72 26 49 [11:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 54 D5 47 00 A4 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 82 02 00 F4 03 04 00 2A 10 92 66 B6 04 01 00 00 C5 9E 9A 01 D0 C9 23 80 [11:48:41]CommunicateWithHost err = 0 [11:48:41]CheckOFDResponse [11:48:41]1017 (14) - 77093643461234 [11:48:41]1041 (16) - 0000000000874718 [11:48:41]1040 (4) - 164559 [11:48:41]1012 (4) - 13.07.2024 05:27 [11:48:41]1206 (1) - 0 [11:48:41]OFD Sender: Remove packet 164559 [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00164559 [11:48:41]NVStorageDeleteData [11:48:41]Write to MH i2c: 01 00 00 07 13 1A [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: 01 07 00 07 13 00 00 00 00 00 10 0D 3E [11:48:41]RasterBufferAndPrint [11:48:41]line [11:48:41]line [11:48:41]line [11:48:41]line [11:48:41]line [11:48:41]written 0, free lines is 3350 [11:48:41]MH_Cut [11:48:41]Write to MH i2c: D1 01 00 0E 13 01 F3 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: D1 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: D1 01 00 [11:48:41]MH_I2C_Read... [11:48:41]Read from MH i2c: D1 01 00 0E 13 00 F2 [11:48:41]Write to MH i2c: 01 00 00 0F 13 22 [11:48:41]Write i2c OK [11:48:41]MH_I2C_Read... [11:48:42]OFD Sender: No OFD packet to send [11:48:42]*** Cut start [11:48:42]*** Partial cut [11:48:42]*** CUTSNS_PIN = 1 [11:48:42]*** CUTSNS_PIN = 0 [11:48:42]*** Brake cut motor [11:48:43]Read from MH i2c: 01 [11:48:43]MH_I2C_Read... [11:48:43]*** Stop cut motor [11:48:43]*** Cut end [11:48:43]Read from MH i2c: 01 07 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: 01 07 00 0F 13 00 00 00 00 00 FF 0F 37 [11:48:43]process_action close_receipt done [11:48:43]requested_data is exist [11:48:43]produce_requested_data [11:48:43]requested_item fm.sn is exist - process it [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 11 00 00 [11:48:43]Write to MH i2c: E2 08 00 10 13 80 11 00 00 00 00 00 00 9D [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 17 00 10 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [11:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:48:43]wFMCommunicate OK [11:48:43]requested_item fd.num is exist - process it [11:48:43]SAM_PROTO_GetFieldsCounters [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 00 00 [11:48:43]Write to MH i2c: E2 08 00 11 13 80 13 00 00 00 00 00 00 A0 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 62 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 62 00 11 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 82 02 00 0E 04 04 00 BE 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 3E [11:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetFieldsCounters done [11:48:43]requested_item shift.num is exist - process it [11:48:43]requested_item shift.opened is exist - process it [11:48:43]req_shift_opened [11:48:43]FM_GetShiftState [11:48:43]SAM_PROTO_GetShiftState [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 01 00 [11:48:43]Write to MH i2c: E2 08 00 12 13 80 13 01 00 00 00 00 00 A2 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 12 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 83 [11:48:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetShiftState done [11:48:43]FM_GetShiftState done [11:48:43]req_shift_opened done [11:48:43]requested_item shift.open_date is exist - process it [11:48:43]req_shift_open_date [11:48:43]req_shift_open_date done [11:48:43]produce_requested_data done [11:48:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164559,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:48:43]process_action_free close_receipt [11:48:43]json_value_free [11:48:43]json_value_free done [11:48:43]process_json_proto returns [11:48:43]Send response to host [11:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164559,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:48:43]free response buf [11:48:43]execute_script done [11:48:43]execute_script returns [11:48:43]free content buf [11:48:43]Sock 7.Close socket [11:48:43]Sock 7.Thread stoped [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]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:09]accept exits with 9 [11:50:09]New connection [11:50:09]New thread 3067149668 created [11:50:09]Thread 3067293028 joined [11:50:09]Waiting for new connection... [11:50:09] Sock 9.Parse request [11:50:09]Sock 9.Check first char [11:50:09]Sock 9.First char is OK [11:50:09]request: POST /json_proto HTTP/1.0 [11:50:09]Method: POST [11:50:09]URL: /json_proto [11:50:09]Method is POST - this is cgi request [11:50:09]url: /json_proto [11:50:09]query_string will be loaded in cgi processing [11:50:09]execute_cgi json_proto POST (null) [11:50:09]execute_cgi path=json_proto method=POST [11:50:09]POST find Content-Length [11:50:09]Host: 172.17.56.4:8080 [11:50:09]Content-Length: 678 [11:50:09]Content-Type: application/json [11:50:09] [11:50:09]POST finish read [11:50:09]Found Content-Length = 678 [11:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:50:09]execute_script... [11:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:50:09]POST & json_proto [11:50:09]process_json_proto [11:50:09]json parsed OK: [11:50:09]protocol is kg_v1.0 [11:50:09]action value=close_receipt [11:50:09]process_action close_receipt [11:50:09]cmd_close_receipt [11:50:09]MH_GetDate [11:50:09]Write to MH i2c: F0 00 00 13 13 15 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 13 13 00 F2 69 92 66 C9 DC B2 64 2C [11:50:09]GetLastDocTimeStamp 1720871321 [11:50:09]current date 1720871410 [11:50:09]FM_GetShiftState [11:50:09]SAM_PROTO_GetShiftState [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 13 01 00 [11:50:09]Write to MH i2c: E2 08 00 14 13 80 13 01 00 00 00 00 00 A4 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 14 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 85 [11:50:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:50:09]wFMCommunicate OK [11:50:09]SAM_PROTO_GetShiftState done [11:50:09]FM_GetShiftState done [11:50:09]opened in 1720831249 [11:50:09]opened+sec_in_day 1720917649 [11:50:09]quantity*price = 70011 [11:50:09]sum+1 = 70012 [11:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 120 13.07.2024 11:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164560 ФПД: 139725576075504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115010&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164560&fm=139725576075504&tin=02508201610067®Number=0000000000090829&sum=70000 [11:50:10]StoreToDocumentArchive [11:50:10]shift 446 fd 164560 [11:50:10]save to /storage/0446/doc_00164560 [11:50:10]save last doc name /storage/0446/doc_00164560 to /storage/kkm_last_doc_name [11:50:10]save OK [11:50:10]Clear old archive folders... [11:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:10]tlvbuf is 01434340 [11:50:10]SAM_PROTO_ClearQueue [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 09 00 00 [11:50:10]Write to MH i2c: E2 08 00 21 13 80 09 00 00 00 00 00 00 A6 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 21 13 00 90 00 A8 [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]SAM_PROTO_ClearQueue done [11:50:10]KKMCreateOFDPacket [11:50:10]OFDProtocolAddRootSTLVToBuf [11:50:10]FM_MakeSignedData [11:50:10]FM_MakeSignedData [11:50:10]SAM_PROTO_SignData [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 01 02 [11:50:10]Write to MH i2c: E2 08 00 22 13 80 0D 01 02 00 00 00 00 AE [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 22 13 00 90 00 A9 [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]wFMCommunicate request_size=255 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F2 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 82 02 00 35 04 06 00 7F [11:50:10]Write to MH i2c: E2 02 01 23 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F2 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 82 02 00 35 04 06 00 7F 00 00 C8 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 23 13 00 90 00 AA [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]wFMCommunicate request_size=10 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 02 02 05 14 65 53 F8 F0 [11:50:10]Write to MH i2c: E2 0D 00 24 13 80 0D 02 02 05 00 14 65 53 F8 F0 00 00 6F [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 03 00 24 13 00 90 00 AB [11:50:10]RAPDU: 90 00 [11:50:10]wFMCommunicate OK [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 0D 03 02 [11:50:10]Write to MH i2c: E2 08 00 25 13 80 0D 03 02 00 00 00 00 B3 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 0B 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 0B 00 25 13 00 2D BE C5 39 BC 7E 84 54 90 00 AF [11:50:10]RAPDU: 2D BE C5 39 BC 7E 84 54 90 00 [11:50:10]wFMCommunicate OK [11:50:10]SAM_PROTO_SignData done [11:50:10]FM_MakeSignedData done [11:50:10]CreateOFDProtocolMessage [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 11 00 00 [11:50:10]Write to MH i2c: E2 08 00 26 13 80 11 00 00 00 00 00 00 B3 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 17 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 17 00 26 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [11:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:10]wFMCommunicate OK [11:50:10]CreateOFDProtocolMessage done [11:50:10]OFDSenderStorePacket 164560 [11:50:10]StoreOFDPacket docnum=164560 [11:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 5D 07 01 8D 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F2 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 82 02 00 35 04 06 00 7F 14 65 53 F8 F0 2D BE C5 39 BC 7E 84 54 [11:50:10]CheckFolder [11:50:10]dirname=/storage/ofd_packets [11:50:10]CheckFolder done [11:50:10]ProducePacketName [11:50:10]name=ofd_packets/00164560 [11:50:10]NVStorageSaveData ofd_packets/00164560 [11:50:10]File name is /storage/ofd_packets/00164560 [11:50:10]Write 301 bytes [11:50:10]NVStorageSaveData done [11:50:10]OFDSenderStorePacket done [11:50:10]KKMCreateOFDPacket done [11:50:10]NVStorageSaveData kkm_last_timestamp [11:50:10]File name is /storage/kkm_last_timestamp [11:50:10]Write 4 bytes [11:50:10]NVStorageSaveData done [11:50:10]ExternCall_PrintAddStr [11:50:10]wPrintStart [11:50:10]Write to MH i2c: 01 00 00 27 13 3A [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: 01 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: 01 07 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: 01 07 00 27 13 00 00 00 00 00 FF 0F 4F [11:50:10]RasterBufferAndPrint [11:50:10]line Счет N : (1)458650 [11:50:10]line ИНН: 02508201610067 [11:50:10]line Контрольно-Кассовый Чек [11:50:10]line ПРОДАЖА [11:50:10]line ТРК (МРК, ГНК) : 22 [11:50:10]line Товар: 2710124130 [11:50:10]line Аи-92-К-5 [11:50:10]line 10.640 * 65.80 [11:50:10]line = 700.11 [11:50:10]line НДС 12% НСП 1% [11:50:10]line > о реализуемом товаре [11:50:10]line ОКРУГЛЕНИЕ: -0.11 [11:50:10]line ИТОГО: 700.00 [11:50:10]line Внесено: 700.00 [11:50:10]line СДАЧА: 0.00 [11:50:10]line НСП 1% : 6.20 [11:50:10]line НДС 12% : 74.35 [11:50:10]line Наличными: 700.00 [11:50:10]line Безнал.: 0.00 [11:50:10]line Место: АЗС № 72 "Партнер Нефть" [11:50:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:50:10]line СНО: Общий режим [11:50:10]line Чек 120 13.07.2024 11:50 [11:50:10]line Смена: 446 ФФД: 1.0 [11:50:10]line ЗНМ: 0300000160 [11:50:10]line РНМ: 0000000000090829 [11:50:10]line Версия ККМ: 001 [11:50:10]line ФМ: 0000000000874718 [11:50:10]line ФД: 164560 [11:50:10]line ФПД: 139725576075504 [11:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115010&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164560&fm=139725576075504&tin=02508201610067®Number=0000000000090829&sum=70000 [11:50:11]written 0, free lines is 4095 [11:50:11]OFD Sender: Processing packet 164560 [packets to send 104, broken 103] [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00164560 [11:50:11]OFD Sender: To server: pG, [11:50:11]CommunicateWithHost lk.salyk.kg:30040 [11:50:11]ConnectInit lk.salyk.kg [11:50:11]Connected sock=10 [11:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 5D 07 01 8D 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F2 69 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 82 02 00 35 04 06 00 7F 14 65 53 F8 F0 2D BE C5 39 BC 7E 84 54 [11:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 36 33 47 00 ED 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 34 37 31 38 10 04 04 00 D0 82 02 00 F4 03 04 00 83 10 92 66 B6 04 01 00 00 F4 AA 10 D6 43 52 BA D7 [11:50:11]CommunicateWithHost err = 0 [11:50:11]CheckOFDResponse [11:50:11]1017 (14) - 77093643461234 [11:50:11]1041 (16) - 0000000000874718 [11:50:11]1040 (4) - 164560 [11:50:11]1012 (4) - 13.07.2024 05:28 [11:50:11]1206 (1) - 0 [11:50:11]OFD Sender: Remove packet 164560 [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00164560 [11:50:11]NVStorageDeleteData [11:50:11]Write to MH i2c: 01 00 00 51 13 64 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 F5 0C 6C [11:50:11]RasterBufferAndPrint [11:50:11]line [11:50:11]line [11:50:11]line [11:50:11]line [11:50:11]line [11:50:11]written 0, free lines is 3324 [11:50:11]MH_Cut [11:50:11]Write to MH i2c: D1 01 00 58 13 01 3D [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: D1 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: D1 01 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: D1 01 00 58 13 00 3C [11:50:11]Write to MH i2c: 01 00 00 59 13 6C [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]OFD Sender: No OFD packet to send [11:50:12]*** Cut start [11:50:12]*** Partial cut [11:50:12]*** CUTSNS_PIN = 1 [11:50:12]*** CUTSNS_PIN = 0 [11:50:12]*** Brake cut motor [11:50:12]Read from MH i2c: 01 [11:50:12]*** Stop cut motor [11:50:12]*** Cut end [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 59 13 00 00 00 00 00 FF 0F 81 [11:50:12]process_action close_receipt done [11:50:12]requested_data is exist [11:50:12]produce_requested_data [11:50:12]requested_item fm.sn is exist - process it [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 11 00 00 [11:50:12]Write to MH i2c: E2 08 00 5A 13 80 11 00 00 00 00 00 00 E7 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:12]Read from MH i2c: E2 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 17 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 17 00 5A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [11:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:12]wFMCommunicate OK [11:50:12]requested_item fd.num is exist - process it [11:50:12]SAM_PROTO_GetFieldsCounters [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 13 00 00 [11:50:12]Write to MH i2c: E2 08 00 5B 13 80 13 00 00 00 00 00 00 EA [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:12]Read from MH i2c: E2 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 62 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 62 00 5B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 82 02 00 0E 04 04 00 BE 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 8C [11:50:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:12]wFMCommunicate OK [11:50:12]SAM_PROTO_GetFieldsCounters done [11:50:12]requested_item shift.num is exist - process it [11:50:12]requested_item shift.opened is exist - process it [11:50:12]req_shift_opened [11:50:12]FM_GetShiftState [11:50:12]SAM_PROTO_GetShiftState [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 13 01 00 [11:50:12]Write to MH i2c: E2 08 00 5C 13 80 13 01 00 00 00 00 00 EC [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 5C 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CD [11:50:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetShiftState done [11:50:13]FM_GetShiftState done [11:50:13]req_shift_opened done [11:50:13]requested_item shift.open_date is exist - process it [11:50:13]req_shift_open_date [11:50:13]req_shift_open_date done [11:50:13]produce_requested_data done [11:50:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164560,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:50:13]process_action_free close_receipt [11:50:13]json_value_free [11:50:13]json_value_free done [11:50:13]process_json_proto returns [11:50:13]Send response to host [11:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164560,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:50:13]free response buf [11:50:13]execute_script done [11:50:13]execute_script returns [11:50:13]free content buf [11:50:13]Sock 9.Close socket [11:50:13]Sock 9.Thread stoped [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:08]accept exits with 7 [11:52:08]New connection [11:52:08]New thread 3067293028 created [11:52:08]Thread 3067149668 joined [11:52:08]Waiting for new connection... [11:52:08] Sock 7.Parse request [11:52:08]Sock 7.Check first char [11:52:08]Sock 7.First char is OK [11:52:08]request: POST /json_proto HTTP/1.0 [11:52:08]Method: POST [11:52:08]URL: /json_proto [11:52:08]Method is POST - this is cgi request [11:52:08]url: /json_proto [11:52:08]query_string will be loaded in cgi processing [11:52:08]execute_cgi json_proto POST (null) [11:52:08]execute_cgi path=json_proto method=POST [11:52:08]POST find Content-Length [11:52:08]Host: 172.17.56.4:8080 [11:52:08]Content-Length: 677 [11:52:08]Content-Type: application/json [11:52:08] [11:52:08]POST finish read [11:52:08]Found Content-Length = 677 [11:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:52:08]execute_script... [11: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)458651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:52:08]POST & json_proto [11:52:08]process_json_proto [11:52:08]json parsed OK: [11:52:08]protocol is kg_v1.0 [11:52:08]action value=close_receipt [11:52:08]process_action close_receipt [11:52:08]cmd_close_receipt [11:52:08]MH_GetDate [11:52:08]Write to MH i2c: F0 00 00 5D 13 5F [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 09 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: F0 09 00 5D 13 00 69 6A 92 66 C9 DC B2 64 EE [11:52:08]GetLastDocTimeStamp 1720871410 [11:52:08]current date 1720871529 [11:52:08]FM_GetShiftState [11:52:08]SAM_PROTO_GetShiftState [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 13 01 00 [11:52:08]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0E 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CF [11:52:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:52:08]wFMCommunicate OK [11:52:08]SAM_PROTO_GetShiftState done [11:52:08]FM_GetShiftState done [11:52:08]opened in 1720831249 [11:52:08]opened+sec_in_day 1720917649 [11:52:08]quantity*price = 50008 [11:52:08]sum+1 = 50009 [11:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 121 13.07.2024 11:52 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164561 ФПД: 39217143184517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164561&fm=39217143184517&tin=02508201610067®Number=0000000000090829&sum=50000 [11:52:09]StoreToDocumentArchive [11:52:09]shift 446 fd 164561 [11:52:09]save to /storage/0446/doc_00164561 [11:52:09]save last doc name /storage/0446/doc_00164561 to /storage/kkm_last_doc_name [11:52:09]save OK [11:52:09]Clear old archive folders... [11:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:09]tlvbuf is 0145DB60 [11:52:09]SAM_PROTO_ClearQueue [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 09 00 00 [11:52:09]Write to MH i2c: E2 08 00 6B 13 80 09 00 00 00 00 00 00 F0 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_ClearQueue done [11:52:09]KKMCreateOFDPacket [11:52:09]OFDProtocolAddRootSTLVToBuf [11:52:09]FM_MakeSignedData [11:52:09]FM_MakeSignedData [11:52:09]SAM_PROTO_SignData [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 0D 01 02 [11:52:09]Write to MH i2c: E2 08 00 6C 13 80 0D 01 02 00 00 00 00 F8 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 6C 13 00 90 00 F3 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]wFMCommunicate request_size=255 [11:52:09]MH_SAM_APDU [11:52: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 69 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 82 02 00 35 04 06 00 23 [11:52:09]Write to MH i2c: E2 02 01 6D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 69 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 82 02 00 35 04 06 00 23 00 00 EC [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]wFMCommunicate request_size=10 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 0D 02 02 05 AA F3 E3 7C 85 [11:52:09]Write to MH i2c: E2 0D 00 6E 13 80 0D 02 02 05 00 AA F3 E3 7C 85 00 00 86 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [11:52:09]RAPDU: 90 00 [11:52:09]wFMCommunicate OK [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 0D 03 02 [11:52:09]Write to MH i2c: E2 08 00 6F 13 80 0D 03 02 00 00 00 00 FD [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0B 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0B 00 6F 13 00 BF E0 35 CB 59 0E 99 39 90 00 D6 [11:52:09]RAPDU: BF E0 35 CB 59 0E 99 39 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_SignData done [11:52:09]FM_MakeSignedData done [11:52:09]CreateOFDProtocolMessage [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 11 00 00 [11:52:09]Write to MH i2c: E2 08 00 70 13 80 11 00 00 00 00 00 00 FD [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:10]Read from MH i2c: E2 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: E2 17 00 70 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 53 [11:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:52:10]wFMCommunicate OK [11:52:10]CreateOFDProtocolMessage done [11:52:10]OFDSenderStorePacket 164561 [11:52:10]StoreOFDPacket docnum=164561 [11:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 6D 07 01 1A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 69 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 82 02 00 35 04 06 00 23 AA F3 E3 7C 85 BF E0 35 CB 59 0E 99 39 [11:52:10]CheckFolder [11:52:10]dirname=/storage/ofd_packets [11:52:10]CheckFolder done [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00164561 [11:52:10]NVStorageSaveData ofd_packets/00164561 [11:52:10]File name is /storage/ofd_packets/00164561 [11:52:10]Write 301 bytes [11:52:10]NVStorageSaveData done [11:52:10]OFDSenderStorePacket done [11:52:10]KKMCreateOFDPacket done [11:52:10]NVStorageSaveData kkm_last_timestamp [11:52:10]File name is /storage/kkm_last_timestamp [11:52:10]Write 4 bytes [11:52:10]NVStorageSaveData done [11:52:10]ExternCall_PrintAddStr [11:52:10]wPrintStart [11:52:10]Write to MH i2c: 01 00 00 71 13 84 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 71 13 00 00 00 00 00 FF 0F 99 [11:52:10]RasterBufferAndPrint [11:52:10]line Счет N : (1)458651 [11:52:10]line ИНН: 02508201610067 [11:52:10]line Контрольно-Кассовый Чек [11:52:10]line ПРОДАЖА [11:52:10]line ТРК (МРК, ГНК) : 22 [11:52:10]line Товар: 2710124130 [11:52:10]line Аи-92-К-5 [11:52:10]line 7.600 * 65.80 [11:52:10]line = 500.08 [11:52:10]line НДС 12% НСП 1% [11:52:10]line > о реализуемом товаре [11:52:10]line ОКРУГЛЕНИЕ: -0.08 [11:52:10]line ИТОГО: 500.00 [11:52:10]line Внесено: 500.00 [11:52:10]line СДАЧА: 0.00 [11:52:10]line НСП 1% : 4.42 [11:52:10]line НДС 12% : 53.11 [11:52:10]line Наличными: 500.00 [11:52:10]line Безнал.: 0.00 [11:52:10]line Место: АЗС № 72 "Партнер Нефть" [11:52:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:52:10]line СНО: Общий режим [11:52:10]line Чек 121 13.07.2024 11:52 [11:52:10]line Смена: 446 ФФД: 1.0 [11:52:10]line ЗНМ: 0300000160 [11:52:10]line РНМ: 0000000000090829 [11:52:10]line Версия ККМ: 001 [11:52:10]line ФМ: 0000000000874718 [11:52:10]line ФД: 164561 [11:52:10]line ФПД: 39217143184517 [11:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164561&fm=39217143184517&tin=02508201610067®Number=0000000000090829&sum=50000 [11:52:10]written 0, free lines is 4095 [11:52:10]OFD Sender: Processing packet 164561 [packets to send 104, broken 103] [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00164561 [11:52:10]OFD Sender: To server: pG, [11:52:10]CommunicateWithHost lk.salyk.kg:30040 [11:52:10]ConnectInit lk.salyk.kg [11:52:10]Connected sock=10 [11: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 34 37 31 38 0F 01 00 00 15 6D 07 01 1A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 69 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 82 02 00 35 04 06 00 23 AA F3 E3 7C 85 BF E0 35 CB 59 0E 99 39 [11:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 60 47 00 0C 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 34 37 31 38 10 04 04 00 D1 82 02 00 F4 03 04 00 FB 10 92 66 B6 04 01 00 00 14 B8 F9 74 C5 3C 65 53 [11:52:10]CommunicateWithHost err = 0 [11:52:10]CheckOFDResponse [11:52:10]1017 (14) - 77093643461234 [11:52:10]1041 (16) - 0000000000874718 [11:52:10]1040 (4) - 164561 [11:52:10]1012 (4) - 13.07.2024 05:30 [11:52:10]1206 (1) - 0 [11:52:10]OFD Sender: Remove packet 164561 [11:52:10]ProducePacketName [11:52:10]name=ofd_packets/00164561 [11:52:10]NVStorageDeleteData [11:52:10]Write to MH i2c: 01 00 00 9B 13 AE [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 EE 0C AF [11:52:10]RasterBufferAndPrint [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]line [11:52:10]written 0, free lines is 3319 [11:52:10]MH_Cut [11:52:10]Write to MH i2c: D1 01 00 A2 13 01 87 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 01 00 [11:52:10]MH_I2C_Read... [11:52:10]Read from MH i2c: D1 01 00 A2 13 00 86 [11:52:10]Write to MH i2c: 01 00 00 A3 13 B6 [11:52:10]Write i2c OK [11:52:10]MH_I2C_Read... [11:52:11]OFD Sender: No OFD packet to send [11:52:11]*** Cut start [11:52:11]*** Partial cut [11:52:11]*** CUTSNS_PIN = 1 [11:52:11]*** CUTSNS_PIN = 0 [11:52:11]*** Brake cut motor [11:52:12]Read from MH i2c: 01 [11:52:12]MH_I2C_Read... [11:52:12]*** Stop cut motor [11:52:12]*** Cut end [11:52:12]Read from MH i2c: 01 07 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: 01 07 00 A3 13 00 00 00 00 00 FF 0F CB [11:52:12]process_action close_receipt done [11:52:12]requested_data is exist [11:52:12]produce_requested_data [11:52:12]requested_item fm.sn is exist - process it [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 11 00 00 [11:52:12]Write to MH i2c: E2 08 00 A4 13 80 11 00 00 00 00 00 00 31 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:12]Read from MH i2c: E2 17 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 17 00 A4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [11:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:52:12]wFMCommunicate OK [11:52:12]requested_item fd.num is exist - process it [11:52:12]SAM_PROTO_GetFieldsCounters [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 00 00 [11:52:12]Write to MH i2c: E2 08 00 A5 13 80 13 00 00 00 00 00 00 34 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 62 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 62 00 A5 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 82 02 00 0E 04 04 00 BE 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 DA [11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetFieldsCounters done [11:52:12]requested_item shift.num is exist - process it [11:52:12]requested_item shift.opened is exist - process it [11:52:12]req_shift_opened [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 A6 13 80 13 01 00 00 00 00 00 36 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 A6 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [11:52:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]req_shift_opened done [11:52:12]requested_item shift.open_date is exist - process it [11:52:12]req_shift_open_date [11:52:12]req_shift_open_date done [11:52:12]produce_requested_data done [11:52:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164561,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:52:12]process_action_free close_receipt [11:52:12]json_value_free [11:52:12]json_value_free done [11:52:12]process_json_proto returns [11:52:12]Send response to host [11:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164561,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:52:12]free response buf [11:52:12]execute_script done [11:52:12]execute_script returns [11:52:12]free content buf [11:52:12]Sock 7.Close socket [11:52:12]Sock 7.Thread stoped [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:44]accept exits with 9 [11:53:44]New connection [11:53:44]New thread 3067149668 created [11:53:44]Thread 3067293028 joined [11:53:44]Waiting for new connection... [11:53:44] Sock 9.Parse request [11:53:44]Sock 9.Check first char [11:53:44]Sock 9.First char is OK [11:53:44]request: POST /json_proto HTTP/1.0 [11:53:44]Method: POST [11:53:44]URL: /json_proto [11:53:44]Method is POST - this is cgi request [11:53:44]url: /json_proto [11:53:44]query_string will be loaded in cgi processing [11:53:44]execute_cgi json_proto POST (null) [11:53:44]execute_cgi path=json_proto method=POST [11:53:44]POST find Content-Length [11:53:44]Host: 172.17.56.4:8080 [11:53:44]Content-Length: 677 [11:53:44]Content-Type: application/json [11:53:44] [11:53:44]POST finish read [11:53:44]Found Content-Length = 677 [11:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:53:44]execute_script... [11:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:53:44]POST & json_proto [11:53:44]process_json_proto [11:53:44]json parsed OK: [11:53:44]protocol is kg_v1.0 [11:53:44]action value=close_receipt [11:53:44]process_action close_receipt [11:53:44]cmd_close_receipt [11:53:44]MH_GetDate [11:53:44]Write to MH i2c: F0 00 00 A7 13 A9 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: F0 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: F0 09 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: F0 09 00 A7 13 00 C9 6A 92 66 C9 DC B2 64 98 [11:53:44]GetLastDocTimeStamp 1720871529 [11:53:44]current date 1720871625 [11:53:44]FM_GetShiftState [11:53:44]SAM_PROTO_GetShiftState [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 13 01 00 [11:53:44]Write to MH i2c: E2 08 00 A8 13 80 13 01 00 00 00 00 00 38 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0E 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0E 00 A8 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 19 [11:53:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:53:44]wFMCommunicate OK [11:53:44]SAM_PROTO_GetShiftState done [11:53:44]FM_GetShiftState done [11:53:44]opened in 1720831249 [11:53:44]opened+sec_in_day 1720917649 [11:53:44]quantity*price = 50008 [11:53:44]sum+1 = 50009 [11:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 122 13.07.2024 11:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164562 ФПД: 272498987130994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164562&fm=272498987130994&tin=02508201610067®Number=0000000000090829&sum=50000 [11:53:45]StoreToDocumentArchive [11:53:45]shift 446 fd 164562 [11:53:45]save to /storage/0446/doc_00164562 [11:53:45]save last doc name /storage/0446/doc_00164562 to /storage/kkm_last_doc_name [11:53:45]save OK [11:53:45]Clear old archive folders... [11:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:45]tlvbuf is 01434340 [11:53:45]SAM_PROTO_ClearQueue [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 09 00 00 [11:53:45]Write to MH i2c: E2 08 00 B5 13 80 09 00 00 00 00 00 00 3A [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 B5 13 00 90 00 3C [11:53:45]RAPDU: 90 00 [11:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_ClearQueue done [11:53:45]KKMCreateOFDPacket [11:53:45]OFDProtocolAddRootSTLVToBuf [11:53:45]FM_MakeSignedData [11:53:45]FM_MakeSignedData [11:53:45]SAM_PROTO_SignData [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 0D 01 02 [11:53:45]Write to MH i2c: E2 08 00 B6 13 80 0D 01 02 00 00 00 00 42 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 B6 13 00 90 00 3D [11:53:45]RAPDU: 90 00 [11:53:45]wFMCommunicate OK [11:53:45]wFMCommunicate request_size=255 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7A 00 00 00 F4 03 04 00 C9 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 82 02 00 35 04 06 00 F7 [11:53:45]Write to MH i2c: E2 02 01 B7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7A 00 00 00 F4 03 04 00 C9 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 82 02 00 35 04 06 00 F7 00 00 6C [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 B7 13 00 90 00 3E [11:53:45]RAPDU: 90 00 [11:53:45]wFMCommunicate OK [11:53:45]wFMCommunicate request_size=10 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 0D 02 02 05 D6 1D 54 60 72 [11:53:45]Write to MH i2c: E2 0D 00 B8 13 80 0D 02 02 05 00 D6 1D 54 60 72 00 00 68 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [11:53:45]RAPDU: 90 00 [11:53:45]wFMCommunicate OK [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 0D 03 02 [11:53:45]Write to MH i2c: E2 08 00 B9 13 80 0D 03 02 00 00 00 00 47 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0B 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0B 00 B9 13 00 DE A5 C2 D4 81 0C 97 37 90 00 BC [11:53:45]RAPDU: DE A5 C2 D4 81 0C 97 37 90 00 [11:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_SignData done [11:53:45]FM_MakeSignedData done [11:53:45]CreateOFDProtocolMessage [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 11 00 00 [11:53:45]Write to MH i2c: E2 08 00 BA 13 80 11 00 00 00 00 00 00 47 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 17 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 17 00 BA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [11:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:45]wFMCommunicate OK [11:53:45]CreateOFDProtocolMessage done [11:53:45]OFDSenderStorePacket 164562 [11:53:45]StoreOFDPacket docnum=164562 [11:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4F 7C 07 01 AA CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7A 00 00 00 F4 03 04 00 C9 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 82 02 00 35 04 06 00 F7 D6 1D 54 60 72 DE A5 C2 D4 81 0C 97 37 [11:53:45]CheckFolder [11:53:45]dirname=/storage/ofd_packets [11:53:45]CheckFolder done [11:53:45]ProducePacketName [11:53:45]name=ofd_packets/00164562 [11:53:45]NVStorageSaveData ofd_packets/00164562 [11:53:45]File name is /storage/ofd_packets/00164562 [11:53:45]Write 301 bytes [11:53:45]NVStorageSaveData done [11:53:45]OFDSenderStorePacket done [11:53:45]KKMCreateOFDPacket done [11:53:45]NVStorageSaveData kkm_last_timestamp [11:53:45]File name is /storage/kkm_last_timestamp [11:53:45]Write 4 bytes [11:53:45]NVStorageSaveData done [11:53:45]ExternCall_PrintAddStr [11:53:45]wPrintStart [11:53:45]Write to MH i2c: 01 00 00 BB 13 CE [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: 01 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: 01 07 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 FF 0F E3 [11:53:45]RasterBufferAndPrint [11:53:45]line Счет N : (1)458652 [11:53:45]line ИНН: 02508201610067 [11:53:45]line Контрольно-Кассовый Чек [11:53:45]line ПРОДАЖА [11:53:45]line ТРК (МРК, ГНК) : 12 [11:53:45]line Товар: 2710124130 [11:53:45]line Аи-92-К-5 [11:53:45]line 7.600 * 65.80 [11:53:45]line = 500.08 [11:53:45]line НДС 12% НСП 1% [11:53:45]line > о реализуемом товаре [11:53:45]line ОКРУГЛЕНИЕ: -0.08 [11:53:45]line ИТОГО: 500.00 [11:53:45]line Внесено: 500.00 [11:53:45]line СДАЧА: 0.00 [11:53:45]line НСП 1% : 4.42 [11:53:45]line НДС 12% : 53.11 [11:53:45]line Наличными: 500.00 [11:53:45]line Безнал.: 0.00 [11:53:45]line Место: АЗС № 72 "Партнер Нефть" [11:53:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:53:45]line СНО: Общий режим [11:53:45]line Чек 122 13.07.2024 11:53 [11:53:45]line Смена: 446 ФФД: 1.0 [11:53:45]line ЗНМ: 0300000160 [11:53:45]line РНМ: 0000000000090829 [11:53:45]line Версия ККМ: 001 [11:53:45]line ФМ: 0000000000874718 [11:53:45]line ФД: 164562 [11:53:45]line ФПД: 272498987130994 [11:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164562&fm=272498987130994&tin=02508201610067®Number=0000000000090829&sum=50000 [11:53:46]OFD Sender: Processing packet 164562 [packets to send 104, broken 103] [11:53:46]ProducePacketName [11:53:46]name=ofd_packets/00164562 [11:53:46]OFD Sender: To server: pG, [11:53:46]CommunicateWithHost lk.salyk.kg:30040 [11:53:46]ConnectInit lk.salyk.kg [11:53:46]written 0, free lines is 4095 [11:53:46]Connected sock=10 [11:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4F 7C 07 01 AA CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7A 00 00 00 F4 03 04 00 C9 6A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 82 02 00 35 04 06 00 F7 D6 1D 54 60 72 DE A5 C2 D4 81 0C 97 37 [11:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A1 08 47 00 D4 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 82 02 00 F4 03 04 00 5A 11 92 66 B6 04 01 00 00 F1 8B D7 F0 CD 60 0F E8 [11:53:46]CommunicateWithHost err = 0 [11:53:46]CheckOFDResponse [11:53:46]1017 (14) - 77093643461234 [11:53:46]1041 (16) - 0000000000874718 [11:53:46]1040 (4) - 164562 [11:53:46]1012 (4) - 13.07.2024 05:32 [11:53:46]1206 (1) - 0 [11:53:46]OFD Sender: Remove packet 164562 [11:53:46]ProducePacketName [11:53:46]name=ofd_packets/00164562 [11:53:46]NVStorageDeleteData [11:53:46]Write to MH i2c: 01 00 00 E5 13 F8 [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: 01 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: 01 07 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 11 0D 1D [11:53:46]RasterBufferAndPrint [11:53:46]line [11:53:46]line [11:53:46]line [11:53:46]line [11:53:46]line [11:53:46]written 0, free lines is 3351 [11:53:46]MH_Cut [11:53:46]Write to MH i2c: D1 01 00 EC 13 01 D1 [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: D1 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: D1 01 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: D1 01 00 EC 13 00 D0 [11:53:46]Write to MH i2c: 01 00 00 ED 13 00 [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]OFD Sender: No OFD packet to send [11:53:47]*** Cut start [11:53:47]*** Partial cut [11:53:47]*** CUTSNS_PIN = 1 [11:53:47]*** CUTSNS_PIN = 0 [11:53:47]*** Brake cut motor [11:53:47]Read from MH i2c: 01 [11:53:47]MH_I2C_Read... [11:53:47]*** Stop cut motor [11:53:47]*** Cut end [11:53:47]Read from MH i2c: 01 07 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: 01 07 00 ED 13 00 00 00 00 00 FF 0F 15 [11:53:47]process_action close_receipt done [11:53:47]requested_data is exist [11:53:47]produce_requested_data [11:53:47]requested_item fm.sn is exist - process it [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 11 00 00 [11:53:47]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:47]Read from MH i2c: E2 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 17 00 [11:53:47]MH_I2C_Read... [11:53:47]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [11:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:47]wFMCommunicate OK [11:53:47]requested_item fd.num is exist - process it [11:53:47]SAM_PROTO_GetFieldsCounters [11:53:47]wFMCommunicate request_size=4 [11:53:47]MH_SAM_APDU [11:53:47]CAPDU: 80 13 00 00 [11:53:47]Write to MH i2c: E2 08 00 EF 13 80 13 00 00 00 00 00 00 7E [11:53:47]Write i2c OK [11:53:47]MH_I2C_Read... [11:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 62 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 62 00 EF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 82 02 00 0E 04 04 00 BE 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 28 [11:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:48]wFMCommunicate OK [11:53:48]SAM_PROTO_GetFieldsCounters done [11:53:48]requested_item shift.num is exist - process it [11:53:48]requested_item shift.opened is exist - process it [11:53:48]req_shift_opened [11:53:48]FM_GetShiftState [11:53:48]SAM_PROTO_GetShiftState [11:53:48]wFMCommunicate request_size=4 [11:53:48]MH_SAM_APDU [11:53:48]CAPDU: 80 13 01 00 [11:53:48]Write to MH i2c: E2 08 00 F0 13 80 13 01 00 00 00 00 00 80 [11:53:48]Write i2c OK [11:53:48]MH_I2C_Read... [11:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:48]Read from MH i2c: E2 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 [11:53:48]MH_I2C_Read... [11:53:48]Read from MH i2c: E2 0E 00 F0 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 61 [11:53:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:53:48]wFMCommunicate OK [11:53:48]SAM_PROTO_GetShiftState done [11:53:48]FM_GetShiftState done [11:53:48]req_shift_opened done [11:53:48]requested_item shift.open_date is exist - process it [11:53:48]req_shift_open_date [11:53:48]req_shift_open_date done [11:53:48]produce_requested_data done [11:53:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164562,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:53:48]process_action_free close_receipt [11:53:48]json_value_free [11:53:48]json_value_free done [11:53:48]process_json_proto returns [11:53:48]Send response to host [11:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164562,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:53:48]free response buf [11:53:48]execute_script done [11:53:48]execute_script returns [11:53:48]free content buf [11:53:48]Sock 9.Close socket [11:53:48]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:36]accept exits with 7 [11:57:36]New connection [11:57:36]New thread 3067293028 created [11:57:36]Thread 3067149668 joined [11:57:36]Waiting for new connection... [11:57:36] Sock 7.Parse request [11:57:36]Sock 7.Check first char [11:57:36]Sock 7.First char is OK [11:57:36]request: POST /json_proto HTTP/1.0 [11:57:36]Method: POST [11:57:36]URL: /json_proto [11:57:36]Method is POST - this is cgi request [11:57:36]url: /json_proto [11:57:36]query_string will be loaded in cgi processing [11:57:36]execute_cgi json_proto POST (null) [11:57:36]execute_cgi path=json_proto method=POST [11:57:36]POST find Content-Length [11:57:36]Host: 172.17.56.4:8080 [11:57:36]Content-Length: 1197 [11:57:36]Content-Type: application/json [11:57:36] [11:57:36]POST finish read [11:57:36]Found Content-Length = 1197 [11:57:36]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458653\u000A13.07.2024 11:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040899\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:36]execute_script... [11:57:36]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458653\u000A13.07.2024 11:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040899\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:36]POST & json_proto [11:57:36]process_json_proto [11:57:36]json parsed OK: [11:57:36]protocol is kg_v1.0 [11:57:36]action value=print_text [11:57:36]process_action print_text [11:57:36]cmd_print_text [11:57:36]ExternCall_PrintAddStr [11:57:36]wPrintStart [11:57:36]Write to MH i2c: 01 00 00 F1 13 04 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 FF 0F 19 [11:57:36]RasterBufferAndPrint [11:57:36]line *****ТОВАРНЫЙ ЧЕК***** [11:57:36]line АЗС 72 [11:57:36]line Партнер нефть [11:57:36]line 02508201610067 [11:57:36]line Кассир : Женишбеков Т. [11:57:36]line Счет N : (1)458653 [11:57:36]line 13.07.2024 11:23 [11:57:36]line ПРОДАЖА [11:57:36]line ТРК (МРК, ГНК): 12 [11:57:36]line Вид ГСМ : 2710124130 [11:57:36]line Аи-92-К-5 [11:57:36]line 20.000 x 65.80 [11:57:36]line ИТОГ: 1316.00 [11:57:36]line Тип оплаты: Талоны: Партнер нефть [11:57:36]line 3040899 [11:57:36]line ______________________ [11:57:36]line (подпись) [11:57:36]written 0, free lines is 4095 [11:57:36]Write to MH i2c: 01 00 00 06 14 1A [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 F7 0D 25 [11:57:36]RasterBufferAndPrint [11:57:36]line [11:57:36]line [11:57:36]line [11:57:36]line [11:57:36]line [11:57:36]written 0, free lines is 3576 [11:57:36]MH_Cut [11:57:36]Write to MH i2c: D1 01 00 0D 14 01 F3 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: D1 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: D1 01 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: D1 01 00 0D 14 00 F2 [11:57:36]Write to MH i2c: 01 00 00 0E 14 22 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** Cut start [11:57:36]*** Partial cut [11:57:36]*** CUTSNS_PIN = 1 [11:57:36]*** CUTSNS_PIN = 0 [11:57:37]*** Brake cut motor [11:57:37]OFD Sender: No OFD packet to send [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]*** Stop cut motor [11:57:37]*** Cut end [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 0E 14 00 00 00 00 00 FF 0F 37 [11:57:37]process_action print_text done [11:57:37]requested_data is exist [11:57:37]produce_requested_data [11:57:37]requested_item fm.sn is exist - process it [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 0F 14 80 11 00 00 00 00 00 00 9D [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 0F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:57:37]wFMCommunicate OK [11:57:37]requested_item fd.num is exist - process it [11:57:37]SAM_PROTO_GetFieldsCounters [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 00 00 [11:57:37]Write to MH i2c: E2 08 00 10 14 80 13 00 00 00 00 00 00 A0 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 10 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 82 02 00 0E 04 04 00 BE 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 4A [11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetFieldsCounters done [11:57:37]requested_item shift.num is exist - process it [11:57:37]requested_item shift.opened is exist - process it [11:57:37]req_shift_opened [11:57:37]FM_GetShiftState [11:57:37]SAM_PROTO_GetShiftState [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 01 00 [11:57:37]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 11 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 83 [11:57:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetShiftState done [11:57:37]FM_GetShiftState done [11:57:37]req_shift_opened done [11:57:37]requested_item shift.open_date is exist - process it [11:57:37]req_shift_open_date [11:57:37]req_shift_open_date done [11:57:37]produce_requested_data done [11:57:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164562,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:57:37]process_action_free print_text [11:57:37]json_value_free [11:57:37]json_value_free done [11:57:37]process_json_proto returns [11:57:37]Send response to host [11:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164562,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:57:37]free response buf [11:57:37]execute_script done [11:57:37]execute_script returns [11:57:37]free content buf [11:57:37]Sock 7.Close socket [11:57:37]Sock 7.Thread stoped [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:36]accept exits with 9 [11:58:36]New connection [11:58:36]New thread 3067149668 created [11:58:36]Thread 3067293028 joined [11:58:36]Waiting for new connection... [11:58:36] Sock 9.Parse request [11:58:36]Sock 9.Check first char [11:58:36]Sock 9.First char is OK [11:58:36]request: POST /json_proto HTTP/1.0 [11:58:36]Method: POST [11:58:36]URL: /json_proto [11:58:36]Method is POST - this is cgi request [11:58:36]url: /json_proto [11:58:36]query_string will be loaded in cgi processing [11:58:36]execute_cgi json_proto POST (null) [11:58:36]execute_cgi path=json_proto method=POST [11:58:36]POST find Content-Length [11:58:36]Host: 172.17.56.4:8080 [11:58:36]Content-Length: 679 [11:58:36]Content-Type: application/json [11:58:36] [11:58:36]POST finish read [11:58:36]Found Content-Length = 679 [11:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:58:36]execute_script... [11:58:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:58:36]POST & json_proto [11:58:36]process_json_proto [11:58:36]json parsed OK: [11:58:36]protocol is kg_v1.0 [11:58:36]action value=close_receipt [11:58:36]process_action close_receipt [11:58:36]cmd_close_receipt [11:58:36]MH_GetDate [11:58:36]Write to MH i2c: F0 00 00 12 14 15 [11:58:36]Write i2c OK [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: F0 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: F0 09 00 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: F0 09 00 12 14 00 EE 6B 92 66 C9 DC B2 64 2A [11:58:36]GetLastDocTimeStamp 1720871625 [11:58:36]current date 1720871918 [11:58:36]FM_GetShiftState [11:58:36]SAM_PROTO_GetShiftState [11:58:36]wFMCommunicate request_size=4 [11:58:36]MH_SAM_APDU [11:58:36]CAPDU: 80 13 01 00 [11:58:36]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [11:58:36]Write i2c OK [11:58:36]MH_I2C_Read... [11:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:36]Read from MH i2c: E2 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 0E 00 [11:58:36]MH_I2C_Read... [11:58:36]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 85 [11:58:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:58:36]wFMCommunicate OK [11:58:36]SAM_PROTO_GetShiftState done [11:58:36]FM_GetShiftState done [11:58:36]opened in 1720831249 [11:58:36]opened+sec_in_day 1720917649 [11:58:36]quantity*price = 100012 [11:58:36]sum+1 = 100014 [11:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 123 13.07.2024 11:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164563 ФПД: 230316104843338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164563&fm=230316104843338&tin=02508201610067®Number=0000000000090829&sum=100000 [11:58:37]StoreToDocumentArchive [11:58:37]shift 446 fd 164563 [11:58:37]save to /storage/0446/doc_00164563 [11:58:37]save last doc name /storage/0446/doc_00164563 to /storage/kkm_last_doc_name [11:58:37]save OK [11:58:37]Clear old archive folders... [11:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:37]tlvbuf is 014874F0 [11:58:37]SAM_PROTO_ClearQueue [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 09 00 00 [11:58:37]Write to MH i2c: E2 08 00 20 14 80 09 00 00 00 00 00 00 A6 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [11:58:37]RAPDU: 90 00 [11:58:37]wFMCommunicate OK [11:58:37]SAM_PROTO_ClearQueue done [11:58:37]KKMCreateOFDPacket [11:58:37]OFDProtocolAddRootSTLVToBuf [11:58:37]FM_MakeSignedData [11:58:37]FM_MakeSignedData [11:58:37]SAM_PROTO_SignData [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 0D 01 02 [11:58:37]Write to MH i2c: E2 08 00 21 14 80 0D 01 02 00 00 00 00 AE [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [11:58:37]RAPDU: 90 00 [11:58:37]wFMCommunicate OK [11:58:37]wFMCommunicate request_size=255 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 EE 6B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 82 02 00 35 04 06 00 D1 78 A5 9D [11:58:37]Write to MH i2c: E2 02 01 22 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 EE 6B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 82 02 00 35 04 06 00 D1 78 A5 9D 00 00 DC [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [11:58:38]RAPDU: 90 00 [11:58:38]wFMCommunicate OK [11:58:38]wFMCommunicate request_size=7 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 0D 02 02 02 80 4A [11:58:38]Write to MH i2c: E2 0A 00 23 14 80 0D 02 02 02 00 80 4A 00 00 7F [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [11:58:38]RAPDU: 90 00 [11:58:38]wFMCommunicate OK [11:58:38]wFMCommunicate request_size=4 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 0D 03 02 [11:58:38]Write to MH i2c: E2 08 00 24 14 80 0D 03 02 00 00 00 00 B3 [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 0B 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 0B 00 24 14 00 26 A7 79 6A 1E CE 09 8F 90 00 E8 [11:58:38]RAPDU: 26 A7 79 6A 1E CE 09 8F 90 00 [11:58:38]wFMCommunicate OK [11:58:38]SAM_PROTO_SignData done [11:58:38]FM_MakeSignedData done [11:58:38]CreateOFDProtocolMessage [11:58:38]wFMCommunicate request_size=4 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 11 00 00 [11:58:38]Write to MH i2c: E2 08 00 25 14 80 11 00 00 00 00 00 00 B3 [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 17 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 17 00 25 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [11:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:38]wFMCommunicate OK [11:58:38]CreateOFDProtocolMessage done [11:58:38]OFDSenderStorePacket 164563 [11:58:38]StoreOFDPacket docnum=164563 [11:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F8 B0 04 01 88 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 EE 6B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 82 02 00 35 04 06 00 D1 78 A5 9D 80 4A 26 A7 79 6A 1E CE 09 8F [11:58:38]CheckFolder [11:58:38]dirname=/storage/ofd_packets [11:58:38]CheckFolder done [11:58:38]ProducePacketName [11:58:38]name=ofd_packets/00164563 [11:58:38]NVStorageSaveData ofd_packets/00164563 [11:58:38]File name is /storage/ofd_packets/00164563 [11:58:38]Write 298 bytes [11:58:38]NVStorageSaveData done [11:58:38]OFDSenderStorePacket done [11:58:38]KKMCreateOFDPacket done [11:58:38]NVStorageSaveData kkm_last_timestamp [11:58:38]File name is /storage/kkm_last_timestamp [11:58:38]Write 4 bytes [11:58:38]NVStorageSaveData done [11:58:38]ExternCall_PrintAddStr [11:58:38]wPrintStart [11:58:38]Write to MH i2c: 01 00 00 26 14 3A [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: 01 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: 01 07 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: 01 07 00 26 14 00 00 00 00 00 FF 0F 4F [11:58:38]RasterBufferAndPrint [11:58:38]line Счет N : (1)458654 [11:58:38]line ИНН: 02508201610067 [11:58:38]line Контрольно-Кассовый Чек [11:58:38]line ПРОДАЖА [11:58:38]line ТРК (МРК, ГНК) : 21 [11:58:38]line Товар: 2710194210 [11:58:38]line ДТ-К-5 [11:58:38]line 13.910 * 71.90 [11:58:38]line = 1000.13 [11:58:38]line НДС 12% НСП 1% [11:58:38]line > о реализуемом товаре [11:58:38]line ОКРУГЛЕНИЕ: -0.13 [11:58:38]line ИТОГО: 1000.00 [11:58:38]line Внесено: 1000.00 [11:58:38]line СДАЧА: 0.00 [11:58:38]line НСП 1% : 8.85 [11:58:38]line НДС 12% : 106.21 [11:58:38]line Наличными: 1000.00 [11:58:38]line Безнал.: 0.00 [11:58:38]line Место: АЗС № 72 "Партнер Нефть" [11:58:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:38]line СНО: Общий режим [11:58:38]line Чек 123 13.07.2024 11:58 [11:58:38]line Смена: 446 ФФД: 1.0 [11:58:38]line ЗНМ: 0300000160 [11:58:38]line РНМ: 0000000000090829 [11:58:38]line Версия ККМ: 001 [11:58:38]line ФМ: 0000000000874718 [11:58:38]line ФД: 164563 [11:58:38]line ФПД: 230316104843338 [11:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164563&fm=230316104843338&tin=02508201610067®Number=0000000000090829&sum=100000 [11:58:38]OFD Sender: Processing packet 164563 [packets to send 104, broken 103] [11:58:38]ProducePacketName [11:58:38]name=ofd_packets/00164563 [11:58:38]OFD Sender: To server: pG, [11:58:38]CommunicateWithHost lk.salyk.kg:30040 [11:58:38]ConnectInit lk.salyk.kg [11:58:38]written 0, free lines is 4095 [11:58:38]Connected sock=10 [11:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F8 B0 04 01 88 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7B 00 00 00 F4 03 04 00 EE 6B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 82 02 00 35 04 06 00 D1 78 A5 9D 80 4A 26 A7 79 6A 1E CE 09 8F [11:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 77 81 47 00 52 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 82 02 00 F4 03 04 00 7F 12 92 66 B6 04 01 00 00 0F DA 17 E5 8E 12 00 77 [11:58:38]CommunicateWithHost err = 0 [11:58:38]CheckOFDResponse [11:58:38]1017 (14) - 77093643461234 [11:58:38]1041 (16) - 0000000000874718 [11:58:38]1040 (4) - 164563 [11:58:38]1012 (4) - 13.07.2024 05:37 [11:58:38]1206 (1) - 0 [11:58:38]OFD Sender: Remove packet 164563 [11:58:38]ProducePacketName [11:58:38]name=ofd_packets/00164563 [11:58:38]NVStorageDeleteData [11:58:39]Write to MH i2c: 01 00 00 50 14 64 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 50 14 00 00 00 00 00 F7 0C 6E [11:58:39]RasterBufferAndPrint [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]written 0, free lines is 3326 [11:58:39]MH_Cut [11:58:39]Write to MH i2c: D1 01 00 57 14 01 3D [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 01 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 01 00 57 14 00 3C [11:58:39]Write to MH i2c: 01 00 00 58 14 6C [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]OFD Sender: No OFD packet to send [11:58:39]*** Cut start [11:58:39]*** Partial cut [11:58:39]*** CUTSNS_PIN = 1 [11:58:39]*** CUTSNS_PIN = 0 [11:58:39]*** Brake cut motor [11:58:40]Read from MH i2c: 01 [11:58:40]MH_I2C_Read... [11:58:40]*** Stop cut motor [11:58:40]*** Cut end [11:58:40]Read from MH i2c: 01 07 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: 01 07 00 58 14 00 00 00 00 00 FF 0F 81 [11:58:40]process_action close_receipt done [11:58:40]requested_data is exist [11:58:40]produce_requested_data [11:58:40]requested_item fm.sn is exist - process it [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 11 00 00 [11:58:40]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 17 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [11:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:40]wFMCommunicate OK [11:58:40]requested_item fd.num is exist - process it [11:58:40]SAM_PROTO_GetFieldsCounters [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 13 00 00 [11:58:40]Write to MH i2c: E2 08 00 5A 14 80 13 00 00 00 00 00 00 EA [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 62 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 62 00 5A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 82 02 00 0E 04 04 00 BE 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 98 [11:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:40]wFMCommunicate OK [11:58:40]SAM_PROTO_GetFieldsCounters done [11:58:40]requested_item shift.num is exist - process it [11:58:40]requested_item shift.opened is exist - process it [11:58:40]req_shift_opened [11:58:40]FM_GetShiftState [11:58:40]SAM_PROTO_GetShiftState [11:58:40]wFMCommunicate request_size=4 [11:58:40]MH_SAM_APDU [11:58:40]CAPDU: 80 13 01 00 [11:58:40]Write to MH i2c: E2 08 00 5B 14 80 13 01 00 00 00 00 00 EC [11:58:40]Write i2c OK [11:58:40]MH_I2C_Read... [11:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:40]Read from MH i2c: E2 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 0E 00 [11:58:40]MH_I2C_Read... [11:58:40]Read from MH i2c: E2 0E 00 5B 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CD [11:58:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [11:58:40]wFMCommunicate OK [11:58:40]SAM_PROTO_GetShiftState done [11:58:40]FM_GetShiftState done [11:58:40]req_shift_opened done [11:58:40]requested_item shift.open_date is exist - process it [11:58:40]req_shift_open_date [11:58:40]req_shift_open_date done [11:58:40]produce_requested_data done [11:58:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164563,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [11:58:40]process_action_free close_receipt [11:58:40]json_value_free [11:58:40]json_value_free done [11:58:40]process_json_proto returns [11:58:40]Send response to host [11:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164563,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [11:58:40]free response buf [11:58:40]execute_script done [11:58:40]execute_script returns [11:58:40]free content buf [11:58:40]Sock 9.Close socket [11:58:40]Sock 9.Thread stoped [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:38]accept exits with 7 [12:01:38]New connection [12:01:38]New thread 3067293028 created [12:01:38]Thread 3067149668 joined [12:01:38]Waiting for new connection... [12:01:38] Sock 7.Parse request [12:01:38]Sock 7.Check first char [12:01:38]Sock 7.First char is OK [12:01:38]request: POST /json_proto HTTP/1.0 [12:01:38]Method: POST [12:01:38]URL: /json_proto [12:01:38]Method is POST - this is cgi request [12:01:38]url: /json_proto [12:01:38]query_string will be loaded in cgi processing [12:01:38]execute_cgi json_proto POST (null) [12:01:38]execute_cgi path=json_proto method=POST [12:01:38]POST find Content-Length [12:01:38]Host: 172.17.56.4:8080 [12:01:38]Content-Length: 677 [12:01:38]Content-Type: application/json [12:01:38] [12:01:38]POST finish read [12:01:38]Found Content-Length = 677 [12:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.150, "sum" : 470.47, "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:01:38]execute_script... [12:01: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)458655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.150, "sum" : 470.47, "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:01:38]POST & json_proto [12:01:38]process_json_proto [12:01:38]json parsed OK: [12:01:38]protocol is kg_v1.0 [12:01:38]action value=close_receipt [12:01:38]process_action close_receipt [12:01:38]cmd_close_receipt [12:01:38]MH_GetDate [12:01:38]Write to MH i2c: F0 00 00 5C 14 5F [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: F0 09 00 5C 14 00 A4 6C 92 66 C9 DC B2 64 2B [12:01:38]GetLastDocTimeStamp 1720871918 [12:01:38]current date 1720872100 [12:01:38]FM_GetShiftState [12:01:38]SAM_PROTO_GetShiftState [12:01:38]wFMCommunicate request_size=4 [12:01:38]MH_SAM_APDU [12:01:38]CAPDU: 80 13 01 00 [12:01:38]Write to MH i2c: E2 08 00 5D 14 80 13 01 00 00 00 00 00 EE [12:01:38]Write i2c OK [12:01:38]MH_I2C_Read... [12:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:38]Read from MH i2c: E2 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 [12:01:38]MH_I2C_Read... [12:01:38]Read from MH i2c: E2 0E 00 5D 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CF [12:01:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:01:38]wFMCommunicate OK [12:01:38]SAM_PROTO_GetShiftState done [12:01:38]FM_GetShiftState done [12:01:38]opened in 1720831249 [12:01:38]opened+sec_in_day 1720917649 [12:01:38]quantity*price = 47047 [12:01:38]sum+1 = 47048 [12:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.96 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 124 13.07.2024 12:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164564 ФПД: 126449246905159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164564&fm=126449246905159&tin=02508201610067®Number=0000000000090829&sum=47000 [12:01:40]StoreToDocumentArchive [12:01:40]shift 446 fd 164564 [12:01:40]save to /storage/0446/doc_00164564 [12:01:40]save last doc name /storage/0446/doc_00164564 to /storage/kkm_last_doc_name [12:01:40]save OK [12:01:40]Clear old archive folders... [12:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:40]tlvbuf is 0144BD70 [12:01:40]SAM_PROTO_ClearQueue [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 09 00 00 [12:01:40]Write to MH i2c: E2 08 00 6A 14 80 09 00 00 00 00 00 00 F0 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_ClearQueue done [12:01:40]KKMCreateOFDPacket [12:01:40]OFDProtocolAddRootSTLVToBuf [12:01:40]FM_MakeSignedData [12:01:40]FM_MakeSignedData [12:01:40]SAM_PROTO_SignData [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 01 02 [12:01:40]Write to MH i2c: E2 08 00 6B 14 80 0D 01 02 00 00 00 00 F8 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=255 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C7 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 84 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 7C 00 00 00 F4 03 04 00 A4 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 82 02 00 35 04 06 00 73 [12:01:40]Write to MH i2c: E2 02 01 6C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C7 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 84 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 7C 00 00 00 F4 03 04 00 A4 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 82 02 00 35 04 06 00 73 00 00 40 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=10 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 02 02 05 01 42 71 A3 47 [12:01:40]Write to MH i2c: E2 0D 00 6D 14 80 0D 02 02 05 00 01 42 71 A3 47 00 00 A3 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 03 02 [12:01:40]Write to MH i2c: E2 08 00 6E 14 80 0D 03 02 00 00 00 00 FD [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 6E 14 00 7C B1 4D 21 BF F7 CF 70 90 00 8E [12:01:40]RAPDU: 7C B1 4D 21 BF F7 CF 70 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_SignData done [12:01:40]FM_MakeSignedData done [12:01:40]CreateOFDProtocolMessage [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 11 00 00 [12:01:40]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 6F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 53 [12:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:40]wFMCommunicate OK [12:01:40]CreateOFDProtocolMessage done [12:01:40]OFDSenderStorePacket 164564 [12:01:40]StoreOFDPacket docnum=164564 [12:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 53 07 01 53 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C7 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 84 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 7C 00 00 00 F4 03 04 00 A4 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 82 02 00 35 04 06 00 73 01 42 71 A3 47 7C B1 4D 21 BF F7 CF 70 [12:01:40]CheckFolder [12:01:40]dirname=/storage/ofd_packets [12:01:40]CheckFolder done [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00164564 [12:01:40]NVStorageSaveData ofd_packets/00164564 [12:01:40]File name is /storage/ofd_packets/00164564 [12:01:40]Write 301 bytes [12:01:40]NVStorageSaveData done [12:01:40]OFDSenderStorePacket done [12:01:40]KKMCreateOFDPacket done [12:01:40]NVStorageSaveData kkm_last_timestamp [12:01:40]File name is /storage/kkm_last_timestamp [12:01:40]Write 4 bytes [12:01:40]NVStorageSaveData done [12:01:40]ExternCall_PrintAddStr [12:01:40]wPrintStart [12:01:40]Write to MH i2c: 01 00 00 70 14 84 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [12:01:40]RasterBufferAndPrint [12:01:40]line Счет N : (1)458655 [12:01:40]line ИНН: 02508201610067 [12:01:40]line Контрольно-Кассовый Чек [12:01:40]line ПРОДАЖА [12:01:40]line ТРК (МРК, ГНК) : 12 [12:01:40]line Товар: 2710124130 [12:01:40]line Аи-92-К-5 [12:01:40]line 7.150 * 65.80 [12:01:40]line = 470.47 [12:01:40]line НДС 12% НСП 1% [12:01:40]line > о реализуемом товаре [12:01:40]line ОКРУГЛЕНИЕ: -0.47 [12:01:40]line ИТОГО: 470.00 [12:01:40]line Внесено: 470.00 [12:01:40]line СДАЧА: 0.00 [12:01:40]line НСП 1% : 4.16 [12:01:40]line НДС 12% : 49.96 [12:01:40]line Наличными: 470.00 [12:01:40]line Безнал.: 0.00 [12:01:40]line Место: АЗС № 72 "Партнер Нефть" [12:01:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:01:40]line СНО: Общий режим [12:01:40]line Чек 124 13.07.2024 12:01 [12:01:40]line Смена: 446 ФФД: 1.0 [12:01:40]line ЗНМ: 0300000160 [12:01:40]line РНМ: 0000000000090829 [12:01:40]line Версия ККМ: 001 [12:01:40]line ФМ: 0000000000874718 [12:01:40]line ФД: 164564 [12:01:40]line ФПД: 126449246905159 [12:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164564&fm=126449246905159&tin=02508201610067®Number=0000000000090829&sum=47000 [12:01:40]written 0, free lines is 4095 [12:01:40]OFD Sender: Processing packet 164564 [packets to send 104, broken 103] [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00164564 [12:01:40]OFD Sender: To server: pG, [12:01:40]CommunicateWithHost lk.salyk.kg:30040 [12:01:40]ConnectInit lk.salyk.kg [12:01:40]Connected sock=10 [12:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 53 07 01 53 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C7 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 84 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 7C 00 00 00 F4 03 04 00 A4 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 82 02 00 35 04 06 00 73 01 42 71 A3 47 7C B1 4D 21 BF F7 CF 70 [12:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D6 4C 47 00 49 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 34 37 31 38 10 04 04 00 D4 82 02 00 F4 03 04 00 35 13 92 66 B6 04 01 00 00 67 9E FF A4 E3 E9 F8 E8 [12:01:41]CommunicateWithHost err = 0 [12:01:41]CheckOFDResponse [12:01:41]1017 (14) - 77093643461234 [12:01:41]1041 (16) - 0000000000874718 [12:01:41]1040 (4) - 164564 [12:01:41]1012 (4) - 13.07.2024 05:40 [12:01:41]1206 (1) - 0 [12:01:41]OFD Sender: Remove packet 164564 [12:01:41]ProducePacketName [12:01:41]name=ofd_packets/00164564 [12:01:41]NVStorageDeleteData [12:01:41]Write to MH i2c: 01 00 00 9A 14 AE [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 07 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 01 0D C3 [12:01:41]RasterBufferAndPrint [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]written 0, free lines is 3335 [12:01:41]MH_Cut [12:01:41]Write to MH i2c: D1 01 00 A1 14 01 87 [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 01 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 01 00 A1 14 00 86 [12:01:41]Write to MH i2c: 01 00 00 A2 14 B6 [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]OFD Sender: No OFD packet to send [12:01:42]*** Cut start [12:01:42]*** Partial cut [12:01:42]*** CUTSNS_PIN = 1 [12:01:42]*** CUTSNS_PIN = 0 [12:01:42]*** Brake cut motor [12:01:42]Read from MH i2c: 01 [12:01:42]MH_I2C_Read... [12:01:42]*** Stop cut motor [12:01:42]*** Cut end [12:01:42]Read from MH i2c: 01 07 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: 01 07 00 A2 14 00 00 00 00 00 FF 0F CB [12:01:42]process_action close_receipt done [12:01:42]requested_data is exist [12:01:42]produce_requested_data [12:01:42]requested_item fm.sn is exist - process it [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 11 00 00 [12:01:42]Write to MH i2c: E2 08 00 A3 14 80 11 00 00 00 00 00 00 31 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 17 00 A3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [12:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:42]wFMCommunicate OK [12:01:42]requested_item fd.num is exist - process it [12:01:42]SAM_PROTO_GetFieldsCounters [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 13 00 00 [12:01:42]Write to MH i2c: E2 08 00 A4 14 80 13 00 00 00 00 00 00 34 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 62 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 62 00 A4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 82 02 00 0E 04 04 00 BE 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 E6 [12:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 82 02 00 0E 04 04 00 BE 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 [12:01:42]wFMCommunicate OK [12:01:42]SAM_PROTO_GetFieldsCounters done [12:01:42]requested_item shift.num is exist - process it [12:01:42]requested_item shift.opened is exist - process it [12:01:42]req_shift_opened [12:01:42]FM_GetShiftState [12:01:42]SAM_PROTO_GetShiftState [12:01:42]wFMCommunicate request_size=4 [12:01:42]MH_SAM_APDU [12:01:42]CAPDU: 80 13 01 00 [12:01:42]Write to MH i2c: E2 08 00 A5 14 80 13 01 00 00 00 00 00 36 [12:01:42]Write i2c OK [12:01:42]MH_I2C_Read... [12:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:42]Read from MH i2c: E2 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0E 00 [12:01:42]MH_I2C_Read... [12:01:42]Read from MH i2c: E2 0E 00 A5 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [12:01:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:01:42]wFMCommunicate OK [12:01:42]SAM_PROTO_GetShiftState done [12:01:42]FM_GetShiftState done [12:01:42]req_shift_opened done [12:01:42]requested_item shift.open_date is exist - process it [12:01:42]req_shift_open_date [12:01:42]req_shift_open_date done [12:01:42]produce_requested_data done [12:01:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164564,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:01:42]process_action_free close_receipt [12:01:42]json_value_free [12:01:42]json_value_free done [12:01:42]process_json_proto returns [12:01:42]Send response to host [12:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164564,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:01:42]free response buf [12:01:42]execute_script done [12:01:42]execute_script returns [12:01:42]free content buf [12:01:42]Sock 7.Close socket [12:01:42]Sock 7.Thread stoped [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:09]accept exits with 9 [12:03:09]New connection [12:03:09]New thread 3067149668 created [12:03:09]Thread 3067293028 joined [12:03:09]Waiting for new connection... [12:03:09] Sock 9.Parse request [12:03:09]Sock 9.Check first char [12:03:09]Sock 9.First char is OK [12:03:09]request: POST /json_proto HTTP/1.0 [12:03:09]Method: POST [12:03:09]URL: /json_proto [12:03:09]Method is POST - this is cgi request [12:03:09]url: /json_proto [12:03:09]query_string will be loaded in cgi processing [12:03:09]execute_cgi json_proto POST (null) [12:03:09]execute_cgi path=json_proto method=POST [12:03:09]POST find Content-Length [12:03:09]Host: 172.17.56.4:8080 [12:03:09]Content-Length: 677 [12:03:09]Content-Type: application/json [12:03:09] [12:03:09]POST finish read [12:03:09]Found Content-Length = 677 [12:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.210, "sum" : 540.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:09]execute_script... [12:03: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)458656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.210, "sum" : 540.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:09]POST & json_proto [12:03:09]process_json_proto [12:03:09]json parsed OK: [12:03:09]protocol is kg_v1.0 [12:03:09]action value=close_receipt [12:03:09]process_action close_receipt [12:03:09]cmd_close_receipt [12:03:09]MH_GetDate [12:03:09]Write to MH i2c: F0 00 00 A6 14 A9 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: F0 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: F0 09 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: F0 09 00 A6 14 00 FF 6C 92 66 C9 DC B2 64 D0 [12:03:09]GetLastDocTimeStamp 1720872100 [12:03:09]current date 1720872191 [12:03:09]FM_GetShiftState [12:03:09]SAM_PROTO_GetShiftState [12:03:09]wFMCommunicate request_size=4 [12:03:09]MH_SAM_APDU [12:03:09]CAPDU: 80 13 01 00 [12:03:09]Write to MH i2c: E2 08 00 A7 14 80 13 01 00 00 00 00 00 38 [12:03:09]Write i2c OK [12:03:09]MH_I2C_Read... [12:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:09]Read from MH i2c: E2 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0E 00 [12:03:09]MH_I2C_Read... [12:03:09]Read from MH i2c: E2 0E 00 A7 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 19 [12:03:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:03:09]wFMCommunicate OK [12:03:09]SAM_PROTO_GetShiftState done [12:03:09]FM_GetShiftState done [12:03:09]opened in 1720831249 [12:03:09]opened+sec_in_day 1720917649 [12:03:09]quantity*price = 54021 [12:03:09]sum+1 = 54023 [12:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.37 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 125 13.07.2024 12:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164565 ФПД: 227881817500822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164565&fm=227881817500822&tin=02508201610067®Number=0000000000090829&sum=54000 [12:03:10]StoreToDocumentArchive [12:03:10]shift 446 fd 164565 [12:03:10]save to /storage/0446/doc_00164565 [12:03:10]save last doc name /storage/0446/doc_00164565 to /storage/kkm_last_doc_name [12:03:10]save OK [12:03:10]Clear old archive folders... [12:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:10]tlvbuf is 01474810 [12:03:10]SAM_PROTO_ClearQueue [12:03:10]wFMCommunicate request_size=4 [12:03:10]MH_SAM_APDU [12:03:10]CAPDU: 80 09 00 00 [12:03:10]Write to MH i2c: E2 08 00 B4 14 80 09 00 00 00 00 00 00 3A [12:03:10]Write i2c OK [12:03:10]MH_I2C_Read... [12:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:10]Read from MH i2c: E2 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: E2 03 00 [12:03:10]MH_I2C_Read... [12:03:10]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [12:03:10]RAPDU: 90 00 [12:03:10]wFMCommunicate OK [12:03:10]SAM_PROTO_ClearQueue done [12:03:10]KKMCreateOFDPacket [12:03:10]OFDProtocolAddRootSTLVToBuf [12:03:10]FM_MakeSignedData [12:03:10]FM_MakeSignedData [12:03:10]SAM_PROTO_SignData [12:03:10]wFMCommunicate request_size=4 [12:03:10]MH_SAM_APDU [12:03:10]CAPDU: 80 0D 01 02 [12:03:10]Write to MH i2c: E2 08 00 B5 14 80 0D 01 02 00 00 00 00 42 [12:03:10]Write i2c OK [12:03:10]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [12:03:11]RAPDU: 90 00 [12:03:11]wFMCommunicate OK [12:03:11]wFMCommunicate request_size=255 [12:03:11]MH_SAM_APDU [12:03: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 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FF 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 82 02 00 35 04 06 00 CF [12:03:11]Write to MH i2c: E2 02 01 B6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FF 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 82 02 00 35 04 06 00 CF 00 00 D3 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [12:03:11]RAPDU: 90 00 [12:03:11]wFMCommunicate OK [12:03:11]wFMCommunicate request_size=10 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 0D 02 02 05 41 DE C8 6C 96 [12:03:11]Write to MH i2c: E2 0D 00 B7 14 80 0D 02 02 05 00 41 DE C8 6C 96 00 00 38 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [12:03:11]RAPDU: 90 00 [12:03:11]wFMCommunicate OK [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 0D 03 02 [12:03:11]Write to MH i2c: E2 08 00 B8 14 80 0D 03 02 00 00 00 00 47 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0B 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0B 00 B8 14 00 41 B7 80 55 CB 0C CB E0 90 00 97 [12:03:11]RAPDU: 41 B7 80 55 CB 0C CB E0 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_SignData done [12:03:11]FM_MakeSignedData done [12:03:11]CreateOFDProtocolMessage [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 11 00 00 [12:03:11]Write to MH i2c: E2 08 00 B9 14 80 11 00 00 00 00 00 00 47 [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 17 00 B9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [12:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:11]wFMCommunicate OK [12:03:11]CreateOFDProtocolMessage done [12:03:11]OFDSenderStorePacket 164565 [12:03:11]StoreOFDPacket docnum=164565 [12:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 CA 07 01 F6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FF 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 82 02 00 35 04 06 00 CF 41 DE C8 6C 96 41 B7 80 55 CB 0C CB E0 [12:03:11]CheckFolder [12:03:11]dirname=/storage/ofd_packets [12:03:11]CheckFolder done [12:03:11]ProducePacketName [12:03:11]name=ofd_packets/00164565 [12:03:11]NVStorageSaveData ofd_packets/00164565 [12:03:11]File name is /storage/ofd_packets/00164565 [12:03:11]Write 301 bytes [12:03:11]NVStorageSaveData done [12:03:11]OFDSenderStorePacket done [12:03:11]KKMCreateOFDPacket done [12:03:11]NVStorageSaveData kkm_last_timestamp [12:03:11]File name is /storage/kkm_last_timestamp [12:03:11]Write 4 bytes [12:03:11]NVStorageSaveData done [12:03:11]ExternCall_PrintAddStr [12:03:11]wPrintStart [12:03:11]Write to MH i2c: 01 00 00 BA 14 CE [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: 01 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: 01 07 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: 01 07 00 BA 14 00 00 00 00 00 FF 0F E3 [12:03:11]RasterBufferAndPrint [12:03:11]line Счет N : (1)458656 [12:03:11]line ИНН: 02508201610067 [12:03:11]line Контрольно-Кассовый Чек [12:03:11]line ПРОДАЖА [12:03:11]line ТРК (МРК, ГНК) : 12 [12:03:11]line Товар: 2710124130 [12:03:11]line Аи-92-К-5 [12:03:11]line 8.210 * 65.80 [12:03:11]line = 540.22 [12:03:11]line НДС 12% НСП 1% [12:03:11]line > о реализуемом товаре [12:03:11]line ОКРУГЛЕНИЕ: -0.22 [12:03:11]line ИТОГО: 540.00 [12:03:11]line Внесено: 540.00 [12:03:11]line СДАЧА: 0.00 [12:03:11]line НСП 1% : 4.78 [12:03:11]line НДС 12% : 57.37 [12:03:11]line Наличными: 540.00 [12:03:11]line Безнал.: 0.00 [12:03:11]line Место: АЗС № 72 "Партнер Нефть" [12:03:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:03:11]line СНО: Общий режим [12:03:11]line Чек 125 13.07.2024 12:03 [12:03:11]line Смена: 446 ФФД: 1.0 [12:03:11]line ЗНМ: 0300000160 [12:03:11]line РНМ: 0000000000090829 [12:03:11]line Версия ККМ: 001 [12:03:11]line ФМ: 0000000000874718 [12:03:11]line ФД: 164565 [12:03:11]line ФПД: 227881817500822 [12:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164565&fm=227881817500822&tin=02508201610067®Number=0000000000090829&sum=54000 [12:03:11]OFD Sender: Processing packet 164565 [packets to send 104, broken 103] [12:03:11]ProducePacketName [12:03:11]name=ofd_packets/00164565 [12:03:11]OFD Sender: To server: pG, [12:03:11]CommunicateWithHost lk.salyk.kg:30040 [12:03:11]ConnectInit lk.salyk.kg [12:03:11]written 0, free lines is 4095 [12:03:12]Write to MH i2c: 01 00 00 E4 14 F8 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: 01 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: 01 07 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 F3 0C FE [12:03:12]RasterBufferAndPrint [12:03:12]line [12:03:12]line [12:03:12]line [12:03:12]line [12:03:12]line [12:03:12]written 0, free lines is 3322 [12:03:12]MH_Cut [12:03:12]Write to MH i2c: D1 01 00 EB 14 01 D1 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: D1 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: D1 01 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: D1 01 00 EB 14 00 D0 [12:03:12]Write to MH i2c: 01 00 00 EC 14 00 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** Cut start [12:03:12]*** Partial cut [12:03:12]*** CUTSNS_PIN = 1 [12:03:12]*** CUTSNS_PIN = 0 [12:03:13]*** Brake cut motor [12:03:13]Read from MH i2c: 01 [12:03:13]MH_I2C_Read... [12:03:13]*** Stop cut motor [12:03:13]*** Cut end [12:03:13]Read from MH i2c: 01 07 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [12:03:13]process_action close_receipt done [12:03:13]requested_data is exist [12:03:13]produce_requested_data [12:03:13]requested_item fm.sn is exist - process it [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 11 00 00 [12:03:13]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [12:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:13]wFMCommunicate OK [12:03:13]requested_item fd.num is exist - process it [12:03:13]SAM_PROTO_GetFieldsCounters [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 13 00 00 [12:03:13]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 62 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 82 02 00 0E 04 04 00 BE 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 34 [12:03: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 82 02 00 0E 04 04 00 BE 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 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_GetFieldsCounters done [12:03:13]requested_item shift.num is exist - process it [12:03:13]requested_item shift.opened is exist - process it [12:03:13]req_shift_opened [12:03:13]FM_GetShiftState [12:03:13]SAM_PROTO_GetShiftState [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 13 01 00 [12:03:13]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0E 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 61 [12:03:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_GetShiftState done [12:03:13]FM_GetShiftState done [12:03:13]req_shift_opened done [12:03:13]requested_item shift.open_date is exist - process it [12:03:13]req_shift_open_date [12:03:13]req_shift_open_date done [12:03:13]produce_requested_data done [12:03:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164565,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:03:13]process_action_free close_receipt [12:03:13]json_value_free [12:03:13]json_value_free done [12:03:13]process_json_proto returns [12:03:13]Send response to host [12:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164565,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:03:13]free response buf [12:03:13]execute_script done [12:03:13]execute_script returns [12:03:13]free content buf [12:03:13]Sock 9.Close socket [12:03:13]Sock 9.Thread stoped [12:04:28]accept exits with 7 [12:04:28]New connection [12:04:28]New thread 3067293028 created [12:04:28]Thread 3067149668 joined [12:04:28]Waiting for new connection... [12:04:28] Sock 7.Parse request [12:04:28]Sock 7.Check first char [12:04:28]Sock 7.First char is OK [12:04:28]request: POST /json_proto HTTP/1.0 [12:04:28]Method: POST [12:04:28]URL: /json_proto [12:04:28]Method is POST - this is cgi request [12:04:28]url: /json_proto [12:04:28]query_string will be loaded in cgi processing [12:04:28]execute_cgi json_proto POST (null) [12:04:28]execute_cgi path=json_proto method=POST [12:04:28]POST find Content-Length [12:04:28]Host: 172.17.56.4:8080 [12:04:28]Content-Length: 677 [12:04:28]Content-Type: application/json [12:04:28] [12:04:28]POST finish read [12:04:28]Found Content-Length = 677 [12:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:04:28]execute_script... [12:04: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)458657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:04:28]POST & json_proto [12:04:28]process_json_proto [12:04:28]json parsed OK: [12:04:28]protocol is kg_v1.0 [12:04:28]action value=close_receipt [12:04:28]process_action close_receipt [12:04:28]cmd_close_receipt [12:04:28]MH_GetDate [12:04:28]Write to MH i2c: F0 00 00 F0 14 F3 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: F0 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: F0 09 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: F0 09 00 F0 14 00 4E 6D 92 66 C9 DC B2 64 6A [12:04:28]GetLastDocTimeStamp 1720872191 [12:04:28]current date 1720872270 [12:04:28]FM_GetShiftState [12:04:28]SAM_PROTO_GetShiftState [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 13 01 00 [12:04:28]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0E 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 63 [12:04:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:04:28]wFMCommunicate OK [12:04:28]SAM_PROTO_GetShiftState done [12:04:28]FM_GetShiftState done [12:04:28]opened in 1720831249 [12:04:28]opened+sec_in_day 1720917649 [12:04:28]quantity*price = 50008 [12:04:28]sum+1 = 50009 [12:04:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 126 13.07.2024 12:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164566 ФПД: 211505411726990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120430&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164566&fm=211505411726990&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:29]StoreToDocumentArchive [12:04:29]shift 446 fd 164566 [12:04:29]save to /storage/0446/doc_00164566 [12:04:29]save last doc name /storage/0446/doc_00164566 to /storage/kkm_last_doc_name [12:04:29]save OK [12:04:29]Clear old archive folders... [12:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:29]tlvbuf is 0145D5D0 [12:04:29]SAM_PROTO_ClearQueue [12:04:29]wFMCommunicate request_size=4 [12:04:29]MH_SAM_APDU [12:04:29]CAPDU: 80 09 00 00 [12:04:29]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:29]Read from MH i2c: E2 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 03 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [12:04:29]RAPDU: 90 00 [12:04:29]wFMCommunicate OK [12:04:29]SAM_PROTO_ClearQueue done [12:04:29]KKMCreateOFDPacket [12:04:29]OFDProtocolAddRootSTLVToBuf [12:04:29]FM_MakeSignedData [12:04:29]FM_MakeSignedData [12:04:29]SAM_PROTO_SignData [12:04:29]wFMCommunicate request_size=4 [12:04:29]MH_SAM_APDU [12:04:29]CAPDU: 80 0D 01 02 [12:04:29]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:29]Read from MH i2c: E2 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 03 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [12:04:29]RAPDU: 90 00 [12:04:29]wFMCommunicate OK [12:04:29]wFMCommunicate request_size=255 [12:04:29]MH_SAM_APDU [12:04: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7E 00 00 00 F4 03 04 00 4E 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 82 02 00 35 04 06 00 C0 [12:04:29]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7E 00 00 00 F4 03 04 00 4E 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 82 02 00 35 04 06 00 C0 00 00 10 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [12:04:30]RAPDU: 90 00 [12:04:30]wFMCommunicate OK [12:04:30]wFMCommunicate request_size=10 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 0D 02 02 05 5C F0 EF 1E 8E [12:04:30]Write to MH i2c: E2 0D 00 01 15 80 0D 02 02 05 00 5C F0 EF 1E 8E 00 00 81 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [12:04:30]RAPDU: 90 00 [12:04:30]wFMCommunicate OK [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 0D 03 02 [12:04:30]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0B 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0B 00 02 15 00 57 4D 16 94 B1 EB 06 A2 90 00 25 [12:04:30]RAPDU: 57 4D 16 94 B1 EB 06 A2 90 00 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_SignData done [12:04:30]FM_MakeSignedData done [12:04:30]CreateOFDProtocolMessage [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 11 00 00 [12:04:30]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 17 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [12:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:30]wFMCommunicate OK [12:04:30]CreateOFDProtocolMessage done [12:04:30]OFDSenderStorePacket 164566 [12:04:30]StoreOFDPacket docnum=164566 [12:04:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 8B 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7E 00 00 00 F4 03 04 00 4E 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 82 02 00 35 04 06 00 C0 5C F0 EF 1E 8E 57 4D 16 94 B1 EB 06 A2 [12:04:30]CheckFolder [12:04:30]dirname=/storage/ofd_packets [12:04:30]CheckFolder done [12:04:30]ProducePacketName [12:04:30]name=ofd_packets/00164566 [12:04:30]NVStorageSaveData ofd_packets/00164566 [12:04:30]File name is /storage/ofd_packets/00164566 [12:04:30]Write 301 bytes [12:04:30]NVStorageSaveData done [12:04:30]OFDSenderStorePacket done [12:04:30]KKMCreateOFDPacket done [12:04:30]NVStorageSaveData kkm_last_timestamp [12:04:30]File name is /storage/kkm_last_timestamp [12:04:30]Write 4 bytes [12:04:30]NVStorageSaveData done [12:04:30]ExternCall_PrintAddStr [12:04:30]wPrintStart [12:04:30]Write to MH i2c: 01 00 00 04 15 19 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 07 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [12:04:30]RasterBufferAndPrint [12:04:30]line Счет N : (1)458657 [12:04:30]line ИНН: 02508201610067 [12:04:30]line Контрольно-Кассовый Чек [12:04:30]line ПРОДАЖА [12:04:30]line ТРК (МРК, ГНК) : 12 [12:04:30]line Товар: 2710124130 [12:04:30]line Аи-92-К-5 [12:04:30]line 7.600 * 65.80 [12:04:30]line = 500.08 [12:04:30]line НДС 12% НСП 1% [12:04:30]line > о реализуемом товаре [12:04:30]line ОКРУГЛЕНИЕ: -0.08 [12:04:30]line ИТОГО: 500.00 [12:04:30]line Внесено: 500.00 [12:04:30]line СДАЧА: 0.00 [12:04:30]line НСП 1% : 4.42 [12:04:30]line НДС 12% : 53.11 [12:04:30]line Наличными: 500.00 [12:04:30]line Безнал.: 0.00 [12:04:30]line Место: АЗС № 72 "Партнер Нефть" [12:04:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:04:30]line СНО: Общий режим [12:04:30]line Чек 126 13.07.2024 12:04 [12:04:30]line Смена: 446 ФФД: 1.0 [12:04:30]line ЗНМ: 0300000160 [12:04:30]line РНМ: 0000000000090829 [12:04:30]line Версия ККМ: 001 [12:04:30]line ФМ: 0000000000874718 [12:04:30]line ФД: 164566 [12:04:30]line ФПД: 211505411726990 [12:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120430&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164566&fm=211505411726990&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:30]written 0, free lines is 4095 [12:04:30]Write to MH i2c: 01 00 00 2E 15 43 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 07 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 07 00 2E 15 00 00 00 00 00 F1 0C 47 [12:04:30]RasterBufferAndPrint [12:04:30]line [12:04:30]line [12:04:30]line [12:04:30]line [12:04:30]line [12:04:30]written 0, free lines is 3320 [12:04:31]MH_Cut [12:04:31]Write to MH i2c: D1 01 00 35 15 01 1C [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: D1 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: D1 01 00 [12:04:31]MH_I2C_Read... [12:04:31]Read from MH i2c: D1 01 00 35 15 00 1B [12:04:31]Write to MH i2c: 01 00 00 36 15 4B [12:04:31]Write i2c OK [12:04:31]MH_I2C_Read... [12:04:31]*** Cut start [12:04:31]*** Partial cut [12:04:31]*** CUTSNS_PIN = 1 [12:04:31]*** CUTSNS_PIN = 0 [12:04:31]*** Brake cut motor [12:04:32]Read from MH i2c: 01 [12:04:32]MH_I2C_Read... [12:04:32]*** Stop cut motor [12:04:32]*** Cut end [12:04:32]Read from MH i2c: 01 07 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: 01 07 00 36 15 00 00 00 00 00 FF 0F 60 [12:04:32]process_action close_receipt done [12:04:32]requested_data is exist [12:04:32]produce_requested_data [12:04:32]requested_item fm.sn is exist - process it [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 11 00 00 [12:04:32]Write to MH i2c: E2 08 00 37 15 80 11 00 00 00 00 00 00 C6 [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 17 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 17 00 37 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [12:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:32]wFMCommunicate OK [12:04:32]requested_item fd.num is exist - process it [12:04:32]SAM_PROTO_GetFieldsCounters [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 13 00 00 [12:04:32]Write to MH i2c: E2 08 00 38 15 80 13 00 00 00 00 00 00 C9 [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 62 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 62 00 38 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 82 02 00 0E 04 04 00 BE 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 83 [12:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 82 02 00 0E 04 04 00 BE 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 [12:04:32]wFMCommunicate OK [12:04:32]SAM_PROTO_GetFieldsCounters done [12:04:32]requested_item shift.num is exist - process it [12:04:32]requested_item shift.opened is exist - process it [12:04:32]req_shift_opened [12:04:32]FM_GetShiftState [12:04:32]SAM_PROTO_GetShiftState [12:04:32]wFMCommunicate request_size=4 [12:04:32]MH_SAM_APDU [12:04:32]CAPDU: 80 13 01 00 [12:04:32]Write to MH i2c: E2 08 00 39 15 80 13 01 00 00 00 00 00 CB [12:04:32]Write i2c OK [12:04:32]MH_I2C_Read... [12:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:32]Read from MH i2c: E2 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 0E 00 [12:04:32]MH_I2C_Read... [12:04:32]Read from MH i2c: E2 0E 00 39 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [12:04:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:04:32]wFMCommunicate OK [12:04:32]SAM_PROTO_GetShiftState done [12:04:32]FM_GetShiftState done [12:04:32]req_shift_opened done [12:04:32]requested_item shift.open_date is exist - process it [12:04:32]req_shift_open_date [12:04:32]req_shift_open_date done [12:04:32]produce_requested_data done [12:04:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164566,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:04:32]process_action_free close_receipt [12:04:32]json_value_free [12:04:32]json_value_free done [12:04:32]process_json_proto returns [12:04:32]Send response to host [12:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164566,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:04:32]free response buf [12:04:32]execute_script done [12:04:32]execute_script returns [12:04:32]free content buf [12:04:32]Sock 7.Close socket [12:04:32]Sock 7.Thread stoped [12:04:56]accept exits with 9 [12:04:56]New connection [12:04:56]New thread 3067149668 created [12:04:56]Thread 3067293028 joined [12:04:56]Waiting for new connection... [12:04:56] Sock 9.Parse request [12:04:56]Sock 9.Check first char [12:04:56]Sock 9.First char is OK [12:04:56]request: POST /json_proto HTTP/1.0 [12:04:56]Method: POST [12:04:56]URL: /json_proto [12:04:56]Method is POST - this is cgi request [12:04:56]url: /json_proto [12:04:56]query_string will be loaded in cgi processing [12:04:56]execute_cgi json_proto POST (null) [12:04:56]execute_cgi path=json_proto method=POST [12:04:56]POST find Content-Length [12:04:56]Host: 172.17.56.4:8080 [12:04:56]Content-Length: 677 [12:04:56]Content-Type: application/json [12:04:56] [12:04:56]POST finish read [12:04:56]Found Content-Length = 677 [12:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "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:04:56]execute_script... [12:04: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)458658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "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:04:56]POST & json_proto [12:04:56]process_json_proto [12:04:56]json parsed OK: [12:04:56]protocol is kg_v1.0 [12:04:56]action value=close_receipt [12:04:56]process_action close_receipt [12:04:56]cmd_close_receipt [12:04:56]MH_GetDate [12:04:56]Write to MH i2c: F0 00 00 3A 15 3E [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: F0 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: F0 09 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: F0 09 00 3A 15 00 6A 6D 92 66 C9 DC B2 64 D1 [12:04:56]GetLastDocTimeStamp 1720872270 [12:04:56]current date 1720872298 [12:04:56]FM_GetShiftState [12:04:56]SAM_PROTO_GetShiftState [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 13 01 00 [12:04:56]Write to MH i2c: E2 08 00 3B 15 80 13 01 00 00 00 00 00 CD [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 0E 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 0E 00 3B 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AE [12:04:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:04:56]wFMCommunicate OK [12:04:56]SAM_PROTO_GetShiftState done [12:04:56]FM_GetShiftState done [12:04:56]opened in 1720831249 [12:04:56]opened+sec_in_day 1720917649 [12:04:56]quantity*price = 34018 [12:04:56]sum+1 = 34020 [12:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.13 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 127 13.07.2024 12:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164567 ФПД: 281018805754274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120458&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164567&fm=281018805754274&tin=02508201610067®Number=0000000000090829&sum=34000 [12:04:57]StoreToDocumentArchive [12:04:57]shift 446 fd 164567 [12:04:57]save to /storage/0446/doc_00164567 [12:04:57]save last doc name /storage/0446/doc_00164567 to /storage/kkm_last_doc_name [12:04:57]save OK [12:04:57]Clear old archive folders... [12:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:57]tlvbuf is 01496FD0 [12:04:57]SAM_PROTO_ClearQueue [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 09 00 00 [12:04:57]Write to MH i2c: E2 08 00 48 15 80 09 00 00 00 00 00 00 CF [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [12:04:57]RAPDU: 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_ClearQueue done [12:04:57]KKMCreateOFDPacket [12:04:57]OFDProtocolAddRootSTLVToBuf [12:04:57]FM_MakeSignedData [12:04:57]FM_MakeSignedData [12:04:57]SAM_PROTO_SignData [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 0D 01 02 [12:04:57]Write to MH i2c: E2 08 00 49 15 80 0D 01 02 00 00 00 00 D7 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [12:04:57]RAPDU: 90 00 [12:04:57]wFMCommunicate OK [12:04:57]wFMCommunicate request_size=255 [12:04:57]MH_SAM_APDU [12:04: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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 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 1D 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 7F 00 00 00 F4 03 04 00 6A 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 82 02 00 35 04 06 00 FF [12:04:57]Write to MH i2c: E2 02 01 4A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 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 1D 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 7F 00 00 00 F4 03 04 00 6A 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 82 02 00 35 04 06 00 FF 00 00 C9 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [12:04:57]RAPDU: 90 00 [12:04:57]wFMCommunicate OK [12:04:57]wFMCommunicate request_size=10 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 0D 02 02 05 95 CA 17 99 A2 [12:04:57]Write to MH i2c: E2 0D 00 4B 15 80 0D 02 02 05 00 95 CA 17 99 A2 00 00 95 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 03 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [12:04:58]RAPDU: 90 00 [12:04:58]wFMCommunicate OK [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 0D 03 02 [12:04:58]Write to MH i2c: E2 08 00 4C 15 80 0D 03 02 00 00 00 00 DC [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0B 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0B 00 4C 15 00 B0 EC 0D A7 03 82 04 C7 90 00 7D [12:04:58]RAPDU: B0 EC 0D A7 03 82 04 C7 90 00 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_SignData done [12:04:58]FM_MakeSignedData done [12:04:58]CreateOFDProtocolMessage [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 11 00 00 [12:04:58]Write to MH i2c: E2 08 00 4D 15 80 11 00 00 00 00 00 00 DC [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 4D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [12:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:58]wFMCommunicate OK [12:04:58]CreateOFDProtocolMessage done [12:04:58]OFDSenderStorePacket 164567 [12:04:58]StoreOFDPacket docnum=164567 [12:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 32 07 01 35 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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 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 1D 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 7F 00 00 00 F4 03 04 00 6A 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 82 02 00 35 04 06 00 FF 95 CA 17 99 A2 B0 EC 0D A7 03 82 04 C7 [12:04:58]CheckFolder [12:04:58]dirname=/storage/ofd_packets [12:04:58]CheckFolder done [12:04:58]ProducePacketName [12:04:58]name=ofd_packets/00164567 [12:04:58]NVStorageSaveData ofd_packets/00164567 [12:04:58]File name is /storage/ofd_packets/00164567 [12:04:58]Write 301 bytes [12:04:58]NVStorageSaveData done [12:04:58]OFDSenderStorePacket done [12:04:58]KKMCreateOFDPacket done [12:04:58]NVStorageSaveData kkm_last_timestamp [12:04:58]File name is /storage/kkm_last_timestamp [12:04:58]Write 4 bytes [12:04:58]NVStorageSaveData done [12:04:58]ExternCall_PrintAddStr [12:04:58]wPrintStart [12:04:58]Write to MH i2c: 01 00 00 4E 15 63 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 07 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 07 00 4E 15 00 00 00 00 00 FF 0F 78 [12:04:58]RasterBufferAndPrint [12:04:58]line Счет N : (1)458658 [12:04:58]line ИНН: 02508201610067 [12:04:58]line Контрольно-Кассовый Чек [12:04:58]line ПРОДАЖА [12:04:58]line ТРК (МРК, ГНК) : 22 [12:04:58]line Товар: 2710124130 [12:04:58]line Аи-92-К-5 [12:04:58]line 5.170 * 65.80 [12:04:58]line = 340.19 [12:04:58]line НДС 12% НСП 1% [12:04:58]line > о реализуемом товаре [12:04:58]line ОКРУГЛЕНИЕ: -0.19 [12:04:58]line ИТОГО: 340.00 [12:04:58]line Внесено: 340.00 [12:04:58]line СДАЧА: 0.00 [12:04:58]line НСП 1% : 3.01 [12:04:58]line НДС 12% : 36.13 [12:04:58]line Наличными: 340.00 [12:04:58]line Безнал.: 0.00 [12:04:58]line Место: АЗС № 72 "Партнер Нефть" [12:04:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:04:58]line СНО: Общий режим [12:04:58]line Чек 127 13.07.2024 12:04 [12:04:58]line Смена: 446 ФФД: 1.0 [12:04:58]line ЗНМ: 0300000160 [12:04:58]line РНМ: 0000000000090829 [12:04:58]line Версия ККМ: 001 [12:04:58]line ФМ: 0000000000874718 [12:04:58]line ФД: 164567 [12:04:58]line ФПД: 281018805754274 [12:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120458&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164567&fm=281018805754274&tin=02508201610067®Number=0000000000090829&sum=34000 [12:04:58]written 0, free lines is 4095 [12:04:58]Write to MH i2c: 01 00 00 78 15 8D [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 07 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 F0 0C 90 [12:04:58]RasterBufferAndPrint [12:04:58]line [12:04:58]line [12:04:58]line [12:04:58]line [12:04:58]line [12:04:58]written 0, free lines is 3318 [12:04:58]MH_Cut [12:04:58]Write to MH i2c: D1 01 00 7F 15 01 66 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: D1 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: D1 01 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: D1 01 00 7F 15 00 65 [12:04:58]Write to MH i2c: 01 00 00 80 15 95 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:59]*** Cut start [12:04:59]*** Partial cut [12:04:59]*** CUTSNS_PIN = 1 [12:04:59]*** CUTSNS_PIN = 0 [12:04:59]*** Brake cut motor [12:05:00]Read from MH i2c: 01 [12:05:00]MH_I2C_Read... [12:05:00]*** Stop cut motor [12:05:00]*** Cut end [12:05:00]Read from MH i2c: 01 07 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: 01 07 00 80 15 00 00 00 00 00 FF 0F AA [12:05:00]process_action close_receipt done [12:05:00]requested_data is exist [12:05:00]produce_requested_data [12:05:00]requested_item fm.sn is exist - process it [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 11 00 00 [12:05:00]Write to MH i2c: E2 08 00 81 15 80 11 00 00 00 00 00 00 10 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 17 00 81 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [12:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:05:00]wFMCommunicate OK [12:05:00]requested_item fd.num is exist - process it [12:05:00]SAM_PROTO_GetFieldsCounters [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 13 00 00 [12:05:00]Write to MH i2c: E2 08 00 82 15 80 13 00 00 00 00 00 00 13 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 62 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 62 00 82 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 82 02 00 0E 04 04 00 BE 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 D1 [12:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 82 02 00 0E 04 04 00 BE 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 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetFieldsCounters done [12:05:00]requested_item shift.num is exist - process it [12:05:00]requested_item shift.opened is exist - process it [12:05:00]req_shift_opened [12:05:00]FM_GetShiftState [12:05:00]SAM_PROTO_GetShiftState [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 13 01 00 [12:05:00]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [12:05:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetShiftState done [12:05:00]FM_GetShiftState done [12:05:00]req_shift_opened done [12:05:00]requested_item shift.open_date is exist - process it [12:05:00]req_shift_open_date [12:05:00]req_shift_open_date done [12:05:00]produce_requested_data done [12:05:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164567,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:05:00]process_action_free close_receipt [12:05:00]json_value_free [12:05:00]json_value_free done [12:05:00]process_json_proto returns [12:05:00]Send response to host [12:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164567,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:05:00]free response buf [12:05:00]execute_script done [12:05:00]execute_script returns [12:05:00]free content buf [12:05:00]Sock 9.Close socket [12:05:00]Sock 9.Thread stoped [12:05:25]ConnectInit Can't connect to host [12:05:25]CommunicateWithHost connect error [12:05:25]CommunicateWithHost err = -1 [12:05:25]OFD Sender: Server communicate error [12:05:25]OFD Sender: Processing packet 164565 [packets to send 106, broken 103] [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00164565 [12:05:25]OFD Sender: To server: pG, [12:05:25]CommunicateWithHost lk.salyk.kg:30040 [12:05:25]ConnectInit lk.salyk.kg [12:05:25]Connected sock=9 [12:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 CA 07 01 F6 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 FF 6C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 82 02 00 35 04 06 00 CF 41 DE C8 6C 96 41 B7 80 55 CB 0C CB E0 [12:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1D CF 47 00 1A 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 34 37 31 38 10 04 04 00 D5 82 02 00 F4 03 04 00 16 14 92 66 B6 04 01 00 00 C2 44 92 50 2A 26 E5 B7 [12:05:26]CommunicateWithHost err = 0 [12:05:26]CheckOFDResponse [12:05:26]1017 (14) - 77093643461234 [12:05:26]1041 (16) - 0000000000874718 [12:05:26]1040 (4) - 164565 [12:05:26]1012 (4) - 13.07.2024 05:43 [12:05:26]1206 (1) - 0 [12:05:26]OFD Sender: Remove packet 164565 [12:05:26]ProducePacketName [12:05:26]name=ofd_packets/00164565 [12:05:26]NVStorageDeleteData [12:05:26]OFD Sender: Processing packet 164566 [packets to send 105, broken 103] [12:05:26]ProducePacketName [12:05:26]name=ofd_packets/00164566 [12:05:26]OFD Sender: To server: pG, [12:05:26]CommunicateWithHost lk.salyk.kg:30040 [12:05:26]ConnectInit lk.salyk.kg [12:05:26]Connected sock=9 [12:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 8B 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7E 00 00 00 F4 03 04 00 4E 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 82 02 00 35 04 06 00 C0 5C F0 EF 1E 8E 57 4D 16 94 B1 EB 06 A2 [12:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 3C 47 00 DC D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 82 02 00 F4 03 04 00 17 14 92 66 B6 04 01 00 00 B4 D4 B5 23 48 72 A5 62 [12:05:26]CommunicateWithHost err = 0 [12:05:26]CheckOFDResponse [12:05:26]1017 (14) - 77093643461234 [12:05:26]1041 (16) - 0000000000874718 [12:05:26]1040 (4) - 164566 [12:05:26]1012 (4) - 13.07.2024 05:43 [12:05:26]1206 (1) - 0 [12:05:26]OFD Sender: Remove packet 164566 [12:05:26]ProducePacketName [12:05:26]name=ofd_packets/00164566 [12:05:26]NVStorageDeleteData [12:05:27]OFD Sender: Processing packet 164567 [packets to send 104, broken 103] [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00164567 [12:05:27]OFD Sender: To server: pG, [12:05:27]CommunicateWithHost lk.salyk.kg:30040 [12:05:27]ConnectInit lk.salyk.kg [12:05:27]Connected sock=9 [12:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 32 07 01 35 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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 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 1D 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 7F 00 00 00 F4 03 04 00 6A 6D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 82 02 00 35 04 06 00 FF 95 CA 17 99 A2 B0 EC 0D A7 03 82 04 C7 [12:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 30 7E 47 00 5E 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 82 02 00 F4 03 04 00 18 14 92 66 B6 04 01 00 00 27 D3 98 87 71 01 E5 29 [12:05:27]CommunicateWithHost err = 0 [12:05:27]CheckOFDResponse [12:05:27]1017 (14) - 77093643461234 [12:05:27]1041 (16) - 0000000000874718 [12:05:27]1040 (4) - 164567 [12:05:27]1012 (4) - 13.07.2024 05:43 [12:05:27]1206 (1) - 0 [12:05:27]OFD Sender: Remove packet 164567 [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00164567 [12:05:27]NVStorageDeleteData [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]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:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]accept exits with 7 [12:09:38]New connection [12:09:38]New thread 3067293028 created [12:09:38]Thread 3067149668 joined [12:09:38]Waiting for new connection... [12:09:38] Sock 7.Parse request [12:09:38]Sock 7.Check first char [12:09:38]Sock 7.First char is OK [12:09:38]request: POST /json_proto HTTP/1.0 [12:09:38]Method: POST [12:09:38]URL: /json_proto [12:09:38]Method is POST - this is cgi request [12:09:38]url: /json_proto [12:09:38]query_string will be loaded in cgi processing [12:09:38]execute_cgi json_proto POST (null) [12:09:38]execute_cgi path=json_proto method=POST [12:09:38]POST find Content-Length [12:09:38]Host: 172.17.56.4:8080 [12:09:38]Content-Length: 674 [12:09:38]Content-Type: application/json [12:09:38] [12:09:38]POST finish read [12:09:38]Found Content-Length = 674 [12:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:38]execute_script... [12:09: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)458659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:38]POST & json_proto [12:09:38]process_json_proto [12:09:38]json parsed OK: [12:09:38]protocol is kg_v1.0 [12:09:38]action value=close_receipt [12:09:38]process_action close_receipt [12:09:38]cmd_close_receipt [12:09:38]MH_GetDate [12:09:38]Write to MH i2c: F0 00 00 84 15 88 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: F0 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: F0 09 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: F0 09 00 84 15 00 83 6E 92 66 C9 DC B2 64 35 [12:09:38]GetLastDocTimeStamp 1720872298 [12:09:38]current date 1720872579 [12:09:38]FM_GetShiftState [12:09:38]SAM_PROTO_GetShiftState [12:09:38]wFMCommunicate request_size=4 [12:09:38]MH_SAM_APDU [12:09:38]CAPDU: 80 13 01 00 [12:09:38]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [12:09:38]Write i2c OK [12:09:38]MH_I2C_Read... [12:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:38]Read from MH i2c: E2 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0E 00 [12:09:38]MH_I2C_Read... [12:09:38]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F8 [12:09:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:09:38]wFMCommunicate OK [12:09:38]SAM_PROTO_GetShiftState done [12:09:38]FM_GetShiftState done [12:09:38]opened in 1720831249 [12:09:38]opened+sec_in_day 1720917649 [12:09:38]quantity*price = 50042 [12:09:38]sum+1 = 50043 [12:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 128 13.07.2024 12:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164568 ФПД: 218167534523873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120939&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164568&fm=218167534523873&tin=02508201610067®Number=0000000000090829&sum=50000 [12:09:39]StoreToDocumentArchive [12:09:39]shift 446 fd 164568 [12:09:39]save to /storage/0446/doc_00164568 [12:09:39]save last doc name /storage/0446/doc_00164568 to /storage/kkm_last_doc_name [12:09:39]save OK [12:09:39]Clear old archive folders... [12:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:39]tlvbuf is 01474680 [12:09:39]SAM_PROTO_ClearQueue [12:09:39]wFMCommunicate request_size=4 [12:09:39]MH_SAM_APDU [12:09:39]CAPDU: 80 09 00 00 [12:09:39]Write to MH i2c: E2 08 00 92 15 80 09 00 00 00 00 00 00 19 [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [12:09:39]RAPDU: 90 00 [12:09:39]wFMCommunicate OK [12:09:39]SAM_PROTO_ClearQueue done [12:09:39]KKMCreateOFDPacket [12:09:39]OFDProtocolAddRootSTLVToBuf [12:09:39]FM_MakeSignedData [12:09:39]FM_MakeSignedData [12:09:39]SAM_PROTO_SignData [12:09:39]wFMCommunicate request_size=4 [12:09:39]MH_SAM_APDU [12:09:39]CAPDU: 80 0D 01 02 [12:09:39]Write to MH i2c: E2 08 00 93 15 80 0D 01 02 00 00 00 00 21 [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [12:09:39]RAPDU: 90 00 [12:09:39]wFMCommunicate OK [12:09:39]wFMCommunicate request_size=255 [12:09:39]MH_SAM_APDU [12:09: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 83 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 82 02 00 35 04 06 00 C6 6C 16 65 [12:09:39]Write to MH i2c: E2 02 01 94 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 83 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 82 02 00 35 04 06 00 C6 6C 16 65 00 00 27 [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [12:09:39]RAPDU: 90 00 [12:09:39]wFMCommunicate OK [12:09:39]wFMCommunicate request_size=7 [12:09:39]MH_SAM_APDU [12:09:39]CAPDU: 80 0D 02 02 02 95 E1 [12:09:39]Write to MH i2c: E2 0A 00 95 15 80 0D 02 02 02 00 95 E1 00 00 9E [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [12:09:39]RAPDU: 90 00 [12:09:39]wFMCommunicate OK [12:09:39]wFMCommunicate request_size=4 [12:09:39]MH_SAM_APDU [12:09:39]CAPDU: 80 0D 03 02 [12:09:39]Write to MH i2c: E2 08 00 96 15 80 0D 03 02 00 00 00 00 26 [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 0B 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 0B 00 96 15 00 D4 7E 34 CE 5D F6 2E 07 90 00 03 [12:09:39]RAPDU: D4 7E 34 CE 5D F6 2E 07 90 00 [12:09:39]wFMCommunicate OK [12:09:39]SAM_PROTO_SignData done [12:09:39]FM_MakeSignedData done [12:09:39]CreateOFDProtocolMessage [12:09:39]wFMCommunicate request_size=4 [12:09:39]MH_SAM_APDU [12:09:39]CAPDU: 80 11 00 00 [12:09:39]Write to MH i2c: E2 08 00 97 15 80 11 00 00 00 00 00 00 26 [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:39]Read from MH i2c: E2 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 17 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: E2 17 00 97 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [12:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:09:39]wFMCommunicate OK [12:09:39]CreateOFDProtocolMessage done [12:09:39]OFDSenderStorePacket 164568 [12:09:39]StoreOFDPacket docnum=164568 [12:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0B 0D 04 01 5C B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 83 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 82 02 00 35 04 06 00 C6 6C 16 65 95 E1 D4 7E 34 CE 5D F6 2E 07 [12:09:39]CheckFolder [12:09:39]dirname=/storage/ofd_packets [12:09:39]CheckFolder done [12:09:39]ProducePacketName [12:09:39]name=ofd_packets/00164568 [12:09:39]NVStorageSaveData ofd_packets/00164568 [12:09:39]File name is /storage/ofd_packets/00164568 [12:09:39]Write 298 bytes [12:09:39]NVStorageSaveData done [12:09:39]OFDSenderStorePacket done [12:09:39]KKMCreateOFDPacket done [12:09:39]NVStorageSaveData kkm_last_timestamp [12:09:39]File name is /storage/kkm_last_timestamp [12:09:39]Write 4 bytes [12:09:39]NVStorageSaveData done [12:09:39]ExternCall_PrintAddStr [12:09:39]wPrintStart [12:09:39]Write to MH i2c: 01 00 00 98 15 AD [12:09:39]Write i2c OK [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: 01 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: 01 07 00 [12:09:39]MH_I2C_Read... [12:09:39]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 FF 0F C2 [12:09:39]RasterBufferAndPrint [12:09:39]line Счет N : (1)458659 [12:09:39]line ИНН: 02508201610067 [12:09:39]line Контрольно-Кассовый Чек [12:09:39]line ПРОДАЖА [12:09:39]line ТРК (МРК, ГНК) : 21 [12:09:39]line Товар: 2710194210 [12:09:39]line ДТ-К-5 [12:09:39]line 6.960 * 71.90 [12:09:39]line = 500.42 [12:09:39]line НДС 12% НСП 1% [12:09:39]line > о реализуемом товаре [12:09:39]line ОКРУГЛЕНИЕ: -0.42 [12:09:39]line ИТОГО: 500.00 [12:09:39]line Внесено: 500.00 [12:09:39]line СДАЧА: 0.00 [12:09:39]line НСП 1% : 4.43 [12:09:39]line НДС 12% : 53.14 [12:09:39]line Наличными: 500.00 [12:09:39]line Безнал.: 0.00 [12:09:39]line Место: АЗС № 72 "Партнер Нефть" [12:09:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:09:39]line СНО: Общий режим [12:09:39]line Чек 128 13.07.2024 12:09 [12:09:39]line Смена: 446 ФФД: 1.0 [12:09:39]line ЗНМ: 0300000160 [12:09:39]line РНМ: 0000000000090829 [12:09:39]line Версия ККМ: 001 [12:09:39]line ФМ: 0000000000874718 [12:09:39]line ФД: 164568 [12:09:39]line ФПД: 218167534523873 [12:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120939&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164568&fm=218167534523873&tin=02508201610067®Number=0000000000090829&sum=50000 [12:09:40]OFD Sender: Processing packet 164568 [packets to send 104, broken 103] [12:09:40]ProducePacketName [12:09:40]name=ofd_packets/00164568 [12:09:40]OFD Sender: To server: pG, [12:09:40]CommunicateWithHost lk.salyk.kg:30040 [12:09:40]ConnectInit lk.salyk.kg [12:09:40]written 0, free lines is 4095 [12:09:40]Connected sock=10 [12:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0B 0D 04 01 5C B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 83 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 82 02 00 35 04 06 00 C6 6C 16 65 95 E1 D4 7E 34 CE 5D F6 2E 07 [12:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 C2 47 00 3A 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 34 37 31 38 10 04 04 00 D8 82 02 00 F4 03 04 00 15 15 92 66 B6 04 01 00 00 9B D9 80 6B A9 E1 B5 14 [12:09:40]CommunicateWithHost err = 0 [12:09:40]CheckOFDResponse [12:09:40]1017 (14) - 77093643461234 [12:09:40]1041 (16) - 0000000000874718 [12:09:40]1040 (4) - 164568 [12:09:40]1012 (4) - 13.07.2024 05:48 [12:09:40]1206 (1) - 0 [12:09:40]OFD Sender: Remove packet 164568 [12:09:40]ProducePacketName [12:09:40]name=ofd_packets/00164568 [12:09:40]NVStorageDeleteData [12:09:40]Write to MH i2c: 01 00 00 C2 15 D7 [12:09:40]Write i2c OK [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: 01 [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: 01 07 00 [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 F0 0C DA [12:09:40]RasterBufferAndPrint [12:09:40]line [12:09:40]line [12:09:40]line [12:09:40]line [12:09:40]line [12:09:40]written 0, free lines is 3319 [12:09:40]MH_Cut [12:09:40]Write to MH i2c: D1 01 00 C9 15 01 B0 [12:09:40]Write i2c OK [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: D1 [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: D1 01 00 [12:09:40]MH_I2C_Read... [12:09:40]Read from MH i2c: D1 01 00 C9 15 00 AF [12:09:40]Write to MH i2c: 01 00 00 CA 15 DF [12:09:40]Write i2c OK [12:09:40]MH_I2C_Read... [12:09:41]OFD Sender: No OFD packet to send [12:09:41]*** Cut start [12:09:41]*** Partial cut [12:09:41]*** CUTSNS_PIN = 1 [12:09:41]*** CUTSNS_PIN = 0 [12:09:41]*** Brake cut motor [12:09:41]Read from MH i2c: 01 [12:09:41]MH_I2C_Read... [12:09:41]*** Stop cut motor [12:09:41]*** Cut end [12:09:41]Read from MH i2c: 01 07 00 [12:09:41]MH_I2C_Read... [12:09:41]Read from MH i2c: 01 07 00 CA 15 00 00 00 00 00 FF 0F F4 [12:09:41]process_action close_receipt done [12:09:41]requested_data is exist [12:09:41]produce_requested_data [12:09:41]requested_item fm.sn is exist - process it [12:09:41]wFMCommunicate request_size=4 [12:09:41]MH_SAM_APDU [12:09:41]CAPDU: 80 11 00 00 [12:09:41]Write to MH i2c: E2 08 00 CB 15 80 11 00 00 00 00 00 00 5A [12:09:41]Write i2c OK [12:09:41]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 17 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 17 00 CB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [12:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:09:42]wFMCommunicate OK [12:09:42]requested_item fd.num is exist - process it [12:09:42]SAM_PROTO_GetFieldsCounters [12:09:42]wFMCommunicate request_size=4 [12:09:42]MH_SAM_APDU [12:09:42]CAPDU: 80 13 00 00 [12:09:42]Write to MH i2c: E2 08 00 CC 15 80 13 00 00 00 00 00 00 5D [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 62 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 62 00 CC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 82 02 00 0E 04 04 00 BE 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 1F [12:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 82 02 00 0E 04 04 00 BE 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 [12:09:42]wFMCommunicate OK [12:09:42]SAM_PROTO_GetFieldsCounters done [12:09:42]requested_item shift.num is exist - process it [12:09:42]requested_item shift.opened is exist - process it [12:09:42]req_shift_opened [12:09:42]FM_GetShiftState [12:09:42]SAM_PROTO_GetShiftState [12:09:42]wFMCommunicate request_size=4 [12:09:42]MH_SAM_APDU [12:09:42]CAPDU: 80 13 01 00 [12:09:42]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 40 [12:09:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:09:42]wFMCommunicate OK [12:09:42]SAM_PROTO_GetShiftState done [12:09:42]FM_GetShiftState done [12:09:42]req_shift_opened done [12:09:42]requested_item shift.open_date is exist - process it [12:09:42]req_shift_open_date [12:09:42]req_shift_open_date done [12:09:42]produce_requested_data done [12:09:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164568,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:09:42]process_action_free close_receipt [12:09:42]json_value_free [12:09:42]json_value_free done [12:09:42]process_json_proto returns [12:09:42]Send response to host [12:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164568,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:09:42]free response buf [12:09:42]execute_script done [12:09:42]execute_script returns [12:09:42]free content buf [12:09:42]Sock 7.Close socket [12:09:42]Sock 7.Thread stoped [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:20]accept exits with 9 [12:10:20]New connection [12:10:20]New thread 3067149668 created [12:10:20]Thread 3067293028 joined [12:10:20]Waiting for new connection... [12:10:20] Sock 9.Parse request [12:10:20]Sock 9.Check first char [12:10:20]Sock 9.First char is OK [12:10:20]request: POST /json_proto HTTP/1.0 [12:10:20]Method: POST [12:10:20]URL: /json_proto [12:10:20]Method is POST - this is cgi request [12:10:20]url: /json_proto [12:10:20]query_string will be loaded in cgi processing [12:10:20]execute_cgi json_proto POST (null) [12:10:20]execute_cgi path=json_proto method=POST [12:10:20]POST find Content-Length [12:10:20]Host: 172.17.56.4:8080 [12:10:20]Content-Length: 793 [12:10:20]Content-Type: application/json [12:10:20] [12:10:20]POST finish read [12:10:20]Found Content-Length = 793 [12:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:20]execute_script... [12:10: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)458660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:20]POST & json_proto [12:10:20]process_json_proto [12:10:20]json parsed OK: [12:10:20]protocol is kg_v1.0 [12:10:20]action value=close_receipt [12:10:20]process_action close_receipt [12:10:20]cmd_close_receipt [12:10:20]MH_GetDate [12:10:20]Write to MH i2c: F0 00 00 CE 15 D2 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: F0 09 00 CE 15 00 AE 6E 92 66 C9 DC B2 64 AA [12:10:20]GetLastDocTimeStamp 1720872579 [12:10:20]current date 1720872622 [12:10:20]FM_GetShiftState [12:10:20]SAM_PROTO_GetShiftState [12:10:20]wFMCommunicate request_size=4 [12:10:20]MH_SAM_APDU [12:10:20]CAPDU: 80 13 01 00 [12:10:20]Write to MH i2c: E2 08 00 CF 15 80 13 01 00 00 00 00 00 61 [12:10:20]Write i2c OK [12:10:20]MH_I2C_Read... [12:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:20]Read from MH i2c: E2 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 [12:10:20]MH_I2C_Read... [12:10:20]Read from MH i2c: E2 0E 00 CF 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 42 [12:10:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:10:20]wFMCommunicate OK [12:10:20]SAM_PROTO_GetShiftState done [12:10:20]FM_GetShiftState done [12:10:20]opened in 1720831249 [12:10:20]opened+sec_in_day 1720917649 [12:10:20]quantity*price = 100047 [12:10:20]sum+1 = 100048 [12:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 129 13.07.2024 12:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164569 ФПД: 146591151494900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121022&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164569&fm=146591151494900&tin=02508201610067®Number=0000000000090829&sum=100047 [12:10:21]StoreToDocumentArchive [12:10:21]shift 446 fd 164569 [12:10:21]save to /storage/0446/doc_00164569 [12:10:21]save last doc name /storage/0446/doc_00164569 to /storage/kkm_last_doc_name [12:10:21]save OK [12:10:21]Clear old archive folders... [12:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:21]tlvbuf is 014DD8B0 [12:10:21]SAM_PROTO_ClearQueue [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 09 00 00 [12:10:21]Write to MH i2c: E2 08 00 DC 15 80 09 00 00 00 00 00 00 63 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_ClearQueue done [12:10:21]KKMCreateOFDPacket [12:10:21]OFDProtocolAddRootSTLVToBuf [12:10:21]FM_MakeSignedData [12:10:21]FM_MakeSignedData [12:10:21]SAM_PROTO_SignData [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 0D 01 02 [12:10:21]Write to MH i2c: E2 08 00 DD 15 80 0D 01 02 00 00 00 00 6B [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [12:10:21]RAPDU: 90 00 [12:10:21]wFMCommunicate OK [12:10:21]wFMCommunicate request_size=255 [12:10:21]MH_SAM_APDU [12:10: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AE 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 82 02 00 35 04 06 00 85 [12:10:21]Write to MH i2c: E2 02 01 DE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AE 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 82 02 00 35 04 06 00 85 00 00 8E [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=10 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 02 02 05 52 E9 83 16 F4 [12:10:22]Write to MH i2c: E2 0D 00 DF 15 80 0D 02 02 05 00 52 E9 83 16 F4 00 00 40 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 03 02 [12:10:22]Write to MH i2c: E2 08 00 E0 15 80 0D 03 02 00 00 00 00 70 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 0B 00 E0 15 00 F9 05 F7 E4 B8 45 67 53 90 00 01 [12:10:22]RAPDU: F9 05 F7 E4 B8 45 67 53 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_SignData done [12:10:22]FM_MakeSignedData done [12:10:22]CreateOFDProtocolMessage [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 11 00 00 [12:10:22]Write to MH i2c: E2 08 00 E1 15 80 11 00 00 00 00 00 00 70 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 17 00 E1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [12:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:10:22]wFMCommunicate OK [12:10:22]CreateOFDProtocolMessage done [12:10:22]OFDSenderStorePacket 164569 [12:10:22]StoreOFDPacket docnum=164569 [12:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E FD 07 01 1B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AE 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 82 02 00 35 04 06 00 85 52 E9 83 16 F4 F9 05 F7 E4 B8 45 67 53 [12:10:22]CheckFolder [12:10:22]dirname=/storage/ofd_packets [12:10:22]CheckFolder done [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00164569 [12:10:22]NVStorageSaveData ofd_packets/00164569 [12:10:22]File name is /storage/ofd_packets/00164569 [12:10:22]Write 301 bytes [12:10:22]NVStorageSaveData done [12:10:22]OFDSenderStorePacket done [12:10:22]KKMCreateOFDPacket done [12:10:22]NVStorageSaveData kkm_last_timestamp [12:10:22]File name is /storage/kkm_last_timestamp [12:10:22]Write 4 bytes [12:10:22]NVStorageSaveData done [12:10:22]ExternCall_PrintAddStr [12:10:22]wPrintStart [12:10:22]Write to MH i2c: 01 00 00 E2 15 F7 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [12:10:22]RasterBufferAndPrint [12:10:22]line Счет N : (1)458660 [12:10:22]line ИНН: 02508201610067 [12:10:22]line Контрольно-Кассовый Чек [12:10:22]line ПРОДАЖА [12:10:22]line ТРК (МРК, ГНК) : 12 [12:10:22]line Товар: 2710124130 [12:10:22]line Аи-92-К-5 [12:10:22]line 15.340 * 65.22 [12:10:22]line = 1000.47 [12:10:22]line НДС 12% НСП 1% [12:10:22]line > о реализуемом товаре [12:10:22]line ИТОГО: 1000.47 [12:10:22]line НСП 1% : 8.85 [12:10:22]line НДС 12% : 106.24 [12:10:22]line Наличными: 0.00 [12:10:22]line Безнал.: 1000.47 [12:10:22]line Место: АЗС № 72 "Партнер Нефть" [12:10:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:10:22]line СНО: Общий режим [12:10:22]line Чек 129 13.07.2024 12:10 [12:10:22]line Смена: 446 ФФД: 1.0 [12:10:22]line ЗНМ: 0300000160 [12:10:22]line РНМ: 0000000000090829 [12:10:22]line Версия ККМ: 001 [12:10:22]line Платежная система: KICB Банк [12:10:22]line ФМ: 0000000000874718 [12:10:22]line ФД: 164569 [12:10:22]line ФПД: 146591151494900 [12:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121022&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164569&fm=146591151494900&tin=02508201610067®Number=0000000000090829&sum=100047 [12:10:22]written 0, free lines is 4095 [12:10:22]OFD Sender: Processing packet 164569 [packets to send 104, broken 103] [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00164569 [12:10:22]OFD Sender: To server: pG, [12:10:22]CommunicateWithHost lk.salyk.kg:30040 [12:10:22]ConnectInit lk.salyk.kg [12:10:22]Connected sock=10 [12:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E FD 07 01 1B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AE 6E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 82 02 00 35 04 06 00 85 52 E9 83 16 F4 F9 05 F7 E4 B8 45 67 53 [12:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 2F 47 00 12 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 34 37 31 38 10 04 04 00 D9 82 02 00 F4 03 04 00 3F 15 92 66 B6 04 01 00 00 A5 1F 4E DE 73 2A 90 EB [12:10:22]CommunicateWithHost err = 0 [12:10:22]CheckOFDResponse [12:10:22]1017 (14) - 77093643461234 [12:10:22]1041 (16) - 0000000000874718 [12:10:22]1040 (4) - 164569 [12:10:22]1012 (4) - 13.07.2024 05:48 [12:10:22]1206 (1) - 0 [12:10:22]OFD Sender: Remove packet 164569 [12:10:22]ProducePacketName [12:10:22]name=ofd_packets/00164569 [12:10:22]NVStorageDeleteData [12:10:22]Write to MH i2c: 01 00 00 0B 16 21 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 11 0D 46 [12:10:22]RasterBufferAndPrint [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]line [12:10:22]written 0, free lines is 3351 [12:10:22]MH_Cut [12:10:22]Write to MH i2c: D1 01 00 12 16 01 FA [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: D1 01 00 12 16 00 F9 [12:10:22]Write to MH i2c: 01 00 00 13 16 29 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:23]OFD Sender: No OFD packet to send [12:10:23]*** Cut start [12:10:23]*** Partial cut [12:10:23]*** CUTSNS_PIN = 1 [12:10:23]*** CUTSNS_PIN = 0 [12:10:23]*** Brake cut motor [12:10:24]Read from MH i2c: 01 [12:10:24]MH_I2C_Read... [12:10:24]*** Stop cut motor [12:10:24]*** Cut end [12:10:24]Read from MH i2c: 01 07 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 FF 0F 3E [12:10:24]process_action close_receipt done [12:10:24]requested_data is exist [12:10:24]produce_requested_data [12:10:24]requested_item fm.sn is exist - process it [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 11 00 00 [12:10:24]Write to MH i2c: E2 08 00 14 16 80 11 00 00 00 00 00 00 A4 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 14 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [12:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:10:24]wFMCommunicate OK [12:10:24]requested_item fd.num is exist - process it [12:10:24]SAM_PROTO_GetFieldsCounters [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 00 00 [12:10:24]Write to MH i2c: E2 08 00 15 16 80 13 00 00 00 00 00 00 A7 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 62 00 15 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 82 02 00 0E 04 04 00 BE 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 6D [12:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 82 02 00 0E 04 04 00 BE 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 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetFieldsCounters done [12:10:24]requested_item shift.num is exist - process it [12:10:24]requested_item shift.opened is exist - process it [12:10:24]req_shift_opened [12:10:24]FM_GetShiftState [12:10:24]SAM_PROTO_GetShiftState [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 13 01 00 [12:10:24]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8A [12:10:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_GetShiftState done [12:10:24]FM_GetShiftState done [12:10:24]req_shift_opened done [12:10:24]requested_item shift.open_date is exist - process it [12:10:24]req_shift_open_date [12:10:24]req_shift_open_date done [12:10:24]produce_requested_data done [12:10:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164569,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:10:24]process_action_free close_receipt [12:10:24]json_value_free [12:10:24]json_value_free done [12:10:24]process_json_proto returns [12:10:24]Send response to host [12:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164569,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:10:24]free response buf [12:10:24]execute_script done [12:10:24]execute_script returns [12:10:24]free content buf [12:10:24]Sock 9.Close socket [12:10:24]Sock 9.Thread stoped [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:23]accept exits with 7 [12:12:23]New connection [12:12:23]New thread 3067293028 created [12:12:23]Thread 3067149668 joined [12:12:23]Waiting for new connection... [12:12:23] Sock 7.Parse request [12:12:23]Sock 7.Check first char [12:12:23]Sock 7.First char is OK [12:12:23]request: POST /json_proto HTTP/1.0 [12:12:23]Method: POST [12:12:23]URL: /json_proto [12:12:23]Method is POST - this is cgi request [12:12:23]url: /json_proto [12:12:23]query_string will be loaded in cgi processing [12:12:23]execute_cgi json_proto POST (null) [12:12:23]execute_cgi path=json_proto method=POST [12:12:23]POST find Content-Length [12:12:23]Host: 172.17.56.4:8080 [12:12:23]Content-Length: 682 [12:12:23]Content-Type: application/json [12:12:23] [12:12:23]POST finish read [12:12:23]Found Content-Length = 682 [12:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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" ] } } [12:12:23]execute_script... [12:12: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)458661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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" ] } } [12:12:23]POST & json_proto [12:12:23]process_json_proto [12:12:23]json parsed OK: [12:12:23]protocol is kg_v1.0 [12:12:23]action value=close_receipt [12:12:23]process_action close_receipt [12:12:23]cmd_close_receipt [12:12:23]MH_GetDate [12:12:23]Write to MH i2c: F0 00 00 17 16 1C [12:12:23]Write i2c OK [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 09 00 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: F0 09 00 17 16 00 29 6F 92 66 C9 DC B2 64 70 [12:12:23]GetLastDocTimeStamp 1720872622 [12:12:23]current date 1720872745 [12:12:23]FM_GetShiftState [12:12:23]SAM_PROTO_GetShiftState [12:12:23]wFMCommunicate request_size=4 [12:12:23]MH_SAM_APDU [12:12:23]CAPDU: 80 13 01 00 [12:12:23]Write to MH i2c: E2 08 00 18 16 80 13 01 00 00 00 00 00 AB [12:12:23]Write i2c OK [12:12:23]MH_I2C_Read... [12:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:23]Read from MH i2c: E2 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: E2 0E 00 [12:12:23]MH_I2C_Read... [12:12:23]Read from MH i2c: E2 0E 00 18 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8C [12:12:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:12:23]wFMCommunicate OK [12:12:23]SAM_PROTO_GetShiftState done [12:12:23]FM_GetShiftState done [12:12:23]opened in 1720831249 [12:12:23]opened+sec_in_day 1720917649 [12:12:23]quantity*price = 200032 [12:12:23]sum+1 = 200033 [12:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 130 13.07.2024 12:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164570 ФПД: 90850845766994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164570&fm=90850845766994&tin=02508201610067®Number=0000000000090829&sum=200000 [12:12:25]StoreToDocumentArchive [12:12:25]shift 446 fd 164570 [12:12:25]save to /storage/0446/doc_00164570 [12:12:25]save last doc name /storage/0446/doc_00164570 to /storage/kkm_last_doc_name [12:12:25]save OK [12:12:25]Clear old archive folders... [12:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:25]tlvbuf is 014DD610 [12:12:25]SAM_PROTO_ClearQueue [12:12:25]wFMCommunicate request_size=4 [12:12:25]MH_SAM_APDU [12:12:25]CAPDU: 80 09 00 00 [12:12:25]Write to MH i2c: E2 08 00 25 16 80 09 00 00 00 00 00 00 AD [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [12:12:25]RAPDU: 90 00 [12:12:25]wFMCommunicate OK [12:12:25]SAM_PROTO_ClearQueue done [12:12:25]KKMCreateOFDPacket [12:12:25]OFDProtocolAddRootSTLVToBuf [12:12:25]FM_MakeSignedData [12:12:25]FM_MakeSignedData [12:12:25]SAM_PROTO_SignData [12:12:25]wFMCommunicate request_size=4 [12:12:25]MH_SAM_APDU [12:12:25]CAPDU: 80 0D 01 02 [12:12:25]Write to MH i2c: E2 08 00 26 16 80 0D 01 02 00 00 00 00 B5 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [12:12:25]RAPDU: 90 00 [12:12:25]wFMCommunicate OK [12:12:25]wFMCommunicate request_size=255 [12:12:25]MH_SAM_APDU [12:12: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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 29 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 82 02 00 35 04 06 00 52 [12:12:25]Write to MH i2c: E2 02 01 27 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 29 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 82 02 00 35 04 06 00 52 00 00 95 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [12:12:25]RAPDU: 90 00 [12:12:25]wFMCommunicate OK [12:12:25]wFMCommunicate request_size=10 [12:12:25]MH_SAM_APDU [12:12:25]CAPDU: 80 0D 02 02 05 A0 DC 63 B5 52 [12:12:25]Write to MH i2c: E2 0D 00 28 16 80 0D 02 02 05 00 A0 DC 63 B5 52 00 00 A8 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [12:12:25]RAPDU: 90 00 [12:12:25]wFMCommunicate OK [12:12:25]wFMCommunicate request_size=4 [12:12:25]MH_SAM_APDU [12:12:25]CAPDU: 80 0D 03 02 [12:12:25]Write to MH i2c: E2 08 00 29 16 80 0D 03 02 00 00 00 00 BA [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 0B 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 0B 00 29 16 00 D2 A3 62 DF F9 00 0E F7 90 00 6F [12:12:25]RAPDU: D2 A3 62 DF F9 00 0E F7 90 00 [12:12:25]wFMCommunicate OK [12:12:25]SAM_PROTO_SignData done [12:12:25]FM_MakeSignedData done [12:12:25]CreateOFDProtocolMessage [12:12:25]wFMCommunicate request_size=4 [12:12:25]MH_SAM_APDU [12:12:25]CAPDU: 80 11 00 00 [12:12:25]Write to MH i2c: E2 08 00 2A 16 80 11 00 00 00 00 00 00 BA [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:25]Read from MH i2c: E2 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 17 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: E2 17 00 2A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [12:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:12:25]wFMCommunicate OK [12:12:25]CreateOFDProtocolMessage done [12:12:25]OFDSenderStorePacket 164570 [12:12:25]StoreOFDPacket docnum=164570 [12:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E 41 07 01 18 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 29 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 82 02 00 35 04 06 00 52 A0 DC 63 B5 52 D2 A3 62 DF F9 00 0E F7 [12:12:25]CheckFolder [12:12:25]dirname=/storage/ofd_packets [12:12:25]CheckFolder done [12:12:25]ProducePacketName [12:12:25]name=ofd_packets/00164570 [12:12:25]NVStorageSaveData ofd_packets/00164570 [12:12:25]File name is /storage/ofd_packets/00164570 [12:12:25]Write 301 bytes [12:12:25]NVStorageSaveData done [12:12:25]OFDSenderStorePacket done [12:12:25]KKMCreateOFDPacket done [12:12:25]NVStorageSaveData kkm_last_timestamp [12:12:25]File name is /storage/kkm_last_timestamp [12:12:25]Write 4 bytes [12:12:25]NVStorageSaveData done [12:12:25]OFD Sender: Processing packet 164570 [packets to send 104, broken 103] [12:12:25]ProducePacketName [12:12:25]name=ofd_packets/00164570 [12:12:25]OFD Sender: To server: pG, [12:12:25]CommunicateWithHost lk.salyk.kg:30040 [12:12:25]ConnectInit lk.salyk.kg [12:12:25]ExternCall_PrintAddStr [12:12:25]wPrintStart [12:12:25]Write to MH i2c: 01 00 00 2B 16 41 [12:12:25]Write i2c OK [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 07 00 [12:12:25]MH_I2C_Read... [12:12:25]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 FF 0F 56 [12:12:25]RasterBufferAndPrint [12:12:25]line Счет N : (1)458661 [12:12:25]line ИНН: 02508201610067 [12:12:25]line Контрольно-Кассовый Чек [12:12:25]line ПРОДАЖА [12:12:25]line ТРК (МРК, ГНК) : 12 [12:12:25]line Товар: 2710124130 [12:12:25]line Аи-92-К-5 [12:12:25]line 30.400 * 65.80 [12:12:25]line = 2000.32 [12:12:25]line НДС 12% НСП 1% [12:12:25]line > о реализуемом товаре [12:12:25]line ОКРУГЛЕНИЕ: -0.32 [12:12:25]line ИТОГО: 2000.00 [12:12:25]line Внесено: 2000.00 [12:12:25]line СДАЧА: 0.00 [12:12:25]line НСП 1% : 17.70 [12:12:25]line НДС 12% : 212.42 [12:12:25]line Наличными: 2000.00 [12:12:25]line Безнал.: 0.00 [12:12:25]line Место: АЗС № 72 "Партнер Нефть" [12:12:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:12:25]line СНО: Общий режим [12:12:25]line Чек 130 13.07.2024 12:12 [12:12:25]line Смена: 446 ФФД: 1.0 [12:12:25]line ЗНМ: 0300000160 [12:12:25]line РНМ: 0000000000090829 [12:12:25]line Версия ККМ: 001 [12:12:25]line ФМ: 0000000000874718 [12:12:25]line ФД: 164570 [12:12:25]line ФПД: 90850845766994 [12:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121225&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164570&fm=90850845766994&tin=02508201610067®Number=0000000000090829&sum=200000 [12:12:25]Connected sock=11 [12:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E 41 07 01 18 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 29 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 82 02 00 35 04 06 00 52 A0 DC 63 B5 52 D2 A3 62 DF F9 00 0E F7 [12:12:25]written 0, free lines is 4095 [12:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8C DA 47 00 BC 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 34 37 31 38 10 04 04 00 DA 82 02 00 F4 03 04 00 BA 15 92 66 B6 04 01 00 00 A9 00 30 8F 43 0F D2 F2 [12:12:26]CommunicateWithHost err = 0 [12:12:26]CheckOFDResponse [12:12:26]1017 (14) - 77093643461234 [12:12:26]1041 (16) - 0000000000874718 [12:12:26]1040 (4) - 164570 [12:12:26]1012 (4) - 13.07.2024 05:50 [12:12:26]1206 (1) - 0 [12:12:26]OFD Sender: Remove packet 164570 [12:12:26]ProducePacketName [12:12:26]name=ofd_packets/00164570 [12:12:26]NVStorageDeleteData [12:12:26]Write to MH i2c: 01 00 00 55 16 6B [12:12:26]Write i2c OK [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: 01 [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: 01 07 00 [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 F5 0C 73 [12:12:26]RasterBufferAndPrint [12:12:26]line [12:12:26]line [12:12:26]line [12:12:26]line [12:12:26]line [12:12:26]written 0, free lines is 3324 [12:12:26]MH_Cut [12:12:26]Write to MH i2c: D1 01 00 5C 16 01 44 [12:12:26]Write i2c OK [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: D1 [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: D1 01 00 [12:12:26]MH_I2C_Read... [12:12:26]Read from MH i2c: D1 01 00 5C 16 00 43 [12:12:26]Write to MH i2c: 01 00 00 5D 16 73 [12:12:26]Write i2c OK [12:12:26]MH_I2C_Read... [12:12:26]OFD Sender: No OFD packet to send [12:12:27]*** Cut start [12:12:27]*** Partial cut [12:12:27]*** CUTSNS_PIN = 1 [12:12:27]*** CUTSNS_PIN = 0 [12:12:27]*** Brake cut motor [12:12:27]Read from MH i2c: 01 [12:12:27]MH_I2C_Read... [12:12:27]*** Stop cut motor [12:12:27]*** Cut end [12:12:27]Read from MH i2c: 01 07 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: 01 07 00 5D 16 00 00 00 00 00 FF 0F 88 [12:12:27]process_action close_receipt done [12:12:27]requested_data is exist [12:12:27]produce_requested_data [12:12:27]requested_item fm.sn is exist - process it [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 11 00 00 [12:12:27]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 17 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [12:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:12:27]wFMCommunicate OK [12:12:27]requested_item fd.num is exist - process it [12:12:27]SAM_PROTO_GetFieldsCounters [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 13 00 00 [12:12:27]Write to MH i2c: E2 08 00 5F 16 80 13 00 00 00 00 00 00 F1 [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 62 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 62 00 5F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 82 02 00 0E 04 04 00 BE 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 BB [12:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 82 02 00 0E 04 04 00 BE 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 [12:12:27]wFMCommunicate OK [12:12:27]SAM_PROTO_GetFieldsCounters done [12:12:27]requested_item shift.num is exist - process it [12:12:27]requested_item shift.opened is exist - process it [12:12:27]req_shift_opened [12:12:27]FM_GetShiftState [12:12:27]SAM_PROTO_GetShiftState [12:12:27]wFMCommunicate request_size=4 [12:12:27]MH_SAM_APDU [12:12:27]CAPDU: 80 13 01 00 [12:12:27]Write to MH i2c: E2 08 00 60 16 80 13 01 00 00 00 00 00 F3 [12:12:27]Write i2c OK [12:12:27]MH_I2C_Read... [12:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:27]Read from MH i2c: E2 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 0E 00 [12:12:27]MH_I2C_Read... [12:12:27]Read from MH i2c: E2 0E 00 60 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D4 [12:12:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:12:27]wFMCommunicate OK [12:12:27]SAM_PROTO_GetShiftState done [12:12:27]FM_GetShiftState done [12:12:27]req_shift_opened done [12:12:27]requested_item shift.open_date is exist - process it [12:12:27]req_shift_open_date [12:12:27]req_shift_open_date done [12:12:27]produce_requested_data done [12:12:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164570,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:12:27]process_action_free close_receipt [12:12:27]json_value_free [12:12:27]json_value_free done [12:12:27]process_json_proto returns [12:12:27]Send response to host [12:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164570,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:12:27]free response buf [12:12:27]execute_script done [12:12:27]execute_script returns [12:12:27]free content buf [12:12:27]Sock 7.Close socket [12:12:27]Sock 7.Thread stoped [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13: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:46]accept exits with 9 [12:14:46]New connection [12:14:46]New thread 3067149668 created [12:14:46]Thread 3067293028 joined [12:14:46]Waiting for new connection... [12:14:46] Sock 9.Parse request [12:14:46]Sock 9.Check first char [12:14:46]Sock 9.First char is OK [12:14:46]request: POST /json_proto HTTP/1.0 [12:14:46]Method: POST [12:14:46]URL: /json_proto [12:14:46]Method is POST - this is cgi request [12:14:46]url: /json_proto [12:14:46]query_string will be loaded in cgi processing [12:14:46]execute_cgi json_proto POST (null) [12:14:46]execute_cgi path=json_proto method=POST [12:14:46]POST find Content-Length [12:14:46]Host: 172.17.56.4:8080 [12:14:46]Content-Length: 682 [12:14:46]Content-Type: application/json [12:14:46] [12:14:46]POST finish read [12:14:46]Found Content-Length = 682 [12:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:46]execute_script... [12:14: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)458662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:46]POST & json_proto [12:14:46]process_json_proto [12:14:46]json parsed OK: [12:14:46]protocol is kg_v1.0 [12:14:46]action value=close_receipt [12:14:46]process_action close_receipt [12:14:46]cmd_close_receipt [12:14:46]MH_GetDate [12:14:46]Write to MH i2c: F0 00 00 61 16 66 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: F0 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: F0 09 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: F0 09 00 61 16 00 B8 6F 92 66 C9 DC B2 64 49 [12:14:46]GetLastDocTimeStamp 1720872745 [12:14:46]current date 1720872888 [12:14:46]FM_GetShiftState [12:14:46]SAM_PROTO_GetShiftState [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 01 00 [12:14:46]Write to MH i2c: E2 08 00 62 16 80 13 01 00 00 00 00 00 F5 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 62 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D6 [12:14:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetShiftState done [12:14:46]FM_GetShiftState done [12:14:46]opened in 1720831249 [12:14:46]opened+sec_in_day 1720917649 [12:14:46]quantity*price = 100016 [12:14:46]sum+1 = 100017 [12:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 131 13.07.2024 12:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164571 ФПД: 97591239433836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121448&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164571&fm=97591239433836&tin=02508201610067®Number=0000000000090829&sum=100000 [12:14:48]StoreToDocumentArchive [12:14:48]shift 446 fd 164571 [12:14:48]save to /storage/0446/doc_00164571 [12:14:48]save last doc name /storage/0446/doc_00164571 to /storage/kkm_last_doc_name [12:14:48]save OK [12:14:48]Clear old archive folders... [12:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:48]tlvbuf is 01496E00 [12:14:48]SAM_PROTO_ClearQueue [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 09 00 00 [12:14:48]Write to MH i2c: E2 08 00 6F 16 80 09 00 00 00 00 00 00 F7 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [12:14:48]RAPDU: 90 00 [12:14:48]wFMCommunicate OK [12:14:48]SAM_PROTO_ClearQueue done [12:14:48]KKMCreateOFDPacket [12:14:48]OFDProtocolAddRootSTLVToBuf [12:14:48]FM_MakeSignedData [12:14:48]FM_MakeSignedData [12:14:48]SAM_PROTO_SignData [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 0D 01 02 [12:14:48]Write to MH i2c: E2 08 00 70 16 80 0D 01 02 00 00 00 00 FF [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [12:14:48]RAPDU: 90 00 [12:14:48]wFMCommunicate OK [12:14:48]wFMCommunicate request_size=255 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B8 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 82 02 00 35 04 06 00 58 [12:14:48]Write to MH i2c: E2 02 01 71 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B8 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 82 02 00 35 04 06 00 58 00 00 32 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [12:14:48]RAPDU: 90 00 [12:14:48]wFMCommunicate OK [12:14:48]wFMCommunicate request_size=10 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 0D 02 02 05 C2 3B 28 DE 6C [12:14:48]Write to MH i2c: E2 0D 00 72 16 80 0D 02 02 05 00 C2 3B 28 DE 6C 00 00 7B [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [12:14:48]RAPDU: 90 00 [12:14:48]wFMCommunicate OK [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 0D 03 02 [12:14:48]Write to MH i2c: E2 08 00 73 16 80 0D 03 02 00 00 00 00 04 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 0B 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 0B 00 73 16 00 55 B2 A0 89 14 FD 0E B9 90 00 0D [12:14:48]RAPDU: 55 B2 A0 89 14 FD 0E B9 90 00 [12:14:48]wFMCommunicate OK [12:14:48]SAM_PROTO_SignData done [12:14:48]FM_MakeSignedData done [12:14:48]CreateOFDProtocolMessage [12:14:48]wFMCommunicate request_size=4 [12:14:48]MH_SAM_APDU [12:14:48]CAPDU: 80 11 00 00 [12:14:48]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:48]Read from MH i2c: E2 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 17 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [12:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:14:48]wFMCommunicate OK [12:14:48]CreateOFDProtocolMessage done [12:14:48]OFDSenderStorePacket 164571 [12:14:48]StoreOFDPacket docnum=164571 [12:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 58 07 01 87 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B8 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 82 02 00 35 04 06 00 58 C2 3B 28 DE 6C 55 B2 A0 89 14 FD 0E B9 [12:14:48]CheckFolder [12:14:48]dirname=/storage/ofd_packets [12:14:48]CheckFolder done [12:14:48]ProducePacketName [12:14:48]name=ofd_packets/00164571 [12:14:48]NVStorageSaveData ofd_packets/00164571 [12:14:48]File name is /storage/ofd_packets/00164571 [12:14:48]Write 301 bytes [12:14:48]NVStorageSaveData done [12:14:48]OFDSenderStorePacket done [12:14:48]KKMCreateOFDPacket done [12:14:48]NVStorageSaveData kkm_last_timestamp [12:14:48]File name is /storage/kkm_last_timestamp [12:14:48]Write 4 bytes [12:14:48]NVStorageSaveData done [12:14:48]ExternCall_PrintAddStr [12:14:48]wPrintStart [12:14:48]Write to MH i2c: 01 00 00 75 16 8B [12:14:48]Write i2c OK [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: 01 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: 01 07 00 [12:14:48]MH_I2C_Read... [12:14:48]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 FF 0F A0 [12:14:48]RasterBufferAndPrint [12:14:48]line Счет N : (1)458662 [12:14:48]line ИНН: 02508201610067 [12:14:48]line Контрольно-Кассовый Чек [12:14:48]line ПРОДАЖА [12:14:48]line ТРК (МРК, ГНК) : 12 [12:14:48]line Товар: 2710124130 [12:14:48]line Аи-92-К-5 [12:14:48]line 15.200 * 65.80 [12:14:48]line = 1000.16 [12:14:48]line НДС 12% НСП 1% [12:14:48]line > о реализуемом товаре [12:14:48]line ОКРУГЛЕНИЕ: -0.16 [12:14:48]line ИТОГО: 1000.00 [12:14:48]line Внесено: 1000.00 [12:14:48]line СДАЧА: 0.00 [12:14:48]line НСП 1% : 8.85 [12:14:48]line НДС 12% : 106.21 [12:14:48]line Наличными: 1000.00 [12:14:48]line Безнал.: 0.00 [12:14:48]line Место: АЗС № 72 "Партнер Нефть" [12:14:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:14:48]line СНО: Общий режим [12:14:48]line Чек 131 13.07.2024 12:14 [12:14:48]line Смена: 446 ФФД: 1.0 [12:14:48]line ЗНМ: 0300000160 [12:14:48]line РНМ: 0000000000090829 [12:14:48]line Версия ККМ: 001 [12:14:48]line ФМ: 0000000000874718 [12:14:48]line ФД: 164571 [12:14:48]line ФПД: 97591239433836 [12:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121448&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164571&fm=97591239433836&tin=02508201610067®Number=0000000000090829&sum=100000 [12:14:48]written 0, free lines is 4095 [12:14:48]OFD Sender: Processing packet 164571 [packets to send 104, broken 103] [12:14:48]ProducePacketName [12:14:48]name=ofd_packets/00164571 [12:14:48]OFD Sender: To server: pG, [12:14:48]CommunicateWithHost lk.salyk.kg:30040 [12:14:48]ConnectInit lk.salyk.kg [12:14:49]Connected sock=10 [12:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 58 07 01 87 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B8 6F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 82 02 00 35 04 06 00 58 C2 3B 28 DE 6C 55 B2 A0 89 14 FD 0E B9 [12:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 31 47 00 E2 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 34 37 31 38 10 04 04 00 DB 82 02 00 F4 03 04 00 49 16 92 66 B6 04 01 00 00 94 13 CF 86 45 91 DB 6E [12:14:49]CommunicateWithHost err = 0 [12:14:49]CheckOFDResponse [12:14:49]1017 (14) - 77093643461234 [12:14:49]1041 (16) - 0000000000874718 [12:14:49]1040 (4) - 164571 [12:14:49]1012 (4) - 13.07.2024 05:53 [12:14:49]1206 (1) - 0 [12:14:49]OFD Sender: Remove packet 164571 [12:14:49]ProducePacketName [12:14:49]name=ofd_packets/00164571 [12:14:49]NVStorageDeleteData [12:14:49]Write to MH i2c: 01 00 00 9F 16 B5 [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: 01 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: 01 07 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 EF 0C B7 [12:14:49]RasterBufferAndPrint [12:14:49]line [12:14:49]line [12:14:49]line [12:14:49]line [12:14:49]line [12:14:49]written 0, free lines is 3318 [12:14:49]MH_Cut [12:14:49]Write to MH i2c: D1 01 00 A6 16 01 8E [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: D1 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: D1 01 00 [12:14:49]MH_I2C_Read... [12:14:49]Read from MH i2c: D1 01 00 A6 16 00 8D [12:14:49]Write to MH i2c: 01 00 00 A7 16 BD [12:14:49]Write i2c OK [12:14:49]MH_I2C_Read... [12:14:49]OFD Sender: No OFD packet to send [12:14:50]*** Cut start [12:14:50]*** Partial cut [12:14:50]*** CUTSNS_PIN = 1 [12:14:50]*** CUTSNS_PIN = 0 [12:14:50]*** Brake cut motor [12:14:50]Read from MH i2c: 01 [12:14:50]MH_I2C_Read... [12:14:50]*** Stop cut motor [12:14:50]*** Cut end [12:14:50]Read from MH i2c: 01 07 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: 01 07 00 A7 16 00 00 00 00 00 FF 0F D2 [12:14:50]process_action close_receipt done [12:14:50]requested_data is exist [12:14:50]produce_requested_data [12:14:50]requested_item fm.sn is exist - process it [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 11 00 00 [12:14:50]Write to MH i2c: E2 08 00 A8 16 80 11 00 00 00 00 00 00 38 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:50]Read from MH i2c: E2 17 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 17 00 A8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [12:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:14:50]wFMCommunicate OK [12:14:50]requested_item fd.num is exist - process it [12:14:50]SAM_PROTO_GetFieldsCounters [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 13 00 00 [12:14:50]Write to MH i2c: E2 08 00 A9 16 80 13 00 00 00 00 00 00 3B [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 62 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 62 00 A9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 82 02 00 0E 04 04 00 BE 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 09 [12:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:50]wFMCommunicate OK [12:14:50]SAM_PROTO_GetFieldsCounters done [12:14:50]requested_item shift.num is exist - process it [12:14:50]requested_item shift.opened is exist - process it [12:14:50]req_shift_opened [12:14:50]FM_GetShiftState [12:14:50]SAM_PROTO_GetShiftState [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 13 01 00 [12:14:50]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0E 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1E [12:14:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:14:50]wFMCommunicate OK [12:14:50]SAM_PROTO_GetShiftState done [12:14:50]FM_GetShiftState done [12:14:50]req_shift_opened done [12:14:50]requested_item shift.open_date is exist - process it [12:14:50]req_shift_open_date [12:14:50]req_shift_open_date done [12:14:50]produce_requested_data done [12:14:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164571,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:14:50]process_action_free close_receipt [12:14:50]json_value_free [12:14:50]json_value_free done [12:14:50]process_json_proto returns [12:14:50]Send response to host [12:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164571,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:14:50]free response buf [12:14:50]execute_script done [12:14:50]execute_script returns [12:14:50]free content buf [12:14:50]Sock 9.Close socket [12:14:50]Sock 9.Thread stoped [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [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:21:57]accept exits with 7 [12:21:57]New connection [12:21:57]New thread 3067293028 created [12:21:57]Thread 3067149668 joined [12:21:57]Waiting for new connection... [12:21:57] Sock 7.Parse request [12:21:57]Sock 7.Check first char [12:21:57]Sock 7.First char is OK [12:21:57]request: POST /json_proto HTTP/1.0 [12:21:57]Method: POST [12:21:57]URL: /json_proto [12:21:57]Method is POST - this is cgi request [12:21:57]url: /json_proto [12:21:57]query_string will be loaded in cgi processing [12:21:57]execute_cgi json_proto POST (null) [12:21:57]execute_cgi path=json_proto method=POST [12:21:57]POST find Content-Length [12:21:57]Host: 172.17.56.4:8080 [12:21:57]Content-Length: 677 [12:21:57]Content-Type: application/json [12:21:57] [12:21:57]POST finish read [12:21:57]Found Content-Length = 677 [12:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:57]execute_script... [12:21: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)458663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:57]POST & json_proto [12:21:57]process_json_proto [12:21:57]json parsed OK: [12:21:57]protocol is kg_v1.0 [12:21:57]action value=close_receipt [12:21:57]process_action close_receipt [12:21:57]cmd_close_receipt [12:21:57]MH_GetDate [12:21:57]Write to MH i2c: F0 00 00 AB 16 B0 [12:21:57]Write i2c OK [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 09 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: F0 09 00 AB 16 00 67 71 92 66 C9 DC B2 64 44 [12:21:57]GetLastDocTimeStamp 1720872888 [12:21:57]current date 1720873319 [12:21:57]FM_GetShiftState [12:21:57]SAM_PROTO_GetShiftState [12:21:57]wFMCommunicate request_size=4 [12:21:57]MH_SAM_APDU [12:21:57]CAPDU: 80 13 01 00 [12:21:57]Write to MH i2c: E2 08 00 AC 16 80 13 01 00 00 00 00 00 3F [12:21:57]Write i2c OK [12:21:57]MH_I2C_Read... [12:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:57]Read from MH i2c: E2 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 [12:21:57]MH_I2C_Read... [12:21:57]Read from MH i2c: E2 0E 00 AC 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 20 [12:21:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:21:57]wFMCommunicate OK [12:21:57]SAM_PROTO_GetShiftState done [12:21:57]FM_GetShiftState done [12:21:57]opened in 1720831249 [12:21:57]opened+sec_in_day 1720917649 [12:21:57]quantity*price = 18029 [12:21:57]sum+1 = 18030 [12:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 132 13.07.2024 12:21 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164572 ФПД: 19786083675265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164572&fm=19786083675265&tin=02508201610067®Number=0000000000090829&sum=18000 [12:21:58]StoreToDocumentArchive [12:21:58]shift 446 fd 164572 [12:21:58]save to /storage/0446/doc_00164572 [12:21:58]save last doc name /storage/0446/doc_00164572 to /storage/kkm_last_doc_name [12:21:58]save OK [12:21:58]Clear old archive folders... [12:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:58]tlvbuf is 0145D190 [12:21:58]SAM_PROTO_ClearQueue [12:21:58]wFMCommunicate request_size=4 [12:21:58]MH_SAM_APDU [12:21:58]CAPDU: 80 09 00 00 [12:21:58]Write to MH i2c: E2 08 00 B9 16 80 09 00 00 00 00 00 00 41 [12:21:58]Write i2c OK [12:21:58]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [12:21:59]RAPDU: 90 00 [12:21:59]wFMCommunicate OK [12:21:59]SAM_PROTO_ClearQueue done [12:21:59]KKMCreateOFDPacket [12:21:59]OFDProtocolAddRootSTLVToBuf [12:21:59]FM_MakeSignedData [12:21:59]FM_MakeSignedData [12:21:59]SAM_PROTO_SignData [12:21:59]wFMCommunicate request_size=4 [12:21:59]MH_SAM_APDU [12:21:59]CAPDU: 80 0D 01 02 [12:21:59]Write to MH i2c: E2 08 00 BA 16 80 0D 01 02 00 00 00 00 49 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [12:21:59]RAPDU: 90 00 [12:21:59]wFMCommunicate OK [12:21:59]wFMCommunicate request_size=255 [12:21:59]MH_SAM_APDU [12:21: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 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 71 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 82 02 00 35 04 06 00 11 [12:21:59]Write to MH i2c: E2 02 01 BB 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 71 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 82 02 00 35 04 06 00 11 00 00 68 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [12:21:59]RAPDU: 90 00 [12:21:59]wFMCommunicate OK [12:21:59]wFMCommunicate request_size=10 [12:21:59]MH_SAM_APDU [12:21:59]CAPDU: 80 0D 02 02 05 FE CE 7D 2C 81 [12:21:59]Write to MH i2c: E2 0D 00 BC 16 80 0D 02 02 05 00 FE CE 7D 2C 81 00 00 4C [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [12:21:59]RAPDU: 90 00 [12:21:59]wFMCommunicate OK [12:21:59]wFMCommunicate request_size=4 [12:21:59]MH_SAM_APDU [12:21:59]CAPDU: 80 0D 03 02 [12:21:59]Write to MH i2c: E2 08 00 BD 16 80 0D 03 02 00 00 00 00 4E [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 0B 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 0B 00 BD 16 00 65 C1 8C 6B 4C 71 A5 D0 90 00 9E [12:21:59]RAPDU: 65 C1 8C 6B 4C 71 A5 D0 90 00 [12:21:59]wFMCommunicate OK [12:21:59]SAM_PROTO_SignData done [12:21:59]FM_MakeSignedData done [12:21:59]CreateOFDProtocolMessage [12:21:59]wFMCommunicate request_size=4 [12:21:59]MH_SAM_APDU [12:21:59]CAPDU: 80 11 00 00 [12:21:59]Write to MH i2c: E2 08 00 BE 16 80 11 00 00 00 00 00 00 4E [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:59]Read from MH i2c: E2 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 17 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: E2 17 00 BE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [12:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:21:59]wFMCommunicate OK [12:21:59]CreateOFDProtocolMessage done [12:21:59]OFDSenderStorePacket 164572 [12:21:59]StoreOFDPacket docnum=164572 [12:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 B8 07 01 BC 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 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 71 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 82 02 00 35 04 06 00 11 FE CE 7D 2C 81 65 C1 8C 6B 4C 71 A5 D0 [12:21:59]CheckFolder [12:21:59]dirname=/storage/ofd_packets [12:21:59]CheckFolder done [12:21:59]ProducePacketName [12:21:59]name=ofd_packets/00164572 [12:21:59]NVStorageSaveData ofd_packets/00164572 [12:21:59]File name is /storage/ofd_packets/00164572 [12:21:59]Write 301 bytes [12:21:59]NVStorageSaveData done [12:21:59]OFDSenderStorePacket done [12:21:59]KKMCreateOFDPacket done [12:21:59]NVStorageSaveData kkm_last_timestamp [12:21:59]File name is /storage/kkm_last_timestamp [12:21:59]Write 4 bytes [12:21:59]NVStorageSaveData done [12:21:59]ExternCall_PrintAddStr [12:21:59]wPrintStart [12:21:59]Write to MH i2c: 01 00 00 BF 16 D5 [12:21:59]Write i2c OK [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 07 00 [12:21:59]MH_I2C_Read... [12:21:59]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 FF 0F EA [12:21:59]RasterBufferAndPrint [12:21:59]line Счет N : (1)458663 [12:21:59]line ИНН: 02508201610067 [12:21:59]line Контрольно-Кассовый Чек [12:21:59]line ПРОДАЖА [12:21:59]line ТРК (МРК, ГНК) : 22 [12:21:59]line Товар: 2710124130 [12:21:59]line Аи-92-К-5 [12:21:59]line 2.740 * 65.80 [12:21:59]line = 180.29 [12:21:59]line НДС 12% НСП 1% [12:21:59]line > о реализуемом товаре [12:21:59]line ОКРУГЛЕНИЕ: -0.29 [12:21:59]line ИТОГО: 180.00 [12:21:59]line Внесено: 180.00 [12:21:59]line СДАЧА: 0.00 [12:21:59]line НСП 1% : 1.59 [12:21:59]line НДС 12% : 19.15 [12:21:59]line Наличными: 180.00 [12:21:59]line Безнал.: 0.00 [12:21:59]line Место: АЗС № 72 "Партнер Нефть" [12:21:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:21:59]line СНО: Общий режим [12:21:59]line Чек 132 13.07.2024 12:21 [12:21:59]line Смена: 446 ФФД: 1.0 [12:21:59]line ЗНМ: 0300000160 [12:21:59]line РНМ: 0000000000090829 [12:21:59]line Версия ККМ: 001 [12:21:59]line ФМ: 0000000000874718 [12:21:59]line ФД: 164572 [12:21:59]line ФПД: 19786083675265 [12:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164572&fm=19786083675265&tin=02508201610067®Number=0000000000090829&sum=18000 [12:21:59]written 0, free lines is 4095 [12:21:59]OFD Sender: Processing packet 164572 [packets to send 104, broken 103] [12:21:59]ProducePacketName [12:21:59]name=ofd_packets/00164572 [12:21:59]OFD Sender: To server: pG, [12:21:59]CommunicateWithHost lk.salyk.kg:30040 [12:21:59]ConnectInit lk.salyk.kg [12:21:59]Connected sock=10 [12:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 B8 07 01 BC 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 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 67 71 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 82 02 00 35 04 06 00 11 FE CE 7D 2C 81 65 C1 8C 6B 4C 71 A5 D0 [12:22:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E2 87 47 00 CE 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 82 02 00 F4 03 04 00 F8 17 92 66 B6 04 01 00 00 D1 E9 B5 07 0D 93 B1 7A [12:22:00]CommunicateWithHost err = 0 [12:22:00]CheckOFDResponse [12:22:00]1017 (14) - 77093643461234 [12:22:00]1041 (16) - 0000000000874718 [12:22:00]1040 (4) - 164572 [12:22:00]1012 (4) - 13.07.2024 06:00 [12:22:00]1206 (1) - 0 [12:22:00]OFD Sender: Remove packet 164572 [12:22:00]ProducePacketName [12:22:00]name=ofd_packets/00164572 [12:22:00]NVStorageDeleteData [12:22:00]Write to MH i2c: 01 00 00 E9 16 FF [12:22:00]Write i2c OK [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: 01 [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: 01 07 00 [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 F3 0C 05 [12:22:00]RasterBufferAndPrint [12:22:00]line [12:22:00]line [12:22:00]line [12:22:00]line [12:22:00]line [12:22:00]written 0, free lines is 3321 [12:22:00]MH_Cut [12:22:00]Write to MH i2c: D1 01 00 F0 16 01 D8 [12:22:00]Write i2c OK [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: D1 [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: D1 01 00 [12:22:00]MH_I2C_Read... [12:22:00]Read from MH i2c: D1 01 00 F0 16 00 D7 [12:22:00]Write to MH i2c: 01 00 00 F1 16 07 [12:22:00]Write i2c OK [12:22:00]MH_I2C_Read... [12:22:00]OFD Sender: No OFD packet to send [12:22:00]*** Cut start [12:22:00]*** Partial cut [12:22:00]*** CUTSNS_PIN = 1 [12:22:00]*** CUTSNS_PIN = 0 [12:22:01]*** Brake cut motor [12:22:01]Read from MH i2c: 01 [12:22:01]MH_I2C_Read... [12:22:01]*** Stop cut motor [12:22:01]*** Cut end [12:22:01]Read from MH i2c: 01 07 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 FF 0F 1C [12:22:01]process_action close_receipt done [12:22:01]requested_data is exist [12:22:01]produce_requested_data [12:22:01]requested_item fm.sn is exist - process it [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 11 00 00 [12:22:01]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [12:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:01]wFMCommunicate OK [12:22:01]requested_item fd.num is exist - process it [12:22:01]SAM_PROTO_GetFieldsCounters [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 00 00 [12:22:01]Write to MH i2c: E2 08 00 F3 16 80 13 00 00 00 00 00 00 85 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 62 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 62 00 F3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 82 02 00 0E 04 04 00 BE 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 57 [12:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 82 02 00 0E 04 04 00 BE 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 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetFieldsCounters done [12:22:01]requested_item shift.num is exist - process it [12:22:01]requested_item shift.opened is exist - process it [12:22:01]req_shift_opened [12:22:01]FM_GetShiftState [12:22:01]SAM_PROTO_GetShiftState [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 01 00 [12:22:01]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 68 [12:22:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetShiftState done [12:22:01]FM_GetShiftState done [12:22:01]req_shift_opened done [12:22:01]requested_item shift.open_date is exist - process it [12:22:01]req_shift_open_date [12:22:01]req_shift_open_date done [12:22:01]produce_requested_data done [12:22:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164572,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:22:01]process_action_free close_receipt [12:22:01]json_value_free [12:22:01]json_value_free done [12:22:01]process_json_proto returns [12:22:01]Send response to host [12:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164572,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:22:01]free response buf [12:22:01]execute_script done [12:22:01]execute_script returns [12:22:01]free content buf [12:22:01]Sock 7.Close socket [12:22:01]Sock 7.Thread stoped [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:30]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:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:11]accept exits with 9 [12:27:11]New connection [12:27:11]New thread 3067149668 created [12:27:11]Thread 3067293028 joined [12:27:11]Waiting for new connection... [12:27:11] Sock 9.Parse request [12:27:11]Sock 9.Check first char [12:27:11]Sock 9.First char is OK [12:27:11]request: POST /json_proto HTTP/1.0 [12:27:11]Method: POST [12:27:11]URL: /json_proto [12:27:11]Method is POST - this is cgi request [12:27:11]url: /json_proto [12:27:11]query_string will be loaded in cgi processing [12:27:11]execute_cgi json_proto POST (null) [12:27:11]execute_cgi path=json_proto method=POST [12:27:11]POST find Content-Length [12:27:11]Host: 172.17.56.4:8080 [12:27:11]Content-Length: 637 [12:27:11]Content-Type: application/json [12:27:11] [12:27:11]POST finish read [12:27:11]Found Content-Length = 637 [12:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:11]execute_script... [12:27: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)458664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:11]POST & json_proto [12:27:11]process_json_proto [12:27:11]json parsed OK: [12:27:11]protocol is kg_v1.0 [12:27:11]action value=close_receipt [12:27:11]process_action close_receipt [12:27:11]cmd_close_receipt [12:27:11]MH_GetDate [12:27:11]Write to MH i2c: F0 00 00 F5 16 FA [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: F0 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: F0 09 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: F0 09 00 F5 16 00 A1 72 92 66 C9 DC B2 64 C9 [12:27:11]GetLastDocTimeStamp 1720873319 [12:27:11]current date 1720873633 [12:27:11]FM_GetShiftState [12:27:11]SAM_PROTO_GetShiftState [12:27:11]wFMCommunicate request_size=4 [12:27:11]MH_SAM_APDU [12:27:11]CAPDU: 80 13 01 00 [12:27:11]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:11]Read from MH i2c: E2 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 0E 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6A [12:27:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:27:11]wFMCommunicate OK [12:27:11]SAM_PROTO_GetShiftState done [12:27:11]FM_GetShiftState done [12:27:11]opened in 1720831249 [12:27:11]opened+sec_in_day 1720917649 [12:27:11]quantity*price = 71900 [12:27:11]sum+1 = 71901 [12:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 133 13.07.2024 12:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164573 ФПД: 76209559714833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122713&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164573&fm=76209559714833&tin=02508201610067®Number=0000000000090829&sum=71900 [12:27:12]StoreToDocumentArchive [12:27:12]shift 446 fd 164573 [12:27:12]save to /storage/0446/doc_00164573 [12:27:12]save last doc name /storage/0446/doc_00164573 to /storage/kkm_last_doc_name [12:27:12]save OK [12:27:12]Clear old archive folders... [12:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:12]tlvbuf is 01499E50 [12:27:12]SAM_PROTO_ClearQueue [12:27:12]wFMCommunicate request_size=4 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 09 00 00 [12:27:12]Write to MH i2c: E2 08 00 03 17 80 09 00 00 00 00 00 00 8C [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [12:27:12]RAPDU: 90 00 [12:27:12]wFMCommunicate OK [12:27:12]SAM_PROTO_ClearQueue done [12:27:12]KKMCreateOFDPacket [12:27:12]OFDProtocolAddRootSTLVToBuf [12:27:12]FM_MakeSignedData [12:27:12]FM_MakeSignedData [12:27:12]SAM_PROTO_SignData [12:27:12]wFMCommunicate request_size=4 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 0D 01 02 [12:27:12]Write to MH i2c: E2 08 00 04 17 80 0D 01 02 00 00 00 00 94 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [12:27:12]RAPDU: 90 00 [12:27:12]wFMCommunicate OK [12:27:12]wFMCommunicate request_size=255 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 A1 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 82 02 00 35 04 06 00 45 4F EB BC [12:27:12]Write to MH i2c: E2 02 01 05 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 A1 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 82 02 00 35 04 06 00 45 4F EB BC 00 00 98 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [12:27:12]RAPDU: 90 00 [12:27:12]wFMCommunicate OK [12:27:12]wFMCommunicate request_size=7 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 0D 02 02 02 3C 11 [12:27:12]Write to MH i2c: E2 0A 00 06 17 80 0D 02 02 02 00 3C 11 00 00 E8 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [12:27:12]RAPDU: 90 00 [12:27:12]wFMCommunicate OK [12:27:12]wFMCommunicate request_size=4 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 0D 03 02 [12:27:12]Write to MH i2c: E2 08 00 07 17 80 0D 03 02 00 00 00 00 99 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 0B 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 0B 00 07 17 00 9F 50 4C CC 1D E3 D1 D4 90 00 46 [12:27:12]RAPDU: 9F 50 4C CC 1D E3 D1 D4 90 00 [12:27:12]wFMCommunicate OK [12:27:12]SAM_PROTO_SignData done [12:27:12]FM_MakeSignedData done [12:27:12]CreateOFDProtocolMessage [12:27:12]wFMCommunicate request_size=4 [12:27:12]MH_SAM_APDU [12:27:12]CAPDU: 80 11 00 00 [12:27:12]Write to MH i2c: E2 08 00 08 17 80 11 00 00 00 00 00 00 99 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:12]Read from MH i2c: E2 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 17 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: E2 17 00 08 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EF [12:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:12]wFMCommunicate OK [12:27:12]CreateOFDProtocolMessage done [12:27:12]OFDSenderStorePacket 164573 [12:27:12]StoreOFDPacket docnum=164573 [12:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5A E7 04 01 B2 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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 A1 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 82 02 00 35 04 06 00 45 4F EB BC 3C 11 9F 50 4C CC 1D E3 D1 D4 [12:27:12]CheckFolder [12:27:12]dirname=/storage/ofd_packets [12:27:12]CheckFolder done [12:27:12]ProducePacketName [12:27:12]name=ofd_packets/00164573 [12:27:12]NVStorageSaveData ofd_packets/00164573 [12:27:12]File name is /storage/ofd_packets/00164573 [12:27:12]Write 298 bytes [12:27:12]NVStorageSaveData done [12:27:12]OFDSenderStorePacket done [12:27:12]KKMCreateOFDPacket done [12:27:12]NVStorageSaveData kkm_last_timestamp [12:27:12]File name is /storage/kkm_last_timestamp [12:27:12]Write 4 bytes [12:27:12]NVStorageSaveData done [12:27:12]ExternCall_PrintAddStr [12:27:12]wPrintStart [12:27:12]Write to MH i2c: 01 00 00 09 17 20 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 FF 0F 35 [12:27:12]RasterBufferAndPrint [12:27:12]line Счет N : (1)458664 [12:27:12]line ИНН: 02508201610067 [12:27:12]line Контрольно-Кассовый Чек [12:27:12]line ПРОДАЖА [12:27:12]line ТРК (МРК, ГНК) : 21 [12:27:12]line Товар: 2710194210 [12:27:12]line ДТ-К-5 [12:27:12]line 10.000 * 71.90 [12:27:12]line = 719.00 [12:27:12]line НДС 12% НСП 1% [12:27:12]line > о реализуемом товаре [12:27:12]line ИТОГО: 719.00 [12:27:12]line НСП 1% : 6.36 [12:27:12]line НДС 12% : 76.35 [12:27:12]line Наличными: 719.00 [12:27:12]line Безнал.: 0.00 [12:27:12]line Место: АЗС № 72 "Партнер Нефть" [12:27:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:27:12]line СНО: Общий режим [12:27:12]line Чек 133 13.07.2024 12:27 [12:27:12]line Смена: 446 ФФД: 1.0 [12:27:12]line ЗНМ: 0300000160 [12:27:12]line РНМ: 0000000000090829 [12:27:12]line Версия ККМ: 001 [12:27:12]line ФМ: 0000000000874718 [12:27:12]line ФД: 164573 [12:27:12]line ФПД: 76209559714833 [12:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122713&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164573&fm=76209559714833&tin=02508201610067®Number=0000000000090829&sum=71900 [12:27:13]OFD Sender: Processing packet 164573 [packets to send 104, broken 103] [12:27:13]ProducePacketName [12:27:13]name=ofd_packets/00164573 [12:27:13]OFD Sender: To server: pG, [12:27:13]CommunicateWithHost lk.salyk.kg:30040 [12:27:13]ConnectInit lk.salyk.kg [12:27:13]written 0, free lines is 4095 [12:27:13]Connected sock=10 [12:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5A E7 04 01 B2 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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 A1 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 82 02 00 35 04 06 00 45 4F EB BC 3C 11 9F 50 4C CC 1D E3 D1 D4 [12:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BF 8C 47 00 1A 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 34 37 31 38 10 04 04 00 DD 82 02 00 F4 03 04 00 32 19 92 66 B6 04 01 00 00 8D E8 43 63 ED 57 56 53 [12:27:13]CommunicateWithHost err = 0 [12:27:13]CheckOFDResponse [12:27:13]1017 (14) - 77093643461234 [12:27:13]1041 (16) - 0000000000874718 [12:27:13]1040 (4) - 164573 [12:27:13]1012 (4) - 13.07.2024 06:05 [12:27:13]1206 (1) - 0 [12:27:13]OFD Sender: Remove packet 164573 [12:27:13]ProducePacketName [12:27:13]name=ofd_packets/00164573 [12:27:13]NVStorageDeleteData [12:27:13]Write to MH i2c: 01 00 00 30 17 47 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 07 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 1F 0D 7A [12:27:13]RasterBufferAndPrint [12:27:13]line [12:27:13]line [12:27:13]line [12:27:13]line [12:27:13]line [12:27:13]written 0, free lines is 3365 [12:27:13]MH_Cut [12:27:13]Write to MH i2c: D1 01 00 37 17 01 20 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: D1 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: D1 01 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: D1 01 00 37 17 00 1F [12:27:13]Write to MH i2c: 01 00 00 38 17 4F [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:14]OFD Sender: No OFD packet to send [12:27:14]*** Cut start [12:27:14]*** Partial cut [12:27:14]*** CUTSNS_PIN = 1 [12:27:14]*** CUTSNS_PIN = 0 [12:27:14]*** Brake cut motor [12:27:14]Read from MH i2c: 01 [12:27:14]MH_I2C_Read... [12:27:14]*** Stop cut motor [12:27:14]*** Cut end [12:27:14]Read from MH i2c: 01 07 00 [12:27:14]MH_I2C_Read... [12:27:14]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 FF 0F 64 [12:27:14]process_action close_receipt done [12:27:14]requested_data is exist [12:27:14]produce_requested_data [12:27:14]requested_item fm.sn is exist - process it [12:27:14]wFMCommunicate request_size=4 [12:27:14]MH_SAM_APDU [12:27:14]CAPDU: 80 11 00 00 [12:27:14]Write to MH i2c: E2 08 00 39 17 80 11 00 00 00 00 00 00 CA [12:27:14]Write i2c OK [12:27:14]MH_I2C_Read... [12:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:15]Read from MH i2c: E2 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 17 00 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 17 00 39 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [12:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:15]wFMCommunicate OK [12:27:15]requested_item fd.num is exist - process it [12:27:15]SAM_PROTO_GetFieldsCounters [12:27:15]wFMCommunicate request_size=4 [12:27:15]MH_SAM_APDU [12:27:15]CAPDU: 80 13 00 00 [12:27:15]Write to MH i2c: E2 08 00 3A 17 80 13 00 00 00 00 00 00 CD [12:27:15]Write i2c OK [12:27:15]MH_I2C_Read... [12:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:15]Read from MH i2c: E2 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 62 00 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 62 00 3A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 82 02 00 0E 04 04 00 BE 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 A3 [12:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 82 02 00 0E 04 04 00 BE 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 [12:27:15]wFMCommunicate OK [12:27:15]SAM_PROTO_GetFieldsCounters done [12:27:15]requested_item shift.num is exist - process it [12:27:15]requested_item shift.opened is exist - process it [12:27:15]req_shift_opened [12:27:15]FM_GetShiftState [12:27:15]SAM_PROTO_GetShiftState [12:27:15]wFMCommunicate request_size=4 [12:27:15]MH_SAM_APDU [12:27:15]CAPDU: 80 13 01 00 [12:27:15]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [12:27:15]Write i2c OK [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 [12:27:15]MH_I2C_Read... [12:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:15]Read from MH i2c: E2 0E 00 [12:27:15]MH_I2C_Read... [12:27:15]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B0 [12:27:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:27:15]wFMCommunicate OK [12:27:15]SAM_PROTO_GetShiftState done [12:27:15]FM_GetShiftState done [12:27:15]req_shift_opened done [12:27:15]requested_item shift.open_date is exist - process it [12:27:15]req_shift_open_date [12:27:15]req_shift_open_date done [12:27:15]produce_requested_data done [12:27:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164573,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:27:15]process_action_free close_receipt [12:27:15]json_value_free [12:27:15]json_value_free done [12:27:15]process_json_proto returns [12:27:15]Send response to host [12:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164573,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:27:15]free response buf [12:27:15]execute_script done [12:27:15]execute_script returns [12:27:15]free content buf [12:27:15]Sock 9.Close socket [12:27:15]Sock 9.Thread stoped [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:37]accept exits with 7 [12:27:37]New connection [12:27:37]New thread 3067293028 created [12:27:37]Thread 3067149668 joined [12:27:37]Waiting for new connection... [12:27:37] Sock 7.Parse request [12:27:37]Sock 7.Check first char [12:27:37]Sock 7.First char is OK [12:27:37]request: POST /json_proto HTTP/1.0 [12:27:37]Method: POST [12:27:37]URL: /json_proto [12:27:37]Method is POST - this is cgi request [12:27:37]url: /json_proto [12:27:37]query_string will be loaded in cgi processing [12:27:37]execute_cgi json_proto POST (null) [12:27:37]execute_cgi path=json_proto method=POST [12:27:37]POST find Content-Length [12:27:37]Host: 172.17.56.4:8080 [12:27:37]Content-Length: 677 [12:27:37]Content-Type: application/json [12:27:37] [12:27:37]POST finish read [12:27:37]Found Content-Length = 677 [12:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:37]execute_script... [12:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:37]POST & json_proto [12:27:37]process_json_proto [12:27:37]json parsed OK: [12:27:37]protocol is kg_v1.0 [12:27:37]action value=close_receipt [12:27:37]process_action close_receipt [12:27:37]cmd_close_receipt [12:27:37]MH_GetDate [12:27:37]Write to MH i2c: F0 00 00 3C 17 42 [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: F0 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: F0 09 00 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: F0 09 00 3C 17 00 BB 72 92 66 C9 DC B2 64 2B [12:27:37]GetLastDocTimeStamp 1720873633 [12:27:37]current date 1720873659 [12:27:37]FM_GetShiftState [12:27:37]SAM_PROTO_GetShiftState [12:27:37]wFMCommunicate request_size=4 [12:27:37]MH_SAM_APDU [12:27:37]CAPDU: 80 13 01 00 [12:27:37]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:37]Read from MH i2c: E2 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: E2 0E 00 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B2 [12:27:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:27:37]wFMCommunicate OK [12:27:37]SAM_PROTO_GetShiftState done [12:27:37]FM_GetShiftState done [12:27:37]opened in 1720831249 [12:27:37]opened+sec_in_day 1720917649 [12:27:37]quantity*price = 20003 [12:27:37]sum+1 = 20004 [12:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 134 13.07.2024 12:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164574 ФПД: 188712606190394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122739&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164574&fm=188712606190394&tin=02508201610067®Number=0000000000090829&sum=20000 [12:27:38]StoreToDocumentArchive [12:27:38]shift 446 fd 164574 [12:27:38]save to /storage/0446/doc_00164574 [12:27:38]save last doc name /storage/0446/doc_00164574 to /storage/kkm_last_doc_name [12:27:38]save OK [12:27:38]Clear old archive folders... [12:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:38]tlvbuf is 014271A0 [12:27:38]SAM_PROTO_ClearQueue [12:27:38]wFMCommunicate request_size=4 [12:27:38]MH_SAM_APDU [12:27:38]CAPDU: 80 09 00 00 [12:27:38]Write to MH i2c: E2 08 00 4A 17 80 09 00 00 00 00 00 00 D3 [12:27:38]Write i2c OK [12:27:38]MH_I2C_Read... [12:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:38]Read from MH i2c: E2 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: E2 03 00 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [12:27:38]RAPDU: 90 00 [12:27:38]wFMCommunicate OK [12:27:38]SAM_PROTO_ClearQueue done [12:27:38]KKMCreateOFDPacket [12:27:38]OFDProtocolAddRootSTLVToBuf [12:27:38]FM_MakeSignedData [12:27:38]FM_MakeSignedData [12:27:38]SAM_PROTO_SignData [12:27:38]wFMCommunicate request_size=4 [12:27:38]MH_SAM_APDU [12:27:38]CAPDU: 80 0D 01 02 [12:27:38]Write to MH i2c: E2 08 00 4B 17 80 0D 01 02 00 00 00 00 DB [12:27:38]Write i2c OK [12:27:38]MH_I2C_Read... [12:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]wFMCommunicate request_size=255 [12:27:39]MH_SAM_APDU [12: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BB 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 82 02 00 35 04 06 00 AB [12:27:39]Write to MH i2c: E2 02 01 4C 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BB 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 82 02 00 35 04 06 00 AB 00 00 6C [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]OFD Sender: No OFD packet to send [12:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]wFMCommunicate request_size=10 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 0D 02 02 05 A2 13 DB 4B 3A [12:27:39]Write to MH i2c: E2 0D 00 4D 17 80 0D 02 02 05 00 A2 13 DB 4B 3A 00 00 FD [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 0D 03 02 [12:27:39]Write to MH i2c: E2 08 00 4E 17 80 0D 03 02 00 00 00 00 E0 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0B 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0B 00 4E 17 00 31 A1 9A 12 E8 5C B5 E6 90 00 3E [12:27:39]RAPDU: 31 A1 9A 12 E8 5C B5 E6 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_SignData done [12:27:39]FM_MakeSignedData done [12:27:39]CreateOFDProtocolMessage [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 11 00 00 [12:27:39]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 17 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [12:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:39]wFMCommunicate OK [12:27:39]CreateOFDProtocolMessage done [12:27:39]OFDSenderStorePacket 164574 [12:27:39]StoreOFDPacket docnum=164574 [12:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 F5 07 01 EB 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BB 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 82 02 00 35 04 06 00 AB A2 13 DB 4B 3A 31 A1 9A 12 E8 5C B5 E6 [12:27:39]CheckFolder [12:27:39]dirname=/storage/ofd_packets [12:27:39]CheckFolder done [12:27:39]ProducePacketName [12:27:39]name=ofd_packets/00164574 [12:27:39]NVStorageSaveData ofd_packets/00164574 [12:27:39]File name is /storage/ofd_packets/00164574 [12:27:39]Write 301 bytes [12:27:39]NVStorageSaveData done [12:27:39]OFDSenderStorePacket done [12:27:39]KKMCreateOFDPacket done [12:27:39]NVStorageSaveData kkm_last_timestamp [12:27:39]File name is /storage/kkm_last_timestamp [12:27:39]Write 4 bytes [12:27:39]NVStorageSaveData done [12:27:39]ExternCall_PrintAddStr [12:27:39]wPrintStart [12:27:39]Write to MH i2c: 01 00 00 50 17 67 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: 01 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: 01 07 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [12:27:39]RasterBufferAndPrint [12:27:39]line Счет N : (1)458665 [12:27:39]line ИНН: 02508201610067 [12:27:39]line Контрольно-Кассовый Чек [12:27:39]line ПРОДАЖА [12:27:39]line ТРК (МРК, ГНК) : 12 [12:27:39]line Товар: 2710124130 [12:27:39]line Аи-92-К-5 [12:27:39]line 3.040 * 65.80 [12:27:39]line = 200.03 [12:27:39]line НДС 12% НСП 1% [12:27:39]line > о реализуемом товаре [12:27:39]line ОКРУГЛЕНИЕ: -0.03 [12:27:39]line ИТОГО: 200.00 [12:27:39]line Внесено: 200.00 [12:27:39]line СДАЧА: 0.00 [12:27:39]line НСП 1% : 1.77 [12:27:39]line НДС 12% : 21.24 [12:27:39]line Наличными: 200.00 [12:27:39]line Безнал.: 0.00 [12:27:39]line Место: АЗС № 72 "Партнер Нефть" [12:27:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:27:39]line СНО: Общий режим [12:27:39]line Чек 134 13.07.2024 12:27 [12:27:39]line Смена: 446 ФФД: 1.0 [12:27:39]line ЗНМ: 0300000160 [12:27:39]line РНМ: 0000000000090829 [12:27:39]line Версия ККМ: 001 [12:27:39]line ФМ: 0000000000874718 [12:27:39]line ФД: 164574 [12:27:39]line ФПД: 188712606190394 [12:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122739&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164574&fm=188712606190394&tin=02508201610067®Number=0000000000090829&sum=20000 [12:27:39]OFD Sender: Processing packet 164574 [packets to send 104, broken 103] [12:27:39]ProducePacketName [12:27:39]name=ofd_packets/00164574 [12:27:39]OFD Sender: To server: pG, [12:27:39]CommunicateWithHost lk.salyk.kg:30040 [12:27:39]ConnectInit lk.salyk.kg [12:27:39]written 0, free lines is 4095 [12:27:39]Connected sock=10 [12:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 F5 07 01 EB 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BB 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 82 02 00 35 04 06 00 AB A2 13 DB 4B 3A 31 A1 9A 12 E8 5C B5 E6 [12:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 74 47 00 03 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 82 02 00 F4 03 04 00 4C 19 92 66 B6 04 01 00 00 3C 64 69 EE B1 D7 74 03 [12:27:40]CommunicateWithHost err = 0 [12:27:40]CheckOFDResponse [12:27:40]1017 (14) - 77093643461234 [12:27:40]1041 (16) - 0000000000874718 [12:27:40]1040 (4) - 164574 [12:27:40]1012 (4) - 13.07.2024 06:06 [12:27:40]1206 (1) - 0 [12:27:40]OFD Sender: Remove packet 164574 [12:27:40]ProducePacketName [12:27:40]name=ofd_packets/00164574 [12:27:40]NVStorageDeleteData [12:27:40]Write to MH i2c: 01 00 00 7A 17 91 [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 7A 17 00 00 00 00 00 F0 0C 94 [12:27:40]RasterBufferAndPrint [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]written 0, free lines is 3322 [12:27:40]MH_Cut [12:27:40]Write to MH i2c: D1 01 00 81 17 01 6A [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 01 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 01 00 81 17 00 69 [12:27:40]Write to MH i2c: 01 00 00 82 17 99 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]OFD Sender: No OFD packet to send [12:27:40]*** Cut start [12:27:40]*** Partial cut [12:27:40]*** CUTSNS_PIN = 1 [12:27:40]*** CUTSNS_PIN = 0 [12:27:41]*** Brake cut motor [12:27:41]Read from MH i2c: 01 [12:27:41]MH_I2C_Read... [12:27:41]*** Stop cut motor [12:27:41]*** Cut end [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 82 17 00 00 00 00 00 FF 0F AE [12:27:41]process_action close_receipt done [12:27:41]requested_data is exist [12:27:41]produce_requested_data [12:27:41]requested_item fm.sn is exist - process it [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 11 00 00 [12:27:41]Write to MH i2c: E2 08 00 83 17 80 11 00 00 00 00 00 00 14 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 17 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 17 00 83 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [12:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:41]wFMCommunicate OK [12:27:41]requested_item fd.num is exist - process it [12:27:41]SAM_PROTO_GetFieldsCounters [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 13 00 00 [12:27:41]Write to MH i2c: E2 08 00 84 17 80 13 00 00 00 00 00 00 17 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 62 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 62 00 84 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [12:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:41]wFMCommunicate OK [12:27:41]SAM_PROTO_GetFieldsCounters done [12:27:41]requested_item shift.num is exist - process it [12:27:41]requested_item shift.opened is exist - process it [12:27:41]req_shift_opened [12:27:41]FM_GetShiftState [12:27:41]SAM_PROTO_GetShiftState [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 13 01 00 [12:27:41]Write to MH i2c: E2 08 00 85 17 80 13 01 00 00 00 00 00 19 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:41]Read from MH i2c: E2 0E 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 0E 00 85 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FA [12:27:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:27:41]wFMCommunicate OK [12:27:41]SAM_PROTO_GetShiftState done [12:27:41]FM_GetShiftState done [12:27:41]req_shift_opened done [12:27:41]requested_item shift.open_date is exist - process it [12:27:41]req_shift_open_date [12:27:41]req_shift_open_date done [12:27:41]produce_requested_data done [12:27:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164574,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:27:41]process_action_free close_receipt [12:27:41]json_value_free [12:27:41]json_value_free done [12:27:41]process_json_proto returns [12:27:41]Send response to host [12:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164574,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:27:41]free response buf [12:27:41]execute_script done [12:27:41]execute_script returns [12:27:41]free content buf [12:27:41]Sock 7.Close socket [12:27:41]Sock 7.Thread stoped [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:13]accept exits with 9 [12:28:13]New connection [12:28:13]New thread 3067149668 created [12:28:13]Thread 3067293028 joined [12:28:13]Waiting for new connection... [12:28:13] Sock 9.Parse request [12:28:13]Sock 9.Check first char [12:28:13]Sock 9.First char is OK [12:28:13]request: POST /json_proto HTTP/1.0 [12:28:13]Method: POST [12:28:13]URL: /json_proto [12:28:13]Method is POST - this is cgi request [12:28:13]url: /json_proto [12:28:13]query_string will be loaded in cgi processing [12:28:13]execute_cgi json_proto POST (null) [12:28:13]execute_cgi path=json_proto method=POST [12:28:13]POST find Content-Length [12:28:13]Host: 172.17.56.4:8080 [12:28:13]Content-Length: 677 [12:28:13]Content-Type: application/json [12:28:13] [12:28:13]POST finish read [12:28:13]Found Content-Length = 677 [12:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:28:13]execute_script... [12:28: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)458666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:28:13]POST & json_proto [12:28:13]process_json_proto [12:28:13]json parsed OK: [12:28:13]protocol is kg_v1.0 [12:28:13]action value=close_receipt [12:28:13]process_action close_receipt [12:28:13]cmd_close_receipt [12:28:13]MH_GetDate [12:28:13]Write to MH i2c: F0 00 00 86 17 8C [12:28:13]Write i2c OK [12:28:13]MH_I2C_Read... [12:28:13]Read from MH i2c: F0 [12:28:13]MH_I2C_Read... [12:28:13]Read from MH i2c: F0 09 00 [12:28:13]MH_I2C_Read... [12:28:13]Read from MH i2c: F0 09 00 86 17 00 DF 72 92 66 C9 DC B2 64 99 [12:28:13]GetLastDocTimeStamp 1720873659 [12:28:13]current date 1720873695 [12:28:13]FM_GetShiftState [12:28:13]SAM_PROTO_GetShiftState [12:28:13]wFMCommunicate request_size=4 [12:28:13]MH_SAM_APDU [12:28:13]CAPDU: 80 13 01 00 [12:28:13]Write to MH i2c: E2 08 00 87 17 80 13 01 00 00 00 00 00 1B [12:28:13]Write i2c OK [12:28:13]MH_I2C_Read... [12:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:13]Read from MH i2c: E2 [12:28:13]MH_I2C_Read... [12:28:13]Read from MH i2c: E2 0E 00 [12:28:13]MH_I2C_Read... [12:28:13]Read from MH i2c: E2 0E 00 87 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FC [12:28:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:28:13]wFMCommunicate OK [12:28:13]SAM_PROTO_GetShiftState done [12:28:13]FM_GetShiftState done [12:28:13]opened in 1720831249 [12:28:13]opened+sec_in_day 1720917649 [12:28:13]quantity*price = 50008 [12:28:13]sum+1 = 50009 [12:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 135 13.07.2024 12:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164575 ФПД: 143534783626161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122815&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164575&fm=143534783626161&tin=02508201610067®Number=0000000000090829&sum=50000 [12:28:14]StoreToDocumentArchive [12:28:14]shift 446 fd 164575 [12:28:14]save to /storage/0446/doc_00164575 [12:28:14]save last doc name /storage/0446/doc_00164575 to /storage/kkm_last_doc_name [12:28:14]save OK [12:28:14]Clear old archive folders... [12:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:14]tlvbuf is 014DD150 [12:28:14]SAM_PROTO_ClearQueue [12:28:14]wFMCommunicate request_size=4 [12:28:14]MH_SAM_APDU [12:28:14]CAPDU: 80 09 00 00 [12:28:14]Write to MH i2c: E2 08 00 94 17 80 09 00 00 00 00 00 00 1D [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:14]Read from MH i2c: E2 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [12:28:14]RAPDU: 90 00 [12:28:14]wFMCommunicate OK [12:28:14]SAM_PROTO_ClearQueue done [12:28:14]KKMCreateOFDPacket [12:28:14]OFDProtocolAddRootSTLVToBuf [12:28:14]FM_MakeSignedData [12:28:14]FM_MakeSignedData [12:28:14]SAM_PROTO_SignData [12:28:14]wFMCommunicate request_size=4 [12:28:14]MH_SAM_APDU [12:28:14]CAPDU: 80 0D 01 02 [12:28:14]Write to MH i2c: E2 08 00 95 17 80 0D 01 02 00 00 00 00 25 [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:14]Read from MH i2c: E2 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [12:28:14]RAPDU: 90 00 [12:28:14]wFMCommunicate OK [12:28:14]wFMCommunicate request_size=255 [12:28:14]MH_SAM_APDU [12:28: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 87 00 00 00 F4 03 04 00 DF 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 82 02 00 35 04 06 00 82 [12:28:14]Write to MH i2c: E2 02 01 96 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 87 00 00 00 F4 03 04 00 DF 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 82 02 00 35 04 06 00 82 00 00 12 [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:14]Read from MH i2c: E2 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 [12:28:14]MH_I2C_Read... [12:28:14]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [12:28:14]RAPDU: 90 00 [12:28:14]wFMCommunicate OK [12:28:14]wFMCommunicate request_size=10 [12:28:14]MH_SAM_APDU [12:28:14]CAPDU: 80 0D 02 02 05 8B 4B CA 7B B1 [12:28:14]Write to MH i2c: E2 0D 00 97 17 80 0D 02 02 05 00 8B 4B CA 7B B1 00 00 FE [12:28:14]Write i2c OK [12:28:14]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [12:28:15]RAPDU: 90 00 [12:28:15]wFMCommunicate OK [12:28:15]wFMCommunicate request_size=4 [12:28:15]MH_SAM_APDU [12:28:15]CAPDU: 80 0D 03 02 [12:28:15]Write to MH i2c: E2 08 00 98 17 80 0D 03 02 00 00 00 00 2A [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 0B 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 0B 00 98 17 00 AC 2A 48 BC 07 02 AE 0D 90 00 C9 [12:28:15]RAPDU: AC 2A 48 BC 07 02 AE 0D 90 00 [12:28:15]wFMCommunicate OK [12:28:15]SAM_PROTO_SignData done [12:28:15]FM_MakeSignedData done [12:28:15]CreateOFDProtocolMessage [12:28:15]wFMCommunicate request_size=4 [12:28:15]MH_SAM_APDU [12:28:15]CAPDU: 80 11 00 00 [12:28:15]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:15]Read from MH i2c: E2 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 17 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [12:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:28:15]wFMCommunicate OK [12:28:15]CreateOFDProtocolMessage done [12:28:15]OFDSenderStorePacket 164575 [12:28:15]StoreOFDPacket docnum=164575 [12:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 FB 07 01 B7 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 87 00 00 00 F4 03 04 00 DF 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 82 02 00 35 04 06 00 82 8B 4B CA 7B B1 AC 2A 48 BC 07 02 AE 0D [12:28:15]CheckFolder [12:28:15]dirname=/storage/ofd_packets [12:28:15]CheckFolder done [12:28:15]ProducePacketName [12:28:15]name=ofd_packets/00164575 [12:28:15]NVStorageSaveData ofd_packets/00164575 [12:28:15]File name is /storage/ofd_packets/00164575 [12:28:15]Write 301 bytes [12:28:15]NVStorageSaveData done [12:28:15]OFDSenderStorePacket done [12:28:15]KKMCreateOFDPacket done [12:28:15]NVStorageSaveData kkm_last_timestamp [12:28:15]File name is /storage/kkm_last_timestamp [12:28:15]Write 4 bytes [12:28:15]NVStorageSaveData done [12:28:15]ExternCall_PrintAddStr [12:28:15]wPrintStart [12:28:15]Write to MH i2c: 01 00 00 9A 17 B1 [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 07 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 FF 0F C6 [12:28:15]RasterBufferAndPrint [12:28:15]line Счет N : (1)458666 [12:28:15]line ИНН: 02508201610067 [12:28:15]line Контрольно-Кассовый Чек [12:28:15]line ПРОДАЖА [12:28:15]line ТРК (МРК, ГНК) : 12 [12:28:15]line Товар: 2710124130 [12:28:15]line Аи-92-К-5 [12:28:15]line 7.600 * 65.80 [12:28:15]line = 500.08 [12:28:15]line НДС 12% НСП 1% [12:28:15]line > о реализуемом товаре [12:28:15]line ОКРУГЛЕНИЕ: -0.08 [12:28:15]line ИТОГО: 500.00 [12:28:15]line Внесено: 500.00 [12:28:15]line СДАЧА: 0.00 [12:28:15]line НСП 1% : 4.42 [12:28:15]line НДС 12% : 53.11 [12:28:15]line Наличными: 500.00 [12:28:15]line Безнал.: 0.00 [12:28:15]line Место: АЗС № 72 "Партнер Нефть" [12:28:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:28:15]line СНО: Общий режим [12:28:15]line Чек 135 13.07.2024 12:28 [12:28:15]line Смена: 446 ФФД: 1.0 [12:28:15]line ЗНМ: 0300000160 [12:28:15]line РНМ: 0000000000090829 [12:28:15]line Версия ККМ: 001 [12:28:15]line ФМ: 0000000000874718 [12:28:15]line ФД: 164575 [12:28:15]line ФПД: 143534783626161 [12:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122815&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164575&fm=143534783626161&tin=02508201610067®Number=0000000000090829&sum=50000 [12:28:15]written 0, free lines is 4095 [12:28:15]OFD Sender: Processing packet 164575 [packets to send 104, broken 103] [12:28:15]ProducePacketName [12:28:15]name=ofd_packets/00164575 [12:28:15]OFD Sender: To server: pG, [12:28:15]CommunicateWithHost lk.salyk.kg:30040 [12:28:15]ConnectInit lk.salyk.kg [12:28:15]Connected sock=10 [12:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 FB 07 01 B7 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 87 00 00 00 F4 03 04 00 DF 72 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 82 02 00 35 04 06 00 82 8B 4B CA 7B B1 AC 2A 48 BC 07 02 AE 0D [12:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 8E 47 00 04 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 82 02 00 F4 03 04 00 70 19 92 66 B6 04 01 00 00 EF 6A 2F D0 0F 56 4F 28 [12:28:15]CommunicateWithHost err = 0 [12:28:15]CheckOFDResponse [12:28:15]1017 (14) - 77093643461234 [12:28:15]1041 (16) - 0000000000874718 [12:28:15]1040 (4) - 164575 [12:28:15]1012 (4) - 13.07.2024 06:06 [12:28:15]1206 (1) - 0 [12:28:15]OFD Sender: Remove packet 164575 [12:28:15]ProducePacketName [12:28:15]name=ofd_packets/00164575 [12:28:15]NVStorageDeleteData [12:28:15]Write to MH i2c: 01 00 00 C4 17 DB [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 07 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: 01 07 00 C4 17 00 00 00 00 00 F7 0C E5 [12:28:15]RasterBufferAndPrint [12:28:15]line [12:28:15]line [12:28:15]line [12:28:15]line [12:28:15]line [12:28:15]written 0, free lines is 3323 [12:28:15]MH_Cut [12:28:15]Write to MH i2c: D1 01 00 CB 17 01 B4 [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: D1 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: D1 01 00 [12:28:15]MH_I2C_Read... [12:28:15]Read from MH i2c: D1 01 00 CB 17 00 B3 [12:28:15]Write to MH i2c: 01 00 00 CC 17 E3 [12:28:15]Write i2c OK [12:28:15]MH_I2C_Read... [12:28:16]OFD Sender: No OFD packet to send [12:28:16]*** Cut start [12:28:16]*** Partial cut [12:28:16]*** CUTSNS_PIN = 1 [12:28:16]*** CUTSNS_PIN = 0 [12:28:16]*** Brake cut motor [12:28:17]Read from MH i2c: 01 [12:28:17]MH_I2C_Read... [12:28:17]*** Stop cut motor [12:28:17]*** Cut end [12:28:17]Read from MH i2c: 01 07 00 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 FF 0F F8 [12:28:17]process_action close_receipt done [12:28:17]requested_data is exist [12:28:17]produce_requested_data [12:28:17]requested_item fm.sn is exist - process it [12:28:17]wFMCommunicate request_size=4 [12:28:17]MH_SAM_APDU [12:28:17]CAPDU: 80 11 00 00 [12:28:17]Write to MH i2c: E2 08 00 CD 17 80 11 00 00 00 00 00 00 5E [12:28:17]Write i2c OK [12:28:17]MH_I2C_Read... [12:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:17]Read from MH i2c: E2 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 17 00 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 17 00 CD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [12:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:28:17]wFMCommunicate OK [12:28:17]requested_item fd.num is exist - process it [12:28:17]SAM_PROTO_GetFieldsCounters [12:28:17]wFMCommunicate request_size=4 [12:28:17]MH_SAM_APDU [12:28:17]CAPDU: 80 13 00 00 [12:28:17]Write to MH i2c: E2 08 00 CE 17 80 13 00 00 00 00 00 00 61 [12:28:17]Write i2c OK [12:28:17]MH_I2C_Read... [12:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:17]Read from MH i2c: E2 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 62 00 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 62 00 CE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 82 02 00 0E 04 04 00 BE 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 3F [12:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 82 02 00 0E 04 04 00 BE 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 [12:28:17]wFMCommunicate OK [12:28:17]SAM_PROTO_GetFieldsCounters done [12:28:17]requested_item shift.num is exist - process it [12:28:17]requested_item shift.opened is exist - process it [12:28:17]req_shift_opened [12:28:17]FM_GetShiftState [12:28:17]SAM_PROTO_GetShiftState [12:28:17]wFMCommunicate request_size=4 [12:28:17]MH_SAM_APDU [12:28:17]CAPDU: 80 13 01 00 [12:28:17]Write to MH i2c: E2 08 00 CF 17 80 13 01 00 00 00 00 00 63 [12:28:17]Write i2c OK [12:28:17]MH_I2C_Read... [12:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:17]Read from MH i2c: E2 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 0E 00 [12:28:17]MH_I2C_Read... [12:28:17]Read from MH i2c: E2 0E 00 CF 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 44 [12:28:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:28:17]wFMCommunicate OK [12:28:17]SAM_PROTO_GetShiftState done [12:28:17]FM_GetShiftState done [12:28:17]req_shift_opened done [12:28:17]requested_item shift.open_date is exist - process it [12:28:17]req_shift_open_date [12:28:17]req_shift_open_date done [12:28:17]produce_requested_data done [12:28:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164575,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:28:17]process_action_free close_receipt [12:28:17]json_value_free [12:28:17]json_value_free done [12:28:17]process_json_proto returns [12:28:17]Send response to host [12:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164575,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:28:17]free response buf [12:28:17]execute_script done [12:28:17]execute_script returns [12:28:17]free content buf [12:28:17]Sock 9.Close socket [12:28:17]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:18]accept exits with 7 [12:31:18]New connection [12:31:18]New thread 3067293028 created [12:31:18]Thread 3067149668 joined [12:31:18]Waiting for new connection... [12:31:18] Sock 7.Parse request [12:31:18]Sock 7.Check first char [12:31:18]Sock 7.First char is OK [12:31:18]request: POST /json_proto HTTP/1.0 [12:31:18]Method: POST [12:31:18]URL: /json_proto [12:31:18]Method is POST - this is cgi request [12:31:18]url: /json_proto [12:31:18]query_string will be loaded in cgi processing [12:31:18]execute_cgi json_proto POST (null) [12:31:18]execute_cgi path=json_proto method=POST [12:31:18]POST find Content-Length [12:31:18]Host: 172.17.56.4:8080 [12:31:18]Content-Length: 677 [12:31:18]Content-Type: application/json [12:31:18] [12:31:18]POST finish read [12:31:18]Found Content-Length = 677 [12:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:18]execute_script... [12:31:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:18]POST & json_proto [12:31:18]process_json_proto [12:31:18]json parsed OK: [12:31:18]protocol is kg_v1.0 [12:31:18]action value=close_receipt [12:31:18]process_action close_receipt [12:31:18]cmd_close_receipt [12:31:18]MH_GetDate [12:31:18]Write to MH i2c: F0 00 00 D0 17 D6 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 09 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: F0 09 00 D0 17 00 98 73 92 66 C9 DC B2 64 9D [12:31:18]GetLastDocTimeStamp 1720873695 [12:31:18]current date 1720873880 [12:31:18]FM_GetShiftState [12:31:18]SAM_PROTO_GetShiftState [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 13 01 00 [12:31:18]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0E 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 46 [12:31:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:31:18]wFMCommunicate OK [12:31:18]SAM_PROTO_GetShiftState done [12:31:18]FM_GetShiftState done [12:31:18]opened in 1720831249 [12:31:18]opened+sec_in_day 1720917649 [12:31:18]quantity*price = 50008 [12:31:18]sum+1 = 50009 [12:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 136 13.07.2024 12:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164576 ФПД: 179536732259529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164576&fm=179536732259529&tin=02508201610067®Number=0000000000090829&sum=50000 [12:31:19]StoreToDocumentArchive [12:31:19]shift 446 fd 164576 [12:31:19]save to /storage/0446/doc_00164576 [12:31:19]save last doc name /storage/0446/doc_00164576 to /storage/kkm_last_doc_name [12:31:19]save OK [12:31:19]Clear old archive folders... [12:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:19]tlvbuf is 0146D890 [12:31:19]SAM_PROTO_ClearQueue [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 09 00 00 [12:31:19]Write to MH i2c: E2 08 00 DE 17 80 09 00 00 00 00 00 00 67 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]SAM_PROTO_ClearQueue done [12:31:19]KKMCreateOFDPacket [12:31:19]OFDProtocolAddRootSTLVToBuf [12:31:19]FM_MakeSignedData [12:31:19]FM_MakeSignedData [12:31:19]SAM_PROTO_SignData [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 0D 01 02 [12:31:19]Write to MH i2c: E2 08 00 DF 17 80 0D 01 02 00 00 00 00 6F [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [12:31:19]RAPDU: 90 00 [12:31:19]wFMCommunicate OK [12:31:19]wFMCommunicate request_size=255 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 88 00 00 00 F4 03 04 00 98 73 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 82 02 00 35 04 06 00 A3 [12:31:19]Write to MH i2c: E2 02 01 E0 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 88 00 00 00 F4 03 04 00 98 73 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 82 02 00 35 04 06 00 A3 00 00 39 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]wFMCommunicate request_size=10 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 02 02 05 49 A7 26 84 C9 [12:31:20]Write to MH i2c: E2 0D 00 E1 17 80 0D 02 02 05 00 49 A7 26 84 C9 00 00 DF [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [12:31:20]RAPDU: 90 00 [12:31:20]wFMCommunicate OK [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 0D 03 02 [12:31:20]Write to MH i2c: E2 08 00 E2 17 80 0D 03 02 00 00 00 00 74 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0B 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0B 00 E2 17 00 0E 74 C6 ED 2B 96 E6 D6 90 00 27 [12:31:20]RAPDU: 0E 74 C6 ED 2B 96 E6 D6 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_SignData done [12:31:20]FM_MakeSignedData done [12:31:20]CreateOFDProtocolMessage [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 11 00 00 [12:31:20]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 17 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [12:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:31:20]wFMCommunicate OK [12:31:20]CreateOFDProtocolMessage done [12:31:20]OFDSenderStorePacket 164576 [12:31:20]StoreOFDPacket docnum=164576 [12:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B 34 07 01 72 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 88 00 00 00 F4 03 04 00 98 73 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 82 02 00 35 04 06 00 A3 49 A7 26 84 C9 0E 74 C6 ED 2B 96 E6 D6 [12:31:20]CheckFolder [12:31:20]dirname=/storage/ofd_packets [12:31:20]CheckFolder done [12:31:20]ProducePacketName [12:31:20]name=ofd_packets/00164576 [12:31:20]NVStorageSaveData ofd_packets/00164576 [12:31:20]File name is /storage/ofd_packets/00164576 [12:31:20]Write 301 bytes [12:31:20]NVStorageSaveData done [12:31:20]OFDSenderStorePacket done [12:31:20]KKMCreateOFDPacket done [12:31:20]NVStorageSaveData kkm_last_timestamp [12:31:20]File name is /storage/kkm_last_timestamp [12:31:20]Write 4 bytes [12:31:20]NVStorageSaveData done [12:31:20]ExternCall_PrintAddStr [12:31:20]wPrintStart [12:31:20]Write to MH i2c: 01 00 00 E4 17 FB [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [12:31:20]RasterBufferAndPrint [12:31:20]line Счет N : (1)458667 [12:31:20]line ИНН: 02508201610067 [12:31:20]line Контрольно-Кассовый Чек [12:31:20]line ПРОДАЖА [12:31:20]line ТРК (МРК, ГНК) : 12 [12:31:20]line Товар: 2710124130 [12:31:20]line Аи-92-К-5 [12:31:20]line 7.600 * 65.80 [12:31:20]line = 500.08 [12:31:20]line НДС 12% НСП 1% [12:31:20]line > о реализуемом товаре [12:31:20]line ОКРУГЛЕНИЕ: -0.08 [12:31:20]line ИТОГО: 500.00 [12:31:20]line Внесено: 500.00 [12:31:20]line СДАЧА: 0.00 [12:31:20]line НСП 1% : 4.42 [12:31:20]line НДС 12% : 53.11 [12:31:20]line Наличными: 500.00 [12:31:20]line Безнал.: 0.00 [12:31:20]line Место: АЗС № 72 "Партнер Нефть" [12:31:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:31:20]line СНО: Общий режим [12:31:20]line Чек 136 13.07.2024 12:31 [12:31:20]line Смена: 446 ФФД: 1.0 [12:31:20]line ЗНМ: 0300000160 [12:31:20]line РНМ: 0000000000090829 [12:31:20]line Версия ККМ: 001 [12:31:20]line ФМ: 0000000000874718 [12:31:20]line ФД: 164576 [12:31:20]line ФПД: 179536732259529 [12:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164576&fm=179536732259529&tin=02508201610067®Number=0000000000090829&sum=50000 [12:31:20]OFD Sender: Processing packet 164576 [packets to send 104, broken 103] [12:31:20]ProducePacketName [12:31:20]name=ofd_packets/00164576 [12:31:20]OFD Sender: To server: pG, [12:31:20]CommunicateWithHost lk.salyk.kg:30040 [12:31:20]ConnectInit lk.salyk.kg [12:31:20]written 0, free lines is 4095 [12:31:20]Connected sock=10 [12:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B 34 07 01 72 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 88 00 00 00 F4 03 04 00 98 73 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 82 02 00 35 04 06 00 A3 49 A7 26 84 C9 0E 74 C6 ED 2B 96 E6 D6 [12:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F F1 47 00 4B B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 82 02 00 F4 03 04 00 29 1A 92 66 B6 04 01 00 00 06 E8 3B B6 58 53 0A 36 [12:31:20]CommunicateWithHost err = 0 [12:31:20]CheckOFDResponse [12:31:20]1017 (14) - 77093643461234 [12:31:20]1041 (16) - 0000000000874718 [12:31:20]1040 (4) - 164576 [12:31:20]1012 (4) - 13.07.2024 06:09 [12:31:20]1206 (1) - 0 [12:31:20]OFD Sender: Remove packet 164576 [12:31:20]ProducePacketName [12:31:20]name=ofd_packets/00164576 [12:31:20]NVStorageDeleteData [12:31:21]Write to MH i2c: 01 00 00 0E 18 26 [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: 01 07 00 0E 18 00 00 00 00 00 02 0D 3C [12:31:21]RasterBufferAndPrint [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]line [12:31:21]written 0, free lines is 3336 [12:31:21]MH_Cut [12:31:21]Write to MH i2c: D1 01 00 15 18 01 FF [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 01 00 [12:31:21]MH_I2C_Read... [12:31:21]Read from MH i2c: D1 01 00 15 18 00 FE [12:31:21]Write to MH i2c: 01 00 00 16 18 2E [12:31:21]Write i2c OK [12:31:21]MH_I2C_Read... [12:31:21]OFD Sender: No OFD packet to send [12:31:21]*** Cut start [12:31:21]*** Partial cut [12:31:21]*** CUTSNS_PIN = 1 [12:31:21]*** CUTSNS_PIN = 0 [12:31:22]*** Brake cut motor [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]*** Stop cut motor [12:31:22]*** Cut end [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 16 18 00 00 00 00 00 FF 0F 43 [12:31:22]process_action close_receipt done [12:31:22]requested_data is exist [12:31:22]produce_requested_data [12:31:22]requested_item fm.sn is exist - process it [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 17 18 80 11 00 00 00 00 00 00 A9 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 17 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:31:22]wFMCommunicate OK [12:31:22]requested_item fd.num is exist - process it [12:31:22]SAM_PROTO_GetFieldsCounters [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 00 00 [12:31:22]Write to MH i2c: E2 08 00 18 18 80 13 00 00 00 00 00 00 AC [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 18 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 82 02 00 0E 04 04 00 BE 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 8E [12:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetFieldsCounters done [12:31:22]requested_item shift.num is exist - process it [12:31:22]requested_item shift.opened is exist - process it [12:31:22]req_shift_opened [12:31:22]FM_GetShiftState [12:31:22]SAM_PROTO_GetShiftState [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 01 00 [12:31:22]Write to MH i2c: E2 08 00 19 18 80 13 01 00 00 00 00 00 AE [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 19 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8F [12:31:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetShiftState done [12:31:22]FM_GetShiftState done [12:31:22]req_shift_opened done [12:31:22]requested_item shift.open_date is exist - process it [12:31:22]req_shift_open_date [12:31:22]req_shift_open_date done [12:31:22]produce_requested_data done [12:31:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164576,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:31:22]process_action_free close_receipt [12:31:22]json_value_free [12:31:22]json_value_free done [12:31:22]process_json_proto returns [12:31:22]Send response to host [12:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164576,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:31:22]free response buf [12:31:22]execute_script done [12:31:22]execute_script returns [12:31:22]free content buf [12:31:22]Sock 7.Close socket [12:31:22]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:34:58]accept exits with 9 [12:34:58]New connection [12:34:58]New thread 3067149668 created [12:34:58]Thread 3067293028 joined [12:34:58]Waiting for new connection... [12:34:58] Sock 9.Parse request [12:34:58]Sock 9.Check first char [12:34:58]Sock 9.First char is OK [12:34:58]request: POST /json_proto HTTP/1.0 [12:34:58]Method: POST [12:34:58]URL: /json_proto [12:34:58]Method is POST - this is cgi request [12:34:58]url: /json_proto [12:34:58]query_string will be loaded in cgi processing [12:34:58]execute_cgi json_proto POST (null) [12:34:58]execute_cgi path=json_proto method=POST [12:34:58]POST find Content-Length [12:34:58]Host: 172.17.56.4:8080 [12:34:58]Content-Length: 678 [12:34:58]Content-Type: application/json [12:34:58] [12:34:58]POST finish read [12:34:58]Found Content-Length = 678 [12:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:58]execute_script... [12:34: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)458668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:58]POST & json_proto [12:34:58]process_json_proto [12:34:58]json parsed OK: [12:34:58]protocol is kg_v1.0 [12:34:58]action value=close_receipt [12:34:58]process_action close_receipt [12:34:58]cmd_close_receipt [12:34:58]MH_GetDate [12:34:58]Write to MH i2c: F0 00 00 1A 18 21 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 09 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: F0 09 00 1A 18 00 73 74 92 66 C9 DC B2 64 C4 [12:34:58]GetLastDocTimeStamp 1720873880 [12:34:58]current date 1720874099 [12:34:58]FM_GetShiftState [12:34:58]SAM_PROTO_GetShiftState [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 13 01 00 [12:34:58]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0E 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 91 [12:34:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:34:58]wFMCommunicate OK [12:34:58]SAM_PROTO_GetShiftState done [12:34:58]FM_GetShiftState done [12:34:58]opened in 1720831249 [12:34:58]opened+sec_in_day 1720917649 [12:34:58]quantity*price = 70011 [12:34:58]sum+1 = 70012 [12:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 137 13.07.2024 12:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164577 ФПД: 131335527178076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164577&fm=131335527178076&tin=02508201610067®Number=0000000000090829&sum=70000 [12:34:59]StoreToDocumentArchive [12:34:59]shift 446 fd 164577 [12:34:59]save to /storage/0446/doc_00164577 [12:34:59]save last doc name /storage/0446/doc_00164577 to /storage/kkm_last_doc_name [12:34:59]save OK [12:34:59]Clear old archive folders... [12:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:59]tlvbuf is 0145D2B0 [12:34:59]SAM_PROTO_ClearQueue [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 09 00 00 [12:34:59]Write to MH i2c: E2 08 00 28 18 80 09 00 00 00 00 00 00 B2 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]SAM_PROTO_ClearQueue done [12:34:59]KKMCreateOFDPacket [12:34:59]OFDProtocolAddRootSTLVToBuf [12:34:59]FM_MakeSignedData [12:34:59]FM_MakeSignedData [12:34:59]SAM_PROTO_SignData [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 0D 01 02 [12:34:59]Write to MH i2c: E2 08 00 29 18 80 0D 01 02 00 00 00 00 BA [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]wFMCommunicate request_size=255 [12:34:59]MH_SAM_APDU [12:34: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 89 00 00 00 F4 03 04 00 73 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 82 02 00 35 04 06 00 77 [12:34:59]Write to MH i2c: E2 02 01 2A 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 89 00 00 00 F4 03 04 00 73 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 82 02 00 35 04 06 00 77 00 00 7A [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]wFMCommunicate request_size=10 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 0D 02 02 05 72 EF 71 9F 5C [12:34:59]Write to MH i2c: E2 0D 00 2B 18 80 0D 02 02 05 00 72 EF 71 9F 5C 00 00 94 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [12:34:59]RAPDU: 90 00 [12:34:59]wFMCommunicate OK [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 0D 03 02 [12:34:59]Write to MH i2c: E2 08 00 2C 18 80 0D 03 02 00 00 00 00 BF [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 0B 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 0B 00 2C 18 00 49 97 28 5C 6B C0 29 B0 90 00 28 [12:34:59]RAPDU: 49 97 28 5C 6B C0 29 B0 90 00 [12:34:59]wFMCommunicate OK [12:34:59]SAM_PROTO_SignData done [12:34:59]FM_MakeSignedData done [12:34:59]CreateOFDProtocolMessage [12:34:59]wFMCommunicate request_size=4 [12:34:59]MH_SAM_APDU [12:34:59]CAPDU: 80 11 00 00 [12:34:59]Write to MH i2c: E2 08 00 2D 18 80 11 00 00 00 00 00 00 BF [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:59]Read from MH i2c: E2 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 17 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: E2 17 00 2D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [12:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:59]wFMCommunicate OK [12:34:59]CreateOFDProtocolMessage done [12:34:59]OFDSenderStorePacket 164577 [12:34:59]StoreOFDPacket docnum=164577 [12:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E AA 07 01 E9 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 89 00 00 00 F4 03 04 00 73 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 82 02 00 35 04 06 00 77 72 EF 71 9F 5C 49 97 28 5C 6B C0 29 B0 [12:34:59]CheckFolder [12:34:59]dirname=/storage/ofd_packets [12:34:59]CheckFolder done [12:34:59]ProducePacketName [12:34:59]name=ofd_packets/00164577 [12:34:59]NVStorageSaveData ofd_packets/00164577 [12:34:59]File name is /storage/ofd_packets/00164577 [12:34:59]Write 301 bytes [12:34:59]NVStorageSaveData done [12:34:59]OFDSenderStorePacket done [12:34:59]KKMCreateOFDPacket done [12:34:59]NVStorageSaveData kkm_last_timestamp [12:34:59]File name is /storage/kkm_last_timestamp [12:34:59]Write 4 bytes [12:34:59]NVStorageSaveData done [12:34:59]ExternCall_PrintAddStr [12:34:59]wPrintStart [12:34:59]Write to MH i2c: 01 00 00 2E 18 46 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 07 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [12:34:59]RasterBufferAndPrint [12:34:59]line Счет N : (1)458668 [12:34:59]line ИНН: 02508201610067 [12:34:59]line Контрольно-Кассовый Чек [12:34:59]line ПРОДАЖА [12:34:59]line ТРК (МРК, ГНК) : 12 [12:34:59]line Товар: 2710124130 [12:34:59]line Аи-92-К-5 [12:34:59]line 10.640 * 65.80 [12:34:59]line = 700.11 [12:34:59]line НДС 12% НСП 1% [12:34:59]line > о реализуемом товаре [12:34:59]line ОКРУГЛЕНИЕ: -0.11 [12:34:59]line ИТОГО: 700.00 [12:34:59]line Внесено: 700.00 [12:34:59]line СДАЧА: 0.00 [12:34:59]line НСП 1% : 6.20 [12:34:59]line НДС 12% : 74.35 [12:34:59]line Наличными: 700.00 [12:34:59]line Безнал.: 0.00 [12:34:59]line Место: АЗС № 72 "Партнер Нефть" [12:34:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:34:59]line СНО: Общий режим [12:34:59]line Чек 137 13.07.2024 12:34 [12:34:59]line Смена: 446 ФФД: 1.0 [12:34:59]line ЗНМ: 0300000160 [12:34:59]line РНМ: 0000000000090829 [12:34:59]line Версия ККМ: 001 [12:34:59]line ФМ: 0000000000874718 [12:34:59]line ФД: 164577 [12:34:59]line ФПД: 131335527178076 [12:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164577&fm=131335527178076&tin=02508201610067®Number=0000000000090829&sum=70000 [12:35:00]OFD Sender: Processing packet 164577 [packets to send 104, broken 103] [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00164577 [12:35:00]OFD Sender: To server: pG, [12:35:00]CommunicateWithHost lk.salyk.kg:30040 [12:35:00]ConnectInit lk.salyk.kg [12:35:00]written 0, free lines is 4095 [12:35:00]Connected sock=10 [12:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E AA 07 01 E9 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 89 00 00 00 F4 03 04 00 73 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 82 02 00 35 04 06 00 77 72 EF 71 9F 5C 49 97 28 5C 6B C0 29 B0 [12:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 17 47 00 17 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 34 37 31 38 10 04 04 00 E1 82 02 00 F4 03 04 00 04 1B 92 66 B6 04 01 00 00 C7 B3 3A 8F 51 B5 64 A0 [12:35:00]CommunicateWithHost err = 0 [12:35:00]CheckOFDResponse [12:35:00]1017 (14) - 77093643461234 [12:35:00]1041 (16) - 0000000000874718 [12:35:00]1040 (4) - 164577 [12:35:00]1012 (4) - 13.07.2024 06:13 [12:35:00]1206 (1) - 0 [12:35:00]OFD Sender: Remove packet 164577 [12:35:00]ProducePacketName [12:35:00]name=ofd_packets/00164577 [12:35:00]NVStorageDeleteData [12:35:00]Write to MH i2c: 01 00 00 58 18 70 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 58 18 00 00 00 00 00 EF 0C 72 [12:35:00]RasterBufferAndPrint [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]line [12:35:00]written 0, free lines is 3317 [12:35:00]MH_Cut [12:35:00]Write to MH i2c: D1 01 00 5F 18 01 49 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 01 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: D1 01 00 5F 18 00 48 [12:35:00]Write to MH i2c: 01 00 00 60 18 78 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]OFD Sender: No OFD packet to send [12:35:01]*** Cut start [12:35:01]*** Partial cut [12:35:01]*** CUTSNS_PIN = 1 [12:35:01]*** CUTSNS_PIN = 0 [12:35:01]*** Brake cut motor [12:35:01]Read from MH i2c: 01 [12:35:01]*** Stop cut motor [12:35:01]*** Cut end [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: 01 07 00 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: 01 07 00 60 18 00 00 00 00 00 FF 0F 8D [12:35:01]process_action close_receipt done [12:35:01]requested_data is exist [12:35:01]produce_requested_data [12:35:01]requested_item fm.sn is exist - process it [12:35:01]wFMCommunicate request_size=4 [12:35:01]MH_SAM_APDU [12:35:01]CAPDU: 80 11 00 00 [12:35:01]Write to MH i2c: E2 08 00 61 18 80 11 00 00 00 00 00 00 F3 [12:35:01]Write i2c OK [12:35:01]MH_I2C_Read... [12:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:01]Read from MH i2c: E2 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: E2 17 00 [12:35:01]MH_I2C_Read... [12:35:01]Read from MH i2c: E2 17 00 61 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [12:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:35:01]wFMCommunicate OK [12:35:01]requested_item fd.num is exist - process it [12:35:01]SAM_PROTO_GetFieldsCounters [12:35:01]wFMCommunicate request_size=4 [12:35:01]MH_SAM_APDU [12:35:01]CAPDU: 80 13 00 00 [12:35:01]Write to MH i2c: E2 08 00 62 18 80 13 00 00 00 00 00 00 F6 [12:35:01]Write i2c OK [12:35:01]MH_I2C_Read... [12:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 62 00 62 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 82 02 00 0E 04 04 00 BE 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 DC [12:35: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetFieldsCounters done [12:35:02]requested_item shift.num is exist - process it [12:35:02]requested_item shift.opened is exist - process it [12:35:02]req_shift_opened [12:35:02]FM_GetShiftState [12:35:02]SAM_PROTO_GetShiftState [12:35:02]wFMCommunicate request_size=4 [12:35:02]MH_SAM_APDU [12:35:02]CAPDU: 80 13 01 00 [12:35:02]Write to MH i2c: E2 08 00 63 18 80 13 01 00 00 00 00 00 F8 [12:35:02]Write i2c OK [12:35:02]MH_I2C_Read... [12:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:02]Read from MH i2c: E2 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 [12:35:02]MH_I2C_Read... [12:35:02]Read from MH i2c: E2 0E 00 63 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D9 [12:35:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:35:02]wFMCommunicate OK [12:35:02]SAM_PROTO_GetShiftState done [12:35:02]FM_GetShiftState done [12:35:02]req_shift_opened done [12:35:02]requested_item shift.open_date is exist - process it [12:35:02]req_shift_open_date [12:35:02]req_shift_open_date done [12:35:02]produce_requested_data done [12:35:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164577,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:35:02]process_action_free close_receipt [12:35:02]json_value_free [12:35:02]json_value_free done [12:35:02]process_json_proto returns [12:35:02]Send response to host [12:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164577,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:35:02]free response buf [12:35:02]execute_script done [12:35:02]execute_script returns [12:35:02]free content buf [12:35:02]Sock 9.Close socket [12:35:02]Sock 9.Thread stoped [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:23]accept exits with 7 [12:36:23]New connection [12:36:23]New thread 3067293028 created [12:36:23]Thread 3067149668 joined [12:36:23]Waiting for new connection... [12:36:23] Sock 7.Parse request [12:36:23]Sock 7.Check first char [12:36:23]Sock 7.First char is OK [12:36:23]request: POST /json_proto HTTP/1.0 [12:36:23]Method: POST [12:36:23]URL: /json_proto [12:36:23]Method is POST - this is cgi request [12:36:23]url: /json_proto [12:36:23]query_string will be loaded in cgi processing [12:36:23]execute_cgi json_proto POST (null) [12:36:23]execute_cgi path=json_proto method=POST [12:36:23]POST find Content-Length [12:36:23]Host: 172.17.56.4:8080 [12:36:23]Content-Length: 678 [12:36:23]Content-Type: application/json [12:36:23] [12:36:23]POST finish read [12:36:23]Found Content-Length = 678 [12:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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:36:23]execute_script... [12:36: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)458669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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:36:23]POST & json_proto [12:36:23]process_json_proto [12:36:23]json parsed OK: [12:36:23]protocol is kg_v1.0 [12:36:23]action value=close_receipt [12:36:23]process_action close_receipt [12:36:23]cmd_close_receipt [12:36:23]MH_GetDate [12:36:23]Write to MH i2c: F0 00 00 64 18 6B [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 64 18 00 C9 74 92 66 C9 DC B2 64 64 [12:36:23]GetLastDocTimeStamp 1720874099 [12:36:23]current date 1720874185 [12:36:23]FM_GetShiftState [12:36:23]SAM_PROTO_GetShiftState [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 13 01 00 [12:36:23]Write to MH i2c: E2 08 00 65 18 80 13 01 00 00 00 00 00 FA [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 65 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DB [12:36:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_GetShiftState done [12:36:23]FM_GetShiftState done [12:36:23]opened in 1720831249 [12:36:23]opened+sec_in_day 1720917649 [12:36:23]quantity*price = 80012 [12:36:23]sum+1 = 80014 [12:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 138 13.07.2024 12:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164578 ФПД: 129951145323244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164578&fm=129951145323244&tin=02508201610067®Number=0000000000090829&sum=80000 [12:36:24]StoreToDocumentArchive [12:36:24]shift 446 fd 164578 [12:36:24]save to /storage/0446/doc_00164578 [12:36:24]save last doc name /storage/0446/doc_00164578 to /storage/kkm_last_doc_name [12:36:24]save OK [12:36:24]Clear old archive folders... [12:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:24]tlvbuf is B6F14440 [12:36:24]SAM_PROTO_ClearQueue [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 09 00 00 [12:36:24]Write to MH i2c: E2 08 00 72 18 80 09 00 00 00 00 00 00 FC [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_ClearQueue done [12:36:24]KKMCreateOFDPacket [12:36:24]OFDProtocolAddRootSTLVToBuf [12:36:24]FM_MakeSignedData [12:36:24]FM_MakeSignedData [12:36:24]SAM_PROTO_SignData [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 01 02 [12:36:24]Write to MH i2c: E2 08 00 73 18 80 0D 01 02 00 00 00 00 04 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=255 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 8A 00 00 00 F4 03 04 00 C9 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 82 02 00 35 04 06 00 76 [12:36:25]Write to MH i2c: E2 02 01 74 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 8A 00 00 00 F4 03 04 00 C9 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 82 02 00 35 04 06 00 76 00 00 3A [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 74 18 00 90 00 00 [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=10 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 02 02 05 30 9B DA EA EC [12:36:25]Write to MH i2c: E2 0D 00 75 18 80 0D 02 02 05 00 30 9B DA EA EC 00 00 8C [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 03 02 [12:36:25]Write to MH i2c: E2 08 00 76 18 80 0D 03 02 00 00 00 00 09 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0B 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0B 00 76 18 00 AC 15 27 A1 04 E5 96 CD 90 00 DF [12:36:25]RAPDU: AC 15 27 A1 04 E5 96 CD 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_SignData done [12:36:25]FM_MakeSignedData done [12:36:25]CreateOFDProtocolMessage [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 11 00 00 [12:36:25]Write to MH i2c: E2 08 00 77 18 80 11 00 00 00 00 00 00 09 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 77 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [12:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:25]wFMCommunicate OK [12:36:25]CreateOFDProtocolMessage done [12:36:25]OFDSenderStorePacket 164578 [12:36:25]StoreOFDPacket docnum=164578 [12:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 A0 07 01 59 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 8A 00 00 00 F4 03 04 00 C9 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 82 02 00 35 04 06 00 76 30 9B DA EA EC AC 15 27 A1 04 E5 96 CD [12:36:25]CheckFolder [12:36:25]dirname=/storage/ofd_packets [12:36:25]CheckFolder done [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00164578 [12:36:25]NVStorageSaveData ofd_packets/00164578 [12:36:25]File name is /storage/ofd_packets/00164578 [12:36:25]Write 301 bytes [12:36:25]NVStorageSaveData done [12:36:25]OFDSenderStorePacket done [12:36:25]KKMCreateOFDPacket done [12:36:25]NVStorageSaveData kkm_last_timestamp [12:36:25]File name is /storage/kkm_last_timestamp [12:36:25]Write 4 bytes [12:36:25]NVStorageSaveData done [12:36:25]ExternCall_PrintAddStr [12:36:25]wPrintStart [12:36:25]Write to MH i2c: 01 00 00 78 18 90 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [12:36:25]RasterBufferAndPrint [12:36:25]line Счет N : (1)458669 [12:36:25]line ИНН: 02508201610067 [12:36:25]line Контрольно-Кассовый Чек [12:36:25]line ПРОДАЖА [12:36:25]line ТРК (МРК, ГНК) : 22 [12:36:25]line Товар: 2710124130 [12:36:25]line Аи-92-К-5 [12:36:25]line 12.160 * 65.80 [12:36:25]line = 800.13 [12:36:25]line НДС 12% НСП 1% [12:36:25]line > о реализуемом товаре [12:36:25]line ОКРУГЛЕНИЕ: -0.13 [12:36:25]line ИТОГО: 800.00 [12:36:25]line Внесено: 800.00 [12:36:25]line СДАЧА: 0.00 [12:36:25]line НСП 1% : 7.08 [12:36:25]line НДС 12% : 84.97 [12:36:25]line Наличными: 800.00 [12:36:25]line Безнал.: 0.00 [12:36:25]line Место: АЗС № 72 "Партнер Нефть" [12:36:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:36:25]line СНО: Общий режим [12:36:25]line Чек 138 13.07.2024 12:36 [12:36:25]line Смена: 446 ФФД: 1.0 [12:36:25]line ЗНМ: 0300000160 [12:36:25]line РНМ: 0000000000090829 [12:36:25]line Версия ККМ: 001 [12:36:25]line ФМ: 0000000000874718 [12:36:25]line ФД: 164578 [12:36:25]line ФПД: 129951145323244 [12:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164578&fm=129951145323244&tin=02508201610067®Number=0000000000090829&sum=80000 [12:36:25]written 0, free lines is 4095 [12:36:25]OFD Sender: Processing packet 164578 [packets to send 104, broken 103] [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00164578 [12:36:25]OFD Sender: To server: pG, [12:36:25]CommunicateWithHost lk.salyk.kg:30040 [12:36:25]ConnectInit lk.salyk.kg [12:36:25]Connected sock=10 [12:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 A0 07 01 59 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 8A 00 00 00 F4 03 04 00 C9 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 82 02 00 35 04 06 00 76 30 9B DA EA EC AC 15 27 A1 04 E5 96 CD [12:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 73 47 00 9B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 82 02 00 F4 03 04 00 5A 1B 92 66 B6 04 01 00 00 80 36 56 56 85 E1 BB 50 [12:36:26]CommunicateWithHost err = 0 [12:36:26]CheckOFDResponse [12:36:26]1017 (14) - 77093643461234 [12:36:26]1041 (16) - 0000000000874718 [12:36:26]1040 (4) - 164578 [12:36:26]1012 (4) - 13.07.2024 06:14 [12:36:26]1206 (1) - 0 [12:36:26]OFD Sender: Remove packet 164578 [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00164578 [12:36:26]NVStorageDeleteData [12:36:26]Write to MH i2c: 01 00 00 A2 18 BA [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 A2 18 00 00 00 00 00 F2 0C BF [12:36:26]RasterBufferAndPrint [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]written 0, free lines is 3320 [12:36:26]MH_Cut [12:36:26]Write to MH i2c: D1 01 00 A9 18 01 93 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 01 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 01 00 A9 18 00 92 [12:36:26]Write to MH i2c: 01 00 00 AA 18 C2 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]OFD Sender: No OFD packet to send [12:36:26]*** Cut start [12:36:26]*** Partial cut [12:36:26]*** CUTSNS_PIN = 1 [12:36:26]*** CUTSNS_PIN = 0 [12:36:27]*** Brake cut motor [12:36:27]Read from MH i2c: 01 [12:36:27]MH_I2C_Read... [12:36:27]*** Stop cut motor [12:36:27]*** Cut end [12:36:27]Read from MH i2c: 01 07 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 FF 0F D7 [12:36:27]process_action close_receipt done [12:36:27]requested_data is exist [12:36:27]produce_requested_data [12:36:27]requested_item fm.sn is exist - process it [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 11 00 00 [12:36:27]Write to MH i2c: E2 08 00 AB 18 80 11 00 00 00 00 00 00 3D [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 AB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [12:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:27]wFMCommunicate OK [12:36:27]requested_item fd.num is exist - process it [12:36:27]SAM_PROTO_GetFieldsCounters [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 00 00 [12:36:27]Write to MH i2c: E2 08 00 AC 18 80 13 00 00 00 00 00 00 40 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 AC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 82 02 00 0E 04 04 00 BE 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 2A [12:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 82 02 00 0E 04 04 00 BE 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 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetFieldsCounters done [12:36:27]requested_item shift.num is exist - process it [12:36:27]requested_item shift.opened is exist - process it [12:36:27]req_shift_opened [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 AD 18 80 13 01 00 00 00 00 00 42 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 AD 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 23 [12:36:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]req_shift_opened done [12:36:27]requested_item shift.open_date is exist - process it [12:36:27]req_shift_open_date [12:36:27]req_shift_open_date done [12:36:27]produce_requested_data done [12:36:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164578,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:36:27]process_action_free close_receipt [12:36:27]json_value_free [12:36:27]json_value_free done [12:36:27]process_json_proto returns [12:36:27]Send response to host [12:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164578,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:36:27]free response buf [12:36:27]execute_script done [12:36:27]execute_script returns [12:36:27]free content buf [12:36:27]Sock 7.Close socket [12:36:27]Sock 7.Thread stoped [12:36:28]accept exits with 9 [12:36:28]New connection [12:36:28]New thread 3067149668 created [12:36:28]Thread 3067293028 joined [12:36:28]Waiting for new connection... [12:36:28] Sock 9.Parse request [12:36:28]Sock 9.Check first char [12:36:28]Sock 9.First char is OK [12:36:28]request: POST /json_proto HTTP/1.0 [12:36:28]Method: POST [12:36:28]URL: /json_proto [12:36:28]Method is POST - this is cgi request [12:36:28]url: /json_proto [12:36:28]query_string will be loaded in cgi processing [12:36:28]execute_cgi json_proto POST (null) [12:36:28]execute_cgi path=json_proto method=POST [12:36:28]POST find Content-Length [12:36:28]Host: 172.17.56.4:8080 [12:36:28]Content-Length: 677 [12:36:28]Content-Type: application/json [12:36:28] [12:36:28]POST finish read [12:36:28]Found Content-Length = 677 [12:36:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.780, "sum" : 380.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:28]execute_script... [12:36: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)458670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.780, "sum" : 380.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:28]POST & json_proto [12:36:28]process_json_proto [12:36:28]json parsed OK: [12:36:28]protocol is kg_v1.0 [12:36:28]action value=close_receipt [12:36:28]process_action close_receipt [12:36:28]cmd_close_receipt [12:36:28]MH_GetDate [12:36:28]Write to MH i2c: F0 00 00 AE 18 B5 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: F0 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: F0 09 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: F0 09 00 AE 18 00 CD 74 92 66 C9 DC B2 64 B2 [12:36:28]GetLastDocTimeStamp 1720874185 [12:36:28]current date 1720874189 [12:36:28]FM_GetShiftState [12:36:28]SAM_PROTO_GetShiftState [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 13 01 00 [12:36:28]Write to MH i2c: E2 08 00 AF 18 80 13 01 00 00 00 00 00 44 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0E 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0E 00 AF 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 25 [12:36:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_GetShiftState done [12:36:28]FM_GetShiftState done [12:36:28]opened in 1720831249 [12:36:28]opened+sec_in_day 1720917649 [12:36:28]quantity*price = 38032 [12:36:28]sum+1 = 38033 [12:36:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 139 13.07.2024 12:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164579 ФПД: 219710877785463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164579&fm=219710877785463&tin=02508201610067®Number=0000000000090829&sum=38000 [12:36:29]StoreToDocumentArchive [12:36:29]shift 446 fd 164579 [12:36:29]save to /storage/0446/doc_00164579 [12:36:29]save last doc name /storage/0446/doc_00164579 to /storage/kkm_last_doc_name [12:36:29]save OK [12:36:29]Clear old archive folders... [12:36:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:29]tlvbuf is 01474D10 [12:36:29]SAM_PROTO_ClearQueue [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 09 00 00 [12:36:29]Write to MH i2c: E2 08 00 BC 18 80 09 00 00 00 00 00 00 46 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]SAM_PROTO_ClearQueue done [12:36:29]KKMCreateOFDPacket [12:36:29]OFDProtocolAddRootSTLVToBuf [12:36:29]FM_MakeSignedData [12:36:29]FM_MakeSignedData [12:36:29]SAM_PROTO_SignData [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 01 02 [12:36:29]Write to MH i2c: E2 08 00 BD 18 80 0D 01 02 00 00 00 00 4E [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 BD 18 00 90 00 49 [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=255 [12:36:29]MH_SAM_APDU [12:36: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 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CD 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 82 02 00 35 04 06 00 C7 [12:36:29]Write to MH i2c: E2 02 01 BE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CD 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 82 02 00 35 04 06 00 C7 00 00 DA [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 03 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [12:36:30]RAPDU: 90 00 [12:36:30]wFMCommunicate OK [12:36:30]wFMCommunicate request_size=10 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 0D 02 02 05 D3 6C D2 DD 77 [12:36:30]Write to MH i2c: E2 0D 00 BF 18 80 0D 02 02 05 00 D3 6C D2 DD 77 00 00 C0 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 03 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [12:36:30]RAPDU: 90 00 [12:36:30]wFMCommunicate OK [12:36:30]wFMCommunicate request_size=4 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 0D 03 02 [12:36:30]Write to MH i2c: E2 08 00 C0 18 80 0D 03 02 00 00 00 00 53 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 0B 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 0B 00 C0 18 00 B5 AF 20 D8 C0 FA 05 9C 90 00 0B [12:36:30]RAPDU: B5 AF 20 D8 C0 FA 05 9C 90 00 [12:36:30]wFMCommunicate OK [12:36:30]SAM_PROTO_SignData done [12:36:30]FM_MakeSignedData done [12:36:30]CreateOFDProtocolMessage [12:36:30]wFMCommunicate request_size=4 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 11 00 00 [12:36:30]Write to MH i2c: E2 08 00 C1 18 80 11 00 00 00 00 00 00 53 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 17 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 17 00 C1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [12:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:30]wFMCommunicate OK [12:36:30]CreateOFDProtocolMessage done [12:36:30]OFDSenderStorePacket 164579 [12:36:30]StoreOFDPacket docnum=164579 [12:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA A0 07 01 58 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CD 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 82 02 00 35 04 06 00 C7 D3 6C D2 DD 77 B5 AF 20 D8 C0 FA 05 9C [12:36:30]CheckFolder [12:36:30]dirname=/storage/ofd_packets [12:36:30]CheckFolder done [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00164579 [12:36:30]NVStorageSaveData ofd_packets/00164579 [12:36:30]File name is /storage/ofd_packets/00164579 [12:36:30]Write 301 bytes [12:36:30]NVStorageSaveData done [12:36:30]OFDSenderStorePacket done [12:36:30]KKMCreateOFDPacket done [12:36:30]NVStorageSaveData kkm_last_timestamp [12:36:30]File name is /storage/kkm_last_timestamp [12:36:30]Write 4 bytes [12:36:30]NVStorageSaveData done [12:36:30]ExternCall_PrintAddStr [12:36:30]wPrintStart [12:36:30]Write to MH i2c: 01 00 00 C2 18 DA [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 FF 0F EF [12:36:30]RasterBufferAndPrint [12:36:30]line Счет N : (1)458670 [12:36:30]line ИНН: 02508201610067 [12:36:30]line Контрольно-Кассовый Чек [12:36:30]line ПРОДАЖА [12:36:30]line ТРК (МРК, ГНК) : 12 [12:36:30]line Товар: 2710124130 [12:36:30]line Аи-92-К-5 [12:36:30]line 5.780 * 65.80 [12:36:30]line = 380.32 [12:36:30]line НДС 12% НСП 1% [12:36:30]line > о реализуемом товаре [12:36:30]line ОКРУГЛЕНИЕ: -0.32 [12:36:30]line ИТОГО: 380.00 [12:36:30]line Внесено: 380.00 [12:36:30]line СДАЧА: 0.00 [12:36:30]line НСП 1% : 3.37 [12:36:30]line НДС 12% : 40.39 [12:36:30]line Наличными: 380.00 [12:36:30]line Безнал.: 0.00 [12:36:30]line Место: АЗС № 72 "Партнер Нефть" [12:36:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:36:30]line СНО: Общий режим [12:36:30]line Чек 139 13.07.2024 12:36 [12:36:30]line Смена: 446 ФФД: 1.0 [12:36:30]line ЗНМ: 0300000160 [12:36:30]line РНМ: 0000000000090829 [12:36:30]line Версия ККМ: 001 [12:36:30]line ФМ: 0000000000874718 [12:36:30]line ФД: 164579 [12:36:30]line ФПД: 219710877785463 [12:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164579&fm=219710877785463&tin=02508201610067®Number=0000000000090829&sum=38000 [12:36:30]written 0, free lines is 4095 [12:36:30]OFD Sender: Processing packet 164579 [packets to send 104, broken 103] [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00164579 [12:36:30]OFD Sender: To server: pG, [12:36:30]CommunicateWithHost lk.salyk.kg:30040 [12:36:30]ConnectInit lk.salyk.kg [12:36:30]Connected sock=10 [12:36:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA A0 07 01 58 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 16 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 90 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CD 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 82 02 00 35 04 06 00 C7 D3 6C D2 DD 77 B5 AF 20 D8 C0 FA 05 9C [12:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 78 F3 47 00 59 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 34 37 31 38 10 04 04 00 E3 82 02 00 F4 03 04 00 5F 1B 92 66 B6 04 01 00 00 B2 A2 53 65 2E AD F7 2C [12:36:30]CommunicateWithHost err = 0 [12:36:30]CheckOFDResponse [12:36:30]1017 (14) - 77093643461234 [12:36:30]1041 (16) - 0000000000874718 [12:36:30]1040 (4) - 164579 [12:36:30]1012 (4) - 13.07.2024 06:14 [12:36:30]1206 (1) - 0 [12:36:30]OFD Sender: Remove packet 164579 [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00164579 [12:36:30]NVStorageDeleteData [12:36:30]Write to MH i2c: 01 00 00 EC 18 04 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 EC 18 00 00 00 00 00 08 0D 20 [12:36:30]RasterBufferAndPrint [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]line [12:36:30]written 0, free lines is 3345 [12:36:30]MH_Cut [12:36:30]Write to MH i2c: D1 01 00 F3 18 01 DD [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 F3 18 00 DC [12:36:30]Write to MH i2c: 01 00 00 F4 18 0C [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:31]OFD Sender: No OFD packet to send [12:36:31]*** Cut start [12:36:31]*** Partial cut [12:36:31]*** CUTSNS_PIN = 1 [12:36:31]*** CUTSNS_PIN = 0 [12:36:31]*** Brake cut motor [12:36:31]Read from MH i2c: 01 [12:36:31]MH_I2C_Read... [12:36:31]*** Stop cut motor [12:36:31]*** Cut end [12:36:31]Read from MH i2c: 01 07 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: 01 07 00 F4 18 00 00 00 00 00 FF 0F 21 [12:36:31]process_action close_receipt done [12:36:31]requested_data is exist [12:36:31]produce_requested_data [12:36:31]requested_item fm.sn is exist - process it [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 11 00 00 [12:36:31]Write to MH i2c: E2 08 00 F5 18 80 11 00 00 00 00 00 00 87 [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 17 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 17 00 F5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [12:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:32]wFMCommunicate OK [12:36:32]requested_item fd.num is exist - process it [12:36:32]SAM_PROTO_GetFieldsCounters [12:36:32]wFMCommunicate request_size=4 [12:36:32]MH_SAM_APDU [12:36:32]CAPDU: 80 13 00 00 [12:36:32]Write to MH i2c: E2 08 00 F6 18 80 13 00 00 00 00 00 00 8A [12:36:32]Write i2c OK [12:36:32]MH_I2C_Read... [12:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 62 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 62 00 F6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 82 02 00 0E 04 04 00 BE 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 78 [12:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 82 02 00 0E 04 04 00 BE 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 [12:36:32]wFMCommunicate OK [12:36:32]SAM_PROTO_GetFieldsCounters done [12:36:32]requested_item shift.num is exist - process it [12:36:32]requested_item shift.opened is exist - process it [12:36:32]req_shift_opened [12:36:32]FM_GetShiftState [12:36:32]SAM_PROTO_GetShiftState [12:36:32]wFMCommunicate request_size=4 [12:36:32]MH_SAM_APDU [12:36:32]CAPDU: 80 13 01 00 [12:36:32]Write to MH i2c: E2 08 00 F7 18 80 13 01 00 00 00 00 00 8C [12:36:32]Write i2c OK [12:36:32]MH_I2C_Read... [12:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 F7 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6D [12:36:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:36:32]wFMCommunicate OK [12:36:32]SAM_PROTO_GetShiftState done [12:36:32]FM_GetShiftState done [12:36:32]req_shift_opened done [12:36:32]requested_item shift.open_date is exist - process it [12:36:32]req_shift_open_date [12:36:32]req_shift_open_date done [12:36:32]produce_requested_data done [12:36:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164579,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:36:32]process_action_free close_receipt [12:36:32]json_value_free [12:36:32]json_value_free done [12:36:32]process_json_proto returns [12:36:32]Send response to host [12:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164579,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:36:32]free response buf [12:36:32]execute_script done [12:36:32]execute_script returns [12:36:32]free content buf [12:36:32]Sock 9.Close socket [12:36:32]Sock 9.Thread stoped [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]accept exits with 7 [12:37:01]New connection [12:37:01]New thread 3067293028 created [12:37:01]Thread 3067149668 joined [12:37:01]Waiting for new connection... [12:37:01] Sock 7.Parse request [12:37:01]Sock 7.Check first char [12:37:01]Sock 7.First char is OK [12:37:01]request: POST /json_proto HTTP/1.0 [12:37:01]Method: POST [12:37:01]URL: /json_proto [12:37:01]Method is POST - this is cgi request [12:37:01]url: /json_proto [12:37:01]query_string will be loaded in cgi processing [12:37:01]execute_cgi json_proto POST (null) [12:37:01]execute_cgi path=json_proto method=POST [12:37:01]POST find Content-Length [12:37:01]Host: 172.17.56.4:8080 [12:37:01]Content-Length: 677 [12:37:01]Content-Type: application/json [12:37:01] [12:37:01]POST finish read [12:37:01]Found Content-Length = 677 [12:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:37:01]execute_script... [12:37: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)458671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:37:01]POST & json_proto [12:37:01]process_json_proto [12:37:01]json parsed OK: [12:37:01]protocol is kg_v1.0 [12:37:01]action value=close_receipt [12:37:01]process_action close_receipt [12:37:01]cmd_close_receipt [12:37:01]MH_GetDate [12:37:01]Write to MH i2c: F0 00 00 F8 18 FF [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: F0 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: F0 09 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: F0 09 00 F8 18 00 EE 74 92 66 C9 DC B2 64 1D [12:37:01]GetLastDocTimeStamp 1720874189 [12:37:01]current date 1720874222 [12:37:01]FM_GetShiftState [12:37:01]SAM_PROTO_GetShiftState [12:37:01]wFMCommunicate request_size=4 [12:37:01]MH_SAM_APDU [12:37:01]CAPDU: 80 13 01 00 [12:37:01]Write to MH i2c: E2 08 00 F9 18 80 13 01 00 00 00 00 00 8E [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:01]Read from MH i2c: E2 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 0E 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 0E 00 F9 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6F [12:37:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:37:01]wFMCommunicate OK [12:37:01]SAM_PROTO_GetShiftState done [12:37:01]FM_GetShiftState done [12:37:01]opened in 1720831249 [12:37:01]opened+sec_in_day 1720917649 [12:37:01]quantity*price = 50008 [12:37:01]sum+1 = 50009 [12:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 140 13.07.2024 12:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164580 ФПД: 273350199864002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123702&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164580&fm=273350199864002&tin=02508201610067®Number=0000000000090829&sum=50000 [12:37:02]StoreToDocumentArchive [12:37:02]shift 446 fd 164580 [12:37:02]save to /storage/0446/doc_00164580 [12:37:02]save last doc name /storage/0446/doc_00164580 to /storage/kkm_last_doc_name [12:37:02]save OK [12:37:02]Clear old archive folders... [12:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:02]tlvbuf is 0142FC00 [12:37:02]SAM_PROTO_ClearQueue [12:37:02]wFMCommunicate request_size=4 [12:37:02]MH_SAM_APDU [12:37:02]CAPDU: 80 09 00 00 [12:37:02]Write to MH i2c: E2 08 00 06 19 80 09 00 00 00 00 00 00 91 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [12:37:02]RAPDU: 90 00 [12:37:02]wFMCommunicate OK [12:37:02]SAM_PROTO_ClearQueue done [12:37:02]KKMCreateOFDPacket [12:37:02]OFDProtocolAddRootSTLVToBuf [12:37:02]FM_MakeSignedData [12:37:02]FM_MakeSignedData [12:37:02]SAM_PROTO_SignData [12:37:02]wFMCommunicate request_size=4 [12:37:02]MH_SAM_APDU [12:37:02]CAPDU: 80 0D 01 02 [12:37:02]Write to MH i2c: E2 08 00 07 19 80 0D 01 02 00 00 00 00 99 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [12:37:02]RAPDU: 90 00 [12:37:02]wFMCommunicate OK [12:37:02]wFMCommunicate request_size=255 [12:37:02]MH_SAM_APDU [12:37: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 EE 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 82 02 00 35 04 06 00 F8 [12:37:02]Write to MH i2c: E2 02 01 08 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 EE 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 82 02 00 35 04 06 00 F8 00 00 17 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [12:37:02]RAPDU: 90 00 [12:37:02]wFMCommunicate OK [12:37:02]wFMCommunicate request_size=10 [12:37:02]MH_SAM_APDU [12:37:02]CAPDU: 80 0D 02 02 05 9C 4D 8F EA C2 [12:37:02]Write to MH i2c: E2 0D 00 09 19 80 0D 02 02 05 00 9C 4D 8F EA C2 00 00 CA [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [12:37:02]RAPDU: 90 00 [12:37:02]wFMCommunicate OK [12:37:02]wFMCommunicate request_size=4 [12:37:02]MH_SAM_APDU [12:37:02]CAPDU: 80 0D 03 02 [12:37:02]Write to MH i2c: E2 08 00 0A 19 80 0D 03 02 00 00 00 00 9E [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 0B 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 0B 00 0A 19 00 A1 7D 8D 08 00 DB 1E 07 90 00 52 [12:37:02]RAPDU: A1 7D 8D 08 00 DB 1E 07 90 00 [12:37:02]wFMCommunicate OK [12:37:02]SAM_PROTO_SignData done [12:37:02]FM_MakeSignedData done [12:37:02]CreateOFDProtocolMessage [12:37:02]wFMCommunicate request_size=4 [12:37:02]MH_SAM_APDU [12:37:02]CAPDU: 80 11 00 00 [12:37:02]Write to MH i2c: E2 08 00 0B 19 80 11 00 00 00 00 00 00 9E [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:02]Read from MH i2c: E2 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 17 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: E2 17 00 0B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [12:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:02]wFMCommunicate OK [12:37:02]CreateOFDProtocolMessage done [12:37:02]OFDSenderStorePacket 164580 [12:37:02]StoreOFDPacket docnum=164580 [12:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 AA 07 01 36 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 EE 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 82 02 00 35 04 06 00 F8 9C 4D 8F EA C2 A1 7D 8D 08 00 DB 1E 07 [12:37:02]CheckFolder [12:37:02]dirname=/storage/ofd_packets [12:37:02]CheckFolder done [12:37:02]ProducePacketName [12:37:02]name=ofd_packets/00164580 [12:37:02]NVStorageSaveData ofd_packets/00164580 [12:37:02]File name is /storage/ofd_packets/00164580 [12:37:02]Write 301 bytes [12:37:02]NVStorageSaveData done [12:37:02]OFDSenderStorePacket done [12:37:02]KKMCreateOFDPacket done [12:37:02]NVStorageSaveData kkm_last_timestamp [12:37:02]File name is /storage/kkm_last_timestamp [12:37:02]Write 4 bytes [12:37:02]NVStorageSaveData done [12:37:02]ExternCall_PrintAddStr [12:37:02]wPrintStart [12:37:02]Write to MH i2c: 01 00 00 0C 19 25 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 07 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 FF 0F 3A [12:37:02]RasterBufferAndPrint [12:37:02]line Счет N : (1)458671 [12:37:02]line ИНН: 02508201610067 [12:37:02]line Контрольно-Кассовый Чек [12:37:02]line ПРОДАЖА [12:37:02]line ТРК (МРК, ГНК) : 22 [12:37:02]line Товар: 2710124130 [12:37:02]line Аи-92-К-5 [12:37:02]line 7.600 * 65.80 [12:37:02]line = 500.08 [12:37:02]line НДС 12% НСП 1% [12:37:02]line > о реализуемом товаре [12:37:02]line ОКРУГЛЕНИЕ: -0.08 [12:37:02]line ИТОГО: 500.00 [12:37:02]line Внесено: 500.00 [12:37:02]line СДАЧА: 0.00 [12:37:02]line НСП 1% : 4.42 [12:37:02]line НДС 12% : 53.11 [12:37:02]line Наличными: 500.00 [12:37:02]line Безнал.: 0.00 [12:37:02]line Место: АЗС № 72 "Партнер Нефть" [12:37:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:37:02]line СНО: Общий режим [12:37:02]line Чек 140 13.07.2024 12:37 [12:37:02]line Смена: 446 ФФД: 1.0 [12:37:02]line ЗНМ: 0300000160 [12:37:02]line РНМ: 0000000000090829 [12:37:02]line Версия ККМ: 001 [12:37:02]line ФМ: 0000000000874718 [12:37:02]line ФД: 164580 [12:37:02]line ФПД: 273350199864002 [12:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123702&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164580&fm=273350199864002&tin=02508201610067®Number=0000000000090829&sum=50000 [12:37:03]OFD Sender: Processing packet 164580 [packets to send 104, broken 103] [12:37:03]ProducePacketName [12:37:03]name=ofd_packets/00164580 [12:37:03]OFD Sender: To server: pG, [12:37:03]CommunicateWithHost lk.salyk.kg:30040 [12:37:03]ConnectInit lk.salyk.kg [12:37:03]written 0, free lines is 4095 [12:37:03]Connected sock=10 [12:37:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 AA 07 01 36 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 EE 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 82 02 00 35 04 06 00 F8 9C 4D 8F EA C2 A1 7D 8D 08 00 DB 1E 07 [12:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 12 47 00 7B 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 34 37 31 38 10 04 04 00 E4 82 02 00 F4 03 04 00 80 1B 92 66 B6 04 01 00 00 A4 F7 10 E7 D6 36 81 E9 [12:37:03]CommunicateWithHost err = 0 [12:37:03]CheckOFDResponse [12:37:03]1017 (14) - 77093643461234 [12:37:03]1041 (16) - 0000000000874718 [12:37:03]1040 (4) - 164580 [12:37:03]1012 (4) - 13.07.2024 06:15 [12:37:03]1206 (1) - 0 [12:37:03]OFD Sender: Remove packet 164580 [12:37:03]ProducePacketName [12:37:03]name=ofd_packets/00164580 [12:37:03]NVStorageDeleteData [12:37:03]Write to MH i2c: 01 00 00 36 19 4F [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: 01 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: 01 07 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 F0 0C 52 [12:37:03]RasterBufferAndPrint [12:37:03]line [12:37:03]line [12:37:03]line [12:37:03]line [12:37:03]line [12:37:03]written 0, free lines is 3318 [12:37:03]MH_Cut [12:37:03]Write to MH i2c: D1 01 00 3D 19 01 28 [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: D1 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: D1 01 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: D1 01 00 3D 19 00 27 [12:37:03]Write to MH i2c: 01 00 00 3E 19 57 [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]OFD Sender: No OFD packet to send [12:37:04]*** Cut start [12:37:04]*** Partial cut [12:37:04]*** CUTSNS_PIN = 1 [12:37:04]*** CUTSNS_PIN = 0 [12:37:04]*** Brake cut motor [12:37:04]Read from MH i2c: 01 [12:37:04]MH_I2C_Read... [12:37:04]*** Stop cut motor [12:37:04]*** Cut end [12:37:04]Read from MH i2c: 01 07 00 [12:37:04]MH_I2C_Read... [12:37:04]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 FF 0F 6C [12:37:04]process_action close_receipt done [12:37:04]requested_data is exist [12:37:04]produce_requested_data [12:37:04]requested_item fm.sn is exist - process it [12:37:04]wFMCommunicate request_size=4 [12:37:04]MH_SAM_APDU [12:37:04]CAPDU: 80 11 00 00 [12:37:04]Write to MH i2c: E2 08 00 3F 19 80 11 00 00 00 00 00 00 D2 [12:37:04]Write i2c OK [12:37:04]MH_I2C_Read... [12:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:04]Read from MH i2c: E2 [12:37:04]MH_I2C_Read... [12:37:04]Read from MH i2c: E2 17 00 [12:37:04]MH_I2C_Read... [12:37:04]Read from MH i2c: E2 17 00 3F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [12:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:04]wFMCommunicate OK [12:37:04]requested_item fd.num is exist - process it [12:37:04]SAM_PROTO_GetFieldsCounters [12:37:04]wFMCommunicate request_size=4 [12:37:04]MH_SAM_APDU [12:37:04]CAPDU: 80 13 00 00 [12:37:04]Write to MH i2c: E2 08 00 40 19 80 13 00 00 00 00 00 00 D5 [12:37:04]Write i2c OK [12:37:04]MH_I2C_Read... [12:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:05]Read from MH i2c: E2 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 62 00 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 62 00 40 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 82 02 00 0E 04 04 00 BE 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 C7 [12:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:05]wFMCommunicate OK [12:37:05]SAM_PROTO_GetFieldsCounters done [12:37:05]requested_item shift.num is exist - process it [12:37:05]requested_item shift.opened is exist - process it [12:37:05]req_shift_opened [12:37:05]FM_GetShiftState [12:37:05]SAM_PROTO_GetShiftState [12:37:05]wFMCommunicate request_size=4 [12:37:05]MH_SAM_APDU [12:37:05]CAPDU: 80 13 01 00 [12:37:05]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [12:37:05]Write i2c OK [12:37:05]MH_I2C_Read... [12:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:05]Read from MH i2c: E2 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 0E 00 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B8 [12:37:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:37:05]wFMCommunicate OK [12:37:05]SAM_PROTO_GetShiftState done [12:37:05]FM_GetShiftState done [12:37:05]req_shift_opened done [12:37:05]requested_item shift.open_date is exist - process it [12:37:05]req_shift_open_date [12:37:05]req_shift_open_date done [12:37:05]produce_requested_data done [12:37:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164580,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:37:05]process_action_free close_receipt [12:37:05]json_value_free [12:37:05]json_value_free done [12:37:05]process_json_proto returns [12:37:05]Send response to host [12:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164580,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:37:05]free response buf [12:37:05]execute_script done [12:37:05]execute_script returns [12:37:05]free content buf [12:37:05]Sock 7.Close socket [12:37:05]Sock 7.Thread stoped [12:37:08]OFD Sender: No OFD packet to send [12:37:13]accept exits with 9 [12:37:13]New connection [12:37:13]New thread 3067149668 created [12:37:13]Thread 3067293028 joined [12:37:13]Waiting for new connection... [12:37:13] Sock 9.Parse request [12:37:13]Sock 9.Check first char [12:37:13]Sock 9.First char is OK [12:37:13]request: POST /json_proto HTTP/1.0 [12:37:13]Method: POST [12:37:13]URL: /json_proto [12:37:13]Method is POST - this is cgi request [12:37:13]url: /json_proto [12:37:13]query_string will be loaded in cgi processing [12:37:13]execute_cgi json_proto POST (null) [12:37:13]execute_cgi path=json_proto method=POST [12:37:13]POST find Content-Length [12:37:13]Host: 172.17.56.4:8080 [12:37:13]Content-Length: 639 [12:37:13]Content-Type: application/json [12:37:13] [12:37:13]POST finish read [12:37:13]Found Content-Length = 639 [12:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]execute_script... [12:37: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)458672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]POST & json_proto [12:37:13]process_json_proto [12:37:13]json parsed OK: [12:37:13]protocol is kg_v1.0 [12:37:13]action value=close_receipt [12:37:13]process_action close_receipt [12:37:13]cmd_close_receipt [12:37:13]MH_GetDate [12:37:13]Write to MH i2c: F0 00 00 42 19 4A [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 42 19 00 FB 74 92 66 C9 DC B2 64 75 [12:37:13]GetLastDocTimeStamp 1720874222 [12:37:13]current date 1720874235 [12:37:13]FM_GetShiftState [12:37:13]SAM_PROTO_GetShiftState [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 13 01 00 [12:37:13]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0E 00 43 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [12:37:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_GetShiftState done [12:37:13]FM_GetShiftState done [12:37:13]opened in 1720831249 [12:37:13]opened+sec_in_day 1720917649 [12:37:13]quantity*price = 32900 [12:37:13]sum+1 = 32901 [12:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 141 13.07.2024 12:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164581 ФПД: 122264904159470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123715&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164581&fm=122264904159470&tin=02508201610067®Number=0000000000090829&sum=32900 [12:37:14]StoreToDocumentArchive [12:37:14]shift 446 fd 164581 [12:37:14]save to /storage/0446/doc_00164581 [12:37:14]save last doc name /storage/0446/doc_00164581 to /storage/kkm_last_doc_name [12:37:14]save OK [12:37:14]Clear old archive folders... [12:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:14]tlvbuf is 0145CEA0 [12:37:14]SAM_PROTO_ClearQueue [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 09 00 00 [12:37:14]Write to MH i2c: E2 08 00 50 19 80 09 00 00 00 00 00 00 DB [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_ClearQueue done [12:37:14]KKMCreateOFDPacket [12:37:14]OFDProtocolAddRootSTLVToBuf [12:37:14]FM_MakeSignedData [12:37:14]FM_MakeSignedData [12:37:14]SAM_PROTO_SignData [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 0D 01 02 [12:37:14]Write to MH i2c: E2 08 00 51 19 80 0D 01 02 00 00 00 00 E3 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [12:37:14]RAPDU: 90 00 [12:37:14]wFMCommunicate OK [12:37:14]wFMCommunicate request_size=255 [12:37:14]MH_SAM_APDU [12:37: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 FB 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 82 02 00 35 04 06 00 6F [12:37:14]Write to MH i2c: E2 02 01 52 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 FB 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 82 02 00 35 04 06 00 6F 00 00 C9 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=10 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 02 02 05 33 04 2E 50 EE [12:37:15]Write to MH i2c: E2 0D 00 53 19 80 0D 02 02 05 00 33 04 2E 50 EE 00 00 93 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 03 02 [12:37:15]Write to MH i2c: E2 08 00 54 19 80 0D 03 02 00 00 00 00 E8 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 54 19 00 A1 C2 80 65 27 61 2A C3 90 00 A6 [12:37:15]RAPDU: A1 C2 80 65 27 61 2A C3 90 00 [12:37:15]wFMCommunicate OK [12:37:15]SAM_PROTO_SignData done [12:37:15]FM_MakeSignedData done [12:37:15]CreateOFDProtocolMessage [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 11 00 00 [12:37:15]Write to MH i2c: E2 08 00 55 19 80 11 00 00 00 00 00 00 E8 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 55 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [12:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:15]wFMCommunicate OK [12:37:15]CreateOFDProtocolMessage done [12:37:15]OFDSenderStorePacket 164581 [12:37:15]StoreOFDPacket docnum=164581 [12:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F 5E 07 01 4A 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 FB 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 82 02 00 35 04 06 00 6F 33 04 2E 50 EE A1 C2 80 65 27 61 2A C3 [12:37:15]CheckFolder [12:37:15]dirname=/storage/ofd_packets [12:37:15]CheckFolder done [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00164581 [12:37:15]NVStorageSaveData ofd_packets/00164581 [12:37:15]File name is /storage/ofd_packets/00164581 [12:37:15]Write 301 bytes [12:37:15]NVStorageSaveData done [12:37:15]OFDSenderStorePacket done [12:37:15]KKMCreateOFDPacket done [12:37:15]NVStorageSaveData kkm_last_timestamp [12:37:15]File name is /storage/kkm_last_timestamp [12:37:15]Write 4 bytes [12:37:15]NVStorageSaveData done [12:37:15]ExternCall_PrintAddStr [12:37:15]wPrintStart [12:37:15]Write to MH i2c: 01 00 00 56 19 6F [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 FF 0F 84 [12:37:15]RasterBufferAndPrint [12:37:15]line Счет N : (1)458672 [12:37:15]line ИНН: 02508201610067 [12:37:15]line Контрольно-Кассовый Чек [12:37:15]line ПРОДАЖА [12:37:15]line ТРК (МРК, ГНК) : 22 [12:37:15]line Товар: 2710124130 [12:37:15]line Аи-92-К-5 [12:37:15]line 5.000 * 65.80 [12:37:15]line = 329.00 [12:37:15]line НДС 12% НСП 1% [12:37:15]line > о реализуемом товаре [12:37:15]line ИТОГО: 329.00 [12:37:15]line НСП 1% : 2.91 [12:37:15]line НДС 12% : 34.94 [12:37:15]line Наличными: 329.00 [12:37:15]line Безнал.: 0.00 [12:37:15]line Место: АЗС № 72 "Партнер Нефть" [12:37:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:37:15]line СНО: Общий режим [12:37:15]line Чек 141 13.07.2024 12:37 [12:37:15]line Смена: 446 ФФД: 1.0 [12:37:15]line ЗНМ: 0300000160 [12:37:15]line РНМ: 0000000000090829 [12:37:15]line Версия ККМ: 001 [12:37:15]line ФМ: 0000000000874718 [12:37:15]line ФД: 164581 [12:37:15]line ФПД: 122264904159470 [12:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123715&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164581&fm=122264904159470&tin=02508201610067®Number=0000000000090829&sum=32900 [12:37:15]written 0, free lines is 4095 [12:37:15]OFD Sender: Processing packet 164581 [packets to send 104, broken 103] [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00164581 [12:37:15]OFD Sender: To server: pG, [12:37:15]CommunicateWithHost lk.salyk.kg:30040 [12:37:15]ConnectInit lk.salyk.kg [12:37:15]Connected sock=10 [12:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8F 5E 07 01 4A 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 FB 74 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 82 02 00 35 04 06 00 6F 33 04 2E 50 EE A1 C2 80 65 27 61 2A C3 [12:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 41 47 00 C9 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 82 02 00 F4 03 04 00 8C 1B 92 66 B6 04 01 00 00 A9 ED C0 9C 08 CE 95 19 [12:37:15]CommunicateWithHost err = 0 [12:37:15]CheckOFDResponse [12:37:15]1017 (14) - 77093643461234 [12:37:15]1041 (16) - 0000000000874718 [12:37:15]1040 (4) - 164581 [12:37:15]1012 (4) - 13.07.2024 06:15 [12:37:15]1206 (1) - 0 [12:37:15]OFD Sender: Remove packet 164581 [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00164581 [12:37:15]NVStorageDeleteData [12:37:15]Write to MH i2c: 01 00 00 7D 19 96 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 24 0D CE [12:37:15]RasterBufferAndPrint [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]line [12:37:15]written 0, free lines is 3373 [12:37:15]MH_Cut [12:37:15]Write to MH i2c: D1 01 00 84 19 01 6F [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: D1 01 00 84 19 00 6E [12:37:15]Write to MH i2c: 01 00 00 85 19 9E [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:16]OFD Sender: No OFD packet to send [12:37:16]*** Cut start [12:37:16]*** Partial cut [12:37:16]*** CUTSNS_PIN = 1 [12:37:16]*** CUTSNS_PIN = 0 [12:37:16]*** Brake cut motor [12:37:17]Read from MH i2c: 01 [12:37:17]MH_I2C_Read... [12:37:17]*** Stop cut motor [12:37:17]*** Cut end [12:37:17]Read from MH i2c: 01 07 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 FF 0F B3 [12:37:17]process_action close_receipt done [12:37:17]requested_data is exist [12:37:17]produce_requested_data [12:37:17]requested_item fm.sn is exist - process it [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 11 00 00 [12:37:17]Write to MH i2c: E2 08 00 86 19 80 11 00 00 00 00 00 00 19 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 86 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [12:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:17]wFMCommunicate OK [12:37:17]requested_item fd.num is exist - process it [12:37:17]SAM_PROTO_GetFieldsCounters [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 00 00 [12:37:17]Write to MH i2c: E2 08 00 87 19 80 13 00 00 00 00 00 00 1C [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 87 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetFieldsCounters done [12:37:17]requested_item shift.num is exist - process it [12:37:17]requested_item shift.opened is exist - process it [12:37:17]req_shift_opened [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 88 19 80 13 01 00 00 00 00 00 1E [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 0E 00 88 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FF [12:37:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetShiftState done [12:37:17]FM_GetShiftState done [12:37:17]req_shift_opened done [12:37:17]requested_item shift.open_date is exist - process it [12:37:17]req_shift_open_date [12:37:17]req_shift_open_date done [12:37:17]produce_requested_data done [12:37:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164581,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:37:17]process_action_free close_receipt [12:37:17]json_value_free [12:37:17]json_value_free done [12:37:17]process_json_proto returns [12:37:17]Send response to host [12:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164581,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:37:17]free response buf [12:37:17]execute_script done [12:37:17]execute_script returns [12:37:17]free content buf [12:37:17]Sock 9.Close socket [12:37:17]Sock 9.Thread stoped [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:38]accept exits with 7 [12:38:38]New connection [12:38:38]New thread 3067293028 created [12:38:38]Thread 3067149668 joined [12:38:38]Waiting for new connection... [12:38:38] Sock 7.Parse request [12:38:38]Sock 7.Check first char [12:38:38]Sock 7.First char is OK [12:38:38]request: POST /json_proto HTTP/1.0 [12:38:38]Method: POST [12:38:38]URL: /json_proto [12:38:38]Method is POST - this is cgi request [12:38:38]url: /json_proto [12:38:38]query_string will be loaded in cgi processing [12:38:38]execute_cgi json_proto POST (null) [12:38:38]execute_cgi path=json_proto method=POST [12:38:38]POST find Content-Length [12:38:38]Host: 172.17.56.4:8080 [12:38:38]Content-Length: 674 [12:38:38]Content-Type: application/json [12:38:38] [12:38:38]POST finish read [12:38:38]Found Content-Length = 674 [12:38:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:38]execute_script... [12:38: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)458673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:38]POST & json_proto [12:38:38]process_json_proto [12:38:38]json parsed OK: [12:38:38]protocol is kg_v1.0 [12:38:38]action value=close_receipt [12:38:38]process_action close_receipt [12:38:38]cmd_close_receipt [12:38:38]MH_GetDate [12:38:38]Write to MH i2c: F0 00 00 89 19 91 [12:38:38]Write i2c OK [12:38:38]MH_I2C_Read... [12:38:38]Read from MH i2c: F0 [12:38:38]MH_I2C_Read... [12:38:38]Read from MH i2c: F0 09 00 [12:38:38]MH_I2C_Read... [12:38:38]Read from MH i2c: F0 09 00 89 19 00 4F 75 92 66 C9 DC B2 64 11 [12:38:38]GetLastDocTimeStamp 1720874235 [12:38:38]current date 1720874319 [12:38:38]FM_GetShiftState [12:38:38]SAM_PROTO_GetShiftState [12:38:38]wFMCommunicate request_size=4 [12:38:38]MH_SAM_APDU [12:38:38]CAPDU: 80 13 01 00 [12:38:38]Write to MH i2c: E2 08 00 8A 19 80 13 01 00 00 00 00 00 20 [12:38:38]Write i2c OK [12:38:38]MH_I2C_Read... [12:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:38]Read from MH i2c: E2 [12:38:38]MH_I2C_Read... [12:38:38]Read from MH i2c: E2 0E 00 [12:38:38]MH_I2C_Read... [12:38:38]Read from MH i2c: E2 0E 00 8A 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 01 [12:38:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:38:38]wFMCommunicate OK [12:38:38]SAM_PROTO_GetShiftState done [12:38:38]FM_GetShiftState done [12:38:38]opened in 1720831249 [12:38:38]opened+sec_in_day 1720917649 [12:38:38]quantity*price = 70030 [12:38:38]sum+1 = 70032 [12:38:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 142 13.07.2024 12:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164582 ФПД: 43544901169290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123839&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164582&fm=43544901169290&tin=02508201610067®Number=0000000000090829&sum=70000 [12:38:39]StoreToDocumentArchive [12:38:39]shift 446 fd 164582 [12:38:39]save to /storage/0446/doc_00164582 [12:38:39]save last doc name /storage/0446/doc_00164582 to /storage/kkm_last_doc_name [12:38:39]save OK [12:38:39]Clear old archive folders... [12:38:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:39]tlvbuf is 0144ED70 [12:38:39]SAM_PROTO_ClearQueue [12:38:39]wFMCommunicate request_size=4 [12:38:39]MH_SAM_APDU [12:38:39]CAPDU: 80 09 00 00 [12:38:39]Write to MH i2c: E2 08 00 97 19 80 09 00 00 00 00 00 00 22 [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [12:38:39]RAPDU: 90 00 [12:38:39]wFMCommunicate OK [12:38:39]SAM_PROTO_ClearQueue done [12:38:39]KKMCreateOFDPacket [12:38:39]OFDProtocolAddRootSTLVToBuf [12:38:39]FM_MakeSignedData [12:38:39]FM_MakeSignedData [12:38:39]SAM_PROTO_SignData [12:38:39]wFMCommunicate request_size=4 [12:38:39]MH_SAM_APDU [12:38:39]CAPDU: 80 0D 01 02 [12:38:39]Write to MH i2c: E2 08 00 98 19 80 0D 01 02 00 00 00 00 2A [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [12:38:39]RAPDU: 90 00 [12:38:39]wFMCommunicate OK [12:38:39]wFMCommunicate request_size=255 [12:38:39]MH_SAM_APDU [12:38: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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4F 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 82 02 00 35 04 06 00 27 9A 96 5D [12:38:39]Write to MH i2c: E2 02 01 99 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4F 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 82 02 00 35 04 06 00 27 9A 96 5D 00 00 55 [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [12:38:39]RAPDU: 90 00 [12:38:39]wFMCommunicate OK [12:38:39]wFMCommunicate request_size=7 [12:38:39]MH_SAM_APDU [12:38:39]CAPDU: 80 0D 02 02 02 B0 8A [12:38:39]Write to MH i2c: E2 0A 00 9A 19 80 0D 02 02 02 00 B0 8A 00 00 6B [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [12:38:39]RAPDU: 90 00 [12:38:39]wFMCommunicate OK [12:38:39]wFMCommunicate request_size=4 [12:38:39]MH_SAM_APDU [12:38:39]CAPDU: 80 0D 03 02 [12:38:39]Write to MH i2c: E2 08 00 9B 19 80 0D 03 02 00 00 00 00 2F [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 0B 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 0B 00 9B 19 00 6C 32 56 20 D9 9C 08 3B 90 00 FC [12:38:39]RAPDU: 6C 32 56 20 D9 9C 08 3B 90 00 [12:38:39]wFMCommunicate OK [12:38:39]SAM_PROTO_SignData done [12:38:39]FM_MakeSignedData done [12:38:39]CreateOFDProtocolMessage [12:38:39]wFMCommunicate request_size=4 [12:38:39]MH_SAM_APDU [12:38:39]CAPDU: 80 11 00 00 [12:38:39]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:39]Read from MH i2c: E2 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 17 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [12:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:39]wFMCommunicate OK [12:38:39]CreateOFDProtocolMessage done [12:38:39]OFDSenderStorePacket 164582 [12:38:39]StoreOFDPacket docnum=164582 [12:38:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9E D3 04 01 B1 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4F 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 82 02 00 35 04 06 00 27 9A 96 5D B0 8A 6C 32 56 20 D9 9C 08 3B [12:38:39]CheckFolder [12:38:39]dirname=/storage/ofd_packets [12:38:39]CheckFolder done [12:38:39]ProducePacketName [12:38:39]name=ofd_packets/00164582 [12:38:39]NVStorageSaveData ofd_packets/00164582 [12:38:39]File name is /storage/ofd_packets/00164582 [12:38:39]Write 298 bytes [12:38:39]NVStorageSaveData done [12:38:39]OFDSenderStorePacket done [12:38:39]KKMCreateOFDPacket done [12:38:39]NVStorageSaveData kkm_last_timestamp [12:38:39]File name is /storage/kkm_last_timestamp [12:38:39]Write 4 bytes [12:38:39]NVStorageSaveData done [12:38:39]ExternCall_PrintAddStr [12:38:39]wPrintStart [12:38:39]Write to MH i2c: 01 00 00 9D 19 B6 [12:38:39]Write i2c OK [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: 01 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: 01 07 00 [12:38:39]MH_I2C_Read... [12:38:39]Read from MH i2c: 01 07 00 9D 19 00 00 00 00 00 FF 0F CB [12:38:39]RasterBufferAndPrint [12:38:39]line Счет N : (1)458673 [12:38:39]line ИНН: 02508201610067 [12:38:39]line Контрольно-Кассовый Чек [12:38:39]line ПРОДАЖА [12:38:39]line ТРК (МРК, ГНК) : 11 [12:38:39]line Товар: 2710194210 [12:38:39]line ДТ-К-5 [12:38:39]line 9.740 * 71.90 [12:38:39]line = 700.31 [12:38:39]line НДС 12% НСП 1% [12:38:39]line > о реализуемом товаре [12:38:39]line ОКРУГЛЕНИЕ: -0.31 [12:38:39]line ИТОГО: 700.00 [12:38:39]line Внесено: 700.00 [12:38:39]line СДАЧА: 0.00 [12:38:39]line НСП 1% : 6.20 [12:38:39]line НДС 12% : 74.37 [12:38:39]line Наличными: 700.00 [12:38:39]line Безнал.: 0.00 [12:38:39]line Место: АЗС № 72 "Партнер Нефть" [12:38:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:38:39]line СНО: Общий режим [12:38:39]line Чек 142 13.07.2024 12:38 [12:38:39]line Смена: 446 ФФД: 1.0 [12:38:39]line ЗНМ: 0300000160 [12:38:39]line РНМ: 0000000000090829 [12:38:39]line Версия ККМ: 001 [12:38:39]line ФМ: 0000000000874718 [12:38:39]line ФД: 164582 [12:38:39]line ФПД: 43544901169290 [12:38:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123839&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164582&fm=43544901169290&tin=02508201610067®Number=0000000000090829&sum=70000 [12:38:40]OFD Sender: Processing packet 164582 [packets to send 104, broken 103] [12:38:40]ProducePacketName [12:38:40]name=ofd_packets/00164582 [12:38:40]OFD Sender: To server: pG, [12:38:40]CommunicateWithHost lk.salyk.kg:30040 [12:38:40]ConnectInit lk.salyk.kg [12:38:40]written 0, free lines is 4095 [12:38:40]Connected sock=10 [12:38:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9E D3 04 01 B1 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 4F 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 82 02 00 35 04 06 00 27 9A 96 5D B0 8A 6C 32 56 20 D9 9C 08 3B [12:38:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A A1 47 00 CB 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 34 37 31 38 10 04 04 00 E6 82 02 00 F4 03 04 00 E1 1B 92 66 B6 04 01 00 00 A8 BF 5D 40 B6 04 F4 36 [12:38:40]CommunicateWithHost err = 0 [12:38:40]CheckOFDResponse [12:38:40]1017 (14) - 77093643461234 [12:38:40]1041 (16) - 0000000000874718 [12:38:40]1040 (4) - 164582 [12:38:40]1012 (4) - 13.07.2024 06:17 [12:38:40]1206 (1) - 0 [12:38:40]OFD Sender: Remove packet 164582 [12:38:40]ProducePacketName [12:38:40]name=ofd_packets/00164582 [12:38:40]NVStorageDeleteData [12:38:40]Write to MH i2c: 01 00 00 C7 19 E0 [12:38:40]Write i2c OK [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: 01 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: 01 07 00 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: 01 07 00 C7 19 00 00 00 00 00 EC 0C DF [12:38:40]RasterBufferAndPrint [12:38:40]line [12:38:40]line [12:38:40]line [12:38:40]line [12:38:40]line [12:38:40]written 0, free lines is 3314 [12:38:40]MH_Cut [12:38:40]Write to MH i2c: D1 01 00 CE 19 01 B9 [12:38:40]Write i2c OK [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: D1 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: D1 01 00 [12:38:40]MH_I2C_Read... [12:38:40]Read from MH i2c: D1 01 00 CE 19 00 B8 [12:38:40]Write to MH i2c: 01 00 00 CF 19 E8 [12:38:40]Write i2c OK [12:38:40]MH_I2C_Read... [12:38:40]OFD Sender: No OFD packet to send [12:38:41]*** Cut start [12:38:41]*** Partial cut [12:38:41]*** CUTSNS_PIN = 1 [12:38:41]*** CUTSNS_PIN = 0 [12:38:41]*** Brake cut motor [12:38:41]Read from MH i2c: 01 [12:38:41]MH_I2C_Read... [12:38:41]*** Stop cut motor [12:38:41]*** Cut end [12:38:41]Read from MH i2c: 01 07 00 [12:38:41]MH_I2C_Read... [12:38:41]Read from MH i2c: 01 07 00 CF 19 00 00 00 00 00 FF 0F FD [12:38:41]process_action close_receipt done [12:38:41]requested_data is exist [12:38:41]produce_requested_data [12:38:41]requested_item fm.sn is exist - process it [12:38:41]wFMCommunicate request_size=4 [12:38:41]MH_SAM_APDU [12:38:41]CAPDU: 80 11 00 00 [12:38:41]Write to MH i2c: E2 08 00 D0 19 80 11 00 00 00 00 00 00 63 [12:38:41]Write i2c OK [12:38:41]MH_I2C_Read... [12:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:41]Read from MH i2c: E2 [12:38:41]MH_I2C_Read... [12:38:41]Read from MH i2c: E2 17 00 [12:38:41]MH_I2C_Read... [12:38:41]Read from MH i2c: E2 17 00 D0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [12:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:41]wFMCommunicate OK [12:38:41]requested_item fd.num is exist - process it [12:38:41]SAM_PROTO_GetFieldsCounters [12:38:41]wFMCommunicate request_size=4 [12:38:41]MH_SAM_APDU [12:38:41]CAPDU: 80 13 00 00 [12:38:41]Write to MH i2c: E2 08 00 D1 19 80 13 00 00 00 00 00 00 66 [12:38:41]Write i2c OK [12:38:41]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 62 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 62 00 D1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 82 02 00 0E 04 04 00 BE 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 60 [12:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:42]wFMCommunicate OK [12:38:42]SAM_PROTO_GetFieldsCounters done [12:38:42]requested_item shift.num is exist - process it [12:38:42]requested_item shift.opened is exist - process it [12:38:42]req_shift_opened [12:38:42]FM_GetShiftState [12:38:42]SAM_PROTO_GetShiftState [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 13 01 00 [12:38:42]Write to MH i2c: E2 08 00 D2 19 80 13 01 00 00 00 00 00 68 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0E 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0E 00 D2 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 49 [12:38:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:38:42]wFMCommunicate OK [12:38:42]SAM_PROTO_GetShiftState done [12:38:42]FM_GetShiftState done [12:38:42]req_shift_opened done [12:38:42]requested_item shift.open_date is exist - process it [12:38:42]req_shift_open_date [12:38:42]req_shift_open_date done [12:38:42]produce_requested_data done [12:38:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164582,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:38:42]process_action_free close_receipt [12:38:42]json_value_free [12:38:42]json_value_free done [12:38:42]process_json_proto returns [12:38:42]Send response to host [12:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164582,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:38:42]free response buf [12:38:42]execute_script done [12:38:42]execute_script returns [12:38:42]free content buf [12:38:42]Sock 7.Close socket [12:38:42]Sock 7.Thread stoped [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:01]accept exits with 9 [12:39:01]New connection [12:39:01]New thread 3067149668 created [12:39:01]Thread 3067293028 joined [12:39:01]Waiting for new connection... [12:39:01] Sock 9.Parse request [12:39:01]Sock 9.Check first char [12:39:01]Sock 9.First char is OK [12:39:01]request: POST /json_proto HTTP/1.0 [12:39:01]Method: POST [12:39:01]URL: /json_proto [12:39:01]Method is POST - this is cgi request [12:39:01]url: /json_proto [12:39:01]query_string will be loaded in cgi processing [12:39:01]execute_cgi json_proto POST (null) [12:39:01]execute_cgi path=json_proto method=POST [12:39:01]POST find Content-Length [12:39:01]Host: 172.17.56.4:8080 [12:39:01]Content-Length: 677 [12:39:01]Content-Type: application/json [12:39:01] [12:39:01]POST finish read [12:39:01]Found Content-Length = 677 [12:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:01]execute_script... [12:39: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)458674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:01]POST & json_proto [12:39:01]process_json_proto [12:39:01]json parsed OK: [12:39:01]protocol is kg_v1.0 [12:39:01]action value=close_receipt [12:39:01]process_action close_receipt [12:39:01]cmd_close_receipt [12:39:01]MH_GetDate [12:39:01]Write to MH i2c: F0 00 00 D3 19 DB [12:39:01]Write i2c OK [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: F0 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: F0 09 00 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: F0 09 00 D3 19 00 66 75 92 66 C9 DC B2 64 72 [12:39:01]GetLastDocTimeStamp 1720874319 [12:39:01]current date 1720874342 [12:39:01]FM_GetShiftState [12:39:01]SAM_PROTO_GetShiftState [12:39:01]wFMCommunicate request_size=4 [12:39:01]MH_SAM_APDU [12:39:01]CAPDU: 80 13 01 00 [12:39:01]Write to MH i2c: E2 08 00 D4 19 80 13 01 00 00 00 00 00 6A [12:39:01]Write i2c OK [12:39:01]MH_I2C_Read... [12:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:01]Read from MH i2c: E2 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 0E 00 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 0E 00 D4 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4B [12:39:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:39:01]wFMCommunicate OK [12:39:01]SAM_PROTO_GetShiftState done [12:39:01]FM_GetShiftState done [12:39:01]opened in 1720831249 [12:39:01]opened+sec_in_day 1720917649 [12:39:01]quantity*price = 60009 [12:39:01]sum+1 = 60011 [12:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 143 13.07.2024 12:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164583 ФПД: 133350633233923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164583&fm=133350633233923&tin=02508201610067®Number=0000000000090829&sum=60000 [12:39:02]StoreToDocumentArchive [12:39:02]shift 446 fd 164583 [12:39:02]save to /storage/0446/doc_00164583 [12:39:02]save last doc name /storage/0446/doc_00164583 to /storage/kkm_last_doc_name [12:39:02]save OK [12:39:02]Clear old archive folders... [12:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:02]tlvbuf is 01496EF0 [12:39:02]SAM_PROTO_ClearQueue [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 09 00 00 [12:39:02]Write to MH i2c: E2 08 00 E1 19 80 09 00 00 00 00 00 00 6C [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [12:39:02]RAPDU: 90 00 [12:39:02]wFMCommunicate OK [12:39:02]SAM_PROTO_ClearQueue done [12:39:02]KKMCreateOFDPacket [12:39:02]OFDProtocolAddRootSTLVToBuf [12:39:02]FM_MakeSignedData [12:39:02]FM_MakeSignedData [12:39:02]SAM_PROTO_SignData [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 0D 01 02 [12:39:02]Write to MH i2c: E2 08 00 E2 19 80 0D 01 02 00 00 00 00 74 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [12:39:02]RAPDU: 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=255 [12:39:02]MH_SAM_APDU [12:39: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 66 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 82 02 00 35 04 06 00 79 [12:39:02]Write to MH i2c: E2 02 01 E3 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 66 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 82 02 00 35 04 06 00 79 00 00 13 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [12:39:02]RAPDU: 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=10 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 0D 02 02 05 48 1D 1F DE 03 [12:39:02]Write to MH i2c: E2 0D 00 E4 19 80 0D 02 02 05 00 48 1D 1F DE 03 00 00 E6 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [12:39:02]RAPDU: 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 0D 03 02 [12:39:02]Write to MH i2c: E2 08 00 E5 19 80 0D 03 02 00 00 00 00 79 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 0B 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 0B 00 E5 19 00 7E 68 0A 11 75 A4 8B 5E 90 00 7D [12:39:02]RAPDU: 7E 68 0A 11 75 A4 8B 5E 90 00 [12:39:02]wFMCommunicate OK [12:39:02]SAM_PROTO_SignData done [12:39:02]FM_MakeSignedData done [12:39:02]CreateOFDProtocolMessage [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 11 00 00 [12:39:02]Write to MH i2c: E2 08 00 E6 19 80 11 00 00 00 00 00 00 79 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 17 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 17 00 E6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [12:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:02]wFMCommunicate OK [12:39:02]CreateOFDProtocolMessage done [12:39:02]OFDSenderStorePacket 164583 [12:39:02]StoreOFDPacket docnum=164583 [12:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 64 07 01 68 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 66 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 82 02 00 35 04 06 00 79 48 1D 1F DE 03 7E 68 0A 11 75 A4 8B 5E [12:39:02]CheckFolder [12:39:02]dirname=/storage/ofd_packets [12:39:02]CheckFolder done [12:39:02]ProducePacketName [12:39:02]name=ofd_packets/00164583 [12:39:02]NVStorageSaveData ofd_packets/00164583 [12:39:02]File name is /storage/ofd_packets/00164583 [12:39:02]Write 301 bytes [12:39:02]NVStorageSaveData done [12:39:02]OFDSenderStorePacket done [12:39:02]KKMCreateOFDPacket done [12:39:02]NVStorageSaveData kkm_last_timestamp [12:39:02]File name is /storage/kkm_last_timestamp [12:39:02]Write 4 bytes [12:39:02]NVStorageSaveData done [12:39:02]ExternCall_PrintAddStr [12:39:02]wPrintStart [12:39:02]Write to MH i2c: 01 00 00 E7 19 00 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: 01 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: 01 07 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 FF 0F 15 [12:39:02]RasterBufferAndPrint [12:39:02]line Счет N : (1)458674 [12:39:02]line ИНН: 02508201610067 [12:39:02]line Контрольно-Кассовый Чек [12:39:02]line ПРОДАЖА [12:39:02]line ТРК (МРК, ГНК) : 22 [12:39:02]line Товар: 2710124130 [12:39:02]line Аи-92-К-5 [12:39:02]line 9.120 * 65.80 [12:39:02]line = 600.10 [12:39:02]line НДС 12% НСП 1% [12:39:02]line > о реализуемом товаре [12:39:02]line ОКРУГЛЕНИЕ: -0.10 [12:39:02]line ИТОГО: 600.00 [12:39:02]line Внесено: 600.00 [12:39:02]line СДАЧА: 0.00 [12:39:02]line НСП 1% : 5.31 [12:39:02]line НДС 12% : 63.73 [12:39:02]line Наличными: 600.00 [12:39:02]line Безнал.: 0.00 [12:39:02]line Место: АЗС № 72 "Партнер Нефть" [12:39:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:39:02]line СНО: Общий режим [12:39:02]line Чек 143 13.07.2024 12:39 [12:39:02]line Смена: 446 ФФД: 1.0 [12:39:02]line ЗНМ: 0300000160 [12:39:02]line РНМ: 0000000000090829 [12:39:02]line Версия ККМ: 001 [12:39:02]line ФМ: 0000000000874718 [12:39:02]line ФД: 164583 [12:39:02]line ФПД: 133350633233923 [12:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164583&fm=133350633233923&tin=02508201610067®Number=0000000000090829&sum=60000 [12:39:03]written 0, free lines is 4095 [12:39:03]OFD Sender: Processing packet 164583 [packets to send 104, broken 103] [12:39:03]ProducePacketName [12:39:03]name=ofd_packets/00164583 [12:39:03]OFD Sender: To server: pG, [12:39:03]CommunicateWithHost lk.salyk.kg:30040 [12:39:03]ConnectInit lk.salyk.kg [12:39:03]Connected sock=10 [12:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 64 07 01 68 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 66 75 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 82 02 00 35 04 06 00 79 48 1D 1F DE 03 7E 68 0A 11 75 A4 8B 5E [12:39:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 02 47 00 6B 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 34 37 31 38 10 04 04 00 E7 82 02 00 F4 03 04 00 F7 1B 92 66 B6 04 01 00 00 E4 C4 EC A9 09 CD 7E FC [12:39:03]CommunicateWithHost err = 0 [12:39:03]CheckOFDResponse [12:39:03]1017 (14) - 77093643461234 [12:39:03]1041 (16) - 0000000000874718 [12:39:03]1040 (4) - 164583 [12:39:03]1012 (4) - 13.07.2024 06:17 [12:39:03]1206 (1) - 0 [12:39:03]OFD Sender: Remove packet 164583 [12:39:03]ProducePacketName [12:39:03]name=ofd_packets/00164583 [12:39:03]NVStorageDeleteData [12:39:03]Write to MH i2c: 01 00 00 11 1A 2B [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: 01 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: 01 07 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: 01 07 00 11 1A 00 00 00 00 00 F6 0C 34 [12:39:03]RasterBufferAndPrint [12:39:03]line [12:39:03]line [12:39:03]line [12:39:03]line [12:39:03]line [12:39:03]written 0, free lines is 3324 [12:39:03]MH_Cut [12:39:03]Write to MH i2c: D1 01 00 18 1A 01 04 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: D1 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: D1 01 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: D1 01 00 18 1A 00 03 [12:39:03]Write to MH i2c: 01 00 00 19 1A 33 [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]OFD Sender: No OFD packet to send [12:39:04]*** Cut start [12:39:04]*** Partial cut [12:39:04]*** CUTSNS_PIN = 1 [12:39:04]*** CUTSNS_PIN = 0 [12:39:04]*** Brake cut motor [12:39:04]Read from MH i2c: 01 [12:39:04]MH_I2C_Read... [12:39:04]*** Stop cut motor [12:39:04]*** Cut end [12:39:04]Read from MH i2c: 01 07 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: 01 07 00 19 1A 00 00 00 00 00 FF 0F 48 [12:39:04]process_action close_receipt done [12:39:04]requested_data is exist [12:39:04]produce_requested_data [12:39:04]requested_item fm.sn is exist - process it [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 11 00 00 [12:39:04]Write to MH i2c: E2 08 00 1A 1A 80 11 00 00 00 00 00 00 AE [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 17 00 1A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [12:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:04]wFMCommunicate OK [12:39:04]requested_item fd.num is exist - process it [12:39:04]SAM_PROTO_GetFieldsCounters [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 13 00 00 [12:39:04]Write to MH i2c: E2 08 00 1B 1A 80 13 00 00 00 00 00 00 B1 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 62 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 62 00 1B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 82 02 00 0E 04 04 00 BE 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 AF [12:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:04]wFMCommunicate OK [12:39:04]SAM_PROTO_GetFieldsCounters done [12:39:04]requested_item shift.num is exist - process it [12:39:04]requested_item shift.opened is exist - process it [12:39:04]req_shift_opened [12:39:04]FM_GetShiftState [12:39:04]SAM_PROTO_GetShiftState [12:39:04]wFMCommunicate request_size=4 [12:39:04]MH_SAM_APDU [12:39:04]CAPDU: 80 13 01 00 [12:39:04]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [12:39:04]Write i2c OK [12:39:04]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 0E 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 94 [12:39:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:39:05]wFMCommunicate OK [12:39:05]SAM_PROTO_GetShiftState done [12:39:05]FM_GetShiftState done [12:39:05]req_shift_opened done [12:39:05]requested_item shift.open_date is exist - process it [12:39:05]req_shift_open_date [12:39:05]req_shift_open_date done [12:39:05]produce_requested_data done [12:39:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164583,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:39:05]process_action_free close_receipt [12:39:05]json_value_free [12:39:05]json_value_free done [12:39:05]process_json_proto returns [12:39:05]Send response to host [12:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164583,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:39:05]free response buf [12:39:05]execute_script done [12:39:05]execute_script returns [12:39:05]free content buf [12:39:05]Sock 9.Close socket [12:39:05]Sock 9.Thread stoped [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:55]accept exits with 7 [12:42:55]New connection [12:42:55]New thread 3067293028 created [12:42:55]Thread 3067149668 joined [12:42:55]Waiting for new connection... [12:42:55] Sock 7.Parse request [12:42:55]Sock 7.Check first char [12:42:55]Sock 7.First char is OK [12:42:55]request: POST /json_proto HTTP/1.0 [12:42:55]Method: POST [12:42:55]URL: /json_proto [12:42:55]Method is POST - this is cgi request [12:42:55]url: /json_proto [12:42:55]query_string will be loaded in cgi processing [12:42:55]execute_cgi json_proto POST (null) [12:42:55]execute_cgi path=json_proto method=POST [12:42:55]POST find Content-Length [12:42:55]Host: 172.17.56.4:8080 [12:42:55]Content-Length: 677 [12:42:55]Content-Type: application/json [12:42:55] [12:42:55]POST finish read [12:42:55]Found Content-Length = 677 [12:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:42:55]execute_script... [12:42: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)458675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:42:55]POST & json_proto [12:42:55]process_json_proto [12:42:55]json parsed OK: [12:42:55]protocol is kg_v1.0 [12:42:55]action value=close_receipt [12:42:55]process_action close_receipt [12:42:55]cmd_close_receipt [12:42:55]MH_GetDate [12:42:55]Write to MH i2c: F0 00 00 1D 1A 26 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: F0 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: F0 09 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: F0 09 00 1D 1A 00 50 76 92 66 C9 DC B2 64 A8 [12:42:55]GetLastDocTimeStamp 1720874342 [12:42:55]current date 1720874576 [12:42:55]FM_GetShiftState [12:42:55]SAM_PROTO_GetShiftState [12:42:55]wFMCommunicate request_size=4 [12:42:55]MH_SAM_APDU [12:42:55]CAPDU: 80 13 01 00 [12:42:55]Write to MH i2c: E2 08 00 1E 1A 80 13 01 00 00 00 00 00 B5 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:55]Read from MH i2c: E2 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 0E 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 0E 00 1E 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 96 [12:42:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:42:55]wFMCommunicate OK [12:42:55]SAM_PROTO_GetShiftState done [12:42:55]FM_GetShiftState done [12:42:55]opened in 1720831249 [12:42:55]opened+sec_in_day 1720917649 [12:42:55]quantity*price = 50008 [12:42:55]sum+1 = 50009 [12:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 144 13.07.2024 12:42 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164584 ФПД: 34636973100589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164584&fm=34636973100589&tin=02508201610067®Number=0000000000090829&sum=50000 [12:42:56]StoreToDocumentArchive [12:42:56]shift 446 fd 164584 [12:42:56]save to /storage/0446/doc_00164584 [12:42:56]save last doc name /storage/0446/doc_00164584 to /storage/kkm_last_doc_name [12:42:56]save OK [12:42:56]Clear old archive folders... [12:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:56]tlvbuf is 01411B90 [12:42:56]SAM_PROTO_ClearQueue [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 09 00 00 [12:42:56]Write to MH i2c: E2 08 00 2B 1A 80 09 00 00 00 00 00 00 B7 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [12:42:56]RAPDU: 90 00 [12:42:56]wFMCommunicate OK [12:42:56]SAM_PROTO_ClearQueue done [12:42:56]KKMCreateOFDPacket [12:42:56]OFDProtocolAddRootSTLVToBuf [12:42:56]FM_MakeSignedData [12:42:56]FM_MakeSignedData [12:42:56]SAM_PROTO_SignData [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 0D 01 02 [12:42:56]Write to MH i2c: E2 08 00 2C 1A 80 0D 01 02 00 00 00 00 BF [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [12:42:56]RAPDU: 90 00 [12:42:56]wFMCommunicate OK [12:42:56]wFMCommunicate request_size=255 [12:42:56]MH_SAM_APDU [12:42: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 50 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 82 02 00 35 04 06 00 1F [12:42:56]Write to MH i2c: E2 02 01 2D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 50 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 82 02 00 35 04 06 00 1F 00 00 D0 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [12:42:56]RAPDU: 90 00 [12:42:56]wFMCommunicate OK [12:42:56]wFMCommunicate request_size=10 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 0D 02 02 05 80 8C 7A 4E 2D [12:42:56]Write to MH i2c: E2 0D 00 2E 1A 80 0D 02 02 05 00 80 8C 7A 4E 2D 00 00 CD [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [12:42:56]RAPDU: 90 00 [12:42:56]wFMCommunicate OK [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 0D 03 02 [12:42:56]Write to MH i2c: E2 08 00 2F 1A 80 0D 03 02 00 00 00 00 C4 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0B 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 0B 00 2F 1A 00 E7 33 63 C6 FC F0 31 4D 90 00 72 [12:42:56]RAPDU: E7 33 63 C6 FC F0 31 4D 90 00 [12:42:56]wFMCommunicate OK [12:42:56]SAM_PROTO_SignData done [12:42:56]FM_MakeSignedData done [12:42:56]CreateOFDProtocolMessage [12:42:56]wFMCommunicate request_size=4 [12:42:56]MH_SAM_APDU [12:42:56]CAPDU: 80 11 00 00 [12:42:56]Write to MH i2c: E2 08 00 30 1A 80 11 00 00 00 00 00 00 C4 [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:56]Read from MH i2c: E2 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: E2 17 00 30 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [12:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:42:56]wFMCommunicate OK [12:42:56]CreateOFDProtocolMessage done [12:42:56]OFDSenderStorePacket 164584 [12:42:56]StoreOFDPacket docnum=164584 [12:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 52 07 01 18 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 50 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 82 02 00 35 04 06 00 1F 80 8C 7A 4E 2D E7 33 63 C6 FC F0 31 4D [12:42:56]CheckFolder [12:42:56]dirname=/storage/ofd_packets [12:42:56]CheckFolder done [12:42:56]ProducePacketName [12:42:56]name=ofd_packets/00164584 [12:42:56]NVStorageSaveData ofd_packets/00164584 [12:42:56]File name is /storage/ofd_packets/00164584 [12:42:56]Write 301 bytes [12:42:56]NVStorageSaveData done [12:42:56]OFDSenderStorePacket done [12:42:56]KKMCreateOFDPacket done [12:42:56]NVStorageSaveData kkm_last_timestamp [12:42:56]File name is /storage/kkm_last_timestamp [12:42:56]Write 4 bytes [12:42:56]NVStorageSaveData done [12:42:56]ExternCall_PrintAddStr [12:42:56]wPrintStart [12:42:56]Write to MH i2c: 01 00 00 31 1A 4B [12:42:56]Write i2c OK [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: 01 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: 01 07 00 [12:42:56]MH_I2C_Read... [12:42:56]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [12:42:56]RasterBufferAndPrint [12:42:56]line Счет N : (1)458675 [12:42:56]line ИНН: 02508201610067 [12:42:56]line Контрольно-Кассовый Чек [12:42:56]line ПРОДАЖА [12:42:56]line ТРК (МРК, ГНК) : 12 [12:42:56]line Товар: 2710124130 [12:42:56]line Аи-92-К-5 [12:42:56]line 7.600 * 65.80 [12:42:56]line = 500.08 [12:42:56]line НДС 12% НСП 1% [12:42:56]line > о реализуемом товаре [12:42:56]line ОКРУГЛЕНИЕ: -0.08 [12:42:56]line ИТОГО: 500.00 [12:42:56]line Внесено: 500.00 [12:42:56]line СДАЧА: 0.00 [12:42:56]line НСП 1% : 4.42 [12:42:56]line НДС 12% : 53.11 [12:42:56]line Наличными: 500.00 [12:42:56]line Безнал.: 0.00 [12:42:56]line Место: АЗС № 72 "Партнер Нефть" [12:42:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:42:56]line СНО: Общий режим [12:42:56]line Чек 144 13.07.2024 12:42 [12:42:56]line Смена: 446 ФФД: 1.0 [12:42:56]line ЗНМ: 0300000160 [12:42:56]line РНМ: 0000000000090829 [12:42:56]line Версия ККМ: 001 [12:42:56]line ФМ: 0000000000874718 [12:42:56]line ФД: 164584 [12:42:56]line ФПД: 34636973100589 [12:42:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164584&fm=34636973100589&tin=02508201610067®Number=0000000000090829&sum=50000 [12:42:57]OFD Sender: Processing packet 164584 [packets to send 104, broken 103] [12:42:57]ProducePacketName [12:42:57]name=ofd_packets/00164584 [12:42:57]OFD Sender: To server: pG, [12:42:57]CommunicateWithHost lk.salyk.kg:30040 [12:42:57]ConnectInit lk.salyk.kg [12:42:57]written 0, free lines is 4095 [12:42:57]Connected sock=10 [12:42:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 52 07 01 18 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 50 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 82 02 00 35 04 06 00 1F 80 8C 7A 4E 2D E7 33 63 C6 FC F0 31 4D [12:42:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 13 45 47 00 FA 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 34 37 31 38 10 04 04 00 E8 82 02 00 F4 03 04 00 E2 1C 92 66 B6 04 01 00 00 53 F9 45 BD 99 F3 13 22 [12:42:57]CommunicateWithHost err = 0 [12:42:57]CheckOFDResponse [12:42:57]1017 (14) - 77093643461234 [12:42:57]1041 (16) - 0000000000874718 [12:42:57]1040 (4) - 164584 [12:42:57]1012 (4) - 13.07.2024 06:21 [12:42:57]1206 (1) - 0 [12:42:57]OFD Sender: Remove packet 164584 [12:42:57]ProducePacketName [12:42:57]name=ofd_packets/00164584 [12:42:57]NVStorageDeleteData [12:42:57]Write to MH i2c: 01 00 00 5B 1A 75 [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: 01 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: 01 07 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 F0 0C 78 [12:42:57]RasterBufferAndPrint [12:42:57]line [12:42:57]line [12:42:57]line [12:42:57]line [12:42:57]line [12:42:57]written 0, free lines is 3319 [12:42:57]MH_Cut [12:42:57]Write to MH i2c: D1 01 00 62 1A 01 4E [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: D1 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: D1 01 00 [12:42:57]MH_I2C_Read... [12:42:57]Read from MH i2c: D1 01 00 62 1A 00 4D [12:42:57]Write to MH i2c: 01 00 00 63 1A 7D [12:42:57]Write i2c OK [12:42:57]MH_I2C_Read... [12:42:57]OFD Sender: No OFD packet to send [12:42:58]*** Cut start [12:42:58]*** Partial cut [12:42:58]*** CUTSNS_PIN = 1 [12:42:58]*** CUTSNS_PIN = 0 [12:42:58]*** Brake cut motor [12:42:58]Read from MH i2c: 01 [12:42:58]MH_I2C_Read... [12:42:58]*** Stop cut motor [12:42:58]*** Cut end [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 63 1A 00 00 00 00 00 FF 0F 92 [12:42:58]process_action close_receipt done [12:42:58]requested_data is exist [12:42:58]produce_requested_data [12:42:58]requested_item fm.sn is exist - process it [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 64 1A 80 11 00 00 00 00 00 00 F8 [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 64 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [12:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:42:58]wFMCommunicate OK [12:42:58]requested_item fd.num is exist - process it [12:42:58]SAM_PROTO_GetFieldsCounters [12:42:58]wFMCommunicate request_size=4 [12:42:58]MH_SAM_APDU [12:42:58]CAPDU: 80 13 00 00 [12:42:58]Write to MH i2c: E2 08 00 65 1A 80 13 00 00 00 00 00 00 FB [12:42:58]Write i2c OK [12:42:58]MH_I2C_Read... [12:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:59]Read from MH i2c: E2 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 62 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 62 00 65 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 82 02 00 0E 04 04 00 BE 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 FD [12:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:59]wFMCommunicate OK [12:42:59]SAM_PROTO_GetFieldsCounters done [12:42:59]requested_item shift.num is exist - process it [12:42:59]requested_item shift.opened is exist - process it [12:42:59]req_shift_opened [12:42:59]FM_GetShiftState [12:42:59]SAM_PROTO_GetShiftState [12:42:59]wFMCommunicate request_size=4 [12:42:59]MH_SAM_APDU [12:42:59]CAPDU: 80 13 01 00 [12:42:59]Write to MH i2c: E2 08 00 66 1A 80 13 01 00 00 00 00 00 FD [12:42:59]Write i2c OK [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 [12:42:59]MH_I2C_Read... [12:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:59]Read from MH i2c: E2 0E 00 [12:42:59]MH_I2C_Read... [12:42:59]Read from MH i2c: E2 0E 00 66 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DE [12:42:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:42:59]wFMCommunicate OK [12:42:59]SAM_PROTO_GetShiftState done [12:42:59]FM_GetShiftState done [12:42:59]req_shift_opened done [12:42:59]requested_item shift.open_date is exist - process it [12:42:59]req_shift_open_date [12:42:59]req_shift_open_date done [12:42:59]produce_requested_data done [12:42:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164584,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:42:59]process_action_free close_receipt [12:42:59]json_value_free [12:42:59]json_value_free done [12:42:59]process_json_proto returns [12:42:59]Send response to host [12:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164584,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:42:59]free response buf [12:42:59]execute_script done [12:42:59]execute_script returns [12:42:59]free content buf [12:42:59]Sock 7.Close socket [12:42:59]Sock 7.Thread stoped [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44: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:32]accept exits with 9 [12:44:32]New connection [12:44:32]New thread 3067149668 created [12:44:32]Thread 3067293028 joined [12:44:32]Waiting for new connection... [12:44:32] Sock 9.Parse request [12:44:32]Sock 9.Check first char [12:44:32]Sock 9.First char is OK [12:44:33]request: POST /json_proto HTTP/1.0 [12:44:33]Method: POST [12:44:33]URL: /json_proto [12:44:33]Method is POST - this is cgi request [12:44:33]url: /json_proto [12:44:33]query_string will be loaded in cgi processing [12:44:33]execute_cgi json_proto POST (null) [12:44:33]execute_cgi path=json_proto method=POST [12:44:33]POST find Content-Length [12:44:33]Host: 172.17.56.4:8080 [12:44:33]Content-Length: 790 [12:44:33]Content-Type: application/json [12:44:33] [12:44:33]POST finish read [12:44:33]Found Content-Length = 790 [12:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.840, "sum" : 250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:33]execute_script... [12:44: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)458676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.840, "sum" : 250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:33]POST & json_proto [12:44:33]process_json_proto [12:44:33]json parsed OK: [12:44:33]protocol is kg_v1.0 [12:44:33]action value=close_receipt [12:44:33]process_action close_receipt [12:44:33]cmd_close_receipt [12:44:33]MH_GetDate [12:44:33]Write to MH i2c: F0 00 00 67 1A 70 [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: F0 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: F0 09 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: F0 09 00 67 1A 00 B2 76 92 66 C9 DC B2 64 54 [12:44:33]GetLastDocTimeStamp 1720874576 [12:44:33]current date 1720874674 [12:44:33]FM_GetShiftState [12:44:33]SAM_PROTO_GetShiftState [12:44:33]wFMCommunicate request_size=4 [12:44:33]MH_SAM_APDU [12:44:33]CAPDU: 80 13 01 00 [12:44:33]Write to MH i2c: E2 08 00 68 1A 80 13 01 00 00 00 00 00 FF [12:44:33]Write i2c OK [12:44:33]MH_I2C_Read... [12:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:33]Read from MH i2c: E2 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 0E 00 [12:44:33]MH_I2C_Read... [12:44:33]Read from MH i2c: E2 0E 00 68 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E0 [12:44:33]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:44:33]wFMCommunicate OK [12:44:33]SAM_PROTO_GetShiftState done [12:44:33]FM_GetShiftState done [12:44:33]opened in 1720831249 [12:44:33]opened+sec_in_day 1720917649 [12:44:33]quantity*price = 25044 [12:44:33]sum+1 = 25045 [12:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.44 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 0.00 Безнал.: 250.44 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 145 13.07.2024 12:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164585 ФПД: 89232787374022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164585&fm=89232787374022&tin=02508201610067®Number=0000000000090829&sum=25044 [12:44:34]StoreToDocumentArchive [12:44:34]shift 446 fd 164585 [12:44:34]save to /storage/0446/doc_00164585 [12:44:34]save last doc name /storage/0446/doc_00164585 to /storage/kkm_last_doc_name [12:44:34]save OK [12:44:34]Clear old archive folders... [12:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:34]tlvbuf is 0144C710 [12:44:34]SAM_PROTO_ClearQueue [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 09 00 00 [12:44:34]Write to MH i2c: E2 08 00 75 1A 80 09 00 00 00 00 00 00 01 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_ClearQueue done [12:44:34]KKMCreateOFDPacket [12:44:34]OFDProtocolAddRootSTLVToBuf [12:44:34]FM_MakeSignedData [12:44:34]FM_MakeSignedData [12:44:34]SAM_PROTO_SignData [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 0D 01 02 [12:44:34]Write to MH i2c: E2 08 00 76 1A 80 0D 01 02 00 00 00 00 09 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]wFMCommunicate request_size=255 [12:44:34]MH_SAM_APDU [12:44: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 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 B2 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 82 02 00 35 04 06 00 51 [12:44:34]Write to MH i2c: E2 02 01 77 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 B2 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 82 02 00 35 04 06 00 51 00 00 D3 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]wFMCommunicate request_size=10 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 0D 02 02 05 28 20 97 FF C6 [12:44:34]Write to MH i2c: E2 0D 00 78 1A 80 0D 02 02 05 00 28 20 97 FF C6 00 00 BA [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [12:44:34]RAPDU: 90 00 [12:44:34]wFMCommunicate OK [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 0D 03 02 [12:44:34]Write to MH i2c: E2 08 00 79 1A 80 0D 03 02 00 00 00 00 0E [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0B 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 0B 00 79 1A 00 5F 53 00 86 69 7A 26 11 90 00 61 [12:44:34]RAPDU: 5F 53 00 86 69 7A 26 11 90 00 [12:44:34]wFMCommunicate OK [12:44:34]SAM_PROTO_SignData done [12:44:34]FM_MakeSignedData done [12:44:34]CreateOFDProtocolMessage [12:44:34]wFMCommunicate request_size=4 [12:44:34]MH_SAM_APDU [12:44:34]CAPDU: 80 11 00 00 [12:44:34]Write to MH i2c: E2 08 00 7A 1A 80 11 00 00 00 00 00 00 0E [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:34]Read from MH i2c: E2 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 17 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: E2 17 00 7A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [12:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:44:34]wFMCommunicate OK [12:44:34]CreateOFDProtocolMessage done [12:44:34]OFDSenderStorePacket 164585 [12:44:34]StoreOFDPacket docnum=164585 [12:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 6D 07 01 25 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 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 B2 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 82 02 00 35 04 06 00 51 28 20 97 FF C6 5F 53 00 86 69 7A 26 11 [12:44:34]CheckFolder [12:44:34]dirname=/storage/ofd_packets [12:44:34]CheckFolder done [12:44:34]ProducePacketName [12:44:34]name=ofd_packets/00164585 [12:44:34]NVStorageSaveData ofd_packets/00164585 [12:44:34]File name is /storage/ofd_packets/00164585 [12:44:34]Write 301 bytes [12:44:34]NVStorageSaveData done [12:44:34]OFDSenderStorePacket done [12:44:34]KKMCreateOFDPacket done [12:44:34]NVStorageSaveData kkm_last_timestamp [12:44:34]File name is /storage/kkm_last_timestamp [12:44:34]Write 4 bytes [12:44:34]NVStorageSaveData done [12:44:34]ExternCall_PrintAddStr [12:44:34]wPrintStart [12:44:34]Write to MH i2c: 01 00 00 7B 1A 95 [12:44:34]Write i2c OK [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 07 00 [12:44:34]MH_I2C_Read... [12:44:34]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 FF 0F AA [12:44:34]RasterBufferAndPrint [12:44:34]line Счет N : (1)458676 [12:44:34]line ИНН: 02508201610067 [12:44:34]line Контрольно-Кассовый Чек [12:44:34]line ПРОДАЖА [12:44:34]line ТРК (МРК, ГНК) : 12 [12:44:34]line Товар: 2710124130 [12:44:34]line Аи-92-К-5 [12:44:34]line 3.840 * 65.22 [12:44:34]line = 250.44 [12:44:34]line НДС 12% НСП 1% [12:44:34]line > о реализуемом товаре [12:44:34]line ИТОГО: 250.44 [12:44:34]line НСП 1% : 2.22 [12:44:34]line НДС 12% : 26.59 [12:44:34]line Наличными: 0.00 [12:44:34]line Безнал.: 250.44 [12:44:34]line Место: АЗС № 72 "Партнер Нефть" [12:44:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:44:34]line СНО: Общий режим [12:44:34]line Чек 145 13.07.2024 12:44 [12:44:34]line Смена: 446 ФФД: 1.0 [12:44:34]line ЗНМ: 0300000160 [12:44:34]line РНМ: 0000000000090829 [12:44:34]line Версия ККМ: 001 [12:44:34]line Платежная система: KICB Банк [12:44:34]line ФМ: 0000000000874718 [12:44:34]line ФД: 164585 [12:44:34]line ФПД: 89232787374022 [12:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164585&fm=89232787374022&tin=02508201610067®Number=0000000000090829&sum=25044 [12:44:34]written 0, free lines is 4095 [12:44:34]OFD Sender: Processing packet 164585 [packets to send 104, broken 103] [12:44:34]ProducePacketName [12:44:34]name=ofd_packets/00164585 [12:44:34]OFD Sender: To server: pG, [12:44:35]CommunicateWithHost lk.salyk.kg:30040 [12:44:35]ConnectInit lk.salyk.kg [12:44:35]Connected sock=10 [12:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 6D 07 01 25 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 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 B2 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 82 02 00 35 04 06 00 51 28 20 97 FF C6 5F 53 00 86 69 7A 26 11 [12:44:35]Write to MH i2c: 01 00 00 A4 1A BE [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 07 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 0F 0D E1 [12:44:35]RasterBufferAndPrint [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]line [12:44:35]written 0, free lines is 3349 [12:44:35]MH_Cut [12:44:35]Write to MH i2c: D1 01 00 AB 1A 01 97 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 01 00 [12:44:35]MH_I2C_Read... [12:44:35]Read from MH i2c: D1 01 00 AB 1A 00 96 [12:44:35]Write to MH i2c: 01 00 00 AC 1A C6 [12:44:35]Write i2c OK [12:44:35]MH_I2C_Read... [12:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7D C6 47 00 E6 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 82 02 00 F4 03 04 00 43 1D 92 66 B6 04 01 00 00 78 2E 52 6B 12 00 87 23 [12:44:35]CommunicateWithHost err = 0 [12:44:35]CheckOFDResponse [12:44:35]1017 (14) - 77093643461234 [12:44:35]1041 (16) - 0000000000874718 [12:44:35]1040 (4) - 164585 [12:44:35]1012 (4) - 13.07.2024 06:22 [12:44:35]1206 (1) - 0 [12:44:35]OFD Sender: Remove packet 164585 [12:44:35]ProducePacketName [12:44:35]name=ofd_packets/00164585 [12:44:35]NVStorageDeleteData [12:44:35]*** Cut start [12:44:35]*** Partial cut [12:44:35]*** CUTSNS_PIN = 1 [12:44:35]*** CUTSNS_PIN = 0 [12:44:35]OFD Sender: No OFD packet to send [12:44:36]*** Brake cut motor [12:44:36]Read from MH i2c: 01 [12:44:36]MH_I2C_Read... [12:44:36]*** Stop cut motor [12:44:36]*** Cut end [12:44:36]Read from MH i2c: 01 07 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [12:44:36]process_action close_receipt done [12:44:36]requested_data is exist [12:44:36]produce_requested_data [12:44:36]requested_item fm.sn is exist - process it [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 11 00 00 [12:44:36]Write to MH i2c: E2 08 00 AD 1A 80 11 00 00 00 00 00 00 41 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 17 00 AD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [12:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:44:36]wFMCommunicate OK [12:44:36]requested_item fd.num is exist - process it [12:44:36]SAM_PROTO_GetFieldsCounters [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 13 00 00 [12:44:36]Write to MH i2c: E2 08 00 AE 1A 80 13 00 00 00 00 00 00 44 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 62 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 62 00 AE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 82 02 00 0E 04 04 00 BE 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 4A [12:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_GetFieldsCounters done [12:44:36]requested_item shift.num is exist - process it [12:44:36]requested_item shift.opened is exist - process it [12:44:36]req_shift_opened [12:44:36]FM_GetShiftState [12:44:36]SAM_PROTO_GetShiftState [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 13 01 00 [12:44:36]Write to MH i2c: E2 08 00 AF 1A 80 13 01 00 00 00 00 00 46 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 AF 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 27 [12:44:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_GetShiftState done [12:44:36]FM_GetShiftState done [12:44:36]req_shift_opened done [12:44:36]requested_item shift.open_date is exist - process it [12:44:36]req_shift_open_date [12:44:36]req_shift_open_date done [12:44:36]produce_requested_data done [12:44:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164585,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:44:36]process_action_free close_receipt [12:44:36]json_value_free [12:44:36]json_value_free done [12:44:36]process_json_proto returns [12:44:36]Send response to host [12:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164585,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:44:36]free response buf [12:44:36]execute_script done [12:44:36]execute_script returns [12:44:36]free content buf [12:44:36]Sock 9.Close socket [12:44:36]Sock 9.Thread stoped [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:44:57]accept exits with 7 [12:44:57]New connection [12:44:57]New thread 3067293028 created [12:44:57]Thread 3067149668 joined [12:44:57]Waiting for new connection... [12:44:57] Sock 7.Parse request [12:44:57]Sock 7.Check first char [12:44:57]Sock 7.First char is OK [12:44:57]request: POST /json_proto HTTP/1.0 [12:44:57]Method: POST [12:44:57]URL: /json_proto [12:44:57]Method is POST - this is cgi request [12:44:57]url: /json_proto [12:44:57]query_string will be loaded in cgi processing [12:44:57]execute_cgi json_proto POST (null) [12:44:57]execute_cgi path=json_proto method=POST [12:44:57]POST find Content-Length [12:44:57]Host: 172.17.56.4:8080 [12:44:57]Content-Length: 677 [12:44:57]Content-Type: application/json [12:44:57] [12:44:57]POST finish read [12:44:57]Found Content-Length = 677 [12:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:57]execute_script... [12:44: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)458677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:57]POST & json_proto [12:44:57]process_json_proto [12:44:57]json parsed OK: [12:44:57]protocol is kg_v1.0 [12:44:57]action value=close_receipt [12:44:57]process_action close_receipt [12:44:57]cmd_close_receipt [12:44:57]MH_GetDate [12:44:57]Write to MH i2c: F0 00 00 B0 1A B9 [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: F0 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: F0 09 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: F0 09 00 B0 1A 00 CB 76 92 66 C9 DC B2 64 B6 [12:44:57]GetLastDocTimeStamp 1720874674 [12:44:57]current date 1720874699 [12:44:57]FM_GetShiftState [12:44:57]SAM_PROTO_GetShiftState [12:44:57]wFMCommunicate request_size=4 [12:44:57]MH_SAM_APDU [12:44:57]CAPDU: 80 13 01 00 [12:44:57]Write to MH i2c: E2 08 00 B1 1A 80 13 01 00 00 00 00 00 48 [12:44:57]Write i2c OK [12:44:57]MH_I2C_Read... [12:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:57]Read from MH i2c: E2 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 0E 00 [12:44:57]MH_I2C_Read... [12:44:57]Read from MH i2c: E2 0E 00 B1 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 29 [12:44:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:44:57]wFMCommunicate OK [12:44:57]SAM_PROTO_GetShiftState done [12:44:57]FM_GetShiftState done [12:44:57]opened in 1720831249 [12:44:57]opened+sec_in_day 1720917649 [12:44:57]quantity*price = 50008 [12:44:57]sum+1 = 50009 [12:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 146 13.07.2024 12:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164586 ФПД: 32451963364609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164586&fm=32451963364609&tin=02508201610067®Number=0000000000090829&sum=50000 [12:44:58]StoreToDocumentArchive [12:44:58]shift 446 fd 164586 [12:44:58]save to /storage/0446/doc_00164586 [12:44:58]save last doc name /storage/0446/doc_00164586 to /storage/kkm_last_doc_name [12:44:58]save OK [12:44:58]Clear old archive folders... [12:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:58]tlvbuf is B6EFBBF0 [12:44:58]SAM_PROTO_ClearQueue [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 09 00 00 [12:44:58]Write to MH i2c: E2 08 00 BE 1A 80 09 00 00 00 00 00 00 4A [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_ClearQueue done [12:44:58]KKMCreateOFDPacket [12:44:58]OFDProtocolAddRootSTLVToBuf [12:44:58]FM_MakeSignedData [12:44:58]FM_MakeSignedData [12:44:58]SAM_PROTO_SignData [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 0D 01 02 [12:44:58]Write to MH i2c: E2 08 00 BF 1A 80 0D 01 02 00 00 00 00 52 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [12:44:58]RAPDU: 90 00 [12:44:58]wFMCommunicate OK [12:44:58]wFMCommunicate request_size=255 [12:44:58]MH_SAM_APDU [12:44: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 92 00 00 00 F4 03 04 00 CB 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 82 02 00 35 04 06 00 1D [12:44:58]Write to MH i2c: E2 02 01 C0 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 92 00 00 00 F4 03 04 00 CB 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 82 02 00 35 04 06 00 1D 00 00 E0 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 02 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 C0 1A 00 90 00 4E [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]wFMCommunicate request_size=10 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 02 02 05 83 CF BF A5 01 [12:44:59]Write to MH i2c: E2 0D 00 C1 1A 80 0D 02 02 05 00 83 CF BF A5 01 00 00 16 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 02 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 C1 1A 00 90 00 4F [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 03 02 [12:44:59]Write to MH i2c: E2 08 00 C2 1A 80 0D 03 02 00 00 00 00 57 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 0B 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 0B 00 C2 1A 00 DD EF F4 52 F9 48 BC D2 90 00 39 [12:44:59]RAPDU: DD EF F4 52 F9 48 BC D2 90 00 [12:44:59]wFMCommunicate OK [12:44:59]SAM_PROTO_SignData done [12:44:59]FM_MakeSignedData done [12:44:59]CreateOFDProtocolMessage [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 11 00 00 [12:44:59]Write to MH i2c: E2 08 00 C3 1A 80 11 00 00 00 00 00 00 57 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 17 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 17 00 C3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [12:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:44:59]wFMCommunicate OK [12:44:59]CreateOFDProtocolMessage done [12:44:59]OFDSenderStorePacket 164586 [12:44:59]StoreOFDPacket docnum=164586 [12:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 49 07 01 DC 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 92 00 00 00 F4 03 04 00 CB 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 82 02 00 35 04 06 00 1D 83 CF BF A5 01 DD EF F4 52 F9 48 BC D2 [12:44:59]CheckFolder [12:44:59]dirname=/storage/ofd_packets [12:44:59]CheckFolder done [12:44:59]ProducePacketName [12:44:59]name=ofd_packets/00164586 [12:44:59]NVStorageSaveData ofd_packets/00164586 [12:44:59]File name is /storage/ofd_packets/00164586 [12:44:59]Write 301 bytes [12:44:59]NVStorageSaveData done [12:44:59]OFDSenderStorePacket done [12:44:59]KKMCreateOFDPacket done [12:44:59]NVStorageSaveData kkm_last_timestamp [12:44:59]File name is /storage/kkm_last_timestamp [12:44:59]Write 4 bytes [12:44:59]NVStorageSaveData done [12:44:59]ExternCall_PrintAddStr [12:44:59]wPrintStart [12:44:59]Write to MH i2c: 01 00 00 C4 1A DE [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 FF 0F F3 [12:44:59]RasterBufferAndPrint [12:44:59]line Счет N : (1)458677 [12:44:59]line ИНН: 02508201610067 [12:44:59]line Контрольно-Кассовый Чек [12:44:59]line ПРОДАЖА [12:44:59]line ТРК (МРК, ГНК) : 22 [12:44:59]line Товар: 2710124130 [12:44:59]line Аи-92-К-5 [12:44:59]line 7.600 * 65.80 [12:44:59]line = 500.08 [12:44:59]line НДС 12% НСП 1% [12:44:59]line > о реализуемом товаре [12:44:59]line ОКРУГЛЕНИЕ: -0.08 [12:44:59]line ИТОГО: 500.00 [12:44:59]line Внесено: 500.00 [12:44:59]line СДАЧА: 0.00 [12:44:59]line НСП 1% : 4.42 [12:44:59]line НДС 12% : 53.11 [12:44:59]line Наличными: 500.00 [12:44:59]line Безнал.: 0.00 [12:44:59]line Место: АЗС № 72 "Партнер Нефть" [12:44:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:44:59]line СНО: Общий режим [12:44:59]line Чек 146 13.07.2024 12:44 [12:44:59]line Смена: 446 ФФД: 1.0 [12:44:59]line ЗНМ: 0300000160 [12:44:59]line РНМ: 0000000000090829 [12:44:59]line Версия ККМ: 001 [12:44:59]line ФМ: 0000000000874718 [12:44:59]line ФД: 164586 [12:44:59]line ФПД: 32451963364609 [12:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164586&fm=32451963364609&tin=02508201610067®Number=0000000000090829&sum=50000 [12:44:59]written 0, free lines is 4095 [12:44:59]OFD Sender: Processing packet 164586 [packets to send 104, broken 103] [12:44:59]ProducePacketName [12:44:59]name=ofd_packets/00164586 [12:44:59]OFD Sender: To server: pG, [12:44:59]CommunicateWithHost lk.salyk.kg:30040 [12:44:59]ConnectInit lk.salyk.kg [12:44:59]Connected sock=10 [12:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 49 07 01 DC 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 92 00 00 00 F4 03 04 00 CB 76 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 82 02 00 35 04 06 00 1D 83 CF BF A5 01 DD EF F4 52 F9 48 BC D2 [12:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C CA 47 00 8A C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 82 02 00 F4 03 04 00 5C 1D 92 66 B6 04 01 00 00 6C C4 7F 34 B2 EF 0A 4C [12:44:59]CommunicateWithHost err = 0 [12:44:59]CheckOFDResponse [12:44:59]1017 (14) - 77093643461234 [12:44:59]1041 (16) - 0000000000874718 [12:44:59]1040 (4) - 164586 [12:44:59]1012 (4) - 13.07.2024 06:23 [12:44:59]1206 (1) - 0 [12:44:59]OFD Sender: Remove packet 164586 [12:44:59]ProducePacketName [12:44:59]name=ofd_packets/00164586 [12:44:59]NVStorageDeleteData [12:45:00]Write to MH i2c: 01 00 00 EE 1A 08 [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 EE 1A 00 00 00 00 00 F4 0C 0F [12:45:00]RasterBufferAndPrint [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]written 0, free lines is 3323 [12:45:00]MH_Cut [12:45:00]Write to MH i2c: D1 01 00 F5 1A 01 E1 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 01 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 01 00 F5 1A 00 E0 [12:45:00]Write to MH i2c: 01 00 00 F6 1A 10 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]OFD Sender: No OFD packet to send [12:45:00]*** Cut start [12:45:00]*** Partial cut [12:45:00]*** CUTSNS_PIN = 1 [12:45:00]*** CUTSNS_PIN = 0 [12:45:00]*** Brake cut motor [12:45:01]Read from MH i2c: 01 [12:45:01]MH_I2C_Read... [12:45:01]*** Stop cut motor [12:45:01]*** Cut end [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 F6 1A 00 00 00 00 00 FF 0F 25 [12:45:01]process_action close_receipt done [12:45:01]requested_data is exist [12:45:01]produce_requested_data [12:45:01]requested_item fm.sn is exist - process it [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 11 00 00 [12:45:01]Write to MH i2c: E2 08 00 F7 1A 80 11 00 00 00 00 00 00 8B [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 17 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 17 00 F7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [12:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:45:01]wFMCommunicate OK [12:45:01]requested_item fd.num is exist - process it [12:45:01]SAM_PROTO_GetFieldsCounters [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 13 00 00 [12:45:01]Write to MH i2c: E2 08 00 F8 1A 80 13 00 00 00 00 00 00 8E [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 62 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 62 00 F8 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 82 02 00 0E 04 04 00 BE 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 98 [12:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:01]wFMCommunicate OK [12:45:01]SAM_PROTO_GetFieldsCounters done [12:45:01]requested_item shift.num is exist - process it [12:45:01]requested_item shift.opened is exist - process it [12:45:01]req_shift_opened [12:45:01]FM_GetShiftState [12:45:01]SAM_PROTO_GetShiftState [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 13 01 00 [12:45:01]Write to MH i2c: E2 08 00 F9 1A 80 13 01 00 00 00 00 00 90 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 F9 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 71 [12:45:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:45:01]wFMCommunicate OK [12:45:01]SAM_PROTO_GetShiftState done [12:45:01]FM_GetShiftState done [12:45:01]req_shift_opened done [12:45:01]requested_item shift.open_date is exist - process it [12:45:01]req_shift_open_date [12:45:01]req_shift_open_date done [12:45:01]produce_requested_data done [12:45:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164586,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:45:01]process_action_free close_receipt [12:45:01]json_value_free [12:45:01]json_value_free done [12:45:01]process_json_proto returns [12:45:01]Send response to host [12:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164586,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:45:01]free response buf [12:45:01]execute_script done [12:45:01]execute_script returns [12:45:01]free content buf [12:45:01]Sock 7.Close socket [12:45:01]Sock 7.Thread stoped [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]accept exits with 9 [12:50:50]New connection [12:50:50]New thread 3067149668 created [12:50:50]Thread 3067293028 joined [12:50:50]Waiting for new connection... [12:50:50] Sock 9.Parse request [12:50:50]Sock 9.Check first char [12:50:50]Sock 9.First char is OK [12:50:50]request: POST /json_proto HTTP/1.0 [12:50:50]Method: POST [12:50:50]URL: /json_proto [12:50:50]Method is POST - this is cgi request [12:50:50]url: /json_proto [12:50:50]query_string will be loaded in cgi processing [12:50:50]execute_cgi json_proto POST (null) [12:50:50]execute_cgi path=json_proto method=POST [12:50:50]POST find Content-Length [12:50:50]Host: 172.17.56.4:8080 [12:50:50]Content-Length: 640 [12:50:50]Content-Type: application/json [12:50:50] [12:50:50]POST finish read [12:50:50]Found Content-Length = 640 [12:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]execute_script... [12:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]POST & json_proto [12:50:50]process_json_proto [12:50:50]json parsed OK: [12:50:50]protocol is kg_v1.0 [12:50:50]action value=close_receipt [12:50:50]process_action close_receipt [12:50:50]cmd_close_receipt [12:50:50]MH_GetDate [12:50:50]Write to MH i2c: F0 00 00 FA 1A 03 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 FA 1A 00 2C 78 92 66 C9 DC B2 64 63 [12:50:50]GetLastDocTimeStamp 1720874699 [12:50:50]current date 1720875052 [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 FB 1A 80 13 01 00 00 00 00 00 92 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]OFD Sender: No OFD packet to send [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 FB 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 73 [12:50:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]opened in 1720831249 [12:50:50]opened+sec_in_day 1720917649 [12:50:50]quantity*price = 65800 [12:50:50]sum+1 = 65801 [12:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 147 13.07.2024 12:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164587 ФПД: 253427782024648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164587&fm=253427782024648&tin=02508201610067®Number=0000000000090829&sum=65800 [12:50:51]StoreToDocumentArchive [12:50:51]shift 446 fd 164587 [12:50:51]save to /storage/0446/doc_00164587 [12:50:51]save last doc name /storage/0446/doc_00164587 to /storage/kkm_last_doc_name [12:50:51]save OK [12:50:51]Clear old archive folders... [12:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:51]tlvbuf is 01496D10 [12:50:51]SAM_PROTO_ClearQueue [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 09 00 00 [12:50:51]Write to MH i2c: E2 08 00 08 1B 80 09 00 00 00 00 00 00 95 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]SAM_PROTO_ClearQueue done [12:50:51]KKMCreateOFDPacket [12:50:51]OFDProtocolAddRootSTLVToBuf [12:50:51]FM_MakeSignedData [12:50:51]FM_MakeSignedData [12:50:51]SAM_PROTO_SignData [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 01 02 [12:50:51]Write to MH i2c: E2 08 00 09 1B 80 0D 01 02 00 00 00 00 9D [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=255 [12:50:52]MH_SAM_APDU [12:50: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 93 00 00 00 F4 03 04 00 2C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 82 02 00 35 04 06 00 E6 [12:50:52]Write to MH i2c: E2 02 01 0A 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 93 00 00 00 F4 03 04 00 2C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 82 02 00 35 04 06 00 E6 00 00 C1 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 0A 1B 00 90 00 99 [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=10 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 02 02 05 7D C0 EC 7D C8 [12:50:52]Write to MH i2c: E2 0D 00 0B 1B 80 0D 02 02 05 00 7D C0 EC 7D C8 00 00 18 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 03 02 [12:50:52]Write to MH i2c: E2 08 00 0C 1B 80 0D 03 02 00 00 00 00 A2 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 0C 1B 00 47 4F 0A 58 9A 65 48 7D 90 00 5F [12:50:52]RAPDU: 47 4F 0A 58 9A 65 48 7D 90 00 [12:50:52]wFMCommunicate OK [12:50:52]SAM_PROTO_SignData done [12:50:52]FM_MakeSignedData done [12:50:52]CreateOFDProtocolMessage [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 11 00 00 [12:50:52]Write to MH i2c: E2 08 00 0D 1B 80 11 00 00 00 00 00 00 A2 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 0D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [12:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:52]wFMCommunicate OK [12:50:52]CreateOFDProtocolMessage done [12:50:52]OFDSenderStorePacket 164587 [12:50:52]StoreOFDPacket docnum=164587 [12:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 30 07 01 03 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 93 00 00 00 F4 03 04 00 2C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 82 02 00 35 04 06 00 E6 7D C0 EC 7D C8 47 4F 0A 58 9A 65 48 7D [12:50:52]CheckFolder [12:50:52]dirname=/storage/ofd_packets [12:50:52]CheckFolder done [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00164587 [12:50:52]NVStorageSaveData ofd_packets/00164587 [12:50:52]File name is /storage/ofd_packets/00164587 [12:50:52]Write 301 bytes [12:50:52]NVStorageSaveData done [12:50:52]OFDSenderStorePacket done [12:50:52]KKMCreateOFDPacket done [12:50:52]NVStorageSaveData kkm_last_timestamp [12:50:52]File name is /storage/kkm_last_timestamp [12:50:52]Write 4 bytes [12:50:52]NVStorageSaveData done [12:50:52]ExternCall_PrintAddStr [12:50:52]wPrintStart [12:50:52]Write to MH i2c: 01 00 00 0E 1B 29 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 FF 0F 3E [12:50:52]RasterBufferAndPrint [12:50:52]line Счет N : (1)458678 [12:50:52]line ИНН: 02508201610067 [12:50:52]line Контрольно-Кассовый Чек [12:50:52]line ПРОДАЖА [12:50:52]line ТРК (МРК, ГНК) : 22 [12:50:52]line Товар: 2710124130 [12:50:52]line Аи-92-К-5 [12:50:52]line 10.000 * 65.80 [12:50:52]line = 658.00 [12:50:52]line НДС 12% НСП 1% [12:50:52]line > о реализуемом товаре [12:50:52]line ИТОГО: 658.00 [12:50:52]line НСП 1% : 5.82 [12:50:52]line НДС 12% : 69.88 [12:50:52]line Наличными: 658.00 [12:50:52]line Безнал.: 0.00 [12:50:52]line Место: АЗС № 72 "Партнер Нефть" [12:50:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:50:52]line СНО: Общий режим [12:50:52]line Чек 147 13.07.2024 12:50 [12:50:52]line Смена: 446 ФФД: 1.0 [12:50:52]line ЗНМ: 0300000160 [12:50:52]line РНМ: 0000000000090829 [12:50:52]line Версия ККМ: 001 [12:50:52]line ФМ: 0000000000874718 [12:50:52]line ФД: 164587 [12:50:52]line ФПД: 253427782024648 [12:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164587&fm=253427782024648&tin=02508201610067®Number=0000000000090829&sum=65800 [12:50:52]written 0, free lines is 4095 [12:50:52]OFD Sender: Processing packet 164587 [packets to send 104, broken 103] [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00164587 [12:50:52]OFD Sender: To server: pG, [12:50:52]CommunicateWithHost lk.salyk.kg:30040 [12:50:52]ConnectInit lk.salyk.kg [12:50:52]Connected sock=10 [12:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 30 07 01 03 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 93 00 00 00 F4 03 04 00 2C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 82 02 00 35 04 06 00 E6 7D C0 EC 7D C8 47 4F 0A 58 9A 65 48 7D [12:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C 5C 47 00 03 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 34 37 31 38 10 04 04 00 EB 82 02 00 F4 03 04 00 BD 1E 92 66 B6 04 01 00 00 0E A6 A6 18 96 38 31 E0 [12:50:53]CommunicateWithHost err = 0 [12:50:53]CheckOFDResponse [12:50:53]1017 (14) - 77093643461234 [12:50:53]1041 (16) - 0000000000874718 [12:50:53]1040 (4) - 164587 [12:50:53]1012 (4) - 13.07.2024 06:29 [12:50:53]1206 (1) - 0 [12:50:53]OFD Sender: Remove packet 164587 [12:50:53]ProducePacketName [12:50:53]name=ofd_packets/00164587 [12:50:53]NVStorageDeleteData [12:50:53]Write to MH i2c: 01 00 00 35 1B 50 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 31 0D 95 [12:50:53]RasterBufferAndPrint [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]written 0, free lines is 3383 [12:50:53]MH_Cut [12:50:53]Write to MH i2c: D1 01 00 3C 1B 01 29 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 01 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 01 00 3C 1B 00 28 [12:50:53]Write to MH i2c: 01 00 00 3D 1B 58 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]OFD Sender: No OFD packet to send [12:50:53]*** Cut start [12:50:53]*** Partial cut [12:50:53]*** CUTSNS_PIN = 1 [12:50:53]*** CUTSNS_PIN = 0 [12:50:54]*** Brake cut motor [12:50:54]Read from MH i2c: 01 [12:50:54]MH_I2C_Read... [12:50:54]*** Stop cut motor [12:50:54]*** Cut end [12:50:54]Read from MH i2c: 01 07 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 FF 0F 6D [12:50:54]process_action close_receipt done [12:50:54]requested_data is exist [12:50:54]produce_requested_data [12:50:54]requested_item fm.sn is exist - process it [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 11 00 00 [12:50:54]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [12:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:54]wFMCommunicate OK [12:50:54]requested_item fd.num is exist - process it [12:50:54]SAM_PROTO_GetFieldsCounters [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 13 00 00 [12:50:54]Write to MH i2c: E2 08 00 3F 1B 80 13 00 00 00 00 00 00 D6 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 62 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 62 00 3F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 82 02 00 0E 04 04 00 BE 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 E4 [12:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:54]wFMCommunicate OK [12:50:54]SAM_PROTO_GetFieldsCounters done [12:50:54]requested_item shift.num is exist - process it [12:50:54]requested_item shift.opened is exist - process it [12:50:54]req_shift_opened [12:50:54]FM_GetShiftState [12:50:54]SAM_PROTO_GetShiftState [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 13 01 00 [12:50:54]Write to MH i2c: E2 08 00 40 1B 80 13 01 00 00 00 00 00 D8 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 0E 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 0E 00 40 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B9 [12:50:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:50:54]wFMCommunicate OK [12:50:54]SAM_PROTO_GetShiftState done [12:50:54]FM_GetShiftState done [12:50:54]req_shift_opened done [12:50:54]requested_item shift.open_date is exist - process it [12:50:54]req_shift_open_date [12:50:54]req_shift_open_date done [12:50:54]produce_requested_data done [12:50:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164587,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:50:54]process_action_free close_receipt [12:50:54]json_value_free [12:50:54]json_value_free done [12:50:54]process_json_proto returns [12:50:54]Send response to host [12:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164587,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:50:54]free response buf [12:50:54]execute_script done [12:50:54]execute_script returns [12:50:54]free content buf [12:50:54]Sock 9.Close socket [12:50:54]Sock 9.Thread stoped [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:26]accept exits with 7 [12:52:26]New connection [12:52:26]New thread 3067293028 created [12:52:26]Thread 3067149668 joined [12:52:26]Waiting for new connection... [12:52:26] Sock 7.Parse request [12:52:26]Sock 7.Check first char [12:52:26]Sock 7.First char is OK [12:52:26]request: POST /json_proto HTTP/1.0 [12:52:26]Method: POST [12:52:26]URL: /json_proto [12:52:26]Method is POST - this is cgi request [12:52:26]url: /json_proto [12:52:26]query_string will be loaded in cgi processing [12:52:26]execute_cgi json_proto POST (null) [12:52:26]execute_cgi path=json_proto method=POST [12:52:26]POST find Content-Length [12:52:26]Host: 172.17.56.4:8080 [12:52:26]Content-Length: 677 [12:52:26]Content-Type: application/json [12:52:26] [12:52:26]POST finish read [12:52:26]Found Content-Length = 677 [12:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:52:26]execute_script... [12:52: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)458680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:52:26]POST & json_proto [12:52:26]process_json_proto [12:52:26]json parsed OK: [12:52:26]protocol is kg_v1.0 [12:52:26]action value=close_receipt [12:52:26]process_action close_receipt [12:52:26]cmd_close_receipt [12:52:26]MH_GetDate [12:52:26]Write to MH i2c: F0 00 00 41 1B 4B [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: F0 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: F0 09 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: F0 09 00 41 1B 00 8C 78 92 66 C9 DC B2 64 0B [12:52:26]GetLastDocTimeStamp 1720875052 [12:52:26]current date 1720875148 [12:52:26]FM_GetShiftState [12:52:26]SAM_PROTO_GetShiftState [12:52:26]wFMCommunicate request_size=4 [12:52:26]MH_SAM_APDU [12:52:26]CAPDU: 80 13 01 00 [12:52:26]Write to MH i2c: E2 08 00 42 1B 80 13 01 00 00 00 00 00 DA [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 42 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BB [12:52:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetShiftState done [12:52:26]FM_GetShiftState done [12:52:26]opened in 1720831249 [12:52:26]opened+sec_in_day 1720917649 [12:52:26]quantity*price = 50008 [12:52:26]sum+1 = 50009 [12:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 148 13.07.2024 12:52 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164588 ФПД: 90045721925184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125228&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164588&fm=90045721925184&tin=02508201610067®Number=0000000000090829&sum=50000 [12:52:27]StoreToDocumentArchive [12:52:27]shift 446 fd 164588 [12:52:27]save to /storage/0446/doc_00164588 [12:52:27]save last doc name /storage/0446/doc_00164588 to /storage/kkm_last_doc_name [12:52:27]save OK [12:52:27]Clear old archive folders... [12:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:27]tlvbuf is 014DD9F0 [12:52:27]SAM_PROTO_ClearQueue [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 09 00 00 [12:52:27]Write to MH i2c: E2 08 00 4F 1B 80 09 00 00 00 00 00 00 DC [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]SAM_PROTO_ClearQueue done [12:52:27]KKMCreateOFDPacket [12:52:27]OFDProtocolAddRootSTLVToBuf [12:52:27]FM_MakeSignedData [12:52:27]FM_MakeSignedData [12:52:27]SAM_PROTO_SignData [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 01 02 [12:52:27]Write to MH i2c: E2 08 00 50 1B 80 0D 01 02 00 00 00 00 E4 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=255 [12:52:27]MH_SAM_APDU [12:52: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 8C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 82 02 00 35 04 06 00 51 [12:52:27]Write to MH i2c: E2 02 01 51 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 8C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 82 02 00 35 04 06 00 51 00 00 6D [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=10 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 02 02 05 E5 67 44 D6 40 [12:52:27]Write to MH i2c: E2 0D 00 52 1B 80 0D 02 02 05 00 E5 67 44 D6 40 00 00 97 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [12:52:27]RAPDU: 90 00 [12:52:27]wFMCommunicate OK [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 0D 03 02 [12:52:27]Write to MH i2c: E2 08 00 53 1B 80 0D 03 02 00 00 00 00 E9 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 0B 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 0B 00 53 1B 00 8C C4 2D D1 B4 73 F2 AC 90 00 FD [12:52:27]RAPDU: 8C C4 2D D1 B4 73 F2 AC 90 00 [12:52:27]wFMCommunicate OK [12:52:27]SAM_PROTO_SignData done [12:52:27]FM_MakeSignedData done [12:52:27]CreateOFDProtocolMessage [12:52:27]wFMCommunicate request_size=4 [12:52:27]MH_SAM_APDU [12:52:27]CAPDU: 80 11 00 00 [12:52:27]Write to MH i2c: E2 08 00 54 1B 80 11 00 00 00 00 00 00 E9 [12:52:27]Write i2c OK [12:52:27]MH_I2C_Read... [12:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:27]Read from MH i2c: E2 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 17 00 [12:52:27]MH_I2C_Read... [12:52:27]Read from MH i2c: E2 17 00 54 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [12:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:52:27]wFMCommunicate OK [12:52:27]CreateOFDProtocolMessage done [12:52:27]OFDSenderStorePacket 164588 [12:52:27]StoreOFDPacket docnum=164588 [12:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 34 07 01 10 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 8C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 82 02 00 35 04 06 00 51 E5 67 44 D6 40 8C C4 2D D1 B4 73 F2 AC [12:52:27]CheckFolder [12:52:27]dirname=/storage/ofd_packets [12:52:27]CheckFolder done [12:52:27]ProducePacketName [12:52:27]name=ofd_packets/00164588 [12:52:27]NVStorageSaveData ofd_packets/00164588 [12:52:27]File name is /storage/ofd_packets/00164588 [12:52:27]Write 301 bytes [12:52:27]NVStorageSaveData done [12:52:27]OFDSenderStorePacket done [12:52:27]KKMCreateOFDPacket done [12:52:27]NVStorageSaveData kkm_last_timestamp [12:52:27]File name is /storage/kkm_last_timestamp [12:52:27]Write 4 bytes [12:52:28]NVStorageSaveData done [12:52:28]ExternCall_PrintAddStr [12:52:28]wPrintStart [12:52:28]Write to MH i2c: 01 00 00 55 1B 70 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 FF 0F 85 [12:52:28]RasterBufferAndPrint [12:52:28]line Счет N : (1)458680 [12:52:28]line ИНН: 02508201610067 [12:52:28]line Контрольно-Кассовый Чек [12:52:28]line ПРОДАЖА [12:52:28]line ТРК (МРК, ГНК) : 22 [12:52:28]line Товар: 2710124130 [12:52:28]line Аи-92-К-5 [12:52:28]line 7.600 * 65.80 [12:52:28]line = 500.08 [12:52:28]line НДС 12% НСП 1% [12:52:28]line > о реализуемом товаре [12:52:28]line ОКРУГЛЕНИЕ: -0.08 [12:52:28]line ИТОГО: 500.00 [12:52:28]line Внесено: 500.00 [12:52:28]line СДАЧА: 0.00 [12:52:28]line НСП 1% : 4.42 [12:52:28]line НДС 12% : 53.11 [12:52:28]line Наличными: 500.00 [12:52:28]line Безнал.: 0.00 [12:52:28]line Место: АЗС № 72 "Партнер Нефть" [12:52:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:52:28]line СНО: Общий режим [12:52:28]line Чек 148 13.07.2024 12:52 [12:52:28]line Смена: 446 ФФД: 1.0 [12:52:28]line ЗНМ: 0300000160 [12:52:28]line РНМ: 0000000000090829 [12:52:28]line Версия ККМ: 001 [12:52:28]line ФМ: 0000000000874718 [12:52:28]line ФД: 164588 [12:52:28]line ФПД: 90045721925184 [12:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125228&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164588&fm=90045721925184&tin=02508201610067®Number=0000000000090829&sum=50000 [12:52:28]written 0, free lines is 4095 [12:52:28]OFD Sender: Processing packet 164588 [packets to send 104, broken 103] [12:52:28]ProducePacketName [12:52:28]name=ofd_packets/00164588 [12:52:28]OFD Sender: To server: pG, [12:52:28]CommunicateWithHost lk.salyk.kg:30040 [12:52:28]ConnectInit lk.salyk.kg [12:52:28]Connected sock=10 [12:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 34 07 01 10 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 8C 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 82 02 00 35 04 06 00 51 E5 67 44 D6 40 8C C4 2D D1 B4 73 F2 AC [12:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D5 D6 47 00 7F 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 34 37 31 38 10 04 04 00 EC 82 02 00 F4 03 04 00 1D 1F 92 66 B6 04 01 00 00 80 1E 1C 30 E0 5E DF 14 [12:52:28]CommunicateWithHost err = 0 [12:52:28]CheckOFDResponse [12:52:28]1017 (14) - 77093643461234 [12:52:28]1041 (16) - 0000000000874718 [12:52:28]1040 (4) - 164588 [12:52:28]1012 (4) - 13.07.2024 06:30 [12:52:28]1206 (1) - 0 [12:52:28]OFD Sender: Remove packet 164588 [12:52:28]ProducePacketName [12:52:28]name=ofd_packets/00164588 [12:52:28]NVStorageDeleteData [12:52:28]Write to MH i2c: 01 00 00 7F 1B 9A [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 F4 0C A1 [12:52:28]RasterBufferAndPrint [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]line [12:52:28]written 0, free lines is 3323 [12:52:28]MH_Cut [12:52:28]Write to MH i2c: D1 01 00 86 1B 01 73 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: D1 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: D1 01 00 [12:52:28]MH_I2C_Read... [12:52:28]Read from MH i2c: D1 01 00 86 1B 00 72 [12:52:28]Write to MH i2c: 01 00 00 87 1B A2 [12:52:28]Write i2c OK [12:52:28]MH_I2C_Read... [12:52:29]OFD Sender: No OFD packet to send [12:52:29]*** Cut start [12:52:29]*** Partial cut [12:52:29]*** CUTSNS_PIN = 1 [12:52:29]*** CUTSNS_PIN = 0 [12:52:29]*** Brake cut motor [12:52:30]Read from MH i2c: 01 [12:52:30]MH_I2C_Read... [12:52:30]*** Stop cut motor [12:52:30]*** Cut end [12:52:30]Read from MH i2c: 01 07 00 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 FF 0F B7 [12:52:30]process_action close_receipt done [12:52:30]requested_data is exist [12:52:30]produce_requested_data [12:52:30]requested_item fm.sn is exist - process it [12:52:30]wFMCommunicate request_size=4 [12:52:30]MH_SAM_APDU [12:52:30]CAPDU: 80 11 00 00 [12:52:30]Write to MH i2c: E2 08 00 88 1B 80 11 00 00 00 00 00 00 1D [12:52:30]Write i2c OK [12:52:30]MH_I2C_Read... [12:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:30]Read from MH i2c: E2 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 17 00 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 17 00 88 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [12:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:52:30]wFMCommunicate OK [12:52:30]requested_item fd.num is exist - process it [12:52:30]SAM_PROTO_GetFieldsCounters [12:52:30]wFMCommunicate request_size=4 [12:52:30]MH_SAM_APDU [12:52:30]CAPDU: 80 13 00 00 [12:52:30]Write to MH i2c: E2 08 00 89 1B 80 13 00 00 00 00 00 00 20 [12:52:30]Write i2c OK [12:52:30]MH_I2C_Read... [12:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:30]Read from MH i2c: E2 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 62 00 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 62 00 89 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 82 02 00 0E 04 04 00 BE 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 32 [12:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:30]wFMCommunicate OK [12:52:30]SAM_PROTO_GetFieldsCounters done [12:52:30]requested_item shift.num is exist - process it [12:52:30]requested_item shift.opened is exist - process it [12:52:30]req_shift_opened [12:52:30]FM_GetShiftState [12:52:30]SAM_PROTO_GetShiftState [12:52:30]wFMCommunicate request_size=4 [12:52:30]MH_SAM_APDU [12:52:30]CAPDU: 80 13 01 00 [12:52:30]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [12:52:30]Write i2c OK [12:52:30]MH_I2C_Read... [12:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:30]Read from MH i2c: E2 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 0E 00 [12:52:30]MH_I2C_Read... [12:52:30]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 03 [12:52:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:52:30]wFMCommunicate OK [12:52:30]SAM_PROTO_GetShiftState done [12:52:30]FM_GetShiftState done [12:52:30]req_shift_opened done [12:52:30]requested_item shift.open_date is exist - process it [12:52:30]req_shift_open_date [12:52:30]req_shift_open_date done [12:52:30]produce_requested_data done [12:52:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164588,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:52:30]process_action_free close_receipt [12:52:30]json_value_free [12:52:30]json_value_free done [12:52:30]process_json_proto returns [12:52:30]Send response to host [12:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164588,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:52:30]free response buf [12:52:30]execute_script done [12:52:30]execute_script returns [12:52:30]free content buf [12:52:30]Sock 7.Close socket [12:52:30]Sock 7.Thread stoped [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:52:59]accept exits with 9 [12:52:59]New connection [12:52:59]New thread 3067149668 created [12:52:59]Thread 3067293028 joined [12:52:59]Waiting for new connection... [12:52:59] Sock 9.Parse request [12:52:59]Sock 9.Check first char [12:52:59]Sock 9.First char is OK [12:52:59]request: POST /json_proto HTTP/1.0 [12:52:59]Method: POST [12:52:59]URL: /json_proto [12:52:59]Method is POST - this is cgi request [12:52:59]url: /json_proto [12:52:59]query_string will be loaded in cgi processing [12:52:59]execute_cgi json_proto POST (null) [12:52:59]execute_cgi path=json_proto method=POST [12:52:59]POST find Content-Length [12:52:59]Host: 172.17.56.4:8080 [12:52:59]Content-Length: 682 [12:52:59]Content-Type: application/json [12:52:59] [12:52:59]POST finish read [12:52:59]Found Content-Length = 682 [12:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:59]execute_script... [12:52: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)458681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:59]POST & json_proto [12:52:59]process_json_proto [12:52:59]json parsed OK: [12:52:59]protocol is kg_v1.0 [12:52:59]action value=close_receipt [12:52:59]process_action close_receipt [12:52:59]cmd_close_receipt [12:52:59]MH_GetDate [12:52:59]Write to MH i2c: F0 00 00 8B 1B 95 [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 8B 1B 00 AD 78 92 66 C9 DC B2 64 76 [12:52:59]GetLastDocTimeStamp 1720875148 [12:52:59]current date 1720875181 [12:52:59]FM_GetShiftState [12:52:59]SAM_PROTO_GetShiftState [12:52:59]wFMCommunicate request_size=4 [12:52:59]MH_SAM_APDU [12:52:59]CAPDU: 80 13 01 00 [12:52:59]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:59]Read from MH i2c: E2 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 05 [12:52:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:52:59]wFMCommunicate OK [12:52:59]SAM_PROTO_GetShiftState done [12:52:59]FM_GetShiftState done [12:52:59]opened in 1720831249 [12:52:59]opened+sec_in_day 1720917649 [12:52:59]quantity*price = 100016 [12:52:59]sum+1 = 100017 [12:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 149 13.07.2024 12:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164589 ФПД: 121366672034909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164589&fm=121366672034909&tin=02508201610067®Number=0000000000090829&sum=100000 [12:53:00]StoreToDocumentArchive [12:53:00]shift 446 fd 164589 [12:53:00]save to /storage/0446/doc_00164589 [12:53:00]save last doc name /storage/0446/doc_00164589 to /storage/kkm_last_doc_name [12:53:00]save OK [12:53:00]Clear old archive folders... [12:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:00]tlvbuf is B6EFB180 [12:53:00]SAM_PROTO_ClearQueue [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 09 00 00 [12:53:00]Write to MH i2c: E2 08 00 99 1B 80 09 00 00 00 00 00 00 26 [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [12:53:00]RAPDU: 90 00 [12:53:00]wFMCommunicate OK [12:53:00]SAM_PROTO_ClearQueue done [12:53:00]KKMCreateOFDPacket [12:53:00]OFDProtocolAddRootSTLVToBuf [12:53:00]FM_MakeSignedData [12:53:00]FM_MakeSignedData [12:53:00]SAM_PROTO_SignData [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 0D 01 02 [12:53:00]Write to MH i2c: E2 08 00 9A 1B 80 0D 01 02 00 00 00 00 2E [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [12:53:00]RAPDU: 90 00 [12:53:00]wFMCommunicate OK [12:53:00]wFMCommunicate request_size=255 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 82 02 00 35 04 06 00 6E [12:53:00]Write to MH i2c: E2 02 01 9B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 82 02 00 35 04 06 00 6E 00 00 99 [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=10 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 02 02 05 61 E1 5F CC 5D [12:53:01]Write to MH i2c: E2 0D 00 9C 1B 80 0D 02 02 05 00 61 E1 5F CC 5D 00 00 05 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 03 02 [12:53:01]Write to MH i2c: E2 08 00 9D 1B 80 0D 03 02 00 00 00 00 33 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 9D 1B 00 49 13 8D 5B 56 7D CD C8 90 00 E0 [12:53:01]RAPDU: 49 13 8D 5B 56 7D CD C8 90 00 [12:53:01]wFMCommunicate OK [12:53:01]SAM_PROTO_SignData done [12:53:01]FM_MakeSignedData done [12:53:01]CreateOFDProtocolMessage [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 11 00 00 [12:53:01]Write to MH i2c: E2 08 00 9E 1B 80 11 00 00 00 00 00 00 33 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 9E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [12:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:01]wFMCommunicate OK [12:53:01]CreateOFDProtocolMessage done [12:53:01]OFDSenderStorePacket 164589 [12:53:01]StoreOFDPacket docnum=164589 [12:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF B1 07 01 43 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 82 02 00 35 04 06 00 6E 61 E1 5F CC 5D 49 13 8D 5B 56 7D CD C8 [12:53:01]CheckFolder [12:53:01]dirname=/storage/ofd_packets [12:53:01]CheckFolder done [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00164589 [12:53:01]NVStorageSaveData ofd_packets/00164589 [12:53:01]File name is /storage/ofd_packets/00164589 [12:53:01]Write 301 bytes [12:53:01]NVStorageSaveData done [12:53:01]OFDSenderStorePacket done [12:53:01]KKMCreateOFDPacket done [12:53:01]NVStorageSaveData kkm_last_timestamp [12:53:01]File name is /storage/kkm_last_timestamp [12:53:01]Write 4 bytes [12:53:01]NVStorageSaveData done [12:53:01]OFD Sender: Processing packet 164589 [packets to send 104, broken 103] [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00164589 [12:53:01]OFD Sender: To server: pG, [12:53:01]CommunicateWithHost lk.salyk.kg:30040 [12:53:01]ConnectInit lk.salyk.kg [12:53:01]ExternCall_PrintAddStr [12:53:01]wPrintStart [12:53:01]Write to MH i2c: 01 00 00 9F 1B BA [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [12:53:01]RasterBufferAndPrint [12:53:01]line Счет N : (1)458681 [12:53:01]line ИНН: 02508201610067 [12:53:01]line Контрольно-Кассовый Чек [12:53:01]line ПРОДАЖА [12:53:01]line ТРК (МРК, ГНК) : 12 [12:53:01]line Товар: 2710124130 [12:53:01]line Аи-92-К-5 [12:53:01]line 15.200 * 65.80 [12:53:01]line = 1000.16 [12:53:01]line НДС 12% НСП 1% [12:53:01]line > о реализуемом товаре [12:53:01]line ОКРУГЛЕНИЕ: -0.16 [12:53:01]line ИТОГО: 1000.00 [12:53:01]line Внесено: 1000.00 [12:53:01]line СДАЧА: 0.00 [12:53:01]line НСП 1% : 8.85 [12:53:01]line НДС 12% : 106.21 [12:53:01]line Наличными: 1000.00 [12:53:01]line Безнал.: 0.00 [12:53:01]line Место: АЗС № 72 "Партнер Нефть" [12:53:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:53:01]line СНО: Общий режим [12:53:01]line Чек 149 13.07.2024 12:53 [12:53:01]line Смена: 446 ФФД: 1.0 [12:53:01]line ЗНМ: 0300000160 [12:53:01]line РНМ: 0000000000090829 [12:53:01]line Версия ККМ: 001 [12:53:01]line ФМ: 0000000000874718 [12:53:01]line ФД: 164589 [12:53:01]line ФПД: 121366672034909 [12:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164589&fm=121366672034909&tin=02508201610067®Number=0000000000090829&sum=100000 [12:53:01]Connected sock=11 [12:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF B1 07 01 43 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 82 02 00 35 04 06 00 6E 61 E1 5F CC 5D 49 13 8D 5B 56 7D CD C8 [12:53:01]written 0, free lines is 4095 [12:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E5 46 47 00 40 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 82 02 00 F4 03 04 00 3E 1F 92 66 B6 04 01 00 00 2F 15 9A 16 F4 76 13 24 [12:53:01]CommunicateWithHost err = 0 [12:53:01]CheckOFDResponse [12:53:01]1017 (14) - 77093643461234 [12:53:01]1041 (16) - 0000000000874718 [12:53:01]1040 (4) - 164589 [12:53:01]1012 (4) - 13.07.2024 06:31 [12:53:01]1206 (1) - 0 [12:53:01]OFD Sender: Remove packet 164589 [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00164589 [12:53:01]NVStorageDeleteData [12:53:02]Write to MH i2c: 01 00 00 C9 1B E4 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 C9 1B 00 00 00 00 00 FF 0C F6 [12:53:02]RasterBufferAndPrint [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]written 0, free lines is 3333 [12:53:02]MH_Cut [12:53:02]Write to MH i2c: D1 01 00 D0 1B 01 BD [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 D0 1B 00 BC [12:53:02]Write to MH i2c: 01 00 00 D1 1B EC [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]OFD Sender: No OFD packet to send [12:53:02]*** Cut start [12:53:02]*** Partial cut [12:53:02]*** CUTSNS_PIN = 1 [12:53:02]*** CUTSNS_PIN = 0 [12:53:03]*** Brake cut motor [12:53:03]Read from MH i2c: 01 [12:53:03]MH_I2C_Read... [12:53:03]*** Stop cut motor [12:53:03]*** Cut end [12:53:03]Read from MH i2c: 01 07 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 07 00 D1 1B 00 00 00 00 00 FF 0F 01 [12:53:03]process_action close_receipt done [12:53:03]requested_data is exist [12:53:03]produce_requested_data [12:53:03]requested_item fm.sn is exist - process it [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 11 00 00 [12:53:03]Write to MH i2c: E2 08 00 D2 1B 80 11 00 00 00 00 00 00 67 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 D2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [12:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:03]wFMCommunicate OK [12:53:03]requested_item fd.num is exist - process it [12:53:03]SAM_PROTO_GetFieldsCounters [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 00 00 [12:53:03]Write to MH i2c: E2 08 00 D3 1B 80 13 00 00 00 00 00 00 6A [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 D3 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 82 02 00 0E 04 04 00 BE 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 80 [12:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetFieldsCounters done [12:53:03]requested_item shift.num is exist - process it [12:53:03]requested_item shift.opened is exist - process it [12:53:03]req_shift_opened [12:53:03]FM_GetShiftState [12:53:03]SAM_PROTO_GetShiftState [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 01 00 [12:53:03]Write to MH i2c: E2 08 00 D4 1B 80 13 01 00 00 00 00 00 6C [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 D4 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4D [12:53:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetShiftState done [12:53:03]FM_GetShiftState done [12:53:03]req_shift_opened done [12:53:03]requested_item shift.open_date is exist - process it [12:53:03]req_shift_open_date [12:53:03]req_shift_open_date done [12:53:03]produce_requested_data done [12:53:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164589,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:53:03]process_action_free close_receipt [12:53:03]json_value_free [12:53:03]json_value_free done [12:53:03]process_json_proto returns [12:53:03]Send response to host [12:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164589,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:53:03]free response buf [12:53:03]execute_script done [12:53:03]execute_script returns [12:53:03]free content buf [12:53:03]Sock 9.Close socket [12:53:03]Sock 9.Thread stoped [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:36]accept exits with 7 [12:53:36]New connection [12:53:36]New thread 3067293028 created [12:53:36]Thread 3067149668 joined [12:53:36]Waiting for new connection... [12:53:36] Sock 7.Parse request [12:53:36]Sock 7.Check first char [12:53:36]Sock 7.First char is OK [12:53:36]request: POST /json_proto HTTP/1.0 [12:53:36]Method: POST [12:53:36]URL: /json_proto [12:53:36]Method is POST - this is cgi request [12:53:36]url: /json_proto [12:53:36]query_string will be loaded in cgi processing [12:53:36]execute_cgi json_proto POST (null) [12:53:36]execute_cgi path=json_proto method=POST [12:53:36]POST find Content-Length [12:53:36]Host: 172.17.56.4:8080 [12:53:36]Content-Length: 677 [12:53:36]Content-Type: application/json [12:53:36] [12:53:36]POST finish read [12:53:36]Found Content-Length = 677 [12:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [12:53:36]execute_script... [12:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [12:53:36]POST & json_proto [12:53:36]process_json_proto [12:53:36]json parsed OK: [12:53:36]protocol is kg_v1.0 [12:53:36]action value=close_receipt [12:53:36]process_action close_receipt [12:53:36]cmd_close_receipt [12:53:36]MH_GetDate [12:53:36]Write to MH i2c: F0 00 00 D5 1B DF [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: F0 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: F0 09 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: F0 09 00 D5 1B 00 D2 78 92 66 C9 DC B2 64 E5 [12:53:36]GetLastDocTimeStamp 1720875181 [12:53:36]current date 1720875218 [12:53:36]FM_GetShiftState [12:53:36]SAM_PROTO_GetShiftState [12:53:36]wFMCommunicate request_size=4 [12:53:36]MH_SAM_APDU [12:53:36]CAPDU: 80 13 01 00 [12:53:36]Write to MH i2c: E2 08 00 D6 1B 80 13 01 00 00 00 00 00 6E [12:53:36]Write i2c OK [12:53:36]MH_I2C_Read... [12:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:36]Read from MH i2c: E2 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0E 00 [12:53:36]MH_I2C_Read... [12:53:36]Read from MH i2c: E2 0E 00 D6 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4F [12:53:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:53:36]wFMCommunicate OK [12:53:36]SAM_PROTO_GetShiftState done [12:53:36]FM_GetShiftState done [12:53:36]opened in 1720831249 [12:53:36]opened+sec_in_day 1720917649 [12:53:36]quantity*price = 55008 [12:53:36]sum+1 = 55010 [12:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 150 13.07.2024 12:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164590 ФПД: 44069292533172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164590&fm=44069292533172&tin=02508201610067®Number=0000000000090829&sum=55000 [12:53:37]StoreToDocumentArchive [12:53:37]shift 446 fd 164590 [12:53:37]save to /storage/0446/doc_00164590 [12:53:37]save last doc name /storage/0446/doc_00164590 to /storage/kkm_last_doc_name [12:53:37]save OK [12:53:37]Clear old archive folders... [12:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:37]tlvbuf is B6F14490 [12:53:37]SAM_PROTO_ClearQueue [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 09 00 00 [12:53:37]Write to MH i2c: E2 08 00 E3 1B 80 09 00 00 00 00 00 00 70 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [12:53:37]RAPDU: 90 00 [12:53:37]wFMCommunicate OK [12:53:37]SAM_PROTO_ClearQueue done [12:53:37]KKMCreateOFDPacket [12:53:37]OFDProtocolAddRootSTLVToBuf [12:53:37]FM_MakeSignedData [12:53:37]FM_MakeSignedData [12:53:37]SAM_PROTO_SignData [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 0D 01 02 [12:53:37]Write to MH i2c: E2 08 00 E4 1B 80 0D 01 02 00 00 00 00 78 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]OFD Sender: No OFD packet to send [12:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [12:53:37]RAPDU: 90 00 [12:53:37]wFMCommunicate OK [12:53:37]wFMCommunicate request_size=255 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 96 00 00 00 F4 03 04 00 D2 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 82 02 00 35 04 06 00 28 [12:53:37]Write to MH i2c: E2 02 01 E5 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 96 00 00 00 F4 03 04 00 D2 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 82 02 00 35 04 06 00 28 00 00 31 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [12:53:37]RAPDU: 90 00 [12:53:37]wFMCommunicate OK [12:53:37]wFMCommunicate request_size=10 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 0D 02 02 05 14 AE 86 E5 B4 [12:53:37]Write to MH i2c: E2 0D 00 E6 1B 80 0D 02 02 05 00 14 AE 86 E5 B4 00 00 66 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [12:53:37]RAPDU: 90 00 [12:53:37]wFMCommunicate OK [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 0D 03 02 [12:53:37]Write to MH i2c: E2 08 00 E7 1B 80 0D 03 02 00 00 00 00 7D [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0B 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 0B 00 E7 1B 00 21 8A 29 49 55 1D 47 16 90 00 6A [12:53:37]RAPDU: 21 8A 29 49 55 1D 47 16 90 00 [12:53:37]wFMCommunicate OK [12:53:37]SAM_PROTO_SignData done [12:53:37]FM_MakeSignedData done [12:53:37]CreateOFDProtocolMessage [12:53:37]wFMCommunicate request_size=4 [12:53:37]MH_SAM_APDU [12:53:37]CAPDU: 80 11 00 00 [12:53:37]Write to MH i2c: E2 08 00 E8 1B 80 11 00 00 00 00 00 00 7D [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:37]Read from MH i2c: E2 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: E2 17 00 E8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [12:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:37]wFMCommunicate OK [12:53:37]CreateOFDProtocolMessage done [12:53:37]OFDSenderStorePacket 164590 [12:53:37]StoreOFDPacket docnum=164590 [12:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F DE 07 01 A9 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 96 00 00 00 F4 03 04 00 D2 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 82 02 00 35 04 06 00 28 14 AE 86 E5 B4 21 8A 29 49 55 1D 47 16 [12:53:37]CheckFolder [12:53:37]dirname=/storage/ofd_packets [12:53:37]CheckFolder done [12:53:37]ProducePacketName [12:53:37]name=ofd_packets/00164590 [12:53:37]NVStorageSaveData ofd_packets/00164590 [12:53:37]File name is /storage/ofd_packets/00164590 [12:53:37]Write 301 bytes [12:53:37]NVStorageSaveData done [12:53:37]OFDSenderStorePacket done [12:53:37]KKMCreateOFDPacket done [12:53:37]NVStorageSaveData kkm_last_timestamp [12:53:37]File name is /storage/kkm_last_timestamp [12:53:37]Write 4 bytes [12:53:37]NVStorageSaveData done [12:53:37]ExternCall_PrintAddStr [12:53:37]wPrintStart [12:53:37]Write to MH i2c: 01 00 00 E9 1B 04 [12:53:37]Write i2c OK [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 07 00 [12:53:37]MH_I2C_Read... [12:53:37]Read from MH i2c: 01 07 00 E9 1B 00 00 00 00 00 FF 0F 19 [12:53:37]RasterBufferAndPrint [12:53:37]line Счет N : (1)458682 [12:53:37]line ИНН: 02508201610067 [12:53:37]line Контрольно-Кассовый Чек [12:53:37]line ПРОДАЖА [12:53:37]line ТРК (МРК, ГНК) : 12 [12:53:37]line Товар: 2710124130 [12:53:37]line Аи-92-К-5 [12:53:37]line 8.360 * 65.80 [12:53:37]line = 550.09 [12:53:37]line НДС 12% НСП 1% [12:53:37]line > о реализуемом товаре [12:53:37]line ОКРУГЛЕНИЕ: -0.09 [12:53:37]line ИТОГО: 550.00 [12:53:37]line Внесено: 550.00 [12:53:37]line СДАЧА: 0.00 [12:53:37]line НСП 1% : 4.87 [12:53:37]line НДС 12% : 58.42 [12:53:37]line Наличными: 550.00 [12:53:37]line Безнал.: 0.00 [12:53:37]line Место: АЗС № 72 "Партнер Нефть" [12:53:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:53:37]line СНО: Общий режим [12:53:37]line Чек 150 13.07.2024 12:53 [12:53:37]line Смена: 446 ФФД: 1.0 [12:53:37]line ЗНМ: 0300000160 [12:53:37]line РНМ: 0000000000090829 [12:53:37]line Версия ККМ: 001 [12:53:37]line ФМ: 0000000000874718 [12:53:37]line ФД: 164590 [12:53:37]line ФПД: 44069292533172 [12:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164590&fm=44069292533172&tin=02508201610067®Number=0000000000090829&sum=55000 [12:53:37]written 0, free lines is 4095 [12:53:37]OFD Sender: Processing packet 164590 [packets to send 104, broken 103] [12:53:37]ProducePacketName [12:53:37]name=ofd_packets/00164590 [12:53:37]OFD Sender: To server: pG, [12:53:37]CommunicateWithHost lk.salyk.kg:30040 [12:53:37]ConnectInit lk.salyk.kg [12:53:38]Connected sock=10 [12:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F DE 07 01 A9 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 96 00 00 00 F4 03 04 00 D2 78 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 82 02 00 35 04 06 00 28 14 AE 86 E5 B4 21 8A 29 49 55 1D 47 16 [12:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E7 5F 47 00 87 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 34 37 31 38 10 04 04 00 EE 82 02 00 F4 03 04 00 62 1F 92 66 B6 04 01 00 00 A6 6A B4 53 6B 89 B0 A1 [12:53:38]CommunicateWithHost err = 0 [12:53:38]CheckOFDResponse [12:53:38]1017 (14) - 77093643461234 [12:53:38]1041 (16) - 0000000000874718 [12:53:38]1040 (4) - 164590 [12:53:38]1012 (4) - 13.07.2024 06:32 [12:53:38]1206 (1) - 0 [12:53:38]OFD Sender: Remove packet 164590 [12:53:38]ProducePacketName [12:53:38]name=ofd_packets/00164590 [12:53:38]NVStorageDeleteData [12:53:38]Write to MH i2c: 01 00 00 13 1C 2F [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: 01 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: 01 07 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FE 0C 40 [12:53:38]RasterBufferAndPrint [12:53:38]line [12:53:38]line [12:53:38]line [12:53:38]line [12:53:38]line [12:53:38]written 0, free lines is 3332 [12:53:38]MH_Cut [12:53:38]Write to MH i2c: D1 01 00 1A 1C 01 08 [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: D1 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: D1 01 00 [12:53:38]MH_I2C_Read... [12:53:38]Read from MH i2c: D1 01 00 1A 1C 00 07 [12:53:38]Write to MH i2c: 01 00 00 1B 1C 37 [12:53:38]Write i2c OK [12:53:38]MH_I2C_Read... [12:53:38]OFD Sender: No OFD packet to send [12:53:39]*** Cut start [12:53:39]*** Partial cut [12:53:39]*** CUTSNS_PIN = 1 [12:53:39]*** CUTSNS_PIN = 0 [12:53:39]*** Brake cut motor [12:53:39]Read from MH i2c: 01 [12:53:39]MH_I2C_Read... [12:53:39]*** Stop cut motor [12:53:39]*** Cut end [12:53:39]Read from MH i2c: 01 07 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: 01 07 00 1B 1C 00 00 00 00 00 FF 0F 4C [12:53:39]process_action close_receipt done [12:53:39]requested_data is exist [12:53:39]produce_requested_data [12:53:39]requested_item fm.sn is exist - process it [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 11 00 00 [12:53:39]Write to MH i2c: E2 08 00 1C 1C 80 11 00 00 00 00 00 00 B2 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 17 00 1C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [12:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:39]wFMCommunicate OK [12:53:39]requested_item fd.num is exist - process it [12:53:39]SAM_PROTO_GetFieldsCounters [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 13 00 00 [12:53:39]Write to MH i2c: E2 08 00 1D 1C 80 13 00 00 00 00 00 00 B5 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 62 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 62 00 1D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 82 02 00 0E 04 04 00 BE 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 CF [12:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:39]wFMCommunicate OK [12:53:39]SAM_PROTO_GetFieldsCounters done [12:53:39]requested_item shift.num is exist - process it [12:53:39]requested_item shift.opened is exist - process it [12:53:39]req_shift_opened [12:53:39]FM_GetShiftState [12:53:39]SAM_PROTO_GetShiftState [12:53:39]wFMCommunicate request_size=4 [12:53:39]MH_SAM_APDU [12:53:39]CAPDU: 80 13 01 00 [12:53:39]Write to MH i2c: E2 08 00 1E 1C 80 13 01 00 00 00 00 00 B7 [12:53:39]Write i2c OK [12:53:39]MH_I2C_Read... [12:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:39]Read from MH i2c: E2 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0E 00 [12:53:39]MH_I2C_Read... [12:53:39]Read from MH i2c: E2 0E 00 1E 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 98 [12:53:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:53:39]wFMCommunicate OK [12:53:39]SAM_PROTO_GetShiftState done [12:53:39]FM_GetShiftState done [12:53:39]req_shift_opened done [12:53:39]requested_item shift.open_date is exist - process it [12:53:39]req_shift_open_date [12:53:39]req_shift_open_date done [12:53:39]produce_requested_data done [12:53:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164590,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:53:39]process_action_free close_receipt [12:53:39]json_value_free [12:53:39]json_value_free done [12:53:39]process_json_proto returns [12:53:39]Send response to host [12:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164590,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:53:39]free response buf [12:53:39]execute_script done [12:53:39]execute_script returns [12:53:39]free content buf [12:53:39]Sock 7.Close socket [12:53:39]Sock 7.Thread stoped [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:28]accept exits with 9 [12:55:28]New connection [12:55:28]New thread 3067149668 created [12:55:28]Thread 3067293028 joined [12:55:28]Waiting for new connection... [12:55:28] Sock 9.Parse request [12:55:28]Sock 9.Check first char [12:55:28]Sock 9.First char is OK [12:55:28]request: POST /json_proto HTTP/1.0 [12:55:28]Method: POST [12:55:28]URL: /json_proto [12:55:28]Method is POST - this is cgi request [12:55:28]url: /json_proto [12:55:28]query_string will be loaded in cgi processing [12:55:28]execute_cgi json_proto POST (null) [12:55:28]execute_cgi path=json_proto method=POST [12:55:28]POST find Content-Length [12:55:28]Host: 172.17.56.4:8080 [12:55:28]Content-Length: 677 [12:55:28]Content-Type: application/json [12:55:28] [12:55:28]POST finish read [12:55:28]Found Content-Length = 677 [12:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:28]execute_script... [12:55:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:28]POST & json_proto [12:55:28]process_json_proto [12:55:28]json parsed OK: [12:55:28]protocol is kg_v1.0 [12:55:28]action value=close_receipt [12:55:28]process_action close_receipt [12:55:28]cmd_close_receipt [12:55:28]MH_GetDate [12:55:28]Write to MH i2c: F0 00 00 1F 1C 2A [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: F0 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: F0 09 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: F0 09 00 1F 1C 00 42 79 92 66 C9 DC B2 64 A1 [12:55:28]GetLastDocTimeStamp 1720875218 [12:55:28]current date 1720875330 [12:55:28]FM_GetShiftState [12:55:28]SAM_PROTO_GetShiftState [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 13 01 00 [12:55:28]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:29]Read from MH i2c: E2 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: E2 0E 00 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9A [12:55:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:55:29]wFMCommunicate OK [12:55:29]SAM_PROTO_GetShiftState done [12:55:29]FM_GetShiftState done [12:55:29]opened in 1720831249 [12:55:29]opened+sec_in_day 1720917649 [12:55:29]quantity*price = 20003 [12:55:29]sum+1 = 20004 [12:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 151 13.07.2024 12:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164591 ФПД: 93013987175722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164591&fm=93013987175722&tin=02508201610067®Number=0000000000090829&sum=20000 [12:55:30]StoreToDocumentArchive [12:55:30]shift 446 fd 164591 [12:55:30]save to /storage/0446/doc_00164591 [12:55:30]save last doc name /storage/0446/doc_00164591 to /storage/kkm_last_doc_name [12:55:30]save OK [12:55:30]Clear old archive folders... [12:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:30]tlvbuf is B6DFB440 [12:55:30]SAM_PROTO_ClearQueue [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 09 00 00 [12:55:30]Write to MH i2c: E2 08 00 2D 1C 80 09 00 00 00 00 00 00 BB [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [12:55:30]RAPDU: 90 00 [12:55:30]wFMCommunicate OK [12:55:30]SAM_PROTO_ClearQueue done [12:55:30]KKMCreateOFDPacket [12:55:30]OFDProtocolAddRootSTLVToBuf [12:55:30]FM_MakeSignedData [12:55:30]FM_MakeSignedData [12:55:30]SAM_PROTO_SignData [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 0D 01 02 [12:55:30]Write to MH i2c: E2 08 00 2E 1C 80 0D 01 02 00 00 00 00 C3 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [12:55:30]RAPDU: 90 00 [12:55:30]wFMCommunicate OK [12:55:30]wFMCommunicate request_size=255 [12:55:30]MH_SAM_APDU [12:55: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 42 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 82 02 00 35 04 06 00 54 [12:55:30]Write to MH i2c: E2 02 01 2F 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 42 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 82 02 00 35 04 06 00 54 00 00 AD [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [12:55:30]RAPDU: 90 00 [12:55:30]wFMCommunicate OK [12:55:30]wFMCommunicate request_size=10 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 0D 02 02 05 98 81 AA 2D 2A [12:55:30]Write to MH i2c: E2 0D 00 30 1C 80 0D 02 02 05 00 98 81 AA 2D 2A 00 00 EA [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [12:55:30]RAPDU: 90 00 [12:55:30]wFMCommunicate OK [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 0D 03 02 [12:55:30]Write to MH i2c: E2 08 00 31 1C 80 0D 03 02 00 00 00 00 C8 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 0B 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 0B 00 31 1C 00 BC 5E B6 09 D4 3E A7 C0 90 00 1B [12:55:30]RAPDU: BC 5E B6 09 D4 3E A7 C0 90 00 [12:55:30]wFMCommunicate OK [12:55:30]SAM_PROTO_SignData done [12:55:30]FM_MakeSignedData done [12:55:30]CreateOFDProtocolMessage [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 11 00 00 [12:55:30]Write to MH i2c: E2 08 00 32 1C 80 11 00 00 00 00 00 00 C8 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 17 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 17 00 32 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [12:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:30]wFMCommunicate OK [12:55:30]CreateOFDProtocolMessage done [12:55:30]OFDSenderStorePacket 164591 [12:55:30]StoreOFDPacket docnum=164591 [12:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 47 07 01 90 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 42 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 82 02 00 35 04 06 00 54 98 81 AA 2D 2A BC 5E B6 09 D4 3E A7 C0 [12:55:30]CheckFolder [12:55:30]dirname=/storage/ofd_packets [12:55:30]CheckFolder done [12:55:30]ProducePacketName [12:55:30]name=ofd_packets/00164591 [12:55:30]NVStorageSaveData ofd_packets/00164591 [12:55:30]File name is /storage/ofd_packets/00164591 [12:55:30]Write 301 bytes [12:55:30]NVStorageSaveData done [12:55:30]OFDSenderStorePacket done [12:55:30]KKMCreateOFDPacket done [12:55:30]NVStorageSaveData kkm_last_timestamp [12:55:30]File name is /storage/kkm_last_timestamp [12:55:30]Write 4 bytes [12:55:30]NVStorageSaveData done [12:55:30]ExternCall_PrintAddStr [12:55:30]wPrintStart [12:55:30]Write to MH i2c: 01 00 00 33 1C 4F [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: 01 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: 01 07 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 FF 0F 64 [12:55:30]RasterBufferAndPrint [12:55:30]line Счет N : (1)458684 [12:55:30]line ИНН: 02508201610067 [12:55:30]line Контрольно-Кассовый Чек [12:55:30]line ПРОДАЖА [12:55:30]line ТРК (МРК, ГНК) : 22 [12:55:30]line Товар: 2710124130 [12:55:30]line Аи-92-К-5 [12:55:30]line 3.040 * 65.80 [12:55:30]line = 200.03 [12:55:30]line НДС 12% НСП 1% [12:55:30]line > о реализуемом товаре [12:55:30]line ОКРУГЛЕНИЕ: -0.03 [12:55:30]line ИТОГО: 200.00 [12:55:30]line Внесено: 200.00 [12:55:30]line СДАЧА: 0.00 [12:55:30]line НСП 1% : 1.77 [12:55:30]line НДС 12% : 21.24 [12:55:30]line Наличными: 200.00 [12:55:30]line Безнал.: 0.00 [12:55:30]line Место: АЗС № 72 "Партнер Нефть" [12:55:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:55:30]line СНО: Общий режим [12:55:30]line Чек 151 13.07.2024 12:55 [12:55:30]line Смена: 446 ФФД: 1.0 [12:55:30]line ЗНМ: 0300000160 [12:55:30]line РНМ: 0000000000090829 [12:55:30]line Версия ККМ: 001 [12:55:30]line ФМ: 0000000000874718 [12:55:30]line ФД: 164591 [12:55:30]line ФПД: 93013987175722 [12:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164591&fm=93013987175722&tin=02508201610067®Number=0000000000090829&sum=20000 [12:55:31]OFD Sender: Processing packet 164591 [packets to send 104, broken 103] [12:55:31]ProducePacketName [12:55:31]name=ofd_packets/00164591 [12:55:31]OFD Sender: To server: pG, [12:55:31]CommunicateWithHost lk.salyk.kg:30040 [12:55:31]ConnectInit lk.salyk.kg [12:55:31]written 0, free lines is 4095 [12:55:31]Connected sock=10 [12:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 47 07 01 90 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 42 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 82 02 00 35 04 06 00 54 98 81 AA 2D 2A BC 5E B6 09 D4 3E A7 C0 [12:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 78 E8 47 00 DD CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 82 02 00 F4 03 04 00 D3 1F 92 66 B6 04 01 00 00 B5 65 A3 22 74 11 1F 8F [12:55:31]CommunicateWithHost err = 0 [12:55:31]CheckOFDResponse [12:55:31]1017 (14) - 77093643461234 [12:55:31]1041 (16) - 0000000000874718 [12:55:31]1040 (4) - 164591 [12:55:31]1012 (4) - 13.07.2024 06:33 [12:55:31]1206 (1) - 0 [12:55:31]OFD Sender: Remove packet 164591 [12:55:31]ProducePacketName [12:55:31]name=ofd_packets/00164591 [12:55:31]NVStorageDeleteData [12:55:31]Write to MH i2c: 01 00 00 5D 1C 79 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: 01 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: 01 07 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FA 0C 86 [12:55:31]RasterBufferAndPrint [12:55:31]line [12:55:31]line [12:55:31]line [12:55:31]line [12:55:31]line [12:55:31]written 0, free lines is 3328 [12:55:31]MH_Cut [12:55:31]Write to MH i2c: D1 01 00 64 1C 01 52 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: D1 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: D1 01 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: D1 01 00 64 1C 00 51 [12:55:31]Write to MH i2c: 01 00 00 65 1C 81 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]OFD Sender: No OFD packet to send [12:55:32]*** Cut start [12:55:32]*** Partial cut [12:55:32]*** CUTSNS_PIN = 1 [12:55:32]*** CUTSNS_PIN = 0 [12:55:32]*** Brake cut motor [12:55:32]Read from MH i2c: 01 [12:55:32]MH_I2C_Read... [12:55:32]*** Stop cut motor [12:55:32]*** Cut end [12:55:32]Read from MH i2c: 01 07 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 FF 0F 96 [12:55:32]process_action close_receipt done [12:55:32]requested_data is exist [12:55:32]produce_requested_data [12:55:32]requested_item fm.sn is exist - process it [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 11 00 00 [12:55:32]Write to MH i2c: E2 08 00 66 1C 80 11 00 00 00 00 00 00 FC [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 17 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 17 00 66 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [12:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:32]wFMCommunicate OK [12:55:32]requested_item fd.num is exist - process it [12:55:32]SAM_PROTO_GetFieldsCounters [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 13 00 00 [12:55:32]Write to MH i2c: E2 08 00 67 1C 80 13 00 00 00 00 00 00 FF [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 62 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 62 00 67 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 82 02 00 0E 04 04 00 BE 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 1D [12:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:32]wFMCommunicate OK [12:55:32]SAM_PROTO_GetFieldsCounters done [12:55:32]requested_item shift.num is exist - process it [12:55:32]requested_item shift.opened is exist - process it [12:55:32]req_shift_opened [12:55:32]FM_GetShiftState [12:55:32]SAM_PROTO_GetShiftState [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 13 01 00 [12:55:32]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 0E 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E2 [12:55:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:55:32]wFMCommunicate OK [12:55:32]SAM_PROTO_GetShiftState done [12:55:32]FM_GetShiftState done [12:55:32]req_shift_opened done [12:55:32]requested_item shift.open_date is exist - process it [12:55:32]req_shift_open_date [12:55:32]req_shift_open_date done [12:55:32]produce_requested_data done [12:55:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164591,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:55:32]process_action_free close_receipt [12:55:32]json_value_free [12:55:32]json_value_free done [12:55:32]process_json_proto returns [12:55:32]Send response to host [12:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164591,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:55:32]free response buf [12:55:32]execute_script done [12:55:32]execute_script returns [12:55:32]free content buf [12:55:32]Sock 9.Close socket [12:55:32]Sock 9.Thread stoped [12:55:36]OFD Sender: No OFD packet to send [12:55:39]accept exits with 7 [12:55:39]New connection [12:55:39]New thread 3067293028 created [12:55:39]Thread 3067149668 joined [12:55:39]Waiting for new connection... [12:55:39] Sock 7.Parse request [12:55:39]Sock 7.Check first char [12:55:39]Sock 7.First char is OK [12:55:39]request: POST /json_proto HTTP/1.0 [12:55:39]Method: POST [12:55:39]URL: /json_proto [12:55:39]Method is POST - this is cgi request [12:55:39]url: /json_proto [12:55:39]query_string will be loaded in cgi processing [12:55:39]execute_cgi json_proto POST (null) [12:55:39]execute_cgi path=json_proto method=POST [12:55:39]POST find Content-Length [12:55:39]Host: 172.17.56.4:8080 [12:55:39]Content-Length: 679 [12:55:39]Content-Type: application/json [12:55:39] [12:55:39]POST finish read [12:55:39]Found Content-Length = 679 [12:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:55:39]execute_script... [12:55: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)458683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:55:39]POST & json_proto [12:55:39]process_json_proto [12:55:39]json parsed OK: [12:55:39]protocol is kg_v1.0 [12:55:39]action value=close_receipt [12:55:39]process_action close_receipt [12:55:39]cmd_close_receipt [12:55:39]MH_GetDate [12:55:39]Write to MH i2c: F0 00 00 69 1C 74 [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 09 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: F0 09 00 69 1C 00 4D 79 92 66 C9 DC B2 64 F6 [12:55:39]GetLastDocTimeStamp 1720875330 [12:55:39]current date 1720875341 [12:55:39]FM_GetShiftState [12:55:39]SAM_PROTO_GetShiftState [12:55:39]wFMCommunicate request_size=4 [12:55:39]MH_SAM_APDU [12:55:39]CAPDU: 80 13 01 00 [12:55:39]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:39]Read from MH i2c: E2 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: E2 0E 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E4 [12:55:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:55:39]wFMCommunicate OK [12:55:39]SAM_PROTO_GetShiftState done [12:55:39]FM_GetShiftState done [12:55:39]opened in 1720831249 [12:55:39]opened+sec_in_day 1720917649 [12:55:39]quantity*price = 100012 [12:55:39]sum+1 = 100014 [12:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 152 13.07.2024 12:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164592 ФПД: 48890102092577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164592&fm=48890102092577&tin=02508201610067®Number=0000000000090829&sum=100000 [12:55:41]StoreToDocumentArchive [12:55:41]shift 446 fd 164592 [12:55:41]save to /storage/0446/doc_00164592 [12:55:41]save last doc name /storage/0446/doc_00164592 to /storage/kkm_last_doc_name [12:55:41]save OK [12:55:41]Clear old archive folders... [12:55:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:41]tlvbuf is B6F2D950 [12:55:41]SAM_PROTO_ClearQueue [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 09 00 00 [12:55:41]Write to MH i2c: E2 08 00 77 1C 80 09 00 00 00 00 00 00 05 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]SAM_PROTO_ClearQueue done [12:55:41]KKMCreateOFDPacket [12:55:41]OFDProtocolAddRootSTLVToBuf [12:55:41]FM_MakeSignedData [12:55:41]FM_MakeSignedData [12:55:41]SAM_PROTO_SignData [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 01 02 [12:55:41]Write to MH i2c: E2 08 00 78 1C 80 0D 01 02 00 00 00 00 0D [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=255 [12:55:41]MH_SAM_APDU [12:55: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 98 00 00 00 F4 03 04 00 4D 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 82 02 00 35 04 06 00 2C 77 1D 2B [12:55:41]Write to MH i2c: E2 02 01 79 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 98 00 00 00 F4 03 04 00 4D 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 82 02 00 35 04 06 00 2C 77 1D 2B 00 00 42 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=7 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 02 02 02 13 21 [12:55:41]Write to MH i2c: E2 0A 00 7A 1C 80 0D 02 02 02 00 13 21 00 00 48 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [12:55:41]RAPDU: 90 00 [12:55:41]wFMCommunicate OK [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 0D 03 02 [12:55:41]Write to MH i2c: E2 08 00 7B 1C 80 0D 03 02 00 00 00 00 12 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 0B 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 0B 00 7B 1C 00 B5 A6 28 E4 28 FF 48 D4 90 00 BD [12:55:41]RAPDU: B5 A6 28 E4 28 FF 48 D4 90 00 [12:55:41]wFMCommunicate OK [12:55:41]SAM_PROTO_SignData done [12:55:41]FM_MakeSignedData done [12:55:41]CreateOFDProtocolMessage [12:55:41]wFMCommunicate request_size=4 [12:55:41]MH_SAM_APDU [12:55:41]CAPDU: 80 11 00 00 [12:55:41]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:41]Read from MH i2c: E2 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 17 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [12:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:41]wFMCommunicate OK [12:55:41]CreateOFDProtocolMessage done [12:55:41]OFDSenderStorePacket 164592 [12:55:41]StoreOFDPacket docnum=164592 [12:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 77 41 04 01 B1 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 98 00 00 00 F4 03 04 00 4D 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 82 02 00 35 04 06 00 2C 77 1D 2B 13 21 B5 A6 28 E4 28 FF 48 D4 [12:55:41]CheckFolder [12:55:41]dirname=/storage/ofd_packets [12:55:41]CheckFolder done [12:55:41]ProducePacketName [12:55:41]name=ofd_packets/00164592 [12:55:41]NVStorageSaveData ofd_packets/00164592 [12:55:41]File name is /storage/ofd_packets/00164592 [12:55:41]Write 298 bytes [12:55:41]NVStorageSaveData done [12:55:41]OFDSenderStorePacket done [12:55:41]KKMCreateOFDPacket done [12:55:41]NVStorageSaveData kkm_last_timestamp [12:55:41]File name is /storage/kkm_last_timestamp [12:55:41]Write 4 bytes [12:55:41]NVStorageSaveData done [12:55:41]ExternCall_PrintAddStr [12:55:41]wPrintStart [12:55:41]Write to MH i2c: 01 00 00 7D 1C 99 [12:55:41]Write i2c OK [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 07 00 [12:55:41]MH_I2C_Read... [12:55:41]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [12:55:41]RasterBufferAndPrint [12:55:41]line Счет N : (1)458683 [12:55:41]line ИНН: 02508201610067 [12:55:41]line Контрольно-Кассовый Чек [12:55:41]line ПРОДАЖА [12:55:41]line ТРК (МРК, ГНК) : 11 [12:55:41]line Товар: 2710194210 [12:55:41]line ДТ-К-5 [12:55:41]line 13.910 * 71.90 [12:55:41]line = 1000.13 [12:55:41]line НДС 12% НСП 1% [12:55:41]line > о реализуемом товаре [12:55:41]line ОКРУГЛЕНИЕ: -0.13 [12:55:41]line ИТОГО: 1000.00 [12:55:41]line Внесено: 1000.00 [12:55:41]line СДАЧА: 0.00 [12:55:41]line НСП 1% : 8.85 [12:55:41]line НДС 12% : 106.21 [12:55:41]line Наличными: 1000.00 [12:55:41]line Безнал.: 0.00 [12:55:41]line Место: АЗС № 72 "Партнер Нефть" [12:55:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:55:41]line СНО: Общий режим [12:55:41]line Чек 152 13.07.2024 12:55 [12:55:41]line Смена: 446 ФФД: 1.0 [12:55:41]line ЗНМ: 0300000160 [12:55:41]line РНМ: 0000000000090829 [12:55:41]line Версия ККМ: 001 [12:55:41]line ФМ: 0000000000874718 [12:55:41]line ФД: 164592 [12:55:41]line ФПД: 48890102092577 [12:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164592&fm=48890102092577&tin=02508201610067®Number=0000000000090829&sum=100000 [12:55:41]OFD Sender: Processing packet 164592 [packets to send 104, broken 103] [12:55:41]ProducePacketName [12:55:41]name=ofd_packets/00164592 [12:55:41]OFD Sender: To server: pG, [12:55:41]CommunicateWithHost lk.salyk.kg:30040 [12:55:41]ConnectInit lk.salyk.kg [12:55:41]written 0, free lines is 4095 [12:55:42]Connected sock=10 [12:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 77 41 04 01 B1 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 98 00 00 00 F4 03 04 00 4D 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 82 02 00 35 04 06 00 2C 77 1D 2B 13 21 B5 A6 28 E4 28 FF 48 D4 [12:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE 26 47 00 70 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 34 37 31 38 10 04 04 00 F0 82 02 00 F4 03 04 00 DE 1F 92 66 B6 04 01 00 00 66 38 42 7E 11 C7 5E 4D [12:55:42]CommunicateWithHost err = 0 [12:55:42]CheckOFDResponse [12:55:42]1017 (14) - 77093643461234 [12:55:42]1041 (16) - 0000000000874718 [12:55:42]1040 (4) - 164592 [12:55:42]1012 (4) - 13.07.2024 06:34 [12:55:42]1206 (1) - 0 [12:55:42]OFD Sender: Remove packet 164592 [12:55:42]ProducePacketName [12:55:42]name=ofd_packets/00164592 [12:55:42]NVStorageDeleteData [12:55:42]Write to MH i2c: 01 00 00 A7 1C C3 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 07 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 F0 0C C6 [12:55:42]RasterBufferAndPrint [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]line [12:55:42]written 0, free lines is 3322 [12:55:42]MH_Cut [12:55:42]Write to MH i2c: D1 01 00 AE 1C 01 9C [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 01 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: D1 01 00 AE 1C 00 9B [12:55:42]Write to MH i2c: 01 00 00 AF 1C CB [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]OFD Sender: No OFD packet to send [12:55:43]*** Cut start [12:55:43]*** Partial cut [12:55:43]*** CUTSNS_PIN = 1 [12:55:43]*** CUTSNS_PIN = 0 [12:55:43]*** Brake cut motor [12:55:43]Read from MH i2c: 01 [12:55:43]MH_I2C_Read... [12:55:43]*** Stop cut motor [12:55:43]*** Cut end [12:55:43]Read from MH i2c: 01 07 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: 01 07 00 AF 1C 00 00 00 00 00 FF 0F E0 [12:55:43]process_action close_receipt done [12:55:43]requested_data is exist [12:55:43]produce_requested_data [12:55:43]requested_item fm.sn is exist - process it [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 11 00 00 [12:55:43]Write to MH i2c: E2 08 00 B0 1C 80 11 00 00 00 00 00 00 46 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 17 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 17 00 B0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [12:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:43]wFMCommunicate OK [12:55:43]requested_item fd.num is exist - process it [12:55:43]SAM_PROTO_GetFieldsCounters [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 13 00 00 [12:55:43]Write to MH i2c: E2 08 00 B1 1C 80 13 00 00 00 00 00 00 49 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 62 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 62 00 B1 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 82 02 00 0E 04 04 00 BE 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 6B [12:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:43]wFMCommunicate OK [12:55:43]SAM_PROTO_GetFieldsCounters done [12:55:43]requested_item shift.num is exist - process it [12:55:43]requested_item shift.opened is exist - process it [12:55:43]req_shift_opened [12:55:43]FM_GetShiftState [12:55:43]SAM_PROTO_GetShiftState [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 13 01 00 [12:55:43]Write to MH i2c: E2 08 00 B2 1C 80 13 01 00 00 00 00 00 4B [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 0E 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 0E 00 B2 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2C [12:55:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:55:43]wFMCommunicate OK [12:55:43]SAM_PROTO_GetShiftState done [12:55:43]FM_GetShiftState done [12:55:43]req_shift_opened done [12:55:43]requested_item shift.open_date is exist - process it [12:55:43]req_shift_open_date [12:55:43]req_shift_open_date done [12:55:43]produce_requested_data done [12:55:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164592,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:55:43]process_action_free close_receipt [12:55:43]json_value_free [12:55:43]json_value_free done [12:55:43]process_json_proto returns [12:55:43]Send response to host [12:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164592,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:55:43]free response buf [12:55:43]execute_script done [12:55:43]execute_script returns [12:55:43]free content buf [12:55:43]Sock 7.Close socket [12:55:43]Sock 7.Thread stoped [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:36]accept exits with 9 [12:58:36]New connection [12:58:36]New thread 3067149668 created [12:58:36]Thread 3067293028 joined [12:58:36]Waiting for new connection... [12:58:36] Sock 9.Parse request [12:58:36]Sock 9.Check first char [12:58:36]Sock 9.First char is OK [12:58:36]request: POST /json_proto HTTP/1.0 [12:58:36]Method: POST [12:58:36]URL: /json_proto [12:58:36]Method is POST - this is cgi request [12:58:36]url: /json_proto [12:58:36]query_string will be loaded in cgi processing [12:58:36]execute_cgi json_proto POST (null) [12:58:36]execute_cgi path=json_proto method=POST [12:58:36]POST find Content-Length [12:58:36]Host: 172.17.56.4:8080 [12:58:36]Content-Length: 677 [12:58:36]Content-Type: application/json [12:58:36] [12:58:36]POST finish read [12:58:36]Found Content-Length = 677 [12:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:58:36]execute_script... [12:58:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:58:36]POST & json_proto [12:58:36]process_json_proto [12:58:36]json parsed OK: [12:58:36]protocol is kg_v1.0 [12:58:36]action value=close_receipt [12:58:36]process_action close_receipt [12:58:36]cmd_close_receipt [12:58:36]MH_GetDate [12:58:36]Write to MH i2c: F0 00 00 B3 1C BE [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 B3 1C 00 FD 79 92 66 C9 DC B2 64 F0 [12:58:36]GetLastDocTimeStamp 1720875341 [12:58:36]current date 1720875517 [12:58:36]FM_GetShiftState [12:58:36]SAM_PROTO_GetShiftState [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 01 00 [12:58:36]Write to MH i2c: E2 08 00 B4 1C 80 13 01 00 00 00 00 00 4D [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 B4 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2E [12:58:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetShiftState done [12:58:36]FM_GetShiftState done [12:58:36]opened in 1720831249 [12:58:36]opened+sec_in_day 1720917649 [12:58:36]quantity*price = 50008 [12:58:36]sum+1 = 50009 [12:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 153 13.07.2024 12:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164593 ФПД: 39585107381031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164593&fm=39585107381031&tin=02508201610067®Number=0000000000090829&sum=50000 [12:58:37]StoreToDocumentArchive [12:58:37]shift 446 fd 164593 [12:58:37]save to /storage/0446/doc_00164593 [12:58:37]save last doc name /storage/0446/doc_00164593 to /storage/kkm_last_doc_name [12:58:37]save OK [12:58:37]Clear old archive folders... [12:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:37]tlvbuf is 01497350 [12:58:37]SAM_PROTO_ClearQueue [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 09 00 00 [12:58:37]Write to MH i2c: E2 08 00 C1 1C 80 09 00 00 00 00 00 00 4F [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_ClearQueue done [12:58:37]KKMCreateOFDPacket [12:58:37]OFDProtocolAddRootSTLVToBuf [12:58:37]FM_MakeSignedData [12:58:37]FM_MakeSignedData [12:58:37]SAM_PROTO_SignData [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 01 02 [12:58:37]Write to MH i2c: E2 08 00 C2 1C 80 0D 01 02 00 00 00 00 57 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=255 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 99 00 00 00 F4 03 04 00 FD 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 82 02 00 35 04 06 00 24 [12:58:37]Write to MH i2c: E2 02 01 C3 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 99 00 00 00 F4 03 04 00 FD 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 82 02 00 35 04 06 00 24 00 00 2F [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=10 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 05 00 A0 43 8B 27 [12:58:37]Write to MH i2c: E2 0D 00 C4 1C 80 0D 02 02 05 00 00 A0 43 8B 27 00 00 F9 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 03 02 [12:58:37]Write to MH i2c: E2 08 00 C5 1C 80 0D 03 02 00 00 00 00 5C [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0B 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0B 00 C5 1C 00 A3 40 05 64 B4 41 AA AC 90 00 F4 [12:58:37]RAPDU: A3 40 05 64 B4 41 AA AC 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_SignData done [12:58:37]FM_MakeSignedData done [12:58:37]CreateOFDProtocolMessage [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 11 00 00 [12:58:37]Write to MH i2c: E2 08 00 C6 1C 80 11 00 00 00 00 00 00 5C [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 C6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [12:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:58:37]wFMCommunicate OK [12:58:37]CreateOFDProtocolMessage done [12:58:37]OFDSenderStorePacket 164593 [12:58:37]StoreOFDPacket docnum=164593 [12:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 76 07 01 83 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 99 00 00 00 F4 03 04 00 FD 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 82 02 00 35 04 06 00 24 00 A0 43 8B 27 A3 40 05 64 B4 41 AA AC [12:58:37]CheckFolder [12:58:37]dirname=/storage/ofd_packets [12:58:37]CheckFolder done [12:58:37]ProducePacketName [12:58:37]name=ofd_packets/00164593 [12:58:37]NVStorageSaveData ofd_packets/00164593 [12:58:37]File name is /storage/ofd_packets/00164593 [12:58:37]Write 301 bytes [12:58:37]NVStorageSaveData done [12:58:37]OFDSenderStorePacket done [12:58:37]KKMCreateOFDPacket done [12:58:37]NVStorageSaveData kkm_last_timestamp [12:58:37]File name is /storage/kkm_last_timestamp [12:58:37]Write 4 bytes [12:58:37]NVStorageSaveData done [12:58:37]ExternCall_PrintAddStr [12:58:37]wPrintStart [12:58:37]Write to MH i2c: 01 00 00 C7 1C E3 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 07 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 07 00 C7 1C 00 00 00 00 00 FF 0F F8 [12:58:37]RasterBufferAndPrint [12:58:37]line Счет N : (1)458685 [12:58:37]line ИНН: 02508201610067 [12:58:37]line Контрольно-Кассовый Чек [12:58:37]line ПРОДАЖА [12:58:37]line ТРК (МРК, ГНК) : 22 [12:58:37]line Товар: 2710124130 [12:58:37]line Аи-92-К-5 [12:58:37]line 7.600 * 65.80 [12:58:37]line = 500.08 [12:58:37]line НДС 12% НСП 1% [12:58:37]line > о реализуемом товаре [12:58:37]line ОКРУГЛЕНИЕ: -0.08 [12:58:37]line ИТОГО: 500.00 [12:58:37]line Внесено: 500.00 [12:58:37]line СДАЧА: 0.00 [12:58:37]line НСП 1% : 4.42 [12:58:37]line НДС 12% : 53.11 [12:58:37]line Наличными: 500.00 [12:58:37]line Безнал.: 0.00 [12:58:37]line Место: АЗС № 72 "Партнер Нефть" [12:58:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:58:37]line СНО: Общий режим [12:58:37]line Чек 153 13.07.2024 12:58 [12:58:37]line Смена: 446 ФФД: 1.0 [12:58:37]line ЗНМ: 0300000160 [12:58:37]line РНМ: 0000000000090829 [12:58:37]line Версия ККМ: 001 [12:58:37]line ФМ: 0000000000874718 [12:58:37]line ФД: 164593 [12:58:37]line ФПД: 39585107381031 [12:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164593&fm=39585107381031&tin=02508201610067®Number=0000000000090829&sum=50000 [12:58:38]OFD Sender: Processing packet 164593 [packets to send 104, broken 103] [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00164593 [12:58:38]OFD Sender: To server: pG, [12:58:38]CommunicateWithHost lk.salyk.kg:30040 [12:58:38]ConnectInit lk.salyk.kg [12:58:38]written 0, free lines is 4095 [12:58:38]Connected sock=10 [12:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F 76 07 01 83 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 99 00 00 00 F4 03 04 00 FD 79 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 82 02 00 35 04 06 00 24 00 A0 43 8B 27 A3 40 05 64 B4 41 AA AC [12:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A4 5D 47 00 D6 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 34 37 31 38 10 04 04 00 F1 82 02 00 F4 03 04 00 8E 20 92 66 B6 04 01 00 00 A4 C4 17 E9 16 CB 7D C0 [12:58:38]CommunicateWithHost err = 0 [12:58:38]CheckOFDResponse [12:58:38]1017 (14) - 77093643461234 [12:58:38]1041 (16) - 0000000000874718 [12:58:38]1040 (4) - 164593 [12:58:38]1012 (4) - 13.07.2024 06:37 [12:58:38]1206 (1) - 0 [12:58:38]OFD Sender: Remove packet 164593 [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00164593 [12:58:38]NVStorageDeleteData [12:58:38]Write to MH i2c: 01 00 00 F1 1C 0D [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 F1 1C 00 00 00 00 00 02 0D 23 [12:58:38]RasterBufferAndPrint [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]written 0, free lines is 3336 [12:58:38]MH_Cut [12:58:38]Write to MH i2c: D1 01 00 F8 1C 01 E6 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 F8 1C 00 E5 [12:58:38]Write to MH i2c: 01 00 00 F9 1C 15 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]OFD Sender: No OFD packet to send [12:58:39]*** Cut start [12:58:39]*** Partial cut [12:58:39]*** CUTSNS_PIN = 1 [12:58:39]*** CUTSNS_PIN = 0 [12:58:39]*** Brake cut motor [12:58:39]Read from MH i2c: 01 [12:58:39]MH_I2C_Read... [12:58:39]*** Stop cut motor [12:58:39]*** Cut end [12:58:39]Read from MH i2c: 01 07 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [12:58:39]process_action close_receipt done [12:58:39]requested_data is exist [12:58:39]produce_requested_data [12:58:39]requested_item fm.sn is exist - process it [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 11 00 00 [12:58:39]Write to MH i2c: E2 08 00 FA 1C 80 11 00 00 00 00 00 00 90 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 17 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 17 00 FA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [12:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:58:39]wFMCommunicate OK [12:58:39]requested_item fd.num is exist - process it [12:58:39]SAM_PROTO_GetFieldsCounters [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 00 00 [12:58:39]Write to MH i2c: E2 08 00 FB 1C 80 13 00 00 00 00 00 00 93 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 62 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 62 00 FB 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 82 02 00 0E 04 04 00 BE 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 B9 [12:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 82 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:39]wFMCommunicate OK [12:58:39]SAM_PROTO_GetFieldsCounters done [12:58:39]requested_item shift.num is exist - process it [12:58:39]requested_item shift.opened is exist - process it [12:58:39]req_shift_opened [12:58:39]FM_GetShiftState [12:58:39]SAM_PROTO_GetShiftState [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 01 00 [12:58:39]Write to MH i2c: E2 08 00 FC 1C 80 13 01 00 00 00 00 00 95 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:40]Read from MH i2c: E2 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 0E 00 [12:58:40]MH_I2C_Read... [12:58:40]Read from MH i2c: E2 0E 00 FC 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 76 [12:58:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [12:58:40]wFMCommunicate OK [12:58:40]SAM_PROTO_GetShiftState done [12:58:40]FM_GetShiftState done [12:58:40]req_shift_opened done [12:58:40]requested_item shift.open_date is exist - process it [12:58:40]req_shift_open_date [12:58:40]req_shift_open_date done [12:58:40]produce_requested_data done [12:58:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164593,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [12:58:40]process_action_free close_receipt [12:58:40]json_value_free [12:58:40]json_value_free done [12:58:40]process_json_proto returns [12:58:40]Send response to host [12:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164593,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [12:58:40]free response buf [12:58:40]execute_script done [12:58:40]execute_script returns [12:58:40]free content buf [12:58:40]Sock 9.Close socket [12:58:40]Sock 9.Thread stoped [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:46]accept exits with 7 [13:01:46]New connection [13:01:46]New thread 3067293028 created [13:01:46]Thread 3067149668 joined [13:01:46]Waiting for new connection... [13:01:46] Sock 7.Parse request [13:01:46]Sock 7.Check first char [13:01:46]Sock 7.First char is OK [13:01:46]request: POST /json_proto HTTP/1.0 [13:01:46]Method: POST [13:01:46]URL: /json_proto [13:01:46]Method is POST - this is cgi request [13:01:46]url: /json_proto [13:01:46]query_string will be loaded in cgi processing [13:01:46]execute_cgi json_proto POST (null) [13:01:46]execute_cgi path=json_proto method=POST [13:01:46]POST find Content-Length [13:01:46]Host: 172.17.56.4:8080 [13:01:46]Content-Length: 677 [13:01:46]Content-Type: application/json [13:01:46] [13:01:46]POST finish read [13:01:46]Found Content-Length = 677 [13:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [13:01:46]execute_script... [13:01:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [13:01:46]POST & json_proto [13:01:46]process_json_proto [13:01:46]json parsed OK: [13:01:46]protocol is kg_v1.0 [13:01:46]action value=close_receipt [13:01:46]process_action close_receipt [13:01:46]cmd_close_receipt [13:01:46]MH_GetDate [13:01:46]Write to MH i2c: F0 00 00 FD 1C 08 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: F0 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: F0 09 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: F0 09 00 FD 1C 00 BC 7A 92 66 C9 DC B2 64 FA [13:01:46]GetLastDocTimeStamp 1720875517 [13:01:46]current date 1720875708 [13:01:46]FM_GetShiftState [13:01:46]SAM_PROTO_GetShiftState [13:01:46]wFMCommunicate request_size=4 [13:01:46]MH_SAM_APDU [13:01:46]CAPDU: 80 13 01 00 [13:01:46]Write to MH i2c: E2 08 00 FE 1C 80 13 01 00 00 00 00 00 97 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:46]Read from MH i2c: E2 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: E2 0E 00 FE 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 78 [13:01:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:01:46]wFMCommunicate OK [13:01:46]SAM_PROTO_GetShiftState done [13:01:46]FM_GetShiftState done [13:01:46]opened in 1720831249 [13:01:46]opened+sec_in_day 1720917649 [13:01:46]quantity*price = 15002 [13:01:46]sum+1 = 15003 [13:01:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 154 13.07.2024 13:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164594 ФПД: 25164636657365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164594&fm=25164636657365&tin=02508201610067®Number=0000000000090829&sum=15000 [13:01:47]StoreToDocumentArchive [13:01:47]shift 446 fd 164594 [13:01:47]save to /storage/0446/doc_00164594 [13:01:47]save last doc name /storage/0446/doc_00164594 to /storage/kkm_last_doc_name [13:01:47]save OK [13:01:47]Clear old archive folders... [13:01:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:47]tlvbuf is B6F14130 [13:01:47]SAM_PROTO_ClearQueue [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 09 00 00 [13:01:47]Write to MH i2c: E2 08 00 0B 1D 80 09 00 00 00 00 00 00 9A [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 03 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [13:01:47]RAPDU: 90 00 [13:01:47]wFMCommunicate OK [13:01:47]SAM_PROTO_ClearQueue done [13:01:47]KKMCreateOFDPacket [13:01:47]OFDProtocolAddRootSTLVToBuf [13:01:47]FM_MakeSignedData [13:01:47]FM_MakeSignedData [13:01:47]SAM_PROTO_SignData [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 0D 01 02 [13:01:47]Write to MH i2c: E2 08 00 0C 1D 80 0D 01 02 00 00 00 00 A2 [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 03 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [13:01:48]RAPDU: 90 00 [13:01:48]wFMCommunicate OK [13:01:48]wFMCommunicate request_size=255 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BC 7A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 82 02 00 35 04 06 00 16 [13:01:48]Write to MH i2c: E2 02 01 0D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BC 7A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 82 02 00 35 04 06 00 16 00 00 BE [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:48]Read from MH i2c: E2 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 03 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [13:01:48]RAPDU: 90 00 [13:01:48]wFMCommunicate OK [13:01:48]wFMCommunicate request_size=10 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 0D 02 02 05 E3 19 3A 96 D5 [13:01:48]Write to MH i2c: E2 0D 00 0E 1D 80 0D 02 02 05 00 E3 19 3A 96 D5 00 00 50 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:48]Read from MH i2c: E2 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 03 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [13:01:48]RAPDU: 90 00 [13:01:48]wFMCommunicate OK [13:01:48]wFMCommunicate request_size=4 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 0D 03 02 [13:01:48]Write to MH i2c: E2 08 00 0F 1D 80 0D 03 02 00 00 00 00 A7 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:48]Read from MH i2c: E2 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 0B 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 0B 00 0F 1D 00 8F 4D F5 16 BD 8A 2F 78 90 00 7D [13:01:48]RAPDU: 8F 4D F5 16 BD 8A 2F 78 90 00 [13:01:48]wFMCommunicate OK [13:01:48]SAM_PROTO_SignData done [13:01:48]FM_MakeSignedData done [13:01:48]CreateOFDProtocolMessage [13:01:48]wFMCommunicate request_size=4 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 11 00 00 [13:01:48]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:48]Read from MH i2c: E2 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 17 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [13:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:01:48]wFMCommunicate OK [13:01:48]CreateOFDProtocolMessage done [13:01:48]OFDSenderStorePacket 164594 [13:01:48]StoreOFDPacket docnum=164594 [13:01:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 95 07 01 A9 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BC 7A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 82 02 00 35 04 06 00 16 E3 19 3A 96 D5 8F 4D F5 16 BD 8A 2F 78 [13:01:48]CheckFolder [13:01:48]dirname=/storage/ofd_packets [13:01:48]CheckFolder done [13:01:48]ProducePacketName [13:01:48]name=ofd_packets/00164594 [13:01:48]NVStorageSaveData ofd_packets/00164594 [13:01:48]File name is /storage/ofd_packets/00164594 [13:01:48]Write 301 bytes [13:01:48]NVStorageSaveData done [13:01:48]OFDSenderStorePacket done [13:01:48]KKMCreateOFDPacket done [13:01:48]NVStorageSaveData kkm_last_timestamp [13:01:48]File name is /storage/kkm_last_timestamp [13:01:48]Write 4 bytes [13:01:48]NVStorageSaveData done [13:01:48]ExternCall_PrintAddStr [13:01:48]wPrintStart [13:01:48]Write to MH i2c: 01 00 00 11 1D 2E [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 07 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 FF 0F 43 [13:01:48]RasterBufferAndPrint [13:01:48]line Счет N : (1)458686 [13:01:48]line ИНН: 02508201610067 [13:01:48]line Контрольно-Кассовый Чек [13:01:48]line ПРОДАЖА [13:01:48]line ТРК (МРК, ГНК) : 12 [13:01:48]line Товар: 2710124130 [13:01:48]line Аи-92-К-5 [13:01:48]line 2.280 * 65.80 [13:01:48]line = 150.02 [13:01:48]line НДС 12% НСП 1% [13:01:48]line > о реализуемом товаре [13:01:48]line ОКРУГЛЕНИЕ: -0.02 [13:01:48]line ИТОГО: 150.00 [13:01:48]line Внесено: 150.00 [13:01:48]line СДАЧА: 0.00 [13:01:48]line НСП 1% : 1.33 [13:01:48]line НДС 12% : 15.93 [13:01:48]line Наличными: 150.00 [13:01:48]line Безнал.: 0.00 [13:01:48]line Место: АЗС № 72 "Партнер Нефть" [13:01:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:01:48]line СНО: Общий режим [13:01:48]line Чек 154 13.07.2024 13:01 [13:01:48]line Смена: 446 ФФД: 1.0 [13:01:48]line ЗНМ: 0300000160 [13:01:48]line РНМ: 0000000000090829 [13:01:48]line Версия ККМ: 001 [13:01:48]line ФМ: 0000000000874718 [13:01:48]line ФД: 164594 [13:01:48]line ФПД: 25164636657365 [13:01:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164594&fm=25164636657365&tin=02508201610067®Number=0000000000090829&sum=15000 [13:01:48]OFD Sender: Processing packet 164594 [packets to send 104, broken 103] [13:01:48]ProducePacketName [13:01:48]name=ofd_packets/00164594 [13:01:48]OFD Sender: To server: pG, [13:01:48]CommunicateWithHost lk.salyk.kg:30040 [13:01:48]ConnectInit lk.salyk.kg [13:01:48]written 0, free lines is 4095 [13:01:48]Connected sock=10 [13:01:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 95 07 01 A9 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BC 7A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 82 02 00 35 04 06 00 16 E3 19 3A 96 D5 8F 4D F5 16 BD 8A 2F 78 [13:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 45 47 00 30 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 82 02 00 F4 03 04 00 4D 21 92 66 B6 04 01 00 00 01 3A 90 F3 42 F9 BE EC [13:01:49]CommunicateWithHost err = 0 [13:01:49]CheckOFDResponse [13:01:49]1017 (14) - 77093643461234 [13:01:49]1041 (16) - 0000000000874718 [13:01:49]1040 (4) - 164594 [13:01:49]1012 (4) - 13.07.2024 06:40 [13:01:49]1206 (1) - 0 [13:01:49]OFD Sender: Remove packet 164594 [13:01:49]ProducePacketName [13:01:49]name=ofd_packets/00164594 [13:01:49]NVStorageDeleteData [13:01:49]Write to MH i2c: 01 00 00 3B 1D 58 [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: 01 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: 01 07 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 E9 0C 54 [13:01:49]RasterBufferAndPrint [13:01:49]line [13:01:49]line [13:01:49]line [13:01:49]line [13:01:49]line [13:01:49]written 0, free lines is 3312 [13:01:49]MH_Cut [13:01:49]Write to MH i2c: D1 01 00 42 1D 01 31 [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: D1 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: D1 01 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: D1 01 00 42 1D 00 30 [13:01:49]Write to MH i2c: 01 00 00 43 1D 60 [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]OFD Sender: No OFD packet to send [13:01:49]*** Cut start [13:01:49]*** Partial cut [13:01:49]*** CUTSNS_PIN = 1 [13:01:49]*** CUTSNS_PIN = 0 [13:01:50]*** Brake cut motor [13:01:50]Read from MH i2c: 01 [13:01:50]MH_I2C_Read... [13:01:50]*** Stop cut motor [13:01:50]*** Cut end [13:01:50]Read from MH i2c: 01 07 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 FF 0F 75 [13:01:50]process_action close_receipt done [13:01:50]requested_data is exist [13:01:50]produce_requested_data [13:01:50]requested_item fm.sn is exist - process it [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 11 00 00 [13:01:50]Write to MH i2c: E2 08 00 44 1D 80 11 00 00 00 00 00 00 DB [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 17 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 17 00 44 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [13:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:01:50]wFMCommunicate OK [13:01:50]requested_item fd.num is exist - process it [13:01:50]SAM_PROTO_GetFieldsCounters [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 13 00 00 [13:01:50]Write to MH i2c: E2 08 00 45 1D 80 13 00 00 00 00 00 00 DE [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 62 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 62 00 45 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 82 02 00 0E 04 04 00 BE 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 08 [13:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 82 02 00 0E 04 04 00 BE 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 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_GetFieldsCounters done [13:01:50]requested_item shift.num is exist - process it [13:01:50]requested_item shift.opened is exist - process it [13:01:50]req_shift_opened [13:01:50]FM_GetShiftState [13:01:50]SAM_PROTO_GetShiftState [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 13 01 00 [13:01:50]Write to MH i2c: E2 08 00 46 1D 80 13 01 00 00 00 00 00 E0 [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 46 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C1 [13:01:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_GetShiftState done [13:01:50]FM_GetShiftState done [13:01:50]req_shift_opened done [13:01:50]requested_item shift.open_date is exist - process it [13:01:50]req_shift_open_date [13:01:50]req_shift_open_date done [13:01:50]produce_requested_data done [13:01:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164594,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:01:50]process_action_free close_receipt [13:01:50]json_value_free [13:01:50]json_value_free done [13:01:50]process_json_proto returns [13:01:50]Send response to host [13:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164594,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:01:50]free response buf [13:01:50]execute_script done [13:01:50]execute_script returns [13:01:50]free content buf [13:01:50]Sock 7.Close socket [13:01:50]Sock 7.Thread stoped [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:58]accept exits with 9 [13:07:58]New connection [13:07:58]New thread 3067149668 created [13:07:58]Thread 3067293028 joined [13:07:58]Waiting for new connection... [13:07:58] Sock 9.Parse request [13:07:58]Sock 9.Check first char [13:07:58]Sock 9.First char is OK [13:07:58]request: POST /json_proto HTTP/1.0 [13:07:58]Method: POST [13:07:58]URL: /json_proto [13:07:58]Method is POST - this is cgi request [13:07:58]url: /json_proto [13:07:58]query_string will be loaded in cgi processing [13:07:58]execute_cgi json_proto POST (null) [13:07:58]execute_cgi path=json_proto method=POST [13:07:58]POST find Content-Length [13:07:58]Host: 172.17.56.4:8080 [13:07:58]Content-Length: 677 [13:07:58]Content-Type: application/json [13:07:58] [13:07:58]POST finish read [13:07:58]Found Content-Length = 677 [13:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:58]execute_script... [13:07:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:58]POST & json_proto [13:07:58]process_json_proto [13:07:58]json parsed OK: [13:07:58]protocol is kg_v1.0 [13:07:58]action value=close_receipt [13:07:58]process_action close_receipt [13:07:58]cmd_close_receipt [13:07:58]MH_GetDate [13:07:58]Write to MH i2c: F0 00 00 47 1D 53 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: F0 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: F0 09 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: F0 09 00 47 1D 00 30 7C 92 66 C9 DC B2 64 BB [13:07:58]GetLastDocTimeStamp 1720875708 [13:07:58]current date 1720876080 [13:07:58]FM_GetShiftState [13:07:58]SAM_PROTO_GetShiftState [13:07:58]wFMCommunicate request_size=4 [13:07:58]MH_SAM_APDU [13:07:58]CAPDU: 80 13 01 00 [13:07:58]Write to MH i2c: E2 08 00 48 1D 80 13 01 00 00 00 00 00 E2 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:58]Read from MH i2c: E2 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: E2 0E 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: E2 0E 00 48 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C3 [13:07:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:07:58]wFMCommunicate OK [13:07:58]SAM_PROTO_GetShiftState done [13:07:58]FM_GetShiftState done [13:07:58]opened in 1720831249 [13:07:58]opened+sec_in_day 1720917649 [13:07:58]quantity*price = 20003 [13:07:58]sum+1 = 20004 [13:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 155 13.07.2024 13:08 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164595 ФПД: 964184540785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130800&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164595&fm=964184540785&tin=02508201610067®Number=0000000000090829&sum=20000 [13:07:59]StoreToDocumentArchive [13:07:59]shift 446 fd 164595 [13:07:59]save to /storage/0446/doc_00164595 [13:07:59]save last doc name /storage/0446/doc_00164595 to /storage/kkm_last_doc_name [13:07:59]save OK [13:07:59]Clear old archive folders... [13:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:59]tlvbuf is 014AB2F0 [13:07:59]SAM_PROTO_ClearQueue [13:07:59]wFMCommunicate request_size=4 [13:07:59]MH_SAM_APDU [13:07:59]CAPDU: 80 09 00 00 [13:07:59]Write to MH i2c: E2 08 00 55 1D 80 09 00 00 00 00 00 00 E4 [13:07:59]Write i2c OK [13:07:59]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 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 [13:08:00]MH_I2C_Read... [13:08:00]OFD Sender: No OFD packet to send [13:08:00]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [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 56 1D 80 0D 01 02 00 00 00 00 EC [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [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 56 1D 00 90 00 E7 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]wFMCommunicate request_size=255 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 30 7C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 82 02 00 35 04 06 00 00 [13:08:00]Write to MH i2c: E2 02 01 57 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 30 7C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 82 02 00 35 04 06 00 00 00 00 7B [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [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 57 1D 00 90 00 E8 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]wFMCommunicate request_size=10 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 02 02 05 E0 7D E0 86 71 [13:08:00]Write to MH i2c: E2 0D 00 58 1D 80 0D 02 02 05 00 E0 7D E0 86 71 00 00 2D [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [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 58 1D 00 90 00 E9 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 03 02 [13:08:00]Write to MH i2c: E2 08 00 59 1D 80 0D 03 02 00 00 00 00 F1 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0B 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0B 00 59 1D 00 BF DE C9 05 7F 2E 13 7C 90 00 99 [13:08:00]RAPDU: BF DE C9 05 7F 2E 13 7C 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_SignData done [13:08:00]FM_MakeSignedData done [13:08:00]CreateOFDProtocolMessage [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 11 00 00 [13:08:00]Write to MH i2c: E2 08 00 5A 1D 80 11 00 00 00 00 00 00 F1 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 17 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 17 00 5A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [13:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:08:00]wFMCommunicate OK [13:08:00]CreateOFDProtocolMessage done [13:08:00]OFDSenderStorePacket 164595 [13:08:00]StoreOFDPacket docnum=164595 [13:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 79 07 01 DF 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 30 7C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 82 02 00 35 04 06 00 00 E0 7D E0 86 71 BF DE C9 05 7F 2E 13 7C [13:08:00]CheckFolder [13:08:00]dirname=/storage/ofd_packets [13:08:00]CheckFolder done [13:08:00]ProducePacketName [13:08:00]name=ofd_packets/00164595 [13:08:00]NVStorageSaveData ofd_packets/00164595 [13:08:00]File name is /storage/ofd_packets/00164595 [13:08:00]Write 301 bytes [13:08:00]NVStorageSaveData done [13:08:00]OFDSenderStorePacket done [13:08:00]KKMCreateOFDPacket done [13:08:00]NVStorageSaveData kkm_last_timestamp [13:08:00]File name is /storage/kkm_last_timestamp [13:08:00]Write 4 bytes [13:08:00]NVStorageSaveData done [13:08:00]ExternCall_PrintAddStr [13:08:00]wPrintStart [13:08:00]Write to MH i2c: 01 00 00 5B 1D 78 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: 01 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: 01 07 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: 01 07 00 5B 1D 00 00 00 00 00 FF 0F 8D [13:08:00]RasterBufferAndPrint [13:08:00]line Счет N : (1)458687 [13:08:00]line ИНН: 02508201610067 [13:08:00]line Контрольно-Кассовый Чек [13:08:00]line ПРОДАЖА [13:08:00]line ТРК (МРК, ГНК) : 22 [13:08:00]line Товар: 2710124130 [13:08:00]line Аи-92-К-5 [13:08:00]line 3.040 * 65.80 [13:08:00]line = 200.03 [13:08:00]line НДС 12% НСП 1% [13:08:00]line > о реализуемом товаре [13:08:00]line ОКРУГЛЕНИЕ: -0.03 [13:08:00]line ИТОГО: 200.00 [13:08:00]line Внесено: 200.00 [13:08:00]line СДАЧА: 0.00 [13:08:00]line НСП 1% : 1.77 [13:08:00]line НДС 12% : 21.24 [13:08:00]line Наличными: 200.00 [13:08:00]line Безнал.: 0.00 [13:08:00]line Место: АЗС № 72 "Партнер Нефть" [13:08:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:08:00]line СНО: Общий режим [13:08:00]line Чек 155 13.07.2024 13:08 [13:08:00]line Смена: 446 ФФД: 1.0 [13:08:00]line ЗНМ: 0300000160 [13:08:00]line РНМ: 0000000000090829 [13:08:00]line Версия ККМ: 001 [13:08:00]line ФМ: 0000000000874718 [13:08:00]line ФД: 164595 [13:08:00]line ФПД: 964184540785 [13:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130800&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164595&fm=964184540785&tin=02508201610067®Number=0000000000090829&sum=20000 [13:08:00]OFD Sender: Processing packet 164595 [packets to send 104, broken 103] [13:08:00]ProducePacketName [13:08:00]name=ofd_packets/00164595 [13:08:00]OFD Sender: To server: pG, [13:08:00]CommunicateWithHost lk.salyk.kg:30040 [13:08:00]ConnectInit lk.salyk.kg [13:08:00]written 0, free lines is 4095 [13:08:00]Connected sock=10 [13:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 79 07 01 DF 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 30 7C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 82 02 00 35 04 06 00 00 E0 7D E0 86 71 BF DE C9 05 7F 2E 13 7C [13:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E EF 47 00 FA 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 82 02 00 F4 03 04 00 C1 22 92 66 B6 04 01 00 00 66 1E B1 82 70 7F DA 1A [13:08:01]CommunicateWithHost err = 0 [13:08:01]CheckOFDResponse [13:08:01]1017 (14) - 77093643461234 [13:08:01]1041 (16) - 0000000000874718 [13:08:01]1040 (4) - 164595 [13:08:01]1012 (4) - 13.07.2024 06:46 [13:08:01]1206 (1) - 0 [13:08:01]OFD Sender: Remove packet 164595 [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00164595 [13:08:01]NVStorageDeleteData [13:08:01]Write to MH i2c: 01 00 00 85 1D A2 [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 85 1D 00 00 00 00 00 FD 0C B2 [13:08:01]RasterBufferAndPrint [13:08:01]line [13:08:01]line [13:08:01]line [13:08:01]line [13:08:01]line [13:08:01]written 0, free lines is 3334 [13:08:01]MH_Cut [13:08:01]Write to MH i2c: D1 01 00 8C 1D 01 7B [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: D1 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: D1 01 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: D1 01 00 8C 1D 00 7A [13:08:01]Write to MH i2c: 01 00 00 8D 1D AA [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]OFD Sender: No OFD packet to send [13:08:01]*** Cut start [13:08:01]*** Partial cut [13:08:01]*** CUTSNS_PIN = 1 [13:08:02]*** CUTSNS_PIN = 0 [13:08:02]*** Brake cut motor [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]*** Stop cut motor [13:08:02]*** Cut end [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 8D 1D 00 00 00 00 00 FF 0F BF [13:08:02]process_action close_receipt done [13:08:02]requested_data is exist [13:08:02]produce_requested_data [13:08:02]requested_item fm.sn is exist - process it [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 11 00 00 [13:08:02]Write to MH i2c: E2 08 00 8E 1D 80 11 00 00 00 00 00 00 25 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 8E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [13:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:08:02]wFMCommunicate OK [13:08:02]requested_item fd.num is exist - process it [13:08:02]SAM_PROTO_GetFieldsCounters [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 13 00 00 [13:08:02]Write to MH i2c: E2 08 00 8F 1D 80 13 00 00 00 00 00 00 28 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 62 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 62 00 8F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 82 02 00 0E 04 04 00 BE 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 56 [13:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 82 02 00 0E 04 04 00 BE 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 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_GetFieldsCounters done [13:08:02]requested_item shift.num is exist - process it [13:08:02]requested_item shift.opened is exist - process it [13:08:02]req_shift_opened [13:08:02]FM_GetShiftState [13:08:02]SAM_PROTO_GetShiftState [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 13 01 00 [13:08:02]Write to MH i2c: E2 08 00 90 1D 80 13 01 00 00 00 00 00 2A [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0E 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0E 00 90 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0B [13:08:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_GetShiftState done [13:08:02]FM_GetShiftState done [13:08:02]req_shift_opened done [13:08:02]requested_item shift.open_date is exist - process it [13:08:02]req_shift_open_date [13:08:02]req_shift_open_date done [13:08:02]produce_requested_data done [13:08:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164595,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:08:02]process_action_free close_receipt [13:08:02]json_value_free [13:08:02]json_value_free done [13:08:02]process_json_proto returns [13:08:02]Send response to host [13:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164595,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:08:02]free response buf [13:08:02]execute_script done [13:08:02]execute_script returns [13:08:02]free content buf [13:08:02]Sock 9.Close socket [13:08:02]Sock 9.Thread stoped [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:28]accept exits with 7 [13:13:28]New connection [13:13:28]New thread 3067293028 created [13:13:28]Thread 3067149668 joined [13:13:28]Waiting for new connection... [13:13:28] Sock 7.Parse request [13:13:28]Sock 7.Check first char [13:13:28]Sock 7.First char is OK [13:13:28]request: POST /json_proto HTTP/1.0 [13:13:28]Method: POST [13:13:28]URL: /json_proto [13:13:28]Method is POST - this is cgi request [13:13:28]url: /json_proto [13:13:28]query_string will be loaded in cgi processing [13:13:28]execute_cgi json_proto POST (null) [13:13:28]execute_cgi path=json_proto method=POST [13:13:28]POST find Content-Length [13:13:28]Host: 172.17.56.4:8080 [13:13:28]Content-Length: 677 [13:13:28]Content-Type: application/json [13:13:28] [13:13:28]POST finish read [13:13:28]Found Content-Length = 677 [13:13:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.630, "sum" : 370.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:28]execute_script... [13:13: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)458688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.630, "sum" : 370.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:28]POST & json_proto [13:13:28]process_json_proto [13:13:28]json parsed OK: [13:13:28]protocol is kg_v1.0 [13:13:28]action value=close_receipt [13:13:28]process_action close_receipt [13:13:28]cmd_close_receipt [13:13:28]MH_GetDate [13:13:28]Write to MH i2c: F0 00 00 91 1D 9D [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: F0 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: F0 09 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: F0 09 00 91 1D 00 7A 7D 92 66 C9 DC B2 64 50 [13:13:28]GetLastDocTimeStamp 1720876080 [13:13:28]current date 1720876410 [13:13:28]FM_GetShiftState [13:13:28]SAM_PROTO_GetShiftState [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 13 01 00 [13:13:28]Write to MH i2c: E2 08 00 92 1D 80 13 01 00 00 00 00 00 2C [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 0E 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 0E 00 92 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0D [13:13:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:13:28]wFMCommunicate OK [13:13:28]SAM_PROTO_GetShiftState done [13:13:28]FM_GetShiftState done [13:13:28]opened in 1720831249 [13:13:28]opened+sec_in_day 1720917649 [13:13:28]quantity*price = 37045 [13:13:28]sum+1 = 37046 [13:13:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.34 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 156 13.07.2024 13:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164596 ФПД: 74013123133014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164596&fm=74013123133014&tin=02508201610067®Number=0000000000090829&sum=37000 [13:13:29]StoreToDocumentArchive [13:13:29]shift 446 fd 164596 [13:13:29]save to /storage/0446/doc_00164596 [13:13:29]save last doc name /storage/0446/doc_00164596 to /storage/kkm_last_doc_name [13:13:29]save OK [13:13:29]Clear old archive folders... [13:13:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:29]tlvbuf is B6EFB500 [13:13:29]SAM_PROTO_ClearQueue [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 09 00 00 [13:13:29]Write to MH i2c: E2 08 00 9F 1D 80 09 00 00 00 00 00 00 2E [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 9F 1D 00 90 00 30 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_ClearQueue done [13:13:29]KKMCreateOFDPacket [13:13:29]OFDProtocolAddRootSTLVToBuf [13:13:29]FM_MakeSignedData [13:13:29]FM_MakeSignedData [13:13:29]SAM_PROTO_SignData [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 01 02 [13:13:29]Write to MH i2c: E2 08 00 A0 1D 80 0D 01 02 00 00 00 00 36 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=255 [13:13:29]MH_SAM_APDU [13:13: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 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 7A 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 82 02 00 35 04 06 00 43 [13:13:29]Write to MH i2c: E2 02 01 A1 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 7A 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 82 02 00 35 04 06 00 43 00 00 56 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 A1 1D 00 90 00 32 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=10 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 02 02 05 50 85 E9 BE 56 [13:13:29]Write to MH i2c: E2 0D 00 A2 1D 80 0D 02 02 05 00 50 85 E9 BE 56 00 00 15 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 A2 1D 00 90 00 33 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 03 02 [13:13:29]Write to MH i2c: E2 08 00 A3 1D 80 0D 03 02 00 00 00 00 3B [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0B 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0B 00 A3 1D 00 6B EB B2 EC F4 35 F3 03 90 00 4F [13:13:29]RAPDU: 6B EB B2 EC F4 35 F3 03 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_SignData done [13:13:29]FM_MakeSignedData done [13:13:29]CreateOFDProtocolMessage [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 11 00 00 [13:13:29]Write to MH i2c: E2 08 00 A4 1D 80 11 00 00 00 00 00 00 3B [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 [13:13:29]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 17 00 A4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [13:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:30]wFMCommunicate OK [13:13:30]CreateOFDProtocolMessage done [13:13:30]OFDSenderStorePacket 164596 [13:13:30]StoreOFDPacket docnum=164596 [13:13:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 73 07 01 25 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 7A 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 82 02 00 35 04 06 00 43 50 85 E9 BE 56 6B EB B2 EC F4 35 F3 03 [13:13:30]CheckFolder [13:13:30]dirname=/storage/ofd_packets [13:13:30]CheckFolder done [13:13:30]ProducePacketName [13:13:30]name=ofd_packets/00164596 [13:13:30]NVStorageSaveData ofd_packets/00164596 [13:13:30]File name is /storage/ofd_packets/00164596 [13:13:30]Write 301 bytes [13:13:30]NVStorageSaveData done [13:13:30]OFDSenderStorePacket done [13:13:30]KKMCreateOFDPacket done [13:13:30]NVStorageSaveData kkm_last_timestamp [13:13:30]File name is /storage/kkm_last_timestamp [13:13:30]Write 4 bytes [13:13:30]NVStorageSaveData done [13:13:30]ExternCall_PrintAddStr [13:13:30]wPrintStart [13:13:30]Write to MH i2c: 01 00 00 A5 1D C2 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 A5 1D 00 00 00 00 00 FF 0F D7 [13:13:30]RasterBufferAndPrint [13:13:30]line Счет N : (1)458688 [13:13:30]line ИНН: 02508201610067 [13:13:30]line Контрольно-Кассовый Чек [13:13:30]line ПРОДАЖА [13:13:30]line ТРК (МРК, ГНК) : 22 [13:13:30]line Товар: 2710124130 [13:13:30]line Аи-92-К-5 [13:13:30]line 5.630 * 65.80 [13:13:30]line = 370.45 [13:13:30]line НДС 12% НСП 1% [13:13:30]line > о реализуемом товаре [13:13:30]line ОКРУГЛЕНИЕ: -0.45 [13:13:30]line ИТОГО: 370.00 [13:13:30]line Внесено: 370.00 [13:13:30]line СДАЧА: 0.00 [13:13:30]line НСП 1% : 3.28 [13:13:30]line НДС 12% : 39.34 [13:13:30]line Наличными: 370.00 [13:13:30]line Безнал.: 0.00 [13:13:30]line Место: АЗС № 72 "Партнер Нефть" [13:13:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:13:30]line СНО: Общий режим [13:13:30]line Чек 156 13.07.2024 13:13 [13:13:30]line Смена: 446 ФФД: 1.0 [13:13:30]line ЗНМ: 0300000160 [13:13:30]line РНМ: 0000000000090829 [13:13:30]line Версия ККМ: 001 [13:13:30]line ФМ: 0000000000874718 [13:13:30]line ФД: 164596 [13:13:30]line ФПД: 74013123133014 [13:13:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164596&fm=74013123133014&tin=02508201610067®Number=0000000000090829&sum=37000 [13:13:30]written 0, free lines is 4095 [13:13:30]OFD Sender: Processing packet 164596 [packets to send 104, broken 103] [13:13:30]ProducePacketName [13:13:30]name=ofd_packets/00164596 [13:13:30]OFD Sender: To server: pG, [13:13:30]CommunicateWithHost lk.salyk.kg:30040 [13:13:30]ConnectInit lk.salyk.kg [13:13:30]Connected sock=10 [13:13:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 73 07 01 25 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 7A 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 82 02 00 35 04 06 00 43 50 85 E9 BE 56 6B EB B2 EC F4 35 F3 03 [13:13:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 40 45 47 00 FB 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 34 37 31 38 10 04 04 00 F4 82 02 00 F4 03 04 00 0B 24 92 66 B6 04 01 00 00 EC 1A 8C 8B 82 6C 1B 2D [13:13:30]CommunicateWithHost err = 0 [13:13:30]CheckOFDResponse [13:13:30]1017 (14) - 77093643461234 [13:13:30]1041 (16) - 0000000000874718 [13:13:30]1040 (4) - 164596 [13:13:30]1012 (4) - 13.07.2024 06:51 [13:13:30]1206 (1) - 0 [13:13:30]OFD Sender: Remove packet 164596 [13:13:30]ProducePacketName [13:13:30]name=ofd_packets/00164596 [13:13:30]NVStorageDeleteData [13:13:30]Write to MH i2c: 01 00 00 CF 1D EC [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: 01 07 00 CF 1D 00 00 00 00 00 F5 0C F4 [13:13:30]RasterBufferAndPrint [13:13:30]line [13:13:30]line [13:13:30]line [13:13:30]line [13:13:30]line [13:13:30]written 0, free lines is 3324 [13:13:30]MH_Cut [13:13:30]Write to MH i2c: D1 01 00 D6 1D 01 C5 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: D1 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: D1 01 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: D1 01 00 D6 1D 00 C4 [13:13:30]Write to MH i2c: 01 00 00 D7 1D F4 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:31]OFD Sender: No OFD packet to send [13:13:31]*** Cut start [13:13:31]*** Partial cut [13:13:31]*** CUTSNS_PIN = 1 [13:13:31]*** CUTSNS_PIN = 0 [13:13:31]*** Brake cut motor [13:13:32]Read from MH i2c: 01 [13:13:32]MH_I2C_Read... [13:13:32]*** Stop cut motor [13:13:32]*** Cut end [13:13:32]Read from MH i2c: 01 07 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [13:13:32]process_action close_receipt done [13:13:32]requested_data is exist [13:13:32]produce_requested_data [13:13:32]requested_item fm.sn is exist - process it [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 11 00 00 [13:13:32]Write to MH i2c: E2 08 00 D8 1D 80 11 00 00 00 00 00 00 6F [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 17 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 17 00 D8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [13:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:32]wFMCommunicate OK [13:13:32]requested_item fd.num is exist - process it [13:13:32]SAM_PROTO_GetFieldsCounters [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 13 00 00 [13:13:32]Write to MH i2c: E2 08 00 D9 1D 80 13 00 00 00 00 00 00 72 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 62 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 62 00 D9 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 82 02 00 0E 04 04 00 BE 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 A4 [13:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 82 02 00 0E 04 04 00 BE 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 [13:13:32]wFMCommunicate OK [13:13:32]SAM_PROTO_GetFieldsCounters done [13:13:32]requested_item shift.num is exist - process it [13:13:32]requested_item shift.opened is exist - process it [13:13:32]req_shift_opened [13:13:32]FM_GetShiftState [13:13:32]SAM_PROTO_GetShiftState [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 13 01 00 [13:13:32]Write to MH i2c: E2 08 00 DA 1D 80 13 01 00 00 00 00 00 74 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 0E 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 0E 00 DA 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 55 [13:13:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:13:32]wFMCommunicate OK [13:13:32]SAM_PROTO_GetShiftState done [13:13:32]FM_GetShiftState done [13:13:32]req_shift_opened done [13:13:32]requested_item shift.open_date is exist - process it [13:13:32]req_shift_open_date [13:13:32]req_shift_open_date done [13:13:32]produce_requested_data done [13:13:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164596,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:13:32]process_action_free close_receipt [13:13:32]json_value_free [13:13:32]json_value_free done [13:13:32]process_json_proto returns [13:13:32]Send response to host [13:13:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164596,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:13:32]free response buf [13:13:32]execute_script done [13:13:32]execute_script returns [13:13:32]free content buf [13:13:32]Sock 7.Close socket [13:13:32]Sock 7.Thread stoped [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:13:59]accept exits with 9 [13:13:59]New connection [13:13:59]New thread 3067149668 created [13:13:59]Thread 3067293028 joined [13:13:59]Waiting for new connection... [13:13:59] Sock 9.Parse request [13:13:59]Sock 9.Check first char [13:13:59]Sock 9.First char is OK [13:13:59]request: POST /json_proto HTTP/1.0 [13:13:59]Method: POST [13:13:59]URL: /json_proto [13:13:59]Method is POST - this is cgi request [13:13:59]url: /json_proto [13:13:59]query_string will be loaded in cgi processing [13:13:59]execute_cgi json_proto POST (null) [13:13:59]execute_cgi path=json_proto method=POST [13:13:59]POST find Content-Length [13:13:59]Host: 172.17.56.4:8080 [13:13:59]Content-Length: 679 [13:13:59]Content-Type: application/json [13:13:59] [13:13:59]POST finish read [13:13:59]Found Content-Length = 679 [13:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:13:59]execute_script... [13:13: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)458689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "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:13:59]POST & json_proto [13:13:59]process_json_proto [13:13:59]json parsed OK: [13:13:59]protocol is kg_v1.0 [13:13:59]action value=close_receipt [13:13:59]process_action close_receipt [13:13:59]cmd_close_receipt [13:13:59]MH_GetDate [13:13:59]Write to MH i2c: F0 00 00 DB 1D E7 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 09 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 09 00 DB 1D 00 99 7D 92 66 C9 DC B2 64 B9 [13:13:59]GetLastDocTimeStamp 1720876410 [13:13:59]current date 1720876441 [13:13:59]FM_GetShiftState [13:13:59]SAM_PROTO_GetShiftState [13:13:59]wFMCommunicate request_size=4 [13:13:59]MH_SAM_APDU [13:13:59]CAPDU: 80 13 01 00 [13:13:59]Write to MH i2c: E2 08 00 DC 1D 80 13 01 00 00 00 00 00 76 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 DC 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 57 [13:13:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:13:59]wFMCommunicate OK [13:13:59]SAM_PROTO_GetShiftState done [13:13:59]FM_GetShiftState done [13:13:59]opened in 1720831249 [13:13:59]opened+sec_in_day 1720917649 [13:13:59]quantity*price = 100012 [13:13:59]sum+1 = 100014 [13:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 157 13.07.2024 13:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164597 ФПД: 232834764785250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131401&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164597&fm=232834764785250&tin=02508201610067®Number=0000000000090829&sum=100000 [13:14:00]StoreToDocumentArchive [13:14:00]shift 446 fd 164597 [13:14:00]save to /storage/0446/doc_00164597 [13:14:00]save last doc name /storage/0446/doc_00164597 to /storage/kkm_last_doc_name [13:14:00]save OK [13:14:00]Clear old archive folders... [13:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:14:00]tlvbuf is 014971B0 [13:14:00]SAM_PROTO_ClearQueue [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 09 00 00 [13:14:00]Write to MH i2c: E2 08 00 E9 1D 80 09 00 00 00 00 00 00 78 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_ClearQueue done [13:14:00]KKMCreateOFDPacket [13:14:00]OFDProtocolAddRootSTLVToBuf [13:14:00]FM_MakeSignedData [13:14:00]FM_MakeSignedData [13:14:00]SAM_PROTO_SignData [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 01 02 [13:14:00]Write to MH i2c: E2 08 00 EA 1D 80 0D 01 02 00 00 00 00 80 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 EA 1D 00 90 00 7B [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=255 [13:14:00]MH_SAM_APDU [13:14: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 99 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 82 02 00 35 04 06 00 D3 C3 11 72 [13:14:00]Write to MH i2c: E2 02 01 EB 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 99 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 82 02 00 35 04 06 00 D3 C3 11 72 00 00 3D [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 EB 1D 00 90 00 7C [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=7 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 02 02 02 46 62 [13:14:00]Write to MH i2c: E2 0A 00 EC 1D 80 0D 02 02 02 00 46 62 00 00 2F [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 EC 1D 00 90 00 7D [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 03 02 [13:14:00]Write to MH i2c: E2 08 00 ED 1D 80 0D 03 02 00 00 00 00 85 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0B 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0B 00 ED 1D 00 72 71 00 8D 7A 50 40 49 90 00 49 [13:14:00]RAPDU: 72 71 00 8D 7A 50 40 49 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_SignData done [13:14:00]FM_MakeSignedData done [13:14:00]CreateOFDProtocolMessage [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 EE 1D 80 11 00 00 00 00 00 00 85 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 EE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:14:00]wFMCommunicate OK [13:14:00]CreateOFDProtocolMessage done [13:14:00]OFDSenderStorePacket 164597 [13:14:00]StoreOFDPacket docnum=164597 [13:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9B B3 04 01 33 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 99 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 82 02 00 35 04 06 00 D3 C3 11 72 46 62 72 71 00 8D 7A 50 40 49 [13:14:00]CheckFolder [13:14:00]dirname=/storage/ofd_packets [13:14:00]CheckFolder done [13:14:00]ProducePacketName [13:14:00]name=ofd_packets/00164597 [13:14:00]NVStorageSaveData ofd_packets/00164597 [13:14:00]File name is /storage/ofd_packets/00164597 [13:14:00]Write 298 bytes [13:14:00]NVStorageSaveData done [13:14:00]OFDSenderStorePacket done [13:14:00]KKMCreateOFDPacket done [13:14:00]NVStorageSaveData kkm_last_timestamp [13:14:00]File name is /storage/kkm_last_timestamp [13:14:00]Write 4 bytes [13:14:00]NVStorageSaveData done [13:14:00]ExternCall_PrintAddStr [13:14:00]wPrintStart [13:14:00]Write to MH i2c: 01 00 00 EF 1D 0C [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 FF 0F 21 [13:14:00]RasterBufferAndPrint [13:14:00]line Счет N : (1)458689 [13:14:00]line ИНН: 02508201610067 [13:14:00]line Контрольно-Кассовый Чек [13:14:00]line ПРОДАЖА [13:14:00]line ТРК (МРК, ГНК) : 21 [13:14:00]line Товар: 2710194210 [13:14:00]line ДТ-К-5 [13:14:00]line 13.910 * 71.90 [13:14:00]line = 1000.13 [13:14:00]line НДС 12% НСП 1% [13:14:00]line > о реализуемом товаре [13:14:00]line ОКРУГЛЕНИЕ: -0.13 [13:14:00]line ИТОГО: 1000.00 [13:14:00]line Внесено: 1000.00 [13:14:00]line СДАЧА: 0.00 [13:14:00]line НСП 1% : 8.85 [13:14:00]line НДС 12% : 106.21 [13:14:00]line Наличными: 1000.00 [13:14:00]line Безнал.: 0.00 [13:14:00]line Место: АЗС № 72 "Партнер Нефть" [13:14:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:14:00]line СНО: Общий режим [13:14:00]line Чек 157 13.07.2024 13:14 [13:14:00]line Смена: 446 ФФД: 1.0 [13:14:00]line ЗНМ: 0300000160 [13:14:00]line РНМ: 0000000000090829 [13:14:00]line Версия ККМ: 001 [13:14:00]line ФМ: 0000000000874718 [13:14:00]line ФД: 164597 [13:14:00]line ФПД: 232834764785250 [13:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131401&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164597&fm=232834764785250&tin=02508201610067®Number=0000000000090829&sum=100000 [13:14:01]OFD Sender: Processing packet 164597 [packets to send 104, broken 103] [13:14:01]ProducePacketName [13:14:01]name=ofd_packets/00164597 [13:14:01]OFD Sender: To server: pG, [13:14:01]CommunicateWithHost lk.salyk.kg:30040 [13:14:01]ConnectInit lk.salyk.kg [13:14:01]written 0, free lines is 4095 [13:14:01]Connected sock=10 [13:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9B B3 04 01 33 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9D 00 00 00 F4 03 04 00 99 7D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 82 02 00 35 04 06 00 D3 C3 11 72 46 62 72 71 00 8D 7A 50 40 49 [13:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F FF 47 00 E3 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 34 37 31 38 10 04 04 00 F5 82 02 00 F4 03 04 00 2A 24 92 66 B6 04 01 00 00 99 6B CF B5 73 91 99 61 [13:14:01]CommunicateWithHost err = 0 [13:14:01]CheckOFDResponse [13:14:01]1017 (14) - 77093643461234 [13:14:01]1041 (16) - 0000000000874718 [13:14:01]1040 (4) - 164597 [13:14:01]1012 (4) - 13.07.2024 06:52 [13:14:01]1206 (1) - 0 [13:14:01]OFD Sender: Remove packet 164597 [13:14:01]ProducePacketName [13:14:01]name=ofd_packets/00164597 [13:14:01]NVStorageDeleteData [13:14:01]Write to MH i2c: 01 00 00 19 1E 37 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 19 1E 00 00 00 00 00 EE 0C 38 [13:14:01]RasterBufferAndPrint [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]written 0, free lines is 3317 [13:14:01]MH_Cut [13:14:01]Write to MH i2c: D1 01 00 20 1E 01 10 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 01 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 01 00 20 1E 00 0F [13:14:01]Write to MH i2c: 01 00 00 21 1E 3F [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]OFD Sender: No OFD packet to send [13:14:02]*** Cut start [13:14:02]*** Partial cut [13:14:02]*** CUTSNS_PIN = 1 [13:14:02]*** CUTSNS_PIN = 0 [13:14:02]*** Brake cut motor [13:14:02]Read from MH i2c: 01 [13:14:02]MH_I2C_Read... [13:14:02]*** Stop cut motor [13:14:02]*** Cut end [13:14:02]Read from MH i2c: 01 07 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: 01 07 00 21 1E 00 00 00 00 00 FF 0F 54 [13:14:02]process_action close_receipt done [13:14:02]requested_data is exist [13:14:02]produce_requested_data [13:14:02]requested_item fm.sn is exist - process it [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 11 00 00 [13:14:02]Write to MH i2c: E2 08 00 22 1E 80 11 00 00 00 00 00 00 BA [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 22 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [13:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:14:02]wFMCommunicate OK [13:14:02]requested_item fd.num is exist - process it [13:14:02]SAM_PROTO_GetFieldsCounters [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 13 00 00 [13:14:02]Write to MH i2c: E2 08 00 23 1E 80 13 00 00 00 00 00 00 BD [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 62 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 62 00 23 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 82 02 00 0E 04 04 00 BE 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 F3 [13:14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 82 02 00 0E 04 04 00 BE 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 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_GetFieldsCounters done [13:14:03]requested_item shift.num is exist - process it [13:14:03]requested_item shift.opened is exist - process it [13:14:03]req_shift_opened [13:14:03]FM_GetShiftState [13:14:03]SAM_PROTO_GetShiftState [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 13 01 00 [13:14:03]Write to MH i2c: E2 08 00 24 1E 80 13 01 00 00 00 00 00 BF [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0E 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0E 00 24 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A0 [13:14:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_GetShiftState done [13:14:03]FM_GetShiftState done [13:14:03]req_shift_opened done [13:14:03]requested_item shift.open_date is exist - process it [13:14:03]req_shift_open_date [13:14:03]req_shift_open_date done [13:14:03]produce_requested_data done [13:14:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164597,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:14:03]process_action_free close_receipt [13:14:03]json_value_free [13:14:03]json_value_free done [13:14:03]process_json_proto returns [13:14:03]Send response to host [13:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164597,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:14:03]free response buf [13:14:03]execute_script done [13:14:03]execute_script returns [13:14:03]free content buf [13:14:03]Sock 9.Close socket [13:14:03]Sock 9.Thread stoped [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:53]accept exits with 7 [13:15:53]New connection [13:15:53]New thread 3067293028 created [13:15:53]Thread 3067149668 joined [13:15:53]Waiting for new connection... [13:15:53] Sock 7.Parse request [13:15:53]Sock 7.Check first char [13:15:53]Sock 7.First char is OK [13:15:53]request: POST /json_proto HTTP/1.0 [13:15:53]Method: POST [13:15:53]URL: /json_proto [13:15:53]Method is POST - this is cgi request [13:15:53]url: /json_proto [13:15:53]query_string will be loaded in cgi processing [13:15:53]execute_cgi json_proto POST (null) [13:15:53]execute_cgi path=json_proto method=POST [13:15:53]POST find Content-Length [13:15:53]Host: 172.17.56.4:8080 [13:15:53]Content-Length: 660 [13:15:53]Content-Type: application/json [13:15:53] [13:15:53]POST finish read [13:15:53]Found Content-Length = 660 [13:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:53]execute_script... [13:15: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)458690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:53]POST & json_proto [13:15:53]process_json_proto [13:15:53]json parsed OK: [13:15:53]protocol is kg_v1.0 [13:15:53]action value=close_receipt [13:15:53]process_action close_receipt [13:15:53]cmd_close_receipt [13:15:53]MH_GetDate [13:15:53]Write to MH i2c: F0 00 00 25 1E 32 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 09 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: F0 09 00 25 1E 00 0B 7E 92 66 C9 DC B2 64 77 [13:15:53]GetLastDocTimeStamp 1720876441 [13:15:53]current date 1720876555 [13:15:53]FM_GetShiftState [13:15:53]SAM_PROTO_GetShiftState [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 13 01 00 [13:15:53]Write to MH i2c: E2 08 00 26 1E 80 13 01 00 00 00 00 00 C1 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0E 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0E 00 26 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A2 [13:15:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:15:53]wFMCommunicate OK [13:15:53]SAM_PROTO_GetShiftState done [13:15:53]FM_GetShiftState done [13:15:53]opened in 1720831249 [13:15:53]opened+sec_in_day 1720917649 [13:15:53]quantity*price = 143800 [13:15:53]sum+1 = 143801 [13:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 Внесено: 1500.00 СДАЧА: 62.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 158 13.07.2024 13:15 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164598 ФПД: 12861297623114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164598&fm=12861297623114&tin=02508201610067®Number=0000000000090829&sum=143800 [13:15:54]StoreToDocumentArchive [13:15:54]shift 446 fd 164598 [13:15:54]save to /storage/0446/doc_00164598 [13:15:54]save last doc name /storage/0446/doc_00164598 to /storage/kkm_last_doc_name [13:15:54]save OK [13:15:54]Clear old archive folders... [13:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:54]tlvbuf is 014ABE90 [13:15:54]SAM_PROTO_ClearQueue [13:15:54]wFMCommunicate request_size=4 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 09 00 00 [13:15:54]Write to MH i2c: E2 08 00 33 1E 80 09 00 00 00 00 00 00 C3 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]SAM_PROTO_ClearQueue done [13:15:54]KKMCreateOFDPacket [13:15:54]OFDProtocolAddRootSTLVToBuf [13:15:54]FM_MakeSignedData [13:15:54]FM_MakeSignedData [13:15:54]SAM_PROTO_SignData [13:15:54]wFMCommunicate request_size=4 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 01 02 [13:15:54]Write to MH i2c: E2 08 00 34 1E 80 0D 01 02 00 00 00 00 CB [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]wFMCommunicate request_size=255 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0B 7E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 82 02 00 35 04 06 00 0B B2 81 13 [13:15:54]Write to MH i2c: E2 02 01 35 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0B 7E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 82 02 00 35 04 06 00 0B B2 81 13 00 00 17 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 35 1E 00 90 00 C7 [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]wFMCommunicate request_size=7 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 02 02 02 80 4A [13:15:54]Write to MH i2c: E2 0A 00 36 1E 80 0D 02 02 02 00 80 4A 00 00 9C [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:54]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [13:15:54]RAPDU: 90 00 [13:15:54]wFMCommunicate OK [13:15:54]wFMCommunicate request_size=4 [13:15:54]MH_SAM_APDU [13:15:54]CAPDU: 80 0D 03 02 [13:15:54]Write to MH i2c: E2 08 00 37 1E 80 0D 03 02 00 00 00 00 D0 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0B 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 0B 00 37 1E 00 EE A9 8D 77 75 F3 17 13 90 00 FE [13:15:55]RAPDU: EE A9 8D 77 75 F3 17 13 90 00 [13:15:55]wFMCommunicate OK [13:15:55]SAM_PROTO_SignData done [13:15:55]FM_MakeSignedData done [13:15:55]CreateOFDProtocolMessage [13:15:55]wFMCommunicate request_size=4 [13:15:55]MH_SAM_APDU [13:15:55]CAPDU: 80 11 00 00 [13:15:55]Write to MH i2c: E2 08 00 38 1E 80 11 00 00 00 00 00 00 D0 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:55]Read from MH i2c: E2 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 17 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: E2 17 00 38 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [13:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:15:55]wFMCommunicate OK [13:15:55]CreateOFDProtocolMessage done [13:15:55]OFDSenderStorePacket 164598 [13:15:55]StoreOFDPacket docnum=164598 [13:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 87 4B 04 01 48 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0B 7E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 82 02 00 35 04 06 00 0B B2 81 13 80 4A EE A9 8D 77 75 F3 17 13 [13:15:55]CheckFolder [13:15:55]dirname=/storage/ofd_packets [13:15:55]CheckFolder done [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00164598 [13:15:55]NVStorageSaveData ofd_packets/00164598 [13:15:55]File name is /storage/ofd_packets/00164598 [13:15:55]Write 298 bytes [13:15:55]NVStorageSaveData done [13:15:55]OFDSenderStorePacket done [13:15:55]KKMCreateOFDPacket done [13:15:55]NVStorageSaveData kkm_last_timestamp [13:15:55]File name is /storage/kkm_last_timestamp [13:15:55]Write 4 bytes [13:15:55]NVStorageSaveData done [13:15:55]ExternCall_PrintAddStr [13:15:55]wPrintStart [13:15:55]Write to MH i2c: 01 00 00 39 1E 57 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 39 1E 00 00 00 00 00 FF 0F 6C [13:15:55]RasterBufferAndPrint [13:15:55]line Счет N : (1)458690 [13:15:55]line ИНН: 02508201610067 [13:15:55]line Контрольно-Кассовый Чек [13:15:55]line ПРОДАЖА [13:15:55]line ТРК (МРК, ГНК) : 11 [13:15:55]line Товар: 2710194210 [13:15:55]line ДТ-К-5 [13:15:55]line 20.000 * 71.90 [13:15:55]line = 1438.00 [13:15:55]line НДС 12% НСП 1% [13:15:55]line > о реализуемом товаре [13:15:55]line ИТОГО: 1438.00 [13:15:55]line Внесено: 1500.00 [13:15:55]line СДАЧА: 62.00 [13:15:55]line НСП 1% : 12.73 [13:15:55]line НДС 12% : 152.71 [13:15:55]line Наличными: 1438.00 [13:15:55]line Безнал.: 0.00 [13:15:55]line Место: АЗС № 72 "Партнер Нефть" [13:15:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:15:55]line СНО: Общий режим [13:15:55]line Чек 158 13.07.2024 13:15 [13:15:55]line Смена: 446 ФФД: 1.0 [13:15:55]line ЗНМ: 0300000160 [13:15:55]line РНМ: 0000000000090829 [13:15:55]line Версия ККМ: 001 [13:15:55]line ФМ: 0000000000874718 [13:15:55]line ФД: 164598 [13:15:55]line ФПД: 12861297623114 [13:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164598&fm=12861297623114&tin=02508201610067®Number=0000000000090829&sum=143800 [13:15:55]OFD Sender: Processing packet 164598 [packets to send 104, broken 103] [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00164598 [13:15:55]OFD Sender: To server: pG, [13:15:55]CommunicateWithHost lk.salyk.kg:30040 [13:15:55]ConnectInit lk.salyk.kg [13:15:55]written 0, free lines is 4095 [13:15:55]Connected sock=10 [13:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 87 4B 04 01 48 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 0B 7E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 82 02 00 35 04 06 00 0B B2 81 13 80 4A EE A9 8D 77 75 F3 17 13 [13:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 83 7A 47 00 A7 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 82 02 00 F4 03 04 00 9C 24 92 66 B6 04 01 00 00 84 B2 9B 70 1D A1 92 CB [13:15:55]CommunicateWithHost err = 0 [13:15:55]CheckOFDResponse [13:15:55]1017 (14) - 77093643461234 [13:15:55]1041 (16) - 0000000000874718 [13:15:55]1040 (4) - 164598 [13:15:55]1012 (4) - 13.07.2024 06:54 [13:15:55]1206 (1) - 0 [13:15:55]OFD Sender: Remove packet 164598 [13:15:55]ProducePacketName [13:15:55]name=ofd_packets/00164598 [13:15:55]NVStorageDeleteData [13:15:55]Write to MH i2c: 01 00 00 62 1E 80 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 10 0D A4 [13:15:55]RasterBufferAndPrint [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]line [13:15:55]written 0, free lines is 3350 [13:15:55]MH_Cut [13:15:55]Write to MH i2c: D1 01 00 69 1E 01 59 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 01 00 [13:15:55]MH_I2C_Read... [13:15:55]Read from MH i2c: D1 01 00 69 1E 00 58 [13:15:55]Write to MH i2c: 01 00 00 6A 1E 88 [13:15:55]Write i2c OK [13:15:55]MH_I2C_Read... [13:15:56]OFD Sender: No OFD packet to send [13:15:56]*** Cut start [13:15:56]*** Partial cut [13:15:56]*** CUTSNS_PIN = 1 [13:15:56]*** CUTSNS_PIN = 0 [13:15:56]*** Brake cut motor [13:15:57]Read from MH i2c: 01 [13:15:57]MH_I2C_Read... [13:15:57]*** Stop cut motor [13:15:57]*** Cut end [13:15:57]Read from MH i2c: 01 07 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 FF 0F 9D [13:15:57]process_action close_receipt done [13:15:57]requested_data is exist [13:15:57]produce_requested_data [13:15:57]requested_item fm.sn is exist - process it [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 11 00 00 [13:15:57]Write to MH i2c: E2 08 00 6B 1E 80 11 00 00 00 00 00 00 03 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 17 00 6B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [13:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:15:57]wFMCommunicate OK [13:15:57]requested_item fd.num is exist - process it [13:15:57]SAM_PROTO_GetFieldsCounters [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 13 00 00 [13:15:57]Write to MH i2c: E2 08 00 6C 1E 80 13 00 00 00 00 00 00 06 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 62 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 62 00 6C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 82 02 00 0E 04 04 00 BE 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 40 [13:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 82 02 00 0E 04 04 00 BE 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 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetFieldsCounters done [13:15:57]requested_item shift.num is exist - process it [13:15:57]requested_item shift.opened is exist - process it [13:15:57]req_shift_opened [13:15:57]FM_GetShiftState [13:15:57]SAM_PROTO_GetShiftState [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 13 01 00 [13:15:57]Write to MH i2c: E2 08 00 6D 1E 80 13 01 00 00 00 00 00 08 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 6D 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E9 [13:15:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetShiftState done [13:15:57]FM_GetShiftState done [13:15:57]req_shift_opened done [13:15:57]requested_item shift.open_date is exist - process it [13:15:57]req_shift_open_date [13:15:57]req_shift_open_date done [13:15:57]produce_requested_data done [13:15:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164598,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:15:57]process_action_free close_receipt [13:15:57]json_value_free [13:15:57]json_value_free done [13:15:57]process_json_proto returns [13:15:57]Send response to host [13:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164598,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:15:57]free response buf [13:15:57]execute_script done [13:15:57]execute_script returns [13:15:57]free content buf [13:15:57]Sock 7.Close socket [13:15:57]Sock 7.Thread stoped [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20: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:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]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:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [13:34:03]New connection [13:34:03]New thread 3067149668 created [13:34:03]Thread 3067293028 joined [13:34:03]Waiting for new connection... [13:34:03] Sock 9.Parse request [13:34:03]Sock 9.Check first char [13:34:03]Sock 9.First char is OK [13:34:03]request: POST /json_proto HTTP/1.0 [13:34:03]Method: POST [13:34:03]URL: /json_proto [13:34:03]Method is POST - this is cgi request [13:34:03]url: /json_proto [13:34:03]query_string will be loaded in cgi processing [13:34:03]execute_cgi json_proto POST (null) [13:34:03]execute_cgi path=json_proto method=POST [13:34:03]POST find Content-Length [13:34:03]Host: 172.17.56.4:8080 [13:34:03]Content-Length: 677 [13:34:03]Content-Type: application/json [13:34:03] [13:34:03]POST finish read [13:34:03]Found Content-Length = 677 [13:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:34:03]execute_script... [13:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:34:03]POST & json_proto [13:34:03]process_json_proto [13:34:03]json parsed OK: [13:34:03]protocol is kg_v1.0 [13:34:03]action value=close_receipt [13:34:03]process_action close_receipt [13:34:03]cmd_close_receipt [13:34:03]MH_GetDate [13:34:03]Write to MH i2c: F0 00 00 6E 1E 7B [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 09 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: F0 09 00 6E 1E 00 4D 82 92 66 C9 DC B2 64 06 [13:34:03]GetLastDocTimeStamp 1720876555 [13:34:03]current date 1720877645 [13:34:03]FM_GetShiftState [13:34:03]SAM_PROTO_GetShiftState [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 13 01 00 [13:34:03]Write to MH i2c: E2 08 00 6F 1E 80 13 01 00 00 00 00 00 0A [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0E 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0E 00 6F 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EB [13:34:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_GetShiftState done [13:34:03]FM_GetShiftState done [13:34:03]opened in 1720831249 [13:34:03]opened+sec_in_day 1720917649 [13:34:03]quantity*price = 50008 [13:34:03]sum+1 = 50009 [13:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 159 13.07.2024 13:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164599 ФПД: 249389321057202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133405&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164599&fm=249389321057202&tin=02508201610067®Number=0000000000090829&sum=50000 [13:34:04]StoreToDocumentArchive [13:34:04]shift 446 fd 164599 [13:34:04]save to /storage/0446/doc_00164599 [13:34:04]save last doc name /storage/0446/doc_00164599 to /storage/kkm_last_doc_name [13:34:04]save OK [13:34:04]Clear old archive folders... [13:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:05]tlvbuf is 0144BEA0 [13:34:05]SAM_PROTO_ClearQueue [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 09 00 00 [13:34:05]Write to MH i2c: E2 08 00 7C 1E 80 09 00 00 00 00 00 00 0C [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [13:34:05]RAPDU: 90 00 [13:34:05]wFMCommunicate OK [13:34:05]SAM_PROTO_ClearQueue done [13:34:05]KKMCreateOFDPacket [13:34:05]OFDProtocolAddRootSTLVToBuf [13:34:05]FM_MakeSignedData [13:34:05]FM_MakeSignedData [13:34:05]SAM_PROTO_SignData [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 0D 01 02 [13:34:05]Write to MH i2c: E2 08 00 7D 1E 80 0D 01 02 00 00 00 00 14 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [13:34:05]RAPDU: 90 00 [13:34:05]wFMCommunicate OK [13:34:05]wFMCommunicate request_size=255 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 9F 00 00 00 F4 03 04 00 4D 82 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 82 02 00 35 04 06 00 E2 [13:34:05]Write to MH i2c: E2 02 01 7E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 9F 00 00 00 F4 03 04 00 4D 82 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 82 02 00 35 04 06 00 E2 00 00 0F [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [13:34:05]RAPDU: 90 00 [13:34:05]wFMCommunicate OK [13:34:05]wFMCommunicate request_size=10 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 0D 02 02 05 D1 79 E4 73 B2 [13:34:05]Write to MH i2c: E2 0D 00 7F 1E 80 0D 02 02 05 00 D1 79 E4 73 B2 00 00 74 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [13:34:05]RAPDU: 90 00 [13:34:05]wFMCommunicate OK [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 0D 03 02 [13:34:05]Write to MH i2c: E2 08 00 80 1E 80 0D 03 02 00 00 00 00 19 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 0B 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 0B 00 80 1E 00 40 C4 E7 5A 4C 2D C2 46 90 00 E0 [13:34:05]RAPDU: 40 C4 E7 5A 4C 2D C2 46 90 00 [13:34:05]wFMCommunicate OK [13:34:05]SAM_PROTO_SignData done [13:34:05]FM_MakeSignedData done [13:34:05]CreateOFDProtocolMessage [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 11 00 00 [13:34:05]Write to MH i2c: E2 08 00 81 1E 80 11 00 00 00 00 00 00 19 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 17 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 17 00 81 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [13:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:34:05]wFMCommunicate OK [13:34:05]CreateOFDProtocolMessage done [13:34:05]OFDSenderStorePacket 164599 [13:34:05]StoreOFDPacket docnum=164599 [13:34:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 F4 07 01 3E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 9F 00 00 00 F4 03 04 00 4D 82 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 82 02 00 35 04 06 00 E2 D1 79 E4 73 B2 40 C4 E7 5A 4C 2D C2 46 [13:34:05]CheckFolder [13:34:05]dirname=/storage/ofd_packets [13:34:05]CheckFolder done [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00164599 [13:34:05]NVStorageSaveData ofd_packets/00164599 [13:34:05]File name is /storage/ofd_packets/00164599 [13:34:05]Write 301 bytes [13:34:05]NVStorageSaveData done [13:34:05]OFDSenderStorePacket done [13:34:05]KKMCreateOFDPacket done [13:34:05]NVStorageSaveData kkm_last_timestamp [13:34:05]File name is /storage/kkm_last_timestamp [13:34:05]Write 4 bytes [13:34:05]NVStorageSaveData done [13:34:05]ExternCall_PrintAddStr [13:34:05]wPrintStart [13:34:05]Write to MH i2c: 01 00 00 82 1E A0 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 07 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 FF 0F B5 [13:34:05]RasterBufferAndPrint [13:34:05]line Счет N : (1)458691 [13:34:05]line ИНН: 02508201610067 [13:34:05]line Контрольно-Кассовый Чек [13:34:05]line ПРОДАЖА [13:34:05]line ТРК (МРК, ГНК) : 12 [13:34:05]line Товар: 2710124130 [13:34:05]line Аи-92-К-5 [13:34:05]line 7.600 * 65.80 [13:34:05]line = 500.08 [13:34:05]line НДС 12% НСП 1% [13:34:05]line > о реализуемом товаре [13:34:05]line ОКРУГЛЕНИЕ: -0.08 [13:34:05]line ИТОГО: 500.00 [13:34:05]line Внесено: 500.00 [13:34:05]line СДАЧА: 0.00 [13:34:05]line НСП 1% : 4.42 [13:34:05]line НДС 12% : 53.11 [13:34:05]line Наличными: 500.00 [13:34:05]line Безнал.: 0.00 [13:34:05]line Место: АЗС № 72 "Партнер Нефть" [13:34:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:34:05]line СНО: Общий режим [13:34:05]line Чек 159 13.07.2024 13:34 [13:34:05]line Смена: 446 ФФД: 1.0 [13:34:05]line ЗНМ: 0300000160 [13:34:05]line РНМ: 0000000000090829 [13:34:05]line Версия ККМ: 001 [13:34:05]line ФМ: 0000000000874718 [13:34:05]line ФД: 164599 [13:34:05]line ФПД: 249389321057202 [13:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133405&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164599&fm=249389321057202&tin=02508201610067®Number=0000000000090829&sum=50000 [13:34:05]OFD Sender: Processing packet 164599 [packets to send 104, broken 103] [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00164599 [13:34:05]OFD Sender: To server: pG, [13:34:05]CommunicateWithHost lk.salyk.kg:30040 [13:34:05]ConnectInit lk.salyk.kg [13:34:05]written 0, free lines is 4095 [13:34:05]Connected sock=10 [13:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 F4 07 01 3E D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 9F 00 00 00 F4 03 04 00 4D 82 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 82 02 00 35 04 06 00 E2 D1 79 E4 73 B2 40 C4 E7 5A 4C 2D C2 46 [13:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 15 47 00 D8 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 82 02 00 F4 03 04 00 DE 28 92 66 B6 04 01 00 00 C4 60 1A 15 CE 42 D3 A4 [13:34:06]CommunicateWithHost err = 0 [13:34:06]CheckOFDResponse [13:34:06]1017 (14) - 77093643461234 [13:34:06]1041 (16) - 0000000000874718 [13:34:06]1040 (4) - 164599 [13:34:06]1012 (4) - 13.07.2024 07:12 [13:34:06]1206 (1) - 0 [13:34:06]OFD Sender: Remove packet 164599 [13:34:06]ProducePacketName [13:34:06]name=ofd_packets/00164599 [13:34:06]NVStorageDeleteData [13:34:06]Write to MH i2c: 01 00 00 AC 1E CA [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: 01 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: 01 07 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 FF 0C DC [13:34:06]RasterBufferAndPrint [13:34:06]line [13:34:06]line [13:34:06]line [13:34:06]line [13:34:06]line [13:34:06]written 0, free lines is 3333 [13:34:06]MH_Cut [13:34:06]Write to MH i2c: D1 01 00 B3 1E 01 A3 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: D1 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: D1 01 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: D1 01 00 B3 1E 00 A2 [13:34:06]Write to MH i2c: 01 00 00 B4 1E D2 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]OFD Sender: No OFD packet to send [13:34:06]*** Cut start [13:34:06]*** Partial cut [13:34:06]*** CUTSNS_PIN = 1 [13:34:07]*** CUTSNS_PIN = 0 [13:34:07]*** Brake cut motor [13:34:07]Read from MH i2c: 01 [13:34:07]MH_I2C_Read... [13:34:07]*** Stop cut motor [13:34:07]*** Cut end [13:34:07]Read from MH i2c: 01 07 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 FF 0F E7 [13:34:07]process_action close_receipt done [13:34:07]requested_data is exist [13:34:07]produce_requested_data [13:34:07]requested_item fm.sn is exist - process it [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 11 00 00 [13:34:07]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 17 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [13:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:34:07]wFMCommunicate OK [13:34:07]requested_item fd.num is exist - process it [13:34:07]SAM_PROTO_GetFieldsCounters [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 13 00 00 [13:34:07]Write to MH i2c: E2 08 00 B6 1E 80 13 00 00 00 00 00 00 50 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 62 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 62 00 B6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 82 02 00 0E 04 04 00 BE 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 8E [13:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 82 02 00 0E 04 04 00 BE 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 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_GetFieldsCounters done [13:34:07]requested_item shift.num is exist - process it [13:34:07]requested_item shift.opened is exist - process it [13:34:07]req_shift_opened [13:34:07]FM_GetShiftState [13:34:07]SAM_PROTO_GetShiftState [13:34:07]wFMCommunicate request_size=4 [13:34:07]MH_SAM_APDU [13:34:07]CAPDU: 80 13 01 00 [13:34:07]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [13:34:07]Write i2c OK [13:34:07]MH_I2C_Read... [13:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:07]Read from MH i2c: E2 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 0E 00 [13:34:07]MH_I2C_Read... [13:34:07]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 33 [13:34:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:34:07]wFMCommunicate OK [13:34:07]SAM_PROTO_GetShiftState done [13:34:07]FM_GetShiftState done [13:34:07]req_shift_opened done [13:34:07]requested_item shift.open_date is exist - process it [13:34:07]req_shift_open_date [13:34:07]req_shift_open_date done [13:34:07]produce_requested_data done [13:34:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164599,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:34:07]process_action_free close_receipt [13:34:07]json_value_free [13:34:07]json_value_free done [13:34:07]process_json_proto returns [13:34:07]Send response to host [13:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164599,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:34:07]free response buf [13:34:07]execute_script done [13:34:07]execute_script returns [13:34:07]free content buf [13:34:07]Sock 9.Close socket [13:34:07]Sock 9.Thread stoped [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:53]accept exits with 7 [13:38:53]New connection [13:38:53]New thread 3067293028 created [13:38:53]Thread 3067149668 joined [13:38:53]Waiting for new connection... [13:38:53] Sock 7.Parse request [13:38:53]Sock 7.Check first char [13:38:53]Sock 7.First char is OK [13:38:53]request: POST /json_proto HTTP/1.0 [13:38:53]Method: POST [13:38:53]URL: /json_proto [13:38:53]Method is POST - this is cgi request [13:38:53]url: /json_proto [13:38:53]query_string will be loaded in cgi processing [13:38:53]execute_cgi json_proto POST (null) [13:38:53]execute_cgi path=json_proto method=POST [13:38:53]POST find Content-Length [13:38:53]Host: 172.17.56.4:8080 [13:38:53]Content-Length: 677 [13:38:53]Content-Type: application/json [13:38:53] [13:38:53]POST finish read [13:38:53]Found Content-Length = 677 [13:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.970, "sum" : 590.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:53]execute_script... [13:38: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)458692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.970, "sum" : 590.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:53]POST & json_proto [13:38:53]process_json_proto [13:38:53]json parsed OK: [13:38:53]protocol is kg_v1.0 [13:38:53]action value=close_receipt [13:38:53]process_action close_receipt [13:38:53]cmd_close_receipt [13:38:53]MH_GetDate [13:38:53]Write to MH i2c: F0 00 00 B8 1E C5 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 09 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: F0 09 00 B8 1E 00 6F 83 92 66 C9 DC B2 64 73 [13:38:53]GetLastDocTimeStamp 1720877645 [13:38:53]current date 1720877935 [13:38:53]FM_GetShiftState [13:38:53]SAM_PROTO_GetShiftState [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 13 01 00 [13:38:53]Write to MH i2c: E2 08 00 B9 1E 80 13 01 00 00 00 00 00 54 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 B9 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 35 [13:38:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_GetShiftState done [13:38:53]FM_GetShiftState done [13:38:53]opened in 1720831249 [13:38:53]opened+sec_in_day 1720917649 [13:38:53]quantity*price = 59022 [13:38:53]sum+1 = 59024 [13:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.22 НДС 12% : 62.68 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 160 13.07.2024 13:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164600 ФПД: 67127708997935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133855&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164600&fm=67127708997935&tin=02508201610067®Number=0000000000090829&sum=59000 [13:38:54]StoreToDocumentArchive [13:38:54]shift 446 fd 164600 [13:38:54]save to /storage/0446/doc_00164600 [13:38:54]save last doc name /storage/0446/doc_00164600 to /storage/kkm_last_doc_name [13:38:54]save OK [13:38:54]Clear old archive folders... [13:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:54]tlvbuf is 0142FFE0 [13:38:54]SAM_PROTO_ClearQueue [13:38:54]wFMCommunicate request_size=4 [13:38:54]MH_SAM_APDU [13:38:54]CAPDU: 80 09 00 00 [13:38:54]Write to MH i2c: E2 08 00 C6 1E 80 09 00 00 00 00 00 00 56 [13:38:54]Write i2c OK [13:38:54]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [13:38:55]RAPDU: 90 00 [13:38:55]wFMCommunicate OK [13:38:55]SAM_PROTO_ClearQueue done [13:38:55]KKMCreateOFDPacket [13:38:55]OFDProtocolAddRootSTLVToBuf [13:38:55]FM_MakeSignedData [13:38:55]FM_MakeSignedData [13:38:55]SAM_PROTO_SignData [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 0D 01 02 [13:38:55]Write to MH i2c: E2 08 00 C7 1E 80 0D 01 02 00 00 00 00 5E [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [13:38:55]RAPDU: 90 00 [13:38:55]wFMCommunicate OK [13:38:55]wFMCommunicate request_size=255 [13:38:55]MH_SAM_APDU [13:38: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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6F 83 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 82 02 00 35 04 06 00 3D [13:38:55]Write to MH i2c: E2 02 01 C8 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6F 83 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 82 02 00 35 04 06 00 3D 00 00 3B [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [13:38:55]RAPDU: 90 00 [13:38:55]wFMCommunicate OK [13:38:55]wFMCommunicate request_size=10 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 0D 02 02 05 0D 63 3F D9 2F [13:38:55]Write to MH i2c: E2 0D 00 C9 1E 80 0D 02 02 05 00 0D 63 3F D9 2F 00 00 22 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [13:38:55]RAPDU: 90 00 [13:38:55]wFMCommunicate OK [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 0D 03 02 [13:38:55]Write to MH i2c: E2 08 00 CA 1E 80 0D 03 02 00 00 00 00 63 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0B 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 0B 00 CA 1E 00 DE 03 0A 26 FC BC E3 EE 90 00 FE [13:38:55]RAPDU: DE 03 0A 26 FC BC E3 EE 90 00 [13:38:55]wFMCommunicate OK [13:38:55]SAM_PROTO_SignData done [13:38:55]FM_MakeSignedData done [13:38:55]CreateOFDProtocolMessage [13:38:55]wFMCommunicate request_size=4 [13:38:55]MH_SAM_APDU [13:38:55]CAPDU: 80 11 00 00 [13:38:55]Write to MH i2c: E2 08 00 CB 1E 80 11 00 00 00 00 00 00 63 [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:55]Read from MH i2c: E2 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: E2 17 00 CB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [13:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:38:55]wFMCommunicate OK [13:38:55]CreateOFDProtocolMessage done [13:38:55]OFDSenderStorePacket 164600 [13:38:55]StoreOFDPacket docnum=164600 [13:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 46 D6 07 01 45 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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6F 83 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 82 02 00 35 04 06 00 3D 0D 63 3F D9 2F DE 03 0A 26 FC BC E3 EE [13:38:55]CheckFolder [13:38:55]dirname=/storage/ofd_packets [13:38:55]CheckFolder done [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00164600 [13:38:55]NVStorageSaveData ofd_packets/00164600 [13:38:55]File name is /storage/ofd_packets/00164600 [13:38:55]Write 301 bytes [13:38:55]NVStorageSaveData done [13:38:55]OFDSenderStorePacket done [13:38:55]KKMCreateOFDPacket done [13:38:55]NVStorageSaveData kkm_last_timestamp [13:38:55]File name is /storage/kkm_last_timestamp [13:38:55]Write 4 bytes [13:38:55]NVStorageSaveData done [13:38:55]ExternCall_PrintAddStr [13:38:55]wPrintStart [13:38:55]Write to MH i2c: 01 00 00 CC 1E EA [13:38:55]Write i2c OK [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 [13:38:55]MH_I2C_Read... [13:38:55]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 FF 0F FF [13:38:55]RasterBufferAndPrint [13:38:55]line Счет N : (1)458692 [13:38:55]line ИНН: 02508201610067 [13:38:55]line Контрольно-Кассовый Чек [13:38:55]line ПРОДАЖА [13:38:55]line ТРК (МРК, ГНК) : 12 [13:38:55]line Товар: 2710124130 [13:38:55]line Аи-92-К-5 [13:38:55]line 8.970 * 65.80 [13:38:55]line = 590.23 [13:38:55]line НДС 12% НСП 1% [13:38:55]line > о реализуемом товаре [13:38:55]line ОКРУГЛЕНИЕ: -0.23 [13:38:55]line ИТОГО: 590.00 [13:38:55]line Внесено: 590.00 [13:38:55]line СДАЧА: 0.00 [13:38:55]line НСП 1% : 5.22 [13:38:55]line НДС 12% : 62.68 [13:38:55]line Наличными: 590.00 [13:38:55]line Безнал.: 0.00 [13:38:55]line Место: АЗС № 72 "Партнер Нефть" [13:38:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:38:55]line СНО: Общий режим [13:38:55]line Чек 160 13.07.2024 13:38 [13:38:55]line Смена: 446 ФФД: 1.0 [13:38:55]line ЗНМ: 0300000160 [13:38:55]line РНМ: 0000000000090829 [13:38:55]line Версия ККМ: 001 [13:38:55]line ФМ: 0000000000874718 [13:38:55]line ФД: 164600 [13:38:55]line ФПД: 67127708997935 [13:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133855&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164600&fm=67127708997935&tin=02508201610067®Number=0000000000090829&sum=59000 [13:38:55]OFD Sender: Processing packet 164600 [packets to send 104, broken 103] [13:38:55]ProducePacketName [13:38:55]name=ofd_packets/00164600 [13:38:55]OFD Sender: To server: pG, [13:38:55]CommunicateWithHost lk.salyk.kg:30040 [13:38:55]ConnectInit lk.salyk.kg [13:38:55]written 0, free lines is 4095 [13:38:55]Connected sock=10 [13:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 46 D6 07 01 45 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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 6F 83 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 82 02 00 35 04 06 00 3D 0D 63 3F D9 2F DE 03 0A 26 FC BC E3 EE [13:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 7C 47 00 66 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 82 02 00 F4 03 04 00 00 2A 92 66 B6 04 01 00 00 DD CC 37 1A AD 7C 94 1C [13:38:56]CommunicateWithHost err = 0 [13:38:56]CheckOFDResponse [13:38:56]1017 (14) - 77093643461234 [13:38:56]1041 (16) - 0000000000874718 [13:38:56]1040 (4) - 164600 [13:38:56]1012 (4) - 13.07.2024 07:17 [13:38:56]1206 (1) - 0 [13:38:56]OFD Sender: Remove packet 164600 [13:38:56]ProducePacketName [13:38:56]name=ofd_packets/00164600 [13:38:56]NVStorageDeleteData [13:38:56]Write to MH i2c: 01 00 00 F6 1E 14 [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: 01 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: 01 07 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 FF 0C 26 [13:38:56]RasterBufferAndPrint [13:38:56]line [13:38:56]line [13:38:56]line [13:38:56]line [13:38:56]line [13:38:56]written 0, free lines is 3332 [13:38:56]MH_Cut [13:38:56]Write to MH i2c: D1 01 00 FD 1E 01 ED [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: D1 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: D1 01 00 [13:38:56]MH_I2C_Read... [13:38:56]Read from MH i2c: D1 01 00 FD 1E 00 EC [13:38:56]Write to MH i2c: 01 00 00 FE 1E 1C [13:38:56]Write i2c OK [13:38:56]MH_I2C_Read... [13:38:56]OFD Sender: No OFD packet to send [13:38:56]*** Cut start [13:38:56]*** Partial cut [13:38:56]*** CUTSNS_PIN = 1 [13:38:56]*** CUTSNS_PIN = 0 [13:38:57]*** Brake cut motor [13:38:57]Read from MH i2c: 01 [13:38:57]MH_I2C_Read... [13:38:57]*** Stop cut motor [13:38:57]*** Cut end [13:38:57]Read from MH i2c: 01 07 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [13:38:57]process_action close_receipt done [13:38:57]requested_data is exist [13:38:57]produce_requested_data [13:38:57]requested_item fm.sn is exist - process it [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 11 00 00 [13:38:57]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 17 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [13:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:38:57]wFMCommunicate OK [13:38:57]requested_item fd.num is exist - process it [13:38:57]SAM_PROTO_GetFieldsCounters [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 13 00 00 [13:38:57]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 62 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 62 00 00 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 82 02 00 0E 04 04 00 BE 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 DD [13:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 82 02 00 0E 04 04 00 BE 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 [13:38:57]wFMCommunicate OK [13:38:57]SAM_PROTO_GetFieldsCounters done [13:38:57]requested_item shift.num is exist - process it [13:38:57]requested_item shift.opened is exist - process it [13:38:57]req_shift_opened [13:38:57]FM_GetShiftState [13:38:57]SAM_PROTO_GetShiftState [13:38:57]wFMCommunicate request_size=4 [13:38:57]MH_SAM_APDU [13:38:57]CAPDU: 80 13 01 00 [13:38:57]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [13:38:57]Write i2c OK [13:38:57]MH_I2C_Read... [13:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:57]Read from MH i2c: E2 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 [13:38:57]MH_I2C_Read... [13:38:57]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7E [13:38:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:38:57]wFMCommunicate OK [13:38:57]SAM_PROTO_GetShiftState done [13:38:57]FM_GetShiftState done [13:38:57]req_shift_opened done [13:38:57]requested_item shift.open_date is exist - process it [13:38:57]req_shift_open_date [13:38:57]req_shift_open_date done [13:38:57]produce_requested_data done [13:38:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164600,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:38:57]process_action_free close_receipt [13:38:57]json_value_free [13:38:57]json_value_free done [13:38:57]process_json_proto returns [13:38:57]Send response to host [13:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164600,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:38:57]free response buf [13:38:57]execute_script done [13:38:57]execute_script returns [13:38:57]free content buf [13:38:57]Sock 7.Close socket [13:38:57]Sock 7.Thread stoped [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:35]accept exits with 9 [13:41:35]New connection [13:41:35]New thread 3067149668 created [13:41:35]Thread 3067293028 joined [13:41:35]Waiting for new connection... [13:41:35] Sock 9.Parse request [13:41:35]Sock 9.Check first char [13:41:35]Sock 9.First char is OK [13:41:35]request: POST /json_proto HTTP/1.0 [13:41:35]Method: POST [13:41:35]URL: /json_proto [13:41:35]Method is POST - this is cgi request [13:41:35]url: /json_proto [13:41:35]query_string will be loaded in cgi processing [13:41:35]execute_cgi json_proto POST (null) [13:41:35]execute_cgi path=json_proto method=POST [13:41:35]POST find Content-Length [13:41:35]Host: 172.17.56.4:8080 [13:41:35]Content-Length: 790 [13:41:35]Content-Type: application/json [13:41:35] [13:41:35]POST finish read [13:41:35]Found Content-Length = 790 [13:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:35]execute_script... [13:41: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)458693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:35]POST & json_proto [13:41:35]process_json_proto [13:41:35]json parsed OK: [13:41:35]protocol is kg_v1.0 [13:41:35]action value=close_receipt [13:41:35]process_action close_receipt [13:41:35]cmd_close_receipt [13:41:35]MH_GetDate [13:41:35]Write to MH i2c: F0 00 00 02 1F 10 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 09 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 09 00 02 1F 00 11 84 92 66 C9 DC B2 64 61 [13:41:35]GetLastDocTimeStamp 1720877935 [13:41:35]current date 1720878097 [13:41:35]FM_GetShiftState [13:41:35]SAM_PROTO_GetShiftState [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 13 01 00 [13:41:35]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0E 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 80 [13:41:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:41:35]wFMCommunicate OK [13:41:35]SAM_PROTO_GetShiftState done [13:41:35]FM_GetShiftState done [13:41:35]opened in 1720831249 [13:41:35]opened+sec_in_day 1720917649 [13:41:35]quantity*price = 142520 [13:41:35]sum+1 = 142521 [13:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1425.20 НСП 1% : 12.61 НДС 12% : 151.35 Наличными: 0.00 Безнал.: 1425.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 161 13.07.2024 13:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164601 ФПД: 106614694877943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134137&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164601&fm=106614694877943&tin=02508201610067®Number=0000000000090829&sum=142520 [13:41:36]StoreToDocumentArchive [13:41:36]shift 446 fd 164601 [13:41:36]save to /storage/0446/doc_00164601 [13:41:36]save last doc name /storage/0446/doc_00164601 to /storage/kkm_last_doc_name [13:41:36]save OK [13:41:36]Clear old archive folders... [13:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:36]tlvbuf is 01474AC0 [13:41:36]SAM_PROTO_ClearQueue [13:41:36]wFMCommunicate request_size=4 [13:41:36]MH_SAM_APDU [13:41:36]CAPDU: 80 09 00 00 [13:41:36]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:36]OFD Sender: No OFD packet to send [13:41:36]Read from MH i2c: E2 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 03 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [13:41:36]RAPDU: 90 00 [13:41:36]wFMCommunicate OK [13:41:36]SAM_PROTO_ClearQueue done [13:41:36]KKMCreateOFDPacket [13:41:36]OFDProtocolAddRootSTLVToBuf [13:41:36]FM_MakeSignedData [13:41:36]FM_MakeSignedData [13:41:36]SAM_PROTO_SignData [13:41:36]wFMCommunicate request_size=4 [13:41:36]MH_SAM_APDU [13:41:36]CAPDU: 80 0D 01 02 [13:41:36]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:36]Read from MH i2c: E2 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 03 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [13:41:36]RAPDU: 90 00 [13:41:36]wFMCommunicate OK [13:41:36]wFMCommunicate request_size=255 [13:41:36]MH_SAM_APDU [13:41: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 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 82 02 00 35 04 06 00 60 F7 2B 04 [13:41:36]Write to MH i2c: E2 02 01 12 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 82 02 00 35 04 06 00 60 F7 2B 04 00 00 58 [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=7 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 02 1A F7 [13:41:37]Write to MH i2c: E2 0A 00 13 1F 80 0D 02 02 02 00 1A F7 00 00 C1 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 03 02 [13:41:37]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 14 1F 00 6E CD BC F9 05 BA BC DD 90 00 F7 [13:41:37]RAPDU: 6E CD BC F9 05 BA BC DD 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_SignData done [13:41:37]FM_MakeSignedData done [13:41:37]CreateOFDProtocolMessage [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 11 00 00 [13:41:37]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [13:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:37]wFMCommunicate OK [13:41:37]CreateOFDProtocolMessage done [13:41:37]OFDSenderStorePacket 164601 [13:41:37]StoreOFDPacket docnum=164601 [13:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 68 98 04 01 DD D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 82 02 00 35 04 06 00 60 F7 2B 04 1A F7 6E CD BC F9 05 BA BC DD [13:41:37]CheckFolder [13:41:37]dirname=/storage/ofd_packets [13:41:37]CheckFolder done [13:41:37]ProducePacketName [13:41:37]name=ofd_packets/00164601 [13:41:37]NVStorageSaveData ofd_packets/00164601 [13:41:37]File name is /storage/ofd_packets/00164601 [13:41:37]Write 298 bytes [13:41:37]NVStorageSaveData done [13:41:37]OFDSenderStorePacket done [13:41:37]KKMCreateOFDPacket done [13:41:37]NVStorageSaveData kkm_last_timestamp [13:41:37]File name is /storage/kkm_last_timestamp [13:41:37]Write 4 bytes [13:41:37]NVStorageSaveData done [13:41:37]ExternCall_PrintAddStr [13:41:37]wPrintStart [13:41:37]Write to MH i2c: 01 00 00 16 1F 35 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [13:41:37]RasterBufferAndPrint [13:41:37]line Счет N : (1)458693 [13:41:37]line ИНН: 02508201610067 [13:41:37]line Контрольно-Кассовый Чек [13:41:37]line ПРОДАЖА [13:41:37]line ТРК (МРК, ГНК) : 21 [13:41:37]line Товар: 2710194210 [13:41:37]line ДТ-К-5 [13:41:37]line 20.000 * 71.26 [13:41:37]line = 1425.20 [13:41:37]line НДС 12% НСП 1% [13:41:37]line > о реализуемом товаре [13:41:37]line ИТОГО: 1425.20 [13:41:37]line НСП 1% : 12.61 [13:41:37]line НДС 12% : 151.35 [13:41:37]line Наличными: 0.00 [13:41:37]line Безнал.: 1425.20 [13:41:37]line Место: АЗС № 72 "Партнер Нефть" [13:41:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:37]line СНО: Общий режим [13:41:37]line Чек 161 13.07.2024 13:41 [13:41:37]line Смена: 446 ФФД: 1.0 [13:41:37]line ЗНМ: 0300000160 [13:41:37]line РНМ: 0000000000090829 [13:41:37]line Версия ККМ: 001 [13:41:37]line Платежная система: KICB Банк [13:41:37]line ФМ: 0000000000874718 [13:41:37]line ФД: 164601 [13:41:37]line ФПД: 106614694877943 [13:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134137&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164601&fm=106614694877943&tin=02508201610067®Number=0000000000090829&sum=142520 [13:41:37]OFD Sender: Processing packet 164601 [packets to send 104, broken 103] [13:41:37]ProducePacketName [13:41:37]name=ofd_packets/00164601 [13:41:37]OFD Sender: To server: pG, [13:41:37]CommunicateWithHost lk.salyk.kg:30040 [13:41:37]ConnectInit lk.salyk.kg [13:41:37]written 0, free lines is 4095 [13:41:37]Connected sock=10 [13:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 68 98 04 01 DD D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 11 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 82 02 00 35 04 06 00 60 F7 2B 04 1A F7 6E CD BC F9 05 BA BC DD [13:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3B A1 47 00 9F 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 82 02 00 F4 03 04 00 A2 2A 92 66 B6 04 01 00 00 A8 C7 6C 0B C5 BE 72 84 [13:41:38]CommunicateWithHost err = 0 [13:41:38]CheckOFDResponse [13:41:38]1017 (14) - 77093643461234 [13:41:38]1041 (16) - 0000000000874718 [13:41:38]1040 (4) - 164601 [13:41:38]1012 (4) - 13.07.2024 07:20 [13:41:38]1206 (1) - 0 [13:41:38]OFD Sender: Remove packet 164601 [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00164601 [13:41:38]NVStorageDeleteData [13:41:38]Write to MH i2c: 01 00 00 3F 1F 5E [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 3F 1F 00 00 00 00 00 11 0D 83 [13:41:38]RasterBufferAndPrint [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]written 0, free lines is 3351 [13:41:38]MH_Cut [13:41:38]Write to MH i2c: D1 01 00 46 1F 01 37 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 46 1F 00 36 [13:41:38]Write to MH i2c: 01 00 00 47 1F 66 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]OFD Sender: No OFD packet to send [13:41:38]*** Cut start [13:41:38]*** Partial cut [13:41:38]*** CUTSNS_PIN = 1 [13:41:38]*** CUTSNS_PIN = 0 [13:41:39]*** Brake cut motor [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]*** Stop cut motor [13:41:39]*** Cut end [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 47 1F 00 00 00 00 00 FF 0F 7B [13:41:39]process_action close_receipt done [13:41:39]requested_data is exist [13:41:39]produce_requested_data [13:41:39]requested_item fm.sn is exist - process it [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 11 00 00 [13:41:39]Write to MH i2c: E2 08 00 48 1F 80 11 00 00 00 00 00 00 E1 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 17 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 17 00 48 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [13:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:39]wFMCommunicate OK [13:41:39]requested_item fd.num is exist - process it [13:41:39]SAM_PROTO_GetFieldsCounters [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 13 00 00 [13:41:39]Write to MH i2c: E2 08 00 49 1F 80 13 00 00 00 00 00 00 E4 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 62 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 62 00 49 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 82 02 00 0E 04 04 00 BE 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 2A [13:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 82 02 00 0E 04 04 00 BE 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 [13:41:39]wFMCommunicate OK [13:41:39]SAM_PROTO_GetFieldsCounters done [13:41:39]requested_item shift.num is exist - process it [13:41:39]requested_item shift.opened is exist - process it [13:41:39]req_shift_opened [13:41:39]FM_GetShiftState [13:41:39]SAM_PROTO_GetShiftState [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 13 01 00 [13:41:39]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [13:41:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:41:39]wFMCommunicate OK [13:41:39]SAM_PROTO_GetShiftState done [13:41:39]FM_GetShiftState done [13:41:39]req_shift_opened done [13:41:39]requested_item shift.open_date is exist - process it [13:41:39]req_shift_open_date [13:41:39]req_shift_open_date done [13:41:39]produce_requested_data done [13:41:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164601,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:41:39]process_action_free close_receipt [13:41:39]json_value_free [13:41:39]json_value_free done [13:41:39]process_json_proto returns [13:41:39]Send response to host [13:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164601,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:41:39]free response buf [13:41:39]execute_script done [13:41:39]execute_script returns [13:41:39]free content buf [13:41:39]Sock 9.Close socket [13:41:39]Sock 9.Thread stoped [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]accept exits with 7 [13:44:48]New connection [13:44:48]New thread 3067293028 created [13:44:48]Thread 3067149668 joined [13:44:48]Waiting for new connection... [13:44:48] Sock 7.Parse request [13:44:48]Sock 7.Check first char [13:44:48]Sock 7.First char is OK [13:44:48]request: POST /json_proto HTTP/1.0 [13:44:48]Method: POST [13:44:48]URL: /json_proto [13:44:48]Method is POST - this is cgi request [13:44:48]url: /json_proto [13:44:48]query_string will be loaded in cgi processing [13:44:48]execute_cgi json_proto POST (null) [13:44:48]execute_cgi path=json_proto method=POST [13:44:48]POST find Content-Length [13:44:48]Host: 172.17.56.4:8080 [13:44:48]Content-Length: 674 [13:44:48]Content-Type: application/json [13:44:48] [13:44:48]POST finish read [13:44:48]Found Content-Length = 674 [13:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:44:48]execute_script... [13:44: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)458694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:44:48]POST & json_proto [13:44:48]process_json_proto [13:44:48]json parsed OK: [13:44:48]protocol is kg_v1.0 [13:44:48]action value=close_receipt [13:44:48]process_action close_receipt [13:44:48]cmd_close_receipt [13:44:48]MH_GetDate [13:44:48]Write to MH i2c: F0 00 00 4B 1F 59 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 4B 1F 00 D2 84 92 66 C9 DC B2 64 6B [13:44:48]GetLastDocTimeStamp 1720878097 [13:44:48]current date 1720878290 [13:44:48]FM_GetShiftState [13:44:48]SAM_PROTO_GetShiftState [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 13 01 00 [13:44:48]Write to MH i2c: E2 08 00 4C 1F 80 13 01 00 00 00 00 00 E8 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 4C 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C9 [13:44:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:44:48]wFMCommunicate OK [13:44:48]SAM_PROTO_GetShiftState done [13:44:48]FM_GetShiftState done [13:44:48]opened in 1720831249 [13:44:48]opened+sec_in_day 1720917649 [13:44:48]quantity*price = 50042 [13:44:48]sum+1 = 50043 [13:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 162 13.07.2024 13:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164602 ФПД: 109721723525130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164602&fm=109721723525130&tin=02508201610067®Number=0000000000090829&sum=50000 [13:44:49]StoreToDocumentArchive [13:44:49]shift 446 fd 164602 [13:44:49]save to /storage/0446/doc_00164602 [13:44:49]save last doc name /storage/0446/doc_00164602 to /storage/kkm_last_doc_name [13:44:49]save OK [13:44:49]Clear old archive folders... [13:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:49]tlvbuf is B6EFB090 [13:44:49]SAM_PROTO_ClearQueue [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 09 00 00 [13:44:49]Write to MH i2c: E2 08 00 59 1F 80 09 00 00 00 00 00 00 EA [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]SAM_PROTO_ClearQueue done [13:44:49]KKMCreateOFDPacket [13:44:49]OFDProtocolAddRootSTLVToBuf [13:44:49]FM_MakeSignedData [13:44:49]FM_MakeSignedData [13:44:49]SAM_PROTO_SignData [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 01 02 [13:44:49]Write to MH i2c: E2 08 00 5A 1F 80 0D 01 02 00 00 00 00 F2 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]wFMCommunicate request_size=255 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D2 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 82 02 00 35 04 06 00 63 CA 94 5A [13:44:49]Write to MH i2c: E2 02 01 5B 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D2 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 82 02 00 35 04 06 00 63 CA 94 5A 00 00 0F [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [13:44:50]RAPDU: 90 00 [13:44:50]wFMCommunicate OK [13:44:50]wFMCommunicate request_size=7 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 0D 02 02 02 D8 0A [13:44:50]Write to MH i2c: E2 0A 00 5C 1F 80 0D 02 02 02 00 D8 0A 00 00 DB [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [13:44:50]RAPDU: 90 00 [13:44:50]wFMCommunicate OK [13:44:50]wFMCommunicate request_size=4 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 0D 03 02 [13:44:50]Write to MH i2c: E2 08 00 5D 1F 80 0D 03 02 00 00 00 00 F7 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 0B 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 0B 00 5D 1F 00 1A B8 50 FD 37 CF 80 1D 90 00 BA [13:44:50]RAPDU: 1A B8 50 FD 37 CF 80 1D 90 00 [13:44:50]wFMCommunicate OK [13:44:50]SAM_PROTO_SignData done [13:44:50]FM_MakeSignedData done [13:44:50]CreateOFDProtocolMessage [13:44:50]wFMCommunicate request_size=4 [13:44:50]MH_SAM_APDU [13:44:50]CAPDU: 80 11 00 00 [13:44:50]Write to MH i2c: E2 08 00 5E 1F 80 11 00 00 00 00 00 00 F7 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 5E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [13:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:44:50]wFMCommunicate OK [13:44:50]CreateOFDProtocolMessage done [13:44:50]OFDSenderStorePacket 164602 [13:44:50]StoreOFDPacket docnum=164602 [13:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CF 53 04 01 8F E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D2 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 82 02 00 35 04 06 00 63 CA 94 5A D8 0A 1A B8 50 FD 37 CF 80 1D [13:44:50]CheckFolder [13:44:50]dirname=/storage/ofd_packets [13:44:50]CheckFolder done [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00164602 [13:44:50]NVStorageSaveData ofd_packets/00164602 [13:44:50]File name is /storage/ofd_packets/00164602 [13:44:50]Write 298 bytes [13:44:50]NVStorageSaveData done [13:44:50]OFDSenderStorePacket done [13:44:50]KKMCreateOFDPacket done [13:44:50]NVStorageSaveData kkm_last_timestamp [13:44:50]File name is /storage/kkm_last_timestamp [13:44:50]Write 4 bytes [13:44:50]NVStorageSaveData done [13:44:50]ExternCall_PrintAddStr [13:44:50]wPrintStart [13:44:50]Write to MH i2c: 01 00 00 5F 1F 7E [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 FF 0F 93 [13:44:50]RasterBufferAndPrint [13:44:50]line Счет N : (1)458694 [13:44:50]line ИНН: 02508201610067 [13:44:50]line Контрольно-Кассовый Чек [13:44:50]line ПРОДАЖА [13:44:50]line ТРК (МРК, ГНК) : 21 [13:44:50]line Товар: 2710194210 [13:44:50]line ДТ-К-5 [13:44:50]line 6.960 * 71.90 [13:44:50]line = 500.42 [13:44:50]line НДС 12% НСП 1% [13:44:50]line > о реализуемом товаре [13:44:50]line ОКРУГЛЕНИЕ: -0.42 [13:44:50]line ИТОГО: 500.00 [13:44:50]line Внесено: 500.00 [13:44:50]line СДАЧА: 0.00 [13:44:50]line НСП 1% : 4.43 [13:44:50]line НДС 12% : 53.14 [13:44:50]line Наличными: 500.00 [13:44:50]line Безнал.: 0.00 [13:44:50]line Место: АЗС № 72 "Партнер Нефть" [13:44:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:44:50]line СНО: Общий режим [13:44:50]line Чек 162 13.07.2024 13:44 [13:44:50]line Смена: 446 ФФД: 1.0 [13:44:50]line ЗНМ: 0300000160 [13:44:50]line РНМ: 0000000000090829 [13:44:50]line Версия ККМ: 001 [13:44:50]line ФМ: 0000000000874718 [13:44:50]line ФД: 164602 [13:44:50]line ФПД: 109721723525130 [13:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134450&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164602&fm=109721723525130&tin=02508201610067®Number=0000000000090829&sum=50000 [13:44:50]OFD Sender: Processing packet 164602 [packets to send 104, broken 103] [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00164602 [13:44:50]OFD Sender: To server: pG, [13:44:50]CommunicateWithHost lk.salyk.kg:30040 [13:44:50]ConnectInit lk.salyk.kg [13:44:50]written 0, free lines is 4095 [13:44:50]Connected sock=10 [13:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CF 53 04 01 8F E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 D2 84 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 82 02 00 35 04 06 00 63 CA 94 5A D8 0A 1A B8 50 FD 37 CF 80 1D [13:44:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E1 6A 47 00 DA D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 82 02 00 F4 03 04 00 63 2B 92 66 B6 04 01 00 00 EB A0 C9 17 B4 FF A7 31 [13:44:50]CommunicateWithHost err = 0 [13:44:50]CheckOFDResponse [13:44:50]1017 (14) - 77093643461234 [13:44:50]1041 (16) - 0000000000874718 [13:44:50]1040 (4) - 164602 [13:44:50]1012 (4) - 13.07.2024 07:23 [13:44:50]1206 (1) - 0 [13:44:50]OFD Sender: Remove packet 164602 [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00164602 [13:44:50]NVStorageDeleteData [13:44:51]Write to MH i2c: 01 00 00 89 1F A8 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 07 00 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: 01 07 00 89 1F 00 00 00 00 00 EF 0C AA [13:44:51]RasterBufferAndPrint [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]line [13:44:51]written 0, free lines is 3317 [13:44:51]MH_Cut [13:44:51]Write to MH i2c: D1 01 00 90 1F 01 81 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 01 00 [13:44:51]MH_I2C_Read... [13:44:51]Read from MH i2c: D1 01 00 90 1F 00 80 [13:44:51]Write to MH i2c: 01 00 00 91 1F B0 [13:44:51]Write i2c OK [13:44:51]MH_I2C_Read... [13:44:51]OFD Sender: No OFD packet to send [13:44:51]*** Cut start [13:44:51]*** Partial cut [13:44:51]*** CUTSNS_PIN = 1 [13:44:51]*** CUTSNS_PIN = 0 [13:44:52]*** Brake cut motor [13:44:52]Read from MH i2c: 01 [13:44:52]MH_I2C_Read... [13:44:52]*** Stop cut motor [13:44:52]*** Cut end [13:44:52]Read from MH i2c: 01 07 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: 01 07 00 91 1F 00 00 00 00 00 FF 0F C5 [13:44:52]process_action close_receipt done [13:44:52]requested_data is exist [13:44:52]produce_requested_data [13:44:52]requested_item fm.sn is exist - process it [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 11 00 00 [13:44:52]Write to MH i2c: E2 08 00 92 1F 80 11 00 00 00 00 00 00 2B [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 92 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [13:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:44:52]wFMCommunicate OK [13:44:52]requested_item fd.num is exist - process it [13:44:52]SAM_PROTO_GetFieldsCounters [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 00 00 [13:44:52]Write to MH i2c: E2 08 00 93 1F 80 13 00 00 00 00 00 00 2E [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 93 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 82 02 00 0E 04 04 00 BE 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 78 [13:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 82 02 00 0E 04 04 00 BE 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 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetFieldsCounters done [13:44:52]requested_item shift.num is exist - process it [13:44:52]requested_item shift.opened is exist - process it [13:44:52]req_shift_opened [13:44:52]FM_GetShiftState [13:44:52]SAM_PROTO_GetShiftState [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 01 00 [13:44:52]Write to MH i2c: E2 08 00 94 1F 80 13 01 00 00 00 00 00 30 [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 94 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 11 [13:44:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetShiftState done [13:44:52]FM_GetShiftState done [13:44:52]req_shift_opened done [13:44:52]requested_item shift.open_date is exist - process it [13:44:52]req_shift_open_date [13:44:52]req_shift_open_date done [13:44:52]produce_requested_data done [13:44:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164602,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:44:52]process_action_free close_receipt [13:44:52]json_value_free [13:44:52]json_value_free done [13:44:52]process_json_proto returns [13:44:52]Send response to host [13:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164602,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:44:52]free response buf [13:44:52]execute_script done [13:44:52]execute_script returns [13:44:52]free content buf [13:44:52]Sock 7.Close socket [13:44:52]Sock 7.Thread stoped [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]accept exits with 9 [13:45:56]New connection [13:45:56]New thread 3067149668 created [13:45:56]Thread 3067293028 joined [13:45:56]Waiting for new connection... [13:45:56] Sock 9.Parse request [13:45:56]Sock 9.Check first char [13:45:56]Sock 9.First char is OK [13:45:56]request: POST /json_proto HTTP/1.0 [13:45:56]Method: POST [13:45:56]URL: /json_proto [13:45:56]Method is POST - this is cgi request [13:45:56]url: /json_proto [13:45:56]query_string will be loaded in cgi processing [13:45:56]execute_cgi json_proto POST (null) [13:45:56]execute_cgi path=json_proto method=POST [13:45:56]POST find Content-Length [13:45:56]Host: 172.17.56.4:8080 [13:45:56]Content-Length: 674 [13:45:56]Content-Type: application/json [13:45:56] [13:45:56]POST finish read [13:45:56]Found Content-Length = 674 [13:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:56]execute_script... [13:45: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)458695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:56]POST & json_proto [13:45:56]process_json_proto [13:45:56]json parsed OK: [13:45:56]protocol is kg_v1.0 [13:45:56]action value=close_receipt [13:45:56]process_action close_receipt [13:45:56]cmd_close_receipt [13:45:56]MH_GetDate [13:45:56]Write to MH i2c: F0 00 00 95 1F A3 [13:45:56]Write i2c OK [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: F0 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: F0 09 00 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: F0 09 00 95 1F 00 16 85 92 66 C9 DC B2 64 FA [13:45:56]GetLastDocTimeStamp 1720878290 [13:45:56]current date 1720878358 [13:45:56]FM_GetShiftState [13:45:56]SAM_PROTO_GetShiftState [13:45:56]wFMCommunicate request_size=4 [13:45:56]MH_SAM_APDU [13:45:56]CAPDU: 80 13 01 00 [13:45:56]Write to MH i2c: E2 08 00 96 1F 80 13 01 00 00 00 00 00 32 [13:45:56]Write i2c OK [13:45:56]MH_I2C_Read... [13:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:56]Read from MH i2c: E2 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: E2 0E 00 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: E2 0E 00 96 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 13 [13:45:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:45:56]wFMCommunicate OK [13:45:56]SAM_PROTO_GetShiftState done [13:45:56]FM_GetShiftState done [13:45:56]opened in 1720831249 [13:45:56]opened+sec_in_day 1720917649 [13:45:56]quantity*price = 70030 [13:45:56]sum+1 = 70032 [13:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 163 13.07.2024 13:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164603 ФПД: 197809426997763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164603&fm=197809426997763&tin=02508201610067®Number=0000000000090829&sum=70000 [13:45:57]StoreToDocumentArchive [13:45:57]shift 446 fd 164603 [13:45:57]save to /storage/0446/doc_00164603 [13:45:57]save last doc name /storage/0446/doc_00164603 to /storage/kkm_last_doc_name [13:45:57]save OK [13:45:57]Clear old archive folders... [13:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:57]tlvbuf is 01478B30 [13:45:57]SAM_PROTO_ClearQueue [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 09 00 00 [13:45:57]Write to MH i2c: E2 08 00 A3 1F 80 09 00 00 00 00 00 00 34 [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:57]Read from MH i2c: E2 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 03 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [13:45:57]RAPDU: 90 00 [13:45:57]wFMCommunicate OK [13:45:57]SAM_PROTO_ClearQueue done [13:45:57]KKMCreateOFDPacket [13:45:57]OFDProtocolAddRootSTLVToBuf [13:45:57]FM_MakeSignedData [13:45:57]FM_MakeSignedData [13:45:57]SAM_PROTO_SignData [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 0D 01 02 [13:45:57]Write to MH i2c: E2 08 00 A4 1F 80 0D 01 02 00 00 00 00 3C [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:57]Read from MH i2c: E2 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 03 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [13:45:57]RAPDU: 90 00 [13:45:57]wFMCommunicate OK [13:45:57]wFMCommunicate request_size=255 [13:45:57]MH_SAM_APDU [13:45: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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 16 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 82 02 00 35 04 06 00 B3 E8 18 A1 [13:45:57]Write to MH i2c: E2 02 01 A5 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 16 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 82 02 00 35 04 06 00 B3 E8 18 A1 00 00 08 [13:45:57]Write i2c OK [13:45:57]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 A5 1F 00 90 00 38 [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]wFMCommunicate request_size=7 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 02 02 02 22 03 [13:45:58]Write to MH i2c: E2 0A 00 A6 1F 80 0D 02 02 02 00 22 03 00 00 68 [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 A6 1F 00 90 00 39 [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 A7 1F 80 0D 03 02 00 00 00 00 41 [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 A7 1F 00 22 01 6A 76 90 37 62 D5 90 00 43 [13:45:58]RAPDU: 22 01 6A 76 90 37 62 D5 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 A8 1F 80 11 00 00 00 00 00 00 41 [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 A8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [13:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:58]wFMCommunicate OK [13:45:58]CreateOFDProtocolMessage done [13:45:58]OFDSenderStorePacket 164603 [13:45:58]StoreOFDPacket docnum=164603 [13:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 64 F1 04 01 0F 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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 16 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 82 02 00 35 04 06 00 B3 E8 18 A1 22 03 22 01 6A 76 90 37 62 D5 [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/00164603 [13:45:58]NVStorageSaveData ofd_packets/00164603 [13:45:58]File name is /storage/ofd_packets/00164603 [13:45:58]Write 298 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 A9 1F C8 [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 A9 1F 00 00 00 00 00 FF 0F DD [13:45:58]RasterBufferAndPrint [13:45:58]line Счет N : (1)458695 [13:45:58]line ИНН: 02508201610067 [13:45:58]line Контрольно-Кассовый Чек [13:45:58]line ПРОДАЖА [13:45:58]line ТРК (МРК, ГНК) : 11 [13:45:58]line Товар: 2710194210 [13:45:58]line ДТ-К-5 [13:45:58]line 9.740 * 71.90 [13:45:58]line = 700.31 [13:45:58]line НДС 12% НСП 1% [13:45:58]line > о реализуемом товаре [13:45:58]line ОКРУГЛЕНИЕ: -0.31 [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.37 [13:45:58]line Наличными: 700.00 [13:45:58]line Безнал.: 0.00 [13:45:58]line Место: АЗС № 72 "Партнер Нефть" [13:45:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:45:58]line СНО: Общий режим [13:45:58]line Чек 163 13.07.2024 13:45 [13:45:58]line Смена: 446 ФФД: 1.0 [13:45:58]line ЗНМ: 0300000160 [13:45:58]line РНМ: 0000000000090829 [13:45:58]line Версия ККМ: 001 [13:45:58]line ФМ: 0000000000874718 [13:45:58]line ФД: 164603 [13:45:58]line ФПД: 197809426997763 [13:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164603&fm=197809426997763&tin=02508201610067®Number=0000000000090829&sum=70000 [13:45:58]OFD Sender: Processing packet 164603 [packets to send 104, broken 103] [13:45:58]ProducePacketName [13:45:58]name=ofd_packets/00164603 [13:45:58]OFD Sender: To server: pG, [13:45:58]CommunicateWithHost lk.salyk.kg:30040 [13:45:58]ConnectInit lk.salyk.kg [13:45:58]written 0, free lines is 4095 [13:45:58]Connected sock=10 [13:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 64 F1 04 01 0F 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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 16 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 82 02 00 35 04 06 00 B3 E8 18 A1 22 03 22 01 6A 76 90 37 62 D5 [13:45:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 44 47 00 D9 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 34 37 31 38 10 04 04 00 FB 82 02 00 F4 03 04 00 A7 2B 92 66 B6 04 01 00 00 48 27 7E 38 72 EA 83 C0 [13:45:58]CommunicateWithHost err = 0 [13:45:58]CheckOFDResponse [13:45:58]1017 (14) - 77093643461234 [13:45:58]1041 (16) - 0000000000874718 [13:45:58]1040 (4) - 164603 [13:45:58]1012 (4) - 13.07.2024 07:24 [13:45:58]1206 (1) - 0 [13:45:58]OFD Sender: Remove packet 164603 [13:45:58]ProducePacketName [13:45:58]name=ofd_packets/00164603 [13:45:58]NVStorageDeleteData [13:45:58]Write to MH i2c: 01 00 00 D3 1F F2 [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 D3 1F 00 00 00 00 00 EC 0C F1 [13:45:58]RasterBufferAndPrint [13:45:58]line [13:45:58]line [13:45:58]line [13:45:58]line [13:45:58]line [13:45:58]written 0, free lines is 3315 [13:45:58]MH_Cut [13:45:58]Write to MH i2c: D1 01 00 DA 1F 01 CB [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: D1 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: D1 01 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: D1 01 00 DA 1F 00 CA [13:45:58]Write to MH i2c: 01 00 00 DB 1F FA [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:59]OFD Sender: No OFD packet to send [13:45:59]*** Cut start [13:45:59]*** Partial cut [13:45:59]*** CUTSNS_PIN = 1 [13:45:59]*** CUTSNS_PIN = 0 [13:45:59]*** 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 DB 1F 00 00 00 00 00 FF 0F 0F [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 DC 1F 80 11 00 00 00 00 00 00 75 [13:46:00]Write i2c OK [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 [13:46:00]MH_I2C_Read... [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 DC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [13:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 DD 1F 80 13 00 00 00 00 00 00 78 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 62 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 62 00 DD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 82 02 00 0E 04 04 00 BE 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 C6 [13:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 82 02 00 0E 04 04 00 BE 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 [13:46:00]wFMCommunicate OK [13:46:00]SAM_PROTO_GetFieldsCounters done [13:46:00]requested_item shift.num is exist - process it [13:46:00]requested_item shift.opened is exist - process it [13:46:00]req_shift_opened [13:46:00]FM_GetShiftState [13:46:00]SAM_PROTO_GetShiftState [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 13 01 00 [13:46:00]Write to MH i2c: E2 08 00 DE 1F 80 13 01 00 00 00 00 00 7A [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 0E 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 0E 00 DE 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5B [13:46:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:46:00]wFMCommunicate OK [13:46:00]SAM_PROTO_GetShiftState done [13:46:00]FM_GetShiftState done [13:46:00]req_shift_opened done [13:46:00]requested_item shift.open_date is exist - process it [13:46:00]req_shift_open_date [13:46:00]req_shift_open_date done [13:46:00]produce_requested_data done [13:46:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164603,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:46:00]process_action_free close_receipt [13:46:00]json_value_free [13:46:00]json_value_free done [13:46:00]process_json_proto returns [13:46:00]Send response to host [13:46:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164603,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:46:00]free response buf [13:46:00]execute_script done [13:46:00]execute_script returns [13:46:00]free content buf [13:46:00]Sock 9.Close socket [13:46:00]Sock 9.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:51]accept exits with 7 [13:46:51]New connection [13:46:51]New thread 3067293028 created [13:46:51]Thread 3067149668 joined [13:46:51]Waiting for new connection... [13:46:51] Sock 7.Parse request [13:46:51]Sock 7.Check first char [13:46:51]Sock 7.First char is OK [13:46:51]request: POST /json_proto HTTP/1.0 [13:46:51]Method: POST [13:46:51]URL: /json_proto [13:46:51]Method is POST - this is cgi request [13:46:51]url: /json_proto [13:46:51]query_string will be loaded in cgi processing [13:46:51]execute_cgi json_proto POST (null) [13:46:51]execute_cgi path=json_proto method=POST [13:46:51]POST find Content-Length [13:46:51]Host: 172.17.56.4:8080 [13:46:51]Content-Length: 674 [13:46:51]Content-Type: application/json [13:46:51] [13:46:51]POST finish read [13:46:51]Found Content-Length = 674 [13:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:46:51]execute_script... [13:46: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)458696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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:46:51]POST & json_proto [13:46:51]process_json_proto [13:46:51]json parsed OK: [13:46:51]protocol is kg_v1.0 [13:46:51]action value=close_receipt [13:46:51]process_action close_receipt [13:46:51]cmd_close_receipt [13:46:51]MH_GetDate [13:46:51]Write to MH i2c: F0 00 00 DF 1F ED [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: F0 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: F0 09 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: F0 09 00 DF 1F 00 4D 85 92 66 C9 DC B2 64 7B [13:46:51]GetLastDocTimeStamp 1720878358 [13:46:51]current date 1720878413 [13:46:51]FM_GetShiftState [13:46:51]SAM_PROTO_GetShiftState [13:46:51]wFMCommunicate request_size=4 [13:46:51]MH_SAM_APDU [13:46:51]CAPDU: 80 13 01 00 [13:46:51]Write to MH i2c: E2 08 00 E0 1F 80 13 01 00 00 00 00 00 7C [13:46:51]Write i2c OK [13:46:51]MH_I2C_Read... [13:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:51]Read from MH i2c: E2 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 0E 00 [13:46:51]MH_I2C_Read... [13:46:51]Read from MH i2c: E2 0E 00 E0 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5D [13:46:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:46:51]wFMCommunicate OK [13:46:51]SAM_PROTO_GetShiftState done [13:46:51]FM_GetShiftState done [13:46:51]opened in 1720831249 [13:46:51]opened+sec_in_day 1720917649 [13:46:51]quantity*price = 70030 [13:46:51]sum+1 = 70032 [13:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 164 13.07.2024 13:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164604 ФПД: 43659563154488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164604&fm=43659563154488&tin=02508201610067®Number=0000000000090829&sum=70000 [13:46:53]StoreToDocumentArchive [13:46:53]shift 446 fd 164604 [13:46:53]save to /storage/0446/doc_00164604 [13:46:53]save last doc name /storage/0446/doc_00164604 to /storage/kkm_last_doc_name [13:46:53]save OK [13:46:53]Clear old archive folders... [13:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:46:53]tlvbuf is 01449AC0 [13:46:53]SAM_PROTO_ClearQueue [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 09 00 00 [13:46:53]Write to MH i2c: E2 08 00 ED 1F 80 09 00 00 00 00 00 00 7E [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [13:46:53]RAPDU: 90 00 [13:46:53]wFMCommunicate OK [13:46:53]SAM_PROTO_ClearQueue done [13:46:53]KKMCreateOFDPacket [13:46:53]OFDProtocolAddRootSTLVToBuf [13:46:53]FM_MakeSignedData [13:46:53]FM_MakeSignedData [13:46:53]SAM_PROTO_SignData [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 0D 01 02 [13:46:53]Write to MH i2c: E2 08 00 EE 1F 80 0D 01 02 00 00 00 00 86 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [13:46:53]RAPDU: 90 00 [13:46:53]wFMCommunicate OK [13:46:53]wFMCommunicate request_size=255 [13:46:53]MH_SAM_APDU [13:46: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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4E 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 82 02 00 35 04 06 00 27 B5 48 C0 [13:46:53]Write to MH i2c: E2 02 01 EF 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4E 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 82 02 00 35 04 06 00 27 B5 48 C0 00 00 1C [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [13:46:53]RAPDU: 90 00 [13:46:53]wFMCommunicate OK [13:46:53]wFMCommunicate request_size=7 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 0D 02 02 02 BC 38 [13:46:53]Write to MH i2c: E2 0A 00 F0 1F 80 0D 02 02 02 00 BC 38 00 00 81 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [13:46:53]RAPDU: 90 00 [13:46:53]wFMCommunicate OK [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 0D 03 02 [13:46:53]Write to MH i2c: E2 08 00 F1 1F 80 0D 03 02 00 00 00 00 8B [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0B 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 0B 00 F1 1F 00 93 CE AF A6 59 DA 27 62 90 00 FE [13:46:53]RAPDU: 93 CE AF A6 59 DA 27 62 90 00 [13:46:53]wFMCommunicate OK [13:46:53]SAM_PROTO_SignData done [13:46:53]FM_MakeSignedData done [13:46:53]CreateOFDProtocolMessage [13:46:53]wFMCommunicate request_size=4 [13:46:53]MH_SAM_APDU [13:46:53]CAPDU: 80 11 00 00 [13:46:53]Write to MH i2c: E2 08 00 F2 1F 80 11 00 00 00 00 00 00 8B [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:53]Read from MH i2c: E2 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 17 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: E2 17 00 F2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [13:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:46:53]wFMCommunicate OK [13:46:53]CreateOFDProtocolMessage done [13:46:53]OFDSenderStorePacket 164604 [13:46:53]StoreOFDPacket docnum=164604 [13:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D4 82 04 01 BB 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4E 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 82 02 00 35 04 06 00 27 B5 48 C0 BC 38 93 CE AF A6 59 DA 27 62 [13:46:53]CheckFolder [13:46:53]dirname=/storage/ofd_packets [13:46:53]CheckFolder done [13:46:53]ProducePacketName [13:46:53]name=ofd_packets/00164604 [13:46:53]NVStorageSaveData ofd_packets/00164604 [13:46:53]File name is /storage/ofd_packets/00164604 [13:46:53]Write 298 bytes [13:46:53]NVStorageSaveData done [13:46:53]OFDSenderStorePacket done [13:46:53]KKMCreateOFDPacket done [13:46:53]NVStorageSaveData kkm_last_timestamp [13:46:53]File name is /storage/kkm_last_timestamp [13:46:53]Write 4 bytes [13:46:53]NVStorageSaveData done [13:46:53]ExternCall_PrintAddStr [13:46:53]wPrintStart [13:46:53]Write to MH i2c: 01 00 00 F3 1F 12 [13:46:53]Write i2c OK [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: 01 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: 01 07 00 [13:46:53]MH_I2C_Read... [13:46:53]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 FF 0F 27 [13:46:53]RasterBufferAndPrint [13:46:53]line Счет N : (1)458696 [13:46:53]line ИНН: 02508201610067 [13:46:53]line Контрольно-Кассовый Чек [13:46:53]line ПРОДАЖА [13:46:53]line ТРК (МРК, ГНК) : 21 [13:46:53]line Товар: 2710194210 [13:46:53]line ДТ-К-5 [13:46:53]line 9.740 * 71.90 [13:46:53]line = 700.31 [13:46:53]line НДС 12% НСП 1% [13:46:53]line > о реализуемом товаре [13:46:53]line ОКРУГЛЕНИЕ: -0.31 [13:46:53]line ИТОГО: 700.00 [13:46:53]line Внесено: 700.00 [13:46:53]line СДАЧА: 0.00 [13:46:53]line НСП 1% : 6.20 [13:46:53]line НДС 12% : 74.37 [13:46:53]line Наличными: 700.00 [13:46:53]line Безнал.: 0.00 [13:46:53]line Место: АЗС № 72 "Партнер Нефть" [13:46:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:46:53]line СНО: Общий режим [13:46:53]line Чек 164 13.07.2024 13:46 [13:46:53]line Смена: 446 ФФД: 1.0 [13:46:53]line ЗНМ: 0300000160 [13:46:53]line РНМ: 0000000000090829 [13:46:53]line Версия ККМ: 001 [13:46:53]line ФМ: 0000000000874718 [13:46:53]line ФД: 164604 [13:46:53]line ФПД: 43659563154488 [13:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164604&fm=43659563154488&tin=02508201610067®Number=0000000000090829&sum=70000 [13:46:53]OFD Sender: Processing packet 164604 [packets to send 104, broken 103] [13:46:53]ProducePacketName [13:46:53]name=ofd_packets/00164604 [13:46:53]OFD Sender: To server: pG, [13:46:53]CommunicateWithHost lk.salyk.kg:30040 [13:46:53]ConnectInit lk.salyk.kg [13:46:53]written 0, free lines is 4095 [13:46:54]Connected sock=10 [13:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D4 82 04 01 BB 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 4E 85 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 82 02 00 35 04 06 00 27 B5 48 C0 BC 38 93 CE AF A6 59 DA 27 62 [13:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C4 9D 47 00 9D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 82 02 00 F4 03 04 00 DE 2B 92 66 B6 04 01 00 00 90 8B 45 76 97 AD F6 38 [13:46:54]CommunicateWithHost err = 0 [13:46:54]CheckOFDResponse [13:46:54]1017 (14) - 77093643461234 [13:46:54]1041 (16) - 0000000000874718 [13:46:54]1040 (4) - 164604 [13:46:54]1012 (4) - 13.07.2024 07:25 [13:46:54]1206 (1) - 0 [13:46:54]OFD Sender: Remove packet 164604 [13:46:54]ProducePacketName [13:46:54]name=ofd_packets/00164604 [13:46:54]NVStorageDeleteData [13:46:54]Write to MH i2c: 01 00 00 1D 20 3D [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 07 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 F7 0C 47 [13:46:54]RasterBufferAndPrint [13:46:54]line [13:46:54]line [13:46:54]line [13:46:54]line [13:46:54]line [13:46:54]written 0, free lines is 3326 [13:46:54]MH_Cut [13:46:54]Write to MH i2c: D1 01 00 24 20 01 16 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: D1 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: D1 01 00 [13:46:54]MH_I2C_Read... [13:46:54]Read from MH i2c: D1 01 00 24 20 00 15 [13:46:54]Write to MH i2c: 01 00 00 25 20 45 [13:46:54]Write i2c OK [13:46:54]MH_I2C_Read... [13:46:54]OFD Sender: No OFD packet to send [13:46:55]*** Cut start [13:46:55]*** Partial cut [13:46:55]*** CUTSNS_PIN = 1 [13:46:55]*** CUTSNS_PIN = 0 [13:46:55]*** Brake cut motor [13:46:55]Read from MH i2c: 01 [13:46:55]MH_I2C_Read... [13:46:55]*** Stop cut motor [13:46:55]*** Cut end [13:46:55]Read from MH i2c: 01 07 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: 01 07 00 25 20 00 00 00 00 00 FF 0F 5A [13:46:55]process_action close_receipt done [13:46:55]requested_data is exist [13:46:55]produce_requested_data [13:46:55]requested_item fm.sn is exist - process it [13:46:55]wFMCommunicate request_size=4 [13:46:55]MH_SAM_APDU [13:46:55]CAPDU: 80 11 00 00 [13:46:55]Write to MH i2c: E2 08 00 26 20 80 11 00 00 00 00 00 00 C0 [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:55]Read from MH i2c: E2 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 17 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 17 00 26 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [13:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:46:55]wFMCommunicate OK [13:46:55]requested_item fd.num is exist - process it [13:46:55]SAM_PROTO_GetFieldsCounters [13:46:55]wFMCommunicate request_size=4 [13:46:55]MH_SAM_APDU [13:46:55]CAPDU: 80 13 00 00 [13:46:55]Write to MH i2c: E2 08 00 27 20 80 13 00 00 00 00 00 00 C3 [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:55]Read from MH i2c: E2 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 62 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 62 00 27 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 82 02 00 0E 04 04 00 BE 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 15 [13:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 82 02 00 0E 04 04 00 BE 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 [13:46:55]wFMCommunicate OK [13:46:55]SAM_PROTO_GetFieldsCounters done [13:46:55]requested_item shift.num is exist - process it [13:46:55]requested_item shift.opened is exist - process it [13:46:55]req_shift_opened [13:46:55]FM_GetShiftState [13:46:55]SAM_PROTO_GetShiftState [13:46:55]wFMCommunicate request_size=4 [13:46:55]MH_SAM_APDU [13:46:55]CAPDU: 80 13 01 00 [13:46:55]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [13:46:55]Write i2c OK [13:46:55]MH_I2C_Read... [13:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:55]Read from MH i2c: E2 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 0E 00 [13:46:55]MH_I2C_Read... [13:46:55]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A6 [13:46:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:46:55]wFMCommunicate OK [13:46:55]SAM_PROTO_GetShiftState done [13:46:55]FM_GetShiftState done [13:46:55]req_shift_opened done [13:46:55]requested_item shift.open_date is exist - process it [13:46:55]req_shift_open_date [13:46:55]req_shift_open_date done [13:46:55]produce_requested_data done [13:46:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164604,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:46:55]process_action_free close_receipt [13:46:55]json_value_free [13:46:55]json_value_free done [13:46:55]process_json_proto returns [13:46:55]Send response to host [13:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164604,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:46:55]free response buf [13:46:55]execute_script done [13:46:55]execute_script returns [13:46:55]free content buf [13:46:55]Sock 7.Close socket [13:46:55]Sock 7.Thread stoped [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:50:59]accept exits with 9 [13:50:59]New connection [13:50:59]New thread 3067149668 created [13:50:59]Thread 3067293028 joined [13:50:59]Waiting for new connection... [13:50:59] Sock 9.Parse request [13:50:59]Sock 9.Check first char [13:50:59]Sock 9.First char is OK [13:50:59]request: POST /json_proto HTTP/1.0 [13:50:59]Method: POST [13:50:59]URL: /json_proto [13:50:59]Method is POST - this is cgi request [13:50:59]url: /json_proto [13:50:59]query_string will be loaded in cgi processing [13:50:59]execute_cgi json_proto POST (null) [13:50:59]execute_cgi path=json_proto method=POST [13:50:59]POST find Content-Length [13:50:59]Host: 172.17.56.4:8080 [13:50:59]Content-Length: 677 [13:50:59]Content-Type: application/json [13:50:59] [13:50:59]POST finish read [13:50:59]Found Content-Length = 677 [13:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:50:59]execute_script... [13:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:50:59]POST & json_proto [13:50:59]process_json_proto [13:50:59]json parsed OK: [13:50:59]protocol is kg_v1.0 [13:50:59]action value=close_receipt [13:50:59]process_action close_receipt [13:50:59]cmd_close_receipt [13:50:59]MH_GetDate [13:50:59]Write to MH i2c: F0 00 00 29 20 38 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: F0 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: F0 09 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: F0 09 00 29 20 00 45 86 92 66 C9 DC B2 64 BF [13:50:59]GetLastDocTimeStamp 1720878414 [13:50:59]current date 1720878661 [13:50:59]FM_GetShiftState [13:50:59]SAM_PROTO_GetShiftState [13:50:59]wFMCommunicate request_size=4 [13:50:59]MH_SAM_APDU [13:50:59]CAPDU: 80 13 01 00 [13:50:59]Write to MH i2c: E2 08 00 2A 20 80 13 01 00 00 00 00 00 C7 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:59]Read from MH i2c: E2 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0E 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: E2 0E 00 2A 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A8 [13:50:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:50:59]wFMCommunicate OK [13:50:59]SAM_PROTO_GetShiftState done [13:50:59]FM_GetShiftState done [13:50:59]opened in 1720831249 [13:50:59]opened+sec_in_day 1720917649 [13:50:59]quantity*price = 30004 [13:50:59]sum+1 = 30006 [13:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 165 13.07.2024 13:51 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164605 ФПД: 89755530987756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164605&fm=89755530987756&tin=02508201610067®Number=0000000000090829&sum=30000 [13:51:00]StoreToDocumentArchive [13:51:00]shift 446 fd 164605 [13:51:00]save to /storage/0446/doc_00164605 [13:51:00]save last doc name /storage/0446/doc_00164605 to /storage/kkm_last_doc_name [13:51:00]save OK [13:51:00]Clear old archive folders... [13:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:00]tlvbuf is 0145D730 [13:51:00]SAM_PROTO_ClearQueue [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 09 00 00 [13:51:00]Write to MH i2c: E2 08 00 37 20 80 09 00 00 00 00 00 00 C9 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [13:51:00]RAPDU: 90 00 [13:51:00]wFMCommunicate OK [13:51:00]SAM_PROTO_ClearQueue done [13:51:00]KKMCreateOFDPacket [13:51:00]OFDProtocolAddRootSTLVToBuf [13:51:00]FM_MakeSignedData [13:51:00]FM_MakeSignedData [13:51:00]SAM_PROTO_SignData [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 0D 01 02 [13:51:00]Write to MH i2c: E2 08 00 38 20 80 0D 01 02 00 00 00 00 D1 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [13:51:00]RAPDU: 90 00 [13:51:00]wFMCommunicate OK [13:51:00]wFMCommunicate request_size=255 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 A5 00 00 00 F4 03 04 00 45 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 82 02 00 35 04 06 00 51 [13:51:00]Write to MH i2c: E2 02 01 39 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 A5 00 00 00 F4 03 04 00 45 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 82 02 00 35 04 06 00 51 00 00 04 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 39 20 00 90 00 CD [13:51:00]RAPDU: 90 00 [13:51:00]wFMCommunicate OK [13:51:00]wFMCommunicate request_size=10 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 0D 02 02 05 A1 D6 8A 88 EC [13:51:00]Write to MH i2c: E2 0D 00 3A 20 80 0D 02 02 05 00 A1 D6 8A 88 EC 00 00 53 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [13:51:00]RAPDU: 90 00 [13:51:00]wFMCommunicate OK [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 0D 03 02 [13:51:00]Write to MH i2c: E2 08 00 3B 20 80 0D 03 02 00 00 00 00 D6 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 0B 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 0B 00 3B 20 00 B6 42 72 85 3C 56 AB 98 90 00 9B [13:51:00]RAPDU: B6 42 72 85 3C 56 AB 98 90 00 [13:51:00]wFMCommunicate OK [13:51:00]SAM_PROTO_SignData done [13:51:00]FM_MakeSignedData done [13:51:00]CreateOFDProtocolMessage [13:51:00]wFMCommunicate request_size=4 [13:51:00]MH_SAM_APDU [13:51:00]CAPDU: 80 11 00 00 [13:51:00]Write to MH i2c: E2 08 00 3C 20 80 11 00 00 00 00 00 00 D6 [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:00]Read from MH i2c: E2 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 17 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: E2 17 00 3C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [13:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:51:00]wFMCommunicate OK [13:51:00]CreateOFDProtocolMessage done [13:51:00]OFDSenderStorePacket 164605 [13:51:00]StoreOFDPacket docnum=164605 [13:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 3B 07 01 C5 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 A5 00 00 00 F4 03 04 00 45 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 82 02 00 35 04 06 00 51 A1 D6 8A 88 EC B6 42 72 85 3C 56 AB 98 [13:51:00]CheckFolder [13:51:00]dirname=/storage/ofd_packets [13:51:00]CheckFolder done [13:51:00]ProducePacketName [13:51:00]name=ofd_packets/00164605 [13:51:00]NVStorageSaveData ofd_packets/00164605 [13:51:00]File name is /storage/ofd_packets/00164605 [13:51:00]Write 301 bytes [13:51:00]NVStorageSaveData done [13:51:00]OFDSenderStorePacket done [13:51:00]KKMCreateOFDPacket done [13:51:00]NVStorageSaveData kkm_last_timestamp [13:51:00]File name is /storage/kkm_last_timestamp [13:51:00]Write 4 bytes [13:51:00]NVStorageSaveData done [13:51:00]ExternCall_PrintAddStr [13:51:00]wPrintStart [13:51:00]Write to MH i2c: 01 00 00 3D 20 5D [13:51:00]Write i2c OK [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 [13:51:00]MH_I2C_Read... [13:51:00]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 FF 0F 72 [13:51:00]RasterBufferAndPrint [13:51:00]line Счет N : (1)458697 [13:51:00]line ИНН: 02508201610067 [13:51:00]line Контрольно-Кассовый Чек [13:51:00]line ПРОДАЖА [13:51:00]line ТРК (МРК, ГНК) : 12 [13:51:00]line Товар: 2710124130 [13:51:00]line Аи-92-К-5 [13:51:00]line 4.560 * 65.80 [13:51:00]line = 300.05 [13:51:00]line НДС 12% НСП 1% [13:51:00]line > о реализуемом товаре [13:51:00]line ОКРУГЛЕНИЕ: -0.05 [13:51:00]line ИТОГО: 300.00 [13:51:00]line Внесено: 300.00 [13:51:00]line СДАЧА: 0.00 [13:51:00]line НСП 1% : 2.65 [13:51:00]line НДС 12% : 31.86 [13:51:00]line Наличными: 300.00 [13:51:00]line Безнал.: 0.00 [13:51:00]line Место: АЗС № 72 "Партнер Нефть" [13:51:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:51:00]line СНО: Общий режим [13:51:00]line Чек 165 13.07.2024 13:51 [13:51:00]line Смена: 446 ФФД: 1.0 [13:51:00]line ЗНМ: 0300000160 [13:51:00]line РНМ: 0000000000090829 [13:51:00]line Версия ККМ: 001 [13:51:00]line ФМ: 0000000000874718 [13:51:00]line ФД: 164605 [13:51:00]line ФПД: 89755530987756 [13:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164605&fm=89755530987756&tin=02508201610067®Number=0000000000090829&sum=30000 [13:51:01]written 0, free lines is 4095 [13:51:01]OFD Sender: Processing packet 164605 [packets to send 104, broken 103] [13:51:01]ProducePacketName [13:51:01]name=ofd_packets/00164605 [13:51:01]OFD Sender: To server: pG, [13:51:01]CommunicateWithHost lk.salyk.kg:30040 [13:51:01]ConnectInit lk.salyk.kg [13:51:01]Connected sock=10 [13:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 3B 07 01 C5 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 A5 00 00 00 F4 03 04 00 45 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 82 02 00 35 04 06 00 51 A1 D6 8A 88 EC B6 42 72 85 3C 56 AB 98 [13:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A3 59 47 00 D7 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 82 02 00 F4 03 04 00 D6 2C 92 66 B6 04 01 00 00 31 03 6E E2 8A A3 18 1E [13:51:01]CommunicateWithHost err = 0 [13:51:01]CheckOFDResponse [13:51:01]1017 (14) - 77093643461234 [13:51:01]1041 (16) - 0000000000874718 [13:51:01]1040 (4) - 164605 [13:51:01]1012 (4) - 13.07.2024 07:29 [13:51:01]1206 (1) - 0 [13:51:01]OFD Sender: Remove packet 164605 [13:51:01]ProducePacketName [13:51:01]name=ofd_packets/00164605 [13:51:01]NVStorageDeleteData [13:51:01]Write to MH i2c: 01 00 00 67 20 87 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: 01 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: 01 07 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: 01 07 00 67 20 00 00 00 00 00 F4 0C 8E [13:51:01]RasterBufferAndPrint [13:51:01]line [13:51:01]line [13:51:01]line [13:51:01]line [13:51:01]line [13:51:01]written 0, free lines is 3323 [13:51:01]MH_Cut [13:51:01]Write to MH i2c: D1 01 00 6E 20 01 60 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: D1 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: D1 01 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: D1 01 00 6E 20 00 5F [13:51:01]Write to MH i2c: 01 00 00 6F 20 8F [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:02]OFD Sender: No OFD packet to send [13:51:02]*** Cut start [13:51:02]*** Partial cut [13:51:02]*** CUTSNS_PIN = 1 [13:51:02]*** CUTSNS_PIN = 0 [13:51:02]*** Brake cut motor [13:51:03]Read from MH i2c: 01 [13:51:03]MH_I2C_Read... [13:51:03]*** Stop cut motor [13:51:03]*** Cut end [13:51:03]Read from MH i2c: 01 07 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: 01 07 00 6F 20 00 00 00 00 00 FF 0F A4 [13:51:03]process_action close_receipt done [13:51:03]requested_data is exist [13:51:03]produce_requested_data [13:51:03]requested_item fm.sn is exist - process it [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 11 00 00 [13:51:03]Write to MH i2c: E2 08 00 70 20 80 11 00 00 00 00 00 00 0A [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 17 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 17 00 70 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [13:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:51:03]wFMCommunicate OK [13:51:03]requested_item fd.num is exist - process it [13:51:03]SAM_PROTO_GetFieldsCounters [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 13 00 00 [13:51:03]Write to MH i2c: E2 08 00 71 20 80 13 00 00 00 00 00 00 0D [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 62 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 62 00 71 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 82 02 00 0E 04 04 00 BE 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 63 [13:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 82 02 00 0E 04 04 00 BE 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 [13:51:03]wFMCommunicate OK [13:51:03]SAM_PROTO_GetFieldsCounters done [13:51:03]requested_item shift.num is exist - process it [13:51:03]requested_item shift.opened is exist - process it [13:51:03]req_shift_opened [13:51:03]FM_GetShiftState [13:51:03]SAM_PROTO_GetShiftState [13:51:03]wFMCommunicate request_size=4 [13:51:03]MH_SAM_APDU [13:51:03]CAPDU: 80 13 01 00 [13:51:03]Write to MH i2c: E2 08 00 72 20 80 13 01 00 00 00 00 00 0F [13:51:03]Write i2c OK [13:51:03]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0E 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0E 00 72 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F0 [13:51:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:51:03]wFMCommunicate OK [13:51:03]SAM_PROTO_GetShiftState done [13:51:03]FM_GetShiftState done [13:51:03]req_shift_opened done [13:51:03]requested_item shift.open_date is exist - process it [13:51:03]req_shift_open_date [13:51:03]req_shift_open_date done [13:51:03]produce_requested_data done [13:51:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164605,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:51:03]process_action_free close_receipt [13:51:03]json_value_free [13:51:03]json_value_free done [13:51:03]process_json_proto returns [13:51:03]Send response to host [13:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164605,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:51:03]free response buf [13:51:03]execute_script done [13:51:03]execute_script returns [13:51:03]free content buf [13:51:03]Sock 9.Close socket [13:51:03]Sock 9.Thread stoped [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:13]accept exits with 7 [13:52:13]New connection [13:52:13]New thread 3067293028 created [13:52:13]Thread 3067149668 joined [13:52:13]Waiting for new connection... [13:52:13] Sock 7.Parse request [13:52:13]Sock 7.Check first char [13:52:13]Sock 7.First char is OK [13:52:13]request: POST /json_proto HTTP/1.0 [13:52:13]Method: POST [13:52:13]URL: /json_proto [13:52:13]Method is POST - this is cgi request [13:52:13]url: /json_proto [13:52:13]query_string will be loaded in cgi processing [13:52:13]execute_cgi json_proto POST (null) [13:52:13]execute_cgi path=json_proto method=POST [13:52:13]POST find Content-Length [13:52:13]Host: 172.17.56.4:8080 [13:52:13]Content-Length: 682 [13:52:13]Content-Type: application/json [13:52:13] [13:52:13]POST finish read [13:52:13]Found Content-Length = 682 [13:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:13]execute_script... [13:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:13]POST & json_proto [13:52:13]process_json_proto [13:52:13]json parsed OK: [13:52:13]protocol is kg_v1.0 [13:52:13]action value=close_receipt [13:52:13]process_action close_receipt [13:52:13]cmd_close_receipt [13:52:13]MH_GetDate [13:52:13]Write to MH i2c: F0 00 00 73 20 82 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 73 20 00 8F 86 92 66 C9 DC B2 64 53 [13:52:13]GetLastDocTimeStamp 1720878661 [13:52:13]current date 1720878735 [13:52:13]FM_GetShiftState [13:52:13]SAM_PROTO_GetShiftState [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 13 01 00 [13:52:13]Write to MH i2c: E2 08 00 74 20 80 13 01 00 00 00 00 00 11 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 74 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F2 [13:52:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_GetShiftState done [13:52:13]FM_GetShiftState done [13:52:13]opened in 1720831249 [13:52:13]opened+sec_in_day 1720917649 [13:52:13]quantity*price = 100016 [13:52:13]sum+1 = 100017 [13:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 166 13.07.2024 13:52 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164606 ФПД: 9601696927231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164606&fm=9601696927231&tin=02508201610067®Number=0000000000090829&sum=100000 [13:52:14]StoreToDocumentArchive [13:52:14]shift 446 fd 164606 [13:52:14]save to /storage/0446/doc_00164606 [13:52:14]save last doc name /storage/0446/doc_00164606 to /storage/kkm_last_doc_name [13:52:14]save OK [13:52:14]Clear old archive folders... [13:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:14]tlvbuf is B6EFBBC0 [13:52:14]SAM_PROTO_ClearQueue [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 09 00 00 [13:52:14]Write to MH i2c: E2 08 00 81 20 80 09 00 00 00 00 00 00 13 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_ClearQueue done [13:52:14]KKMCreateOFDPacket [13:52:14]OFDProtocolAddRootSTLVToBuf [13:52:14]FM_MakeSignedData [13:52:14]FM_MakeSignedData [13:52:14]SAM_PROTO_SignData [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 01 02 [13:52:14]Write to MH i2c: E2 08 00 82 20 80 0D 01 02 00 00 00 00 1B [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=255 [13:52:14]MH_SAM_APDU [13: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 8F 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 82 02 00 35 04 06 00 08 [13:52:14]Write to MH i2c: E2 02 01 83 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 8F 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 82 02 00 35 04 06 00 08 00 00 32 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=10 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 02 02 05 BB 91 BC 0D FF [13:52:14]Write to MH i2c: E2 0D 00 84 20 80 0D 02 02 05 00 BB 91 BC 0D FF 00 00 3C [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 03 02 [13:52:14]Write to MH i2c: E2 08 00 85 20 80 0D 03 02 00 00 00 00 20 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0B 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0B 00 85 20 00 B0 0B 00 F2 CE 2F 78 23 90 00 66 [13:52:14]RAPDU: B0 0B 00 F2 CE 2F 78 23 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_SignData done [13:52:14]FM_MakeSignedData done [13:52:14]CreateOFDProtocolMessage [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 11 00 00 [13:52:14]Write to MH i2c: E2 08 00 86 20 80 11 00 00 00 00 00 00 20 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 17 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 17 00 86 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [13:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:52:14]wFMCommunicate OK [13:52:14]CreateOFDProtocolMessage done [13:52:14]OFDSenderStorePacket 164606 [13:52:14]StoreOFDPacket docnum=164606 [13:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 51 07 01 F5 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 8F 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 82 02 00 35 04 06 00 08 BB 91 BC 0D FF B0 0B 00 F2 CE 2F 78 23 [13:52:14]CheckFolder [13:52:14]dirname=/storage/ofd_packets [13:52:14]CheckFolder done [13:52:14]ProducePacketName [13:52:14]name=ofd_packets/00164606 [13:52:14]NVStorageSaveData ofd_packets/00164606 [13:52:14]File name is /storage/ofd_packets/00164606 [13:52:14]Write 301 bytes [13:52:14]NVStorageSaveData done [13:52:14]OFDSenderStorePacket done [13:52:14]KKMCreateOFDPacket done [13:52:14]NVStorageSaveData kkm_last_timestamp [13:52:14]File name is /storage/kkm_last_timestamp [13:52:14]Write 4 bytes [13:52:14]NVStorageSaveData done [13:52:14]ExternCall_PrintAddStr [13:52:14]wPrintStart [13:52:14]Write to MH i2c: 01 00 00 87 20 A7 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 FF 0F BC [13:52:14]RasterBufferAndPrint [13:52:14]line Счет N : (1)458698 [13:52:14]line ИНН: 02508201610067 [13:52:14]line Контрольно-Кассовый Чек [13:52:14]line ПРОДАЖА [13:52:14]line ТРК (МРК, ГНК) : 22 [13:52:14]line Товар: 2710124130 [13:52:14]line Аи-92-К-5 [13:52:14]line 15.200 * 65.80 [13:52:14]line = 1000.16 [13:52:14]line НДС 12% НСП 1% [13:52:14]line > о реализуемом товаре [13:52:14]line ОКРУГЛЕНИЕ: -0.16 [13:52:14]line ИТОГО: 1000.00 [13:52:14]line Внесено: 1000.00 [13:52:14]line СДАЧА: 0.00 [13:52:14]line НСП 1% : 8.85 [13:52:14]line НДС 12% : 106.21 [13:52:14]line Наличными: 1000.00 [13:52:14]line Безнал.: 0.00 [13:52:14]line Место: АЗС № 72 "Партнер Нефть" [13:52:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:52:14]line СНО: Общий режим [13:52:14]line Чек 166 13.07.2024 13:52 [13:52:14]line Смена: 446 ФФД: 1.0 [13:52:14]line ЗНМ: 0300000160 [13:52:14]line РНМ: 0000000000090829 [13:52:14]line Версия ККМ: 001 [13:52:14]line ФМ: 0000000000874718 [13:52:14]line ФД: 164606 [13:52:14]line ФПД: 9601696927231 [13:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164606&fm=9601696927231&tin=02508201610067®Number=0000000000090829&sum=100000 [13:52:15]OFD Sender: Processing packet 164606 [packets to send 104, broken 103] [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00164606 [13:52:15]OFD Sender: To server: pG, [13:52:15]CommunicateWithHost lk.salyk.kg:30040 [13:52:15]ConnectInit lk.salyk.kg [13:52:15]written 0, free lines is 4095 [13:52:15]Connected sock=10 [13:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 34 51 07 01 F5 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 8F 86 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 82 02 00 35 04 06 00 08 BB 91 BC 0D FF B0 0B 00 F2 CE 2F 78 23 [13:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F1 C2 47 00 57 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 34 37 31 38 10 04 04 00 FE 82 02 00 F4 03 04 00 20 2D 92 66 B6 04 01 00 00 F9 01 03 45 6F CF DA 51 [13:52:15]CommunicateWithHost err = 0 [13:52:15]CheckOFDResponse [13:52:15]1017 (14) - 77093643461234 [13:52:15]1041 (16) - 0000000000874718 [13:52:15]1040 (4) - 164606 [13:52:15]1012 (4) - 13.07.2024 07:30 [13:52:15]1206 (1) - 0 [13:52:15]OFD Sender: Remove packet 164606 [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00164606 [13:52:15]NVStorageDeleteData [13:52:15]Write to MH i2c: 01 00 00 B1 20 D1 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 02 0D E7 [13:52:15]RasterBufferAndPrint [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]written 0, free lines is 3336 [13:52:15]MH_Cut [13:52:15]Write to MH i2c: D1 01 00 B8 20 01 AA [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 01 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 01 00 B8 20 00 A9 [13:52:15]Write to MH i2c: 01 00 00 B9 20 D9 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:16]OFD Sender: No OFD packet to send [13:52:16]*** Cut start [13:52:16]*** Partial cut [13:52:16]*** CUTSNS_PIN = 1 [13:52:16]*** CUTSNS_PIN = 0 [13:52:16]*** Brake cut motor [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]*** Stop cut motor [13:52:16]*** Cut end [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [13:52:16]process_action close_receipt done [13:52:16]requested_data is exist [13:52:16]produce_requested_data [13:52:16]requested_item fm.sn is exist - process it [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 11 00 00 [13:52:16]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [13:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:52:17]wFMCommunicate OK [13:52:17]requested_item fd.num is exist - process it [13:52:17]SAM_PROTO_GetFieldsCounters [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 00 00 [13:52:17]Write to MH i2c: E2 08 00 BB 20 80 13 00 00 00 00 00 00 57 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 BB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 82 02 00 0E 04 04 00 BE 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 B1 [13:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 82 02 00 0E 04 04 00 BE 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 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetFieldsCounters done [13:52:17]requested_item shift.num is exist - process it [13:52:17]requested_item shift.opened is exist - process it [13:52:17]req_shift_opened [13:52:17]FM_GetShiftState [13:52:17]SAM_PROTO_GetShiftState [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 01 00 [13:52:17]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3A [13:52:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetShiftState done [13:52:17]FM_GetShiftState done [13:52:17]req_shift_opened done [13:52:17]requested_item shift.open_date is exist - process it [13:52:17]req_shift_open_date [13:52:17]req_shift_open_date done [13:52:17]produce_requested_data done [13:52:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164606,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:52:17]process_action_free close_receipt [13:52:17]json_value_free [13:52:17]json_value_free done [13:52:17]process_json_proto returns [13:52:17]Send response to host [13:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164606,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:52:17]free response buf [13:52:17]execute_script done [13:52:17]execute_script returns [13:52:17]free content buf [13:52:17]Sock 7.Close socket [13:52:17]Sock 7.Thread stoped [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:00]accept exits with 9 [13:55:00]New connection [13:55:00]New thread 3067149668 created [13:55:00]Thread 3067293028 joined [13:55:00]Waiting for new connection... [13:55:00] Sock 9.Parse request [13:55:00]Sock 9.Check first char [13:55:00]Sock 9.First char is OK [13:55:00]request: POST /json_proto HTTP/1.0 [13:55:00]Method: POST [13:55:00]URL: /json_proto [13:55:00]Method is POST - this is cgi request [13:55:00]url: /json_proto [13:55:00]query_string will be loaded in cgi processing [13:55:00]execute_cgi json_proto POST (null) [13:55:00]execute_cgi path=json_proto method=POST [13:55:00]POST find Content-Length [13:55:00]Host: 172.17.56.4:8080 [13:55:00]Content-Length: 639 [13:55:00]Content-Type: application/json [13:55:00] [13:55:00]POST finish read [13:55:00]Found Content-Length = 639 [13:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:00]execute_script... [13:55:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:00]POST & json_proto [13:55:00]process_json_proto [13:55:00]json parsed OK: [13:55:00]protocol is kg_v1.0 [13:55:00]action value=close_receipt [13:55:00]process_action close_receipt [13:55:00]cmd_close_receipt [13:55:00]MH_GetDate [13:55:00]Write to MH i2c: F0 00 00 BD 20 CC [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: F0 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: F0 09 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: F0 09 00 BD 20 00 36 87 92 66 C9 DC B2 64 45 [13:55:00]GetLastDocTimeStamp 1720878735 [13:55:00]current date 1720878902 [13:55:00]FM_GetShiftState [13:55:00]SAM_PROTO_GetShiftState [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 13 01 00 [13:55:00]Write to MH i2c: E2 08 00 BE 20 80 13 01 00 00 00 00 00 5B [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0E 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0E 00 BE 20 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3C [13:55:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:55:00]wFMCommunicate OK [13:55:00]SAM_PROTO_GetShiftState done [13:55:00]FM_GetShiftState done [13:55:00]opened in 1720831249 [13:55:00]opened+sec_in_day 1720917649 [13:55:00]quantity*price = 32900 [13:55:00]sum+1 = 32901 [13:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 167 13.07.2024 13:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164607 ФПД: 111927445198149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135502&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164607&fm=111927445198149&tin=02508201610067®Number=0000000000090829&sum=32900 [13:55:01]StoreToDocumentArchive [13:55:01]shift 446 fd 164607 [13:55:01]save to /storage/0446/doc_00164607 [13:55:01]save last doc name /storage/0446/doc_00164607 to /storage/kkm_last_doc_name [13:55:01]save OK [13:55:01]Clear old archive folders... [13:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:01]tlvbuf is B6EFB0E0 [13:55:01]SAM_PROTO_ClearQueue [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 09 00 00 [13:55:01]Write to MH i2c: E2 08 00 CB 20 80 09 00 00 00 00 00 00 5D [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [13:55:01]RAPDU: 90 00 [13:55:01]wFMCommunicate OK [13:55:01]SAM_PROTO_ClearQueue done [13:55:01]KKMCreateOFDPacket [13:55:01]OFDProtocolAddRootSTLVToBuf [13:55:01]FM_MakeSignedData [13:55:01]FM_MakeSignedData [13:55:01]SAM_PROTO_SignData [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 0D 01 02 [13:55:01]Write to MH i2c: E2 08 00 CC 20 80 0D 01 02 00 00 00 00 65 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [13:55:01]RAPDU: 90 00 [13:55:01]wFMCommunicate OK [13:55:01]wFMCommunicate request_size=255 [13:55:01]MH_SAM_APDU [13:55: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 36 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 82 02 00 35 04 06 00 65 [13:55:01]Write to MH i2c: E2 02 01 CD 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 36 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 82 02 00 35 04 06 00 65 00 00 C3 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [13:55:01]RAPDU: 90 00 [13:55:01]wFMCommunicate OK [13:55:01]wFMCommunicate request_size=10 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 0D 02 02 05 CC 23 9C 95 45 [13:55:01]Write to MH i2c: E2 0D 00 CE 20 80 0D 02 02 05 00 CC 23 9C 95 45 00 00 D7 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [13:55:01]RAPDU: 90 00 [13:55:01]wFMCommunicate OK [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 0D 03 02 [13:55:01]Write to MH i2c: E2 08 00 CF 20 80 0D 03 02 00 00 00 00 6A [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 0B 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 0B 00 CF 20 00 0E 28 D1 BB E8 97 E5 F2 90 00 83 [13:55:01]RAPDU: 0E 28 D1 BB E8 97 E5 F2 90 00 [13:55:01]wFMCommunicate OK [13:55:01]SAM_PROTO_SignData done [13:55:01]FM_MakeSignedData done [13:55:01]CreateOFDProtocolMessage [13:55:01]wFMCommunicate request_size=4 [13:55:01]MH_SAM_APDU [13:55:01]CAPDU: 80 11 00 00 [13:55:01]Write to MH i2c: E2 08 00 D0 20 80 11 00 00 00 00 00 00 6A [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:01]Read from MH i2c: E2 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 17 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: E2 17 00 D0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [13:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:01]wFMCommunicate OK [13:55:01]CreateOFDProtocolMessage done [13:55:01]OFDSenderStorePacket 164607 [13:55:01]StoreOFDPacket docnum=164607 [13:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F E5 07 01 3B 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 36 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 82 02 00 35 04 06 00 65 CC 23 9C 95 45 0E 28 D1 BB E8 97 E5 F2 [13:55:01]CheckFolder [13:55:01]dirname=/storage/ofd_packets [13:55:01]CheckFolder done [13:55:01]ProducePacketName [13:55:01]name=ofd_packets/00164607 [13:55:01]NVStorageSaveData ofd_packets/00164607 [13:55:01]File name is /storage/ofd_packets/00164607 [13:55:01]Write 301 bytes [13:55:01]NVStorageSaveData done [13:55:01]OFDSenderStorePacket done [13:55:01]KKMCreateOFDPacket done [13:55:01]NVStorageSaveData kkm_last_timestamp [13:55:01]File name is /storage/kkm_last_timestamp [13:55:01]Write 4 bytes [13:55:01]NVStorageSaveData done [13:55:01]ExternCall_PrintAddStr [13:55:01]wPrintStart [13:55:01]Write to MH i2c: 01 00 00 D1 20 F1 [13:55:01]Write i2c OK [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: 01 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: 01 07 00 [13:55:01]MH_I2C_Read... [13:55:01]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 FF 0F 06 [13:55:01]RasterBufferAndPrint [13:55:01]line Счет N : (1)458700 [13:55:01]line ИНН: 02508201610067 [13:55:01]line Контрольно-Кассовый Чек [13:55:01]line ПРОДАЖА [13:55:01]line ТРК (МРК, ГНК) : 22 [13:55:01]line Товар: 2710124130 [13:55:01]line Аи-92-К-5 [13:55:01]line 5.000 * 65.80 [13:55:01]line = 329.00 [13:55:01]line НДС 12% НСП 1% [13:55:01]line > о реализуемом товаре [13:55:01]line ИТОГО: 329.00 [13:55:01]line НСП 1% : 2.91 [13:55:01]line НДС 12% : 34.94 [13:55:01]line Наличными: 329.00 [13:55:01]line Безнал.: 0.00 [13:55:01]line Место: АЗС № 72 "Партнер Нефть" [13:55:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:55:01]line СНО: Общий режим [13:55:01]line Чек 167 13.07.2024 13:55 [13:55:01]line Смена: 446 ФФД: 1.0 [13:55:01]line ЗНМ: 0300000160 [13:55:01]line РНМ: 0000000000090829 [13:55:01]line Версия ККМ: 001 [13:55:01]line ФМ: 0000000000874718 [13:55:01]line ФД: 164607 [13:55:01]line ФПД: 111927445198149 [13:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135502&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164607&fm=111927445198149&tin=02508201610067®Number=0000000000090829&sum=32900 [13:55:01]written 0, free lines is 4095 [13:55:01]OFD Sender: Processing packet 164607 [packets to send 104, broken 103] [13:55:01]ProducePacketName [13:55:01]name=ofd_packets/00164607 [13:55:01]OFD Sender: To server: pG, [13:55:01]CommunicateWithHost lk.salyk.kg:30040 [13:55:01]ConnectInit lk.salyk.kg [13:55:01]Connected sock=7 [13:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F E5 07 01 3B 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 36 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 82 02 00 35 04 06 00 65 CC 23 9C 95 45 0E 28 D1 BB E8 97 E5 F2 [13:55:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F FA 47 00 C4 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 34 37 31 38 10 04 04 00 FF 82 02 00 F4 03 04 00 C6 2D 92 66 B6 04 01 00 00 32 47 87 8E 3B 98 9A 19 [13:55:02]CommunicateWithHost err = 0 [13:55:02]CheckOFDResponse [13:55:02]1017 (14) - 77093643461234 [13:55:02]1041 (16) - 0000000000874718 [13:55:02]1040 (4) - 164607 [13:55:02]1012 (4) - 13.07.2024 07:33 [13:55:02]1206 (1) - 0 [13:55:02]OFD Sender: Remove packet 164607 [13:55:02]ProducePacketName [13:55:02]name=ofd_packets/00164607 [13:55:02]NVStorageDeleteData [13:55:02]Write to MH i2c: 01 00 00 F8 20 18 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: 01 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: 01 07 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: 01 07 00 F8 20 00 00 00 00 00 31 0D 5D [13:55:02]RasterBufferAndPrint [13:55:02]line [13:55:02]line [13:55:02]line [13:55:02]line [13:55:02]line [13:55:02]written 0, free lines is 3383 [13:55:02]MH_Cut [13:55:02]Write to MH i2c: D1 01 00 FF 20 01 F1 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: D1 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: D1 01 00 [13:55:02]MH_I2C_Read... [13:55:02]Read from MH i2c: D1 01 00 FF 20 00 F0 [13:55:02]Write to MH i2c: 01 00 00 00 21 21 [13:55:02]Write i2c OK [13:55:02]MH_I2C_Read... [13:55:02]OFD Sender: No OFD packet to send [13:55:02]*** Cut start [13:55:02]*** Partial cut [13:55:02]*** CUTSNS_PIN = 1 [13:55:02]*** CUTSNS_PIN = 0 [13:55:03]*** Brake cut motor [13:55:03]Read from MH i2c: 01 [13:55:03]MH_I2C_Read... [13:55:03]*** Stop cut motor [13:55:03]*** Cut end [13:55:03]Read from MH i2c: 01 07 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: 01 07 00 00 21 00 00 00 00 00 FF 0F 36 [13:55:03]process_action close_receipt done [13:55:03]requested_data is exist [13:55:03]produce_requested_data [13:55:03]requested_item fm.sn is exist - process it [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 11 00 00 [13:55:03]Write to MH i2c: E2 08 00 01 21 80 11 00 00 00 00 00 00 9C [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 17 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 17 00 01 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [13:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:03]wFMCommunicate OK [13:55:03]requested_item fd.num is exist - process it [13:55:03]SAM_PROTO_GetFieldsCounters [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 13 00 00 [13:55:03]Write to MH i2c: E2 08 00 02 21 80 13 00 00 00 00 00 00 9F [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 62 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 62 00 02 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 82 02 00 0E 04 04 00 BE 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 FD [13:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 82 02 00 0E 04 04 00 BE 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 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_GetFieldsCounters done [13:55:03]requested_item shift.num is exist - process it [13:55:03]requested_item shift.opened is exist - process it [13:55:03]req_shift_opened [13:55:03]FM_GetShiftState [13:55:03]SAM_PROTO_GetShiftState [13:55:03]wFMCommunicate request_size=4 [13:55:03]MH_SAM_APDU [13:55:03]CAPDU: 80 13 01 00 [13:55:03]Write to MH i2c: E2 08 00 03 21 80 13 01 00 00 00 00 00 A1 [13:55:03]Write i2c OK [13:55:03]MH_I2C_Read... [13:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:03]Read from MH i2c: E2 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0E 00 [13:55:03]MH_I2C_Read... [13:55:03]Read from MH i2c: E2 0E 00 03 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 82 [13:55:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:55:03]wFMCommunicate OK [13:55:03]SAM_PROTO_GetShiftState done [13:55:03]FM_GetShiftState done [13:55:03]req_shift_opened done [13:55:03]requested_item shift.open_date is exist - process it [13:55:03]req_shift_open_date [13:55:03]req_shift_open_date done [13:55:03]produce_requested_data done [13:55:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164607,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:55:03]process_action_free close_receipt [13:55:03]json_value_free [13:55:03]json_value_free done [13:55:03]process_json_proto returns [13:55:03]Send response to host [13:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164607,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:55:03]free response buf [13:55:03]execute_script done [13:55:03]execute_script returns [13:55:03]free content buf [13:55:03]Sock 9.Close socket [13:55:03]Sock 9.Thread stoped [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:20]accept exits with 10 [13:55:20]New connection [13:55:20]New thread 3067293028 created [13:55:20]Thread 3067149668 joined [13:55:20]Waiting for new connection... [13:55:20] Sock 10.Parse request [13:55:20]Sock 10.Check first char [13:55:20]Sock 10.First char is OK [13:55:20]request: POST /json_proto HTTP/1.0 [13:55:20]Method: POST [13:55:20]URL: /json_proto [13:55:20]Method is POST - this is cgi request [13:55:20]url: /json_proto [13:55:20]query_string will be loaded in cgi processing [13:55:20]execute_cgi json_proto POST (null) [13:55:20]execute_cgi path=json_proto method=POST [13:55:20]POST find Content-Length [13:55:20]Host: 172.17.56.4:8080 [13:55:20]Content-Length: 682 [13:55:20]Content-Type: application/json [13:55:20] [13:55:20]POST finish read [13:55:20]Found Content-Length = 682 [13:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:20]execute_script... [13:55: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)458699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:20]POST & json_proto [13:55:20]process_json_proto [13:55:20]json parsed OK: [13:55:20]protocol is kg_v1.0 [13:55:20]action value=close_receipt [13:55:20]process_action close_receipt [13:55:20]cmd_close_receipt [13:55:20]MH_GetDate [13:55:20]Write to MH i2c: F0 00 00 04 21 14 [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: F0 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: F0 09 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: F0 09 00 04 21 00 4A 87 92 66 C9 DC B2 64 A1 [13:55:20]GetLastDocTimeStamp 1720878902 [13:55:20]current date 1720878922 [13:55:20]FM_GetShiftState [13:55:20]SAM_PROTO_GetShiftState [13:55:20]wFMCommunicate request_size=4 [13:55:20]MH_SAM_APDU [13:55:20]CAPDU: 80 13 01 00 [13:55:20]Write to MH i2c: E2 08 00 05 21 80 13 01 00 00 00 00 00 A3 [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 05 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 84 [13:55:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:55:20]wFMCommunicate OK [13:55:20]SAM_PROTO_GetShiftState done [13:55:20]FM_GetShiftState done [13:55:20]opened in 1720831249 [13:55:20]opened+sec_in_day 1720917649 [13:55:20]quantity*price = 100016 [13:55:20]sum+1 = 100017 [13:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 168 13.07.2024 13:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164608 ФПД: 149915501740259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164608&fm=149915501740259&tin=02508201610067®Number=0000000000090829&sum=100000 [13:55:21]StoreToDocumentArchive [13:55:21]shift 446 fd 164608 [13:55:21]save to /storage/0446/doc_00164608 [13:55:21]save last doc name /storage/0446/doc_00164608 to /storage/kkm_last_doc_name [13:55:21]save OK [13:55:21]Clear old archive folders... [13:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:21]tlvbuf is 0144F0E0 [13:55:21]SAM_PROTO_ClearQueue [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 09 00 00 [13:55:21]Write to MH i2c: E2 08 00 12 21 80 09 00 00 00 00 00 00 A5 [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [13:55:21]RAPDU: 90 00 [13:55:21]wFMCommunicate OK [13:55:21]SAM_PROTO_ClearQueue done [13:55:21]KKMCreateOFDPacket [13:55:21]OFDProtocolAddRootSTLVToBuf [13:55:21]FM_MakeSignedData [13:55:21]FM_MakeSignedData [13:55:21]SAM_PROTO_SignData [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 0D 01 02 [13:55:21]Write to MH i2c: E2 08 00 13 21 80 0D 01 02 00 00 00 00 AD [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [13:55:21]RAPDU: 90 00 [13:55:21]wFMCommunicate OK [13:55:21]wFMCommunicate request_size=255 [13:55:21]MH_SAM_APDU [13:55: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4A 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 83 02 00 35 04 06 00 88 [13:55:21]Write to MH i2c: E2 02 01 14 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4A 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 83 02 00 35 04 06 00 88 00 00 05 [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 14 21 00 90 00 A9 [13:55:21]RAPDU: 90 00 [13:55:21]wFMCommunicate OK [13:55:21]wFMCommunicate request_size=10 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 0D 02 02 05 58 EC 3A 40 E3 [13:55:21]Write to MH i2c: E2 0D 00 15 21 80 0D 02 02 05 00 58 EC 3A 40 E3 00 00 5B [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 03 00 15 21 00 90 00 AA [13:55:21]RAPDU: 90 00 [13:55:21]wFMCommunicate OK [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 0D 03 02 [13:55:21]Write to MH i2c: E2 08 00 16 21 80 0D 03 02 00 00 00 00 B2 [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0B 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0B 00 16 21 00 23 74 97 05 49 43 17 F8 90 00 81 [13:55:21]RAPDU: 23 74 97 05 49 43 17 F8 90 00 [13:55:21]wFMCommunicate OK [13:55:21]SAM_PROTO_SignData done [13:55:21]FM_MakeSignedData done [13:55:21]CreateOFDProtocolMessage [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 11 00 00 [13:55:21]Write to MH i2c: E2 08 00 17 21 80 11 00 00 00 00 00 00 B2 [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 17 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 17 00 17 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [13:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:21]wFMCommunicate OK [13:55:21]CreateOFDProtocolMessage done [13:55:21]OFDSenderStorePacket 164608 [13:55:21]StoreOFDPacket docnum=164608 [13:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 E7 07 01 96 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4A 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 83 02 00 35 04 06 00 88 58 EC 3A 40 E3 23 74 97 05 49 43 17 F8 [13:55:21]CheckFolder [13:55:21]dirname=/storage/ofd_packets [13:55:21]CheckFolder done [13:55:21]ProducePacketName [13:55:21]name=ofd_packets/00164608 [13:55:21]NVStorageSaveData ofd_packets/00164608 [13:55:21]File name is /storage/ofd_packets/00164608 [13:55:21]Write 301 bytes [13:55:21]NVStorageSaveData done [13:55:21]OFDSenderStorePacket done [13:55:21]KKMCreateOFDPacket done [13:55:21]NVStorageSaveData kkm_last_timestamp [13:55:21]File name is /storage/kkm_last_timestamp [13:55:21]Write 4 bytes [13:55:21]NVStorageSaveData done [13:55:21]ExternCall_PrintAddStr [13:55:21]wPrintStart [13:55:21]Write to MH i2c: 01 00 00 18 21 39 [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: 01 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: 01 07 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: 01 07 00 18 21 00 00 00 00 00 FF 0F 4E [13:55:21]RasterBufferAndPrint [13:55:21]line Счет N : (1)458699 [13:55:21]line ИНН: 02508201610067 [13:55:21]line Контрольно-Кассовый Чек [13:55:21]line ПРОДАЖА [13:55:21]line ТРК (МРК, ГНК) : 12 [13:55:21]line Товар: 2710124130 [13:55:21]line Аи-92-К-5 [13:55:21]line 15.200 * 65.80 [13:55:21]line = 1000.16 [13:55:21]line НДС 12% НСП 1% [13:55:21]line > о реализуемом товаре [13:55:21]line ОКРУГЛЕНИЕ: -0.16 [13:55:21]line ИТОГО: 1000.00 [13:55:21]line Внесено: 1000.00 [13:55:21]line СДАЧА: 0.00 [13:55:21]line НСП 1% : 8.85 [13:55:21]line НДС 12% : 106.21 [13:55:21]line Наличными: 1000.00 [13:55:21]line Безнал.: 0.00 [13:55:21]line Место: АЗС № 72 "Партнер Нефть" [13:55:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:55:21]line СНО: Общий режим [13:55:21]line Чек 168 13.07.2024 13:55 [13:55:21]line Смена: 446 ФФД: 1.0 [13:55:21]line ЗНМ: 0300000160 [13:55:21]line РНМ: 0000000000090829 [13:55:21]line Версия ККМ: 001 [13:55:21]line ФМ: 0000000000874718 [13:55:21]line ФД: 164608 [13:55:21]line ФПД: 149915501740259 [13:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164608&fm=149915501740259&tin=02508201610067®Number=0000000000090829&sum=100000 [13:55:22]OFD Sender: Processing packet 164608 [packets to send 104, broken 103] [13:55:22]ProducePacketName [13:55:22]name=ofd_packets/00164608 [13:55:22]OFD Sender: To server: pG, [13:55:22]CommunicateWithHost lk.salyk.kg:30040 [13:55:22]ConnectInit lk.salyk.kg [13:55:22]written 0, free lines is 4095 [13:55:22]Connected sock=9 [13:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A6 E7 07 01 96 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 4A 87 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 83 02 00 35 04 06 00 88 58 EC 3A 40 E3 23 74 97 05 49 43 17 F8 [13:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 01 47 00 BC 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 83 02 00 F4 03 04 00 DB 2D 92 66 B6 04 01 00 00 B8 C3 FF 34 01 33 9D 78 [13:55:22]CommunicateWithHost err = 0 [13:55:22]CheckOFDResponse [13:55:22]1017 (14) - 77093643461234 [13:55:22]1041 (16) - 0000000000874718 [13:55:22]1040 (4) - 164608 [13:55:22]1012 (4) - 13.07.2024 07:33 [13:55:22]1206 (1) - 0 [13:55:22]OFD Sender: Remove packet 164608 [13:55:22]ProducePacketName [13:55:22]name=ofd_packets/00164608 [13:55:22]NVStorageDeleteData [13:55:22]Write to MH i2c: 01 00 00 42 21 63 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 07 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 F2 0C 68 [13:55:22]RasterBufferAndPrint [13:55:22]line [13:55:22]line [13:55:22]line [13:55:22]line [13:55:22]line [13:55:22]written 0, free lines is 3322 [13:55:22]MH_Cut [13:55:22]Write to MH i2c: D1 01 00 49 21 01 3C [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: D1 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: D1 01 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: D1 01 00 49 21 00 3B [13:55:22]Write to MH i2c: 01 00 00 4A 21 6B [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]OFD Sender: No OFD packet to send [13:55:23]*** Cut start [13:55:23]*** Partial cut [13:55:23]*** CUTSNS_PIN = 1 [13:55:23]*** CUTSNS_PIN = 0 [13:55:23]*** Brake cut motor [13:55:23]Read from MH i2c: 01 [13:55:23]MH_I2C_Read... [13:55:23]*** Stop cut motor [13:55:23]*** Cut end [13:55:23]Read from MH i2c: 01 07 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 4A 21 00 00 00 00 00 FF 0F 80 [13:55:23]process_action close_receipt done [13:55:23]requested_data is exist [13:55:23]produce_requested_data [13:55:23]requested_item fm.sn is exist - process it [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 11 00 00 [13:55:23]Write to MH i2c: E2 08 00 4B 21 80 11 00 00 00 00 00 00 E6 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 4B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [13:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:23]wFMCommunicate OK [13:55:23]requested_item fd.num is exist - process it [13:55:23]SAM_PROTO_GetFieldsCounters [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 13 00 00 [13:55:23]Write to MH i2c: E2 08 00 4C 21 80 13 00 00 00 00 00 00 E9 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 62 00 [13:55:23]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 62 00 4C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 83 02 00 0E 04 04 00 BE 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 4C [13:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 83 02 00 0E 04 04 00 BE 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 [13:55:24]wFMCommunicate OK [13:55:24]SAM_PROTO_GetFieldsCounters done [13:55:24]requested_item shift.num is exist - process it [13:55:24]requested_item shift.opened is exist - process it [13:55:24]req_shift_opened [13:55:24]FM_GetShiftState [13:55:24]SAM_PROTO_GetShiftState [13:55:24]wFMCommunicate request_size=4 [13:55:24]MH_SAM_APDU [13:55:24]CAPDU: 80 13 01 00 [13:55:24]Write to MH i2c: E2 08 00 4D 21 80 13 01 00 00 00 00 00 EB [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:24]Read from MH i2c: E2 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 0E 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 0E 00 4D 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CC [13:55:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:55:24]wFMCommunicate OK [13:55:24]SAM_PROTO_GetShiftState done [13:55:24]FM_GetShiftState done [13:55:24]req_shift_opened done [13:55:24]requested_item shift.open_date is exist - process it [13:55:24]req_shift_open_date [13:55:24]req_shift_open_date done [13:55:24]produce_requested_data done [13:55:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164608,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:55:24]process_action_free close_receipt [13:55:24]json_value_free [13:55:24]json_value_free done [13:55:24]process_json_proto returns [13:55:24]Send response to host [13:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164608,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:55:24]free response buf [13:55:24]execute_script done [13:55:24]execute_script returns [13:55:24]free content buf [13:55:24]Sock 10.Close socket [13:55:24]Sock 10.Thread stoped [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]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:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:42]accept exits with 7 [13:59:42]New connection [13:59:42]New thread 3067149668 created [13:59:42]Thread 3067293028 joined [13:59:42]Waiting for new connection... [13:59:42] Sock 7.Parse request [13:59:42]Sock 7.Check first char [13:59:42]Sock 7.First char is OK [13:59:42]request: POST /json_proto HTTP/1.0 [13:59:42]Method: POST [13:59:42]URL: /json_proto [13:59:42]Method is POST - this is cgi request [13:59:42]url: /json_proto [13:59:42]query_string will be loaded in cgi processing [13:59:42]execute_cgi json_proto POST (null) [13:59:42]execute_cgi path=json_proto method=POST [13:59:42]POST find Content-Length [13:59:42]Host: 172.17.56.4:8080 [13:59:42]Content-Length: 677 [13:59:42]Content-Type: application/json [13:59:42] [13:59:42]POST finish read [13:59:42]Found Content-Length = 677 [13:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:59:42]execute_script... [13:59: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)458701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:59:42]POST & json_proto [13:59:42]process_json_proto [13:59:42]json parsed OK: [13:59:42]protocol is kg_v1.0 [13:59:42]action value=close_receipt [13:59:42]process_action close_receipt [13:59:42]cmd_close_receipt [13:59:42]MH_GetDate [13:59:42]Write to MH i2c: F0 00 00 4E 21 5E [13:59:42]Write i2c OK [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: F0 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: F0 09 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: F0 09 00 4E 21 00 50 88 92 66 C9 DC B2 64 F2 [13:59:42]GetLastDocTimeStamp 1720878922 [13:59:42]current date 1720879184 [13:59:42]FM_GetShiftState [13:59:42]SAM_PROTO_GetShiftState [13:59:42]wFMCommunicate request_size=4 [13:59:42]MH_SAM_APDU [13:59:42]CAPDU: 80 13 01 00 [13:59:42]Write to MH i2c: E2 08 00 4F 21 80 13 01 00 00 00 00 00 ED [13:59:42]Write i2c OK [13:59:42]MH_I2C_Read... [13:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:42]Read from MH i2c: E2 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 4F 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CE [13:59:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:59:42]wFMCommunicate OK [13:59:42]SAM_PROTO_GetShiftState done [13:59:42]FM_GetShiftState done [13:59:42]opened in 1720831249 [13:59:42]opened+sec_in_day 1720917649 [13:59:42]quantity*price = 50008 [13:59:42]sum+1 = 50009 [13:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 169 13.07.2024 13:59 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164609 ФПД: 66747653388596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135944&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164609&fm=66747653388596&tin=02508201610067®Number=0000000000090829&sum=50000 [13:59:43]StoreToDocumentArchive [13:59:43]shift 446 fd 164609 [13:59:43]save to /storage/0446/doc_00164609 [13:59:43]save last doc name /storage/0446/doc_00164609 to /storage/kkm_last_doc_name [13:59:43]save OK [13:59:43]Clear old archive folders... [13:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:43]tlvbuf is B6EFBBF0 [13:59:43]SAM_PROTO_ClearQueue [13:59:43]wFMCommunicate request_size=4 [13:59:43]MH_SAM_APDU [13:59:43]CAPDU: 80 09 00 00 [13:59:43]Write to MH i2c: E2 08 00 5C 21 80 09 00 00 00 00 00 00 EF [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:43]Read from MH i2c: E2 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 03 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [13:59:43]RAPDU: 90 00 [13:59:43]wFMCommunicate OK [13:59:43]SAM_PROTO_ClearQueue done [13:59:43]KKMCreateOFDPacket [13:59:43]OFDProtocolAddRootSTLVToBuf [13:59:43]FM_MakeSignedData [13:59:43]FM_MakeSignedData [13:59:43]SAM_PROTO_SignData [13:59:43]wFMCommunicate request_size=4 [13:59:43]MH_SAM_APDU [13:59:43]CAPDU: 80 0D 01 02 [13:59:43]Write to MH i2c: E2 08 00 5D 21 80 0D 01 02 00 00 00 00 F7 [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]wFMCommunicate request_size=255 [13:59:44]MH_SAM_APDU [13: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A9 00 00 00 F4 03 04 00 50 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 83 02 00 35 04 06 00 3C [13:59:44]Write to MH i2c: E2 02 01 5E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A9 00 00 00 F4 03 04 00 50 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 83 02 00 35 04 06 00 3C 00 00 6A [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]wFMCommunicate request_size=10 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 02 02 05 B4 E6 2B 79 34 [13:59:44]Write to MH i2c: E2 0D 00 5F 21 80 0D 02 02 05 00 B4 E6 2B 79 34 00 00 76 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 5F 21 00 90 00 F4 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 03 02 [13:59:44]Write to MH i2c: E2 08 00 60 21 80 0D 03 02 00 00 00 00 FC [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 0B 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 0B 00 60 21 00 05 31 0F 23 8D 19 4D 3C 90 00 94 [13:59:44]RAPDU: 05 31 0F 23 8D 19 4D 3C 90 00 [13:59:44]wFMCommunicate OK [13:59:44]SAM_PROTO_SignData done [13:59:44]FM_MakeSignedData done [13:59:44]CreateOFDProtocolMessage [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 11 00 00 [13:59:44]Write to MH i2c: E2 08 00 61 21 80 11 00 00 00 00 00 00 FC [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 17 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 17 00 61 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [13:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:59:44]wFMCommunicate OK [13:59:44]CreateOFDProtocolMessage done [13:59:44]OFDSenderStorePacket 164609 [13:59:44]StoreOFDPacket docnum=164609 [13:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 C7 07 01 4B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A9 00 00 00 F4 03 04 00 50 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 83 02 00 35 04 06 00 3C B4 E6 2B 79 34 05 31 0F 23 8D 19 4D 3C [13:59:44]CheckFolder [13:59:44]dirname=/storage/ofd_packets [13:59:44]CheckFolder done [13:59:44]ProducePacketName [13:59:44]name=ofd_packets/00164609 [13:59:44]NVStorageSaveData ofd_packets/00164609 [13:59:44]File name is /storage/ofd_packets/00164609 [13:59:44]Write 301 bytes [13:59:44]NVStorageSaveData done [13:59:44]OFDSenderStorePacket done [13:59:44]KKMCreateOFDPacket done [13:59:44]NVStorageSaveData kkm_last_timestamp [13:59:44]File name is /storage/kkm_last_timestamp [13:59:44]Write 4 bytes [13:59:44]NVStorageSaveData done [13:59:44]ExternCall_PrintAddStr [13:59:44]wPrintStart [13:59:44]Write to MH i2c: 01 00 00 62 21 83 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: 01 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: 01 07 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [13:59:44]RasterBufferAndPrint [13:59:44]line Счет N : (1)458701 [13:59:44]line ИНН: 02508201610067 [13:59:44]line Контрольно-Кассовый Чек [13:59:44]line ПРОДАЖА [13:59:44]line ТРК (МРК, ГНК) : 12 [13:59:44]line Товар: 2710124130 [13:59:44]line Аи-92-К-5 [13:59:44]line 7.600 * 65.80 [13:59:44]line = 500.08 [13:59:44]line НДС 12% НСП 1% [13:59:44]line > о реализуемом товаре [13:59:44]line ОКРУГЛЕНИЕ: -0.08 [13:59:44]line ИТОГО: 500.00 [13:59:44]line Внесено: 500.00 [13:59:44]line СДАЧА: 0.00 [13:59:44]line НСП 1% : 4.42 [13:59:44]line НДС 12% : 53.11 [13:59:44]line Наличными: 500.00 [13:59:44]line Безнал.: 0.00 [13:59:44]line Место: АЗС № 72 "Партнер Нефть" [13:59:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:59:44]line СНО: Общий режим [13:59:44]line Чек 169 13.07.2024 13:59 [13:59:44]line Смена: 446 ФФД: 1.0 [13:59:44]line ЗНМ: 0300000160 [13:59:44]line РНМ: 0000000000090829 [13:59:44]line Версия ККМ: 001 [13:59:44]line ФМ: 0000000000874718 [13:59:44]line ФД: 164609 [13:59:44]line ФПД: 66747653388596 [13:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135944&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164609&fm=66747653388596&tin=02508201610067®Number=0000000000090829&sum=50000 [13:59:44]written 0, free lines is 4095 [13:59:44]OFD Sender: Processing packet 164609 [packets to send 104, broken 103] [13:59:44]ProducePacketName [13:59:44]name=ofd_packets/00164609 [13:59:44]OFD Sender: To server: pG, [13:59:44]CommunicateWithHost lk.salyk.kg:30040 [13:59:44]ConnectInit lk.salyk.kg [13:59:44]Connected sock=10 [13:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 C7 07 01 4B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A9 00 00 00 F4 03 04 00 50 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 83 02 00 35 04 06 00 3C B4 E6 2B 79 34 05 31 0F 23 8D 19 4D 3C [13:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 32 C1 47 00 5F 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 34 37 31 38 10 04 04 00 01 83 02 00 F4 03 04 00 E1 2E 92 66 B6 04 01 00 00 92 D6 EA CE 0F 11 16 5C [13:59:45]CommunicateWithHost err = 0 [13:59:45]CheckOFDResponse [13:59:45]1017 (14) - 77093643461234 [13:59:45]1041 (16) - 0000000000874718 [13:59:45]1040 (4) - 164609 [13:59:45]1012 (4) - 13.07.2024 07:38 [13:59:45]1206 (1) - 0 [13:59:45]OFD Sender: Remove packet 164609 [13:59:45]ProducePacketName [13:59:45]name=ofd_packets/00164609 [13:59:45]NVStorageDeleteData [13:59:45]Write to MH i2c: 01 00 00 8C 21 AD [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 F0 0C B0 [13:59:45]RasterBufferAndPrint [13:59:45]line [13:59:45]line [13:59:45]line [13:59:45]line [13:59:45]line [13:59:45]written 0, free lines is 3318 [13:59:45]MH_Cut [13:59:45]Write to MH i2c: D1 01 00 93 21 01 86 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: D1 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: D1 01 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: D1 01 00 93 21 00 85 [13:59:45]Write to MH i2c: 01 00 00 94 21 B5 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]OFD Sender: No OFD packet to send [13:59:45]*** Cut start [13:59:45]*** Partial cut [13:59:45]*** CUTSNS_PIN = 1 [13:59:45]*** CUTSNS_PIN = 0 [13:59:46]*** Brake cut motor [13:59:46]Read from MH i2c: 01 [13:59:46]MH_I2C_Read... [13:59:46]*** Stop cut motor [13:59:46]*** Cut end [13:59:46]Read from MH i2c: 01 07 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [13:59:46]process_action close_receipt done [13:59:46]requested_data is exist [13:59:46]produce_requested_data [13:59:46]requested_item fm.sn is exist - process it [13:59:46]wFMCommunicate request_size=4 [13:59:46]MH_SAM_APDU [13:59:46]CAPDU: 80 11 00 00 [13:59:46]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 [13:59:46]MH_I2C_Read... [13:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:46]Read from MH i2c: E2 17 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [13:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:59:46]wFMCommunicate OK [13:59:46]requested_item fd.num is exist - process it [13:59:46]SAM_PROTO_GetFieldsCounters [13:59:46]wFMCommunicate request_size=4 [13:59:46]MH_SAM_APDU [13:59:46]CAPDU: 80 13 00 00 [13:59:46]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:46]Read from MH i2c: E2 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 62 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 62 00 96 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 83 02 00 0E 04 04 00 BE 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 9A [13:59: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 83 02 00 0E 04 04 00 BE 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 [13:59:46]wFMCommunicate OK [13:59:46]SAM_PROTO_GetFieldsCounters done [13:59:46]requested_item shift.num is exist - process it [13:59:46]requested_item shift.opened is exist - process it [13:59:46]req_shift_opened [13:59:46]FM_GetShiftState [13:59:46]SAM_PROTO_GetShiftState [13:59:46]wFMCommunicate request_size=4 [13:59:46]MH_SAM_APDU [13:59:46]CAPDU: 80 13 01 00 [13:59:46]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:46]Read from MH i2c: E2 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 0E 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 16 [13:59:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [13:59:46]wFMCommunicate OK [13:59:46]SAM_PROTO_GetShiftState done [13:59:46]FM_GetShiftState done [13:59:46]req_shift_opened done [13:59:46]requested_item shift.open_date is exist - process it [13:59:46]req_shift_open_date [13:59:46]req_shift_open_date done [13:59:46]produce_requested_data done [13:59:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164609,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [13:59:46]process_action_free close_receipt [13:59:46]json_value_free [13:59:46]json_value_free done [13:59:46]process_json_proto returns [13:59:46]Send response to host [13:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164609,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [13:59:46]free response buf [13:59:46]execute_script done [13:59:46]execute_script returns [13:59:46]free content buf [13:59:46]Sock 7.Close socket [13:59:46]Sock 7.Thread stoped [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:53]accept exits with 9 [14:00:53]New connection [14:00:53]New thread 3067293028 created [14:00:53]Thread 3067149668 joined [14:00:53]Waiting for new connection... [14:00:53] Sock 9.Parse request [14:00:53]Sock 9.Check first char [14:00:53]Sock 9.First char is OK [14:00:53]request: POST /json_proto HTTP/1.0 [14:00:53]Method: POST [14:00:53]URL: /json_proto [14:00:53]Method is POST - this is cgi request [14:00:53]url: /json_proto [14:00:53]query_string will be loaded in cgi processing [14:00:53]execute_cgi json_proto POST (null) [14:00:53]execute_cgi path=json_proto method=POST [14:00:53]POST find Content-Length [14:00:53]Host: 172.17.56.4:8080 [14:00:53]Content-Length: 679 [14:00:53]Content-Type: application/json [14:00:53] [14:00:53]POST finish read [14:00:53]Found Content-Length = 679 [14:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [14:00:53]execute_script... [14:00: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)458702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [14:00:53]POST & json_proto [14:00:53]process_json_proto [14:00:53]json parsed OK: [14:00:53]protocol is kg_v1.0 [14:00:53]action value=close_receipt [14:00:53]process_action close_receipt [14:00:53]cmd_close_receipt [14:00:53]MH_GetDate [14:00:53]Write to MH i2c: F0 00 00 98 21 A8 [14:00:53]Write i2c OK [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 09 00 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 09 00 98 21 00 97 88 92 66 C9 DC B2 64 83 [14:00:53]GetLastDocTimeStamp 1720879184 [14:00:53]current date 1720879255 [14:00:53]FM_GetShiftState [14:00:53]SAM_PROTO_GetShiftState [14:00:53]wFMCommunicate request_size=4 [14:00:53]MH_SAM_APDU [14:00:53]CAPDU: 80 13 01 00 [14:00:53]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [14:00:53]Write i2c OK [14:00:53]MH_I2C_Read... [14:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:53]Read from MH i2c: E2 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: E2 0E 00 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 18 [14:00:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:00:53]wFMCommunicate OK [14:00:53]SAM_PROTO_GetShiftState done [14:00:53]FM_GetShiftState done [14:00:53]opened in 1720831249 [14:00:53]opened+sec_in_day 1720917649 [14:00:53]quantity*price = 150055 [14:00:53]sum+1 = 150056 [14:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 170 13.07.2024 14:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164610 ФПД: 122626719908640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140055&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164610&fm=122626719908640&tin=02508201610067®Number=0000000000090829&sum=150000 [14:00:54]StoreToDocumentArchive [14:00:54]shift 446 fd 164610 [14:00:54]save to /storage/0446/doc_00164610 [14:00:54]save last doc name /storage/0446/doc_00164610 to /storage/kkm_last_doc_name [14:00:54]save OK [14:00:54]Clear old archive folders... [14:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:54]tlvbuf is 014DAA30 [14:00:54]SAM_PROTO_ClearQueue [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 09 00 00 [14:00:54]Write to MH i2c: E2 08 00 A6 21 80 09 00 00 00 00 00 00 39 [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]SAM_PROTO_ClearQueue done [14:00:54]KKMCreateOFDPacket [14:00:54]OFDProtocolAddRootSTLVToBuf [14:00:54]FM_MakeSignedData [14:00:54]FM_MakeSignedData [14:00:54]SAM_PROTO_SignData [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 0D 01 02 [14:00:54]Write to MH i2c: E2 08 00 A7 21 80 0D 01 02 00 00 00 00 41 [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]wFMCommunicate request_size=255 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 97 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 83 02 00 35 04 06 00 6F 87 42 14 [14:00:54]Write to MH i2c: E2 02 01 A8 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 97 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 83 02 00 35 04 06 00 6F 87 42 14 00 00 9B [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]wFMCommunicate request_size=7 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 0D 02 02 02 83 20 [14:00:54]Write to MH i2c: E2 0A 00 A9 21 80 0D 02 02 02 00 83 20 00 00 EB [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 0D 03 02 [14:00:54]Write to MH i2c: E2 08 00 AA 21 80 0D 03 02 00 00 00 00 46 [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 0B 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 0B 00 AA 21 00 26 75 0A 50 C9 84 9A 7E 90 00 A1 [14:00:54]RAPDU: 26 75 0A 50 C9 84 9A 7E 90 00 [14:00:54]wFMCommunicate OK [14:00:54]SAM_PROTO_SignData done [14:00:54]FM_MakeSignedData done [14:00:54]CreateOFDProtocolMessage [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 11 00 00 [14:00:54]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 17 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [14:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:00:54]wFMCommunicate OK [14:00:54]CreateOFDProtocolMessage done [14:00:54]OFDSenderStorePacket 164610 [14:00:54]StoreOFDPacket docnum=164610 [14:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 B5 04 01 F0 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 97 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 83 02 00 35 04 06 00 6F 87 42 14 83 20 26 75 0A 50 C9 84 9A 7E [14:00:54]CheckFolder [14:00:54]dirname=/storage/ofd_packets [14:00:54]CheckFolder done [14:00:54]ProducePacketName [14:00:54]name=ofd_packets/00164610 [14:00:54]NVStorageSaveData ofd_packets/00164610 [14:00:54]File name is /storage/ofd_packets/00164610 [14:00:54]Write 298 bytes [14:00:54]NVStorageSaveData done [14:00:54]OFDSenderStorePacket done [14:00:54]KKMCreateOFDPacket done [14:00:54]NVStorageSaveData kkm_last_timestamp [14:00:54]File name is /storage/kkm_last_timestamp [14:00:54]Write 4 bytes [14:00:54]NVStorageSaveData done [14:00:54]ExternCall_PrintAddStr [14:00:54]wPrintStart [14:00:54]Write to MH i2c: 01 00 00 AC 21 CD [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: 01 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: 01 07 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 FF 0F E2 [14:00:54]RasterBufferAndPrint [14:00:54]line Счет N : (1)458702 [14:00:54]line ИНН: 02508201610067 [14:00:54]line Контрольно-Кассовый Чек [14:00:54]line ПРОДАЖА [14:00:54]line ТРК (МРК, ГНК) : 21 [14:00:54]line Товар: 2710194210 [14:00:54]line ДТ-К-5 [14:00:54]line 20.870 * 71.90 [14:00:54]line = 1500.55 [14:00:54]line НДС 12% НСП 1% [14:00:54]line > о реализуемом товаре [14:00:54]line ОКРУГЛЕНИЕ: -0.55 [14:00:54]line ИТОГО: 1500.00 [14:00:54]line Внесено: 1500.00 [14:00:54]line СДАЧА: 0.00 [14:00:54]line НСП 1% : 13.28 [14:00:54]line НДС 12% : 159.35 [14:00:54]line Наличными: 1500.00 [14:00:54]line Безнал.: 0.00 [14:00:54]line Место: АЗС № 72 "Партнер Нефть" [14:00:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:00:54]line СНО: Общий режим [14:00:54]line Чек 170 13.07.2024 14:00 [14:00:54]line Смена: 446 ФФД: 1.0 [14:00:54]line ЗНМ: 0300000160 [14:00:54]line РНМ: 0000000000090829 [14:00:55]line Версия ККМ: 001 [14:00:55]line ФМ: 0000000000874718 [14:00:55]line ФД: 164610 [14:00:55]line ФПД: 122626719908640 [14:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140055&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164610&fm=122626719908640&tin=02508201610067®Number=0000000000090829&sum=150000 [14:00:55]OFD Sender: Processing packet 164610 [packets to send 104, broken 103] [14:00:55]ProducePacketName [14:00:55]name=ofd_packets/00164610 [14:00:55]OFD Sender: To server: pG, [14:00:55]CommunicateWithHost lk.salyk.kg:30040 [14:00:55]ConnectInit lk.salyk.kg [14:00:55]written 0, free lines is 4095 [14:00:55]Connected sock=10 [14:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 B5 04 01 F0 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 97 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 83 02 00 35 04 06 00 6F 87 42 14 83 20 26 75 0A 50 C9 84 9A 7E [14:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1D D4 47 00 FB 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 34 37 31 38 10 04 04 00 02 83 02 00 F4 03 04 00 28 2F 92 66 B6 04 01 00 00 74 2A 00 97 01 F0 D7 99 [14:00:55]CommunicateWithHost err = 0 [14:00:55]CheckOFDResponse [14:00:55]1017 (14) - 77093643461234 [14:00:55]1041 (16) - 0000000000874718 [14:00:55]1040 (4) - 164610 [14:00:55]1012 (4) - 13.07.2024 07:39 [14:00:55]1206 (1) - 0 [14:00:55]OFD Sender: Remove packet 164610 [14:00:55]ProducePacketName [14:00:55]name=ofd_packets/00164610 [14:00:55]NVStorageDeleteData [14:00:55]Write to MH i2c: 01 00 00 D6 21 F7 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FB 0C 05 [14:00:55]RasterBufferAndPrint [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]written 0, free lines is 3329 [14:00:55]MH_Cut [14:00:55]Write to MH i2c: D1 01 00 DD 21 01 D0 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 01 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 01 00 DD 21 00 CF [14:00:55]Write to MH i2c: 01 00 00 DE 21 FF [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]OFD Sender: No OFD packet to send [14:00:56]*** Cut start [14:00:56]*** Partial cut [14:00:56]*** CUTSNS_PIN = 1 [14:00:56]*** CUTSNS_PIN = 0 [14:00:56]*** Brake cut motor [14:00:56]Read from MH i2c: 01 [14:00:56]MH_I2C_Read... [14:00:56]*** Stop cut motor [14:00:56]*** Cut end [14:00:56]Read from MH i2c: 01 07 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 FF 0F 14 [14:00:56]process_action close_receipt done [14:00:56]requested_data is exist [14:00:56]produce_requested_data [14:00:56]requested_item fm.sn is exist - process it [14:00:56]wFMCommunicate request_size=4 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 11 00 00 [14:00:56]Write to MH i2c: E2 08 00 DF 21 80 11 00 00 00 00 00 00 7A [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:56]Read from MH i2c: E2 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 17 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 17 00 DF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [14:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:00:56]wFMCommunicate OK [14:00:56]requested_item fd.num is exist - process it [14:00:56]SAM_PROTO_GetFieldsCounters [14:00:56]wFMCommunicate request_size=4 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 13 00 00 [14:00:56]Write to MH i2c: E2 08 00 E0 21 80 13 00 00 00 00 00 00 7D [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:56]Read from MH i2c: E2 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 62 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 62 00 E0 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 83 02 00 0E 04 04 00 BE 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 E8 [14:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 83 02 00 0E 04 04 00 BE 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 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_GetFieldsCounters done [14:00:57]requested_item shift.num is exist - process it [14:00:57]requested_item shift.opened is exist - process it [14:00:57]req_shift_opened [14:00:57]FM_GetShiftState [14:00:57]SAM_PROTO_GetShiftState [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 13 01 00 [14:00:57]Write to MH i2c: E2 08 00 E1 21 80 13 01 00 00 00 00 00 7F [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 E1 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 60 [14:00:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_GetShiftState done [14:00:57]FM_GetShiftState done [14:00:57]req_shift_opened done [14:00:57]requested_item shift.open_date is exist - process it [14:00:57]req_shift_open_date [14:00:57]req_shift_open_date done [14:00:57]produce_requested_data done [14:00:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164610,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:00:57]process_action_free close_receipt [14:00:57]json_value_free [14:00:57]json_value_free done [14:00:57]process_json_proto returns [14:00:57]Send response to host [14:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164610,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:00:57]free response buf [14:00:57]execute_script done [14:00:57]execute_script returns [14:00:57]free content buf [14:00:57]Sock 9.Close socket [14:00:57]Sock 9.Thread stoped [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:18]accept exits with 7 [14:02:18]New connection [14:02:18]New thread 3067149668 created [14:02:18]Thread 3067293028 joined [14:02:18]Waiting for new connection... [14:02:18] Sock 7.Parse request [14:02:18]Sock 7.Check first char [14:02:18]Sock 7.First char is OK [14:02:18]request: POST /json_proto HTTP/1.0 [14:02:18]Method: POST [14:02:18]URL: /json_proto [14:02:18]Method is POST - this is cgi request [14:02:18]url: /json_proto [14:02:18]query_string will be loaded in cgi processing [14:02:18]execute_cgi json_proto POST (null) [14:02:18]execute_cgi path=json_proto method=POST [14:02:18]POST find Content-Length [14:02:18]Host: 172.17.56.4:8080 [14:02:18]Content-Length: 677 [14:02:18]Content-Type: application/json [14:02:18] [14:02:18]POST finish read [14:02:18]Found Content-Length = 677 [14:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:18]execute_script... [14:02:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:18]POST & json_proto [14:02:18]process_json_proto [14:02:18]json parsed OK: [14:02:18]protocol is kg_v1.0 [14:02:18]action value=close_receipt [14:02:18]process_action close_receipt [14:02:18]cmd_close_receipt [14:02:18]MH_GetDate [14:02:18]Write to MH i2c: F0 00 00 E2 21 F2 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: F0 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: F0 09 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: F0 09 00 E2 21 00 EC 88 92 66 C9 DC B2 64 22 [14:02:18]GetLastDocTimeStamp 1720879255 [14:02:18]current date 1720879340 [14:02:18]FM_GetShiftState [14:02:18]SAM_PROTO_GetShiftState [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 13 01 00 [14:02:18]Write to MH i2c: E2 08 00 E3 21 80 13 01 00 00 00 00 00 81 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0E 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0E 00 E3 21 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 62 [14:02:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:02:18]wFMCommunicate OK [14:02:18]SAM_PROTO_GetShiftState done [14:02:18]FM_GetShiftState done [14:02:18]opened in 1720831249 [14:02:18]opened+sec_in_day 1720917649 [14:02:18]quantity*price = 13028 [14:02:18]sum+1 = 13029 [14:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 171 13.07.2024 14:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164611 ФПД: 112562747890293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164611&fm=112562747890293&tin=02508201610067®Number=0000000000090829&sum=13000 [14:02:19]StoreToDocumentArchive [14:02:19]shift 446 fd 164611 [14:02:19]save to /storage/0446/doc_00164611 [14:02:19]save last doc name /storage/0446/doc_00164611 to /storage/kkm_last_doc_name [14:02:19]save OK [14:02:19]Clear old archive folders... [14:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:19]tlvbuf is B6EFBBC0 [14:02:19]SAM_PROTO_ClearQueue [14:02:19]wFMCommunicate request_size=4 [14:02:19]MH_SAM_APDU [14:02:19]CAPDU: 80 09 00 00 [14:02:19]Write to MH i2c: E2 08 00 F0 21 80 09 00 00 00 00 00 00 83 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:19]Read from MH i2c: E2 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: E2 03 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [14:02:19]RAPDU: 90 00 [14:02:19]wFMCommunicate OK [14:02:19]SAM_PROTO_ClearQueue done [14:02:19]KKMCreateOFDPacket [14:02:19]OFDProtocolAddRootSTLVToBuf [14:02:19]FM_MakeSignedData [14:02:19]FM_MakeSignedData [14:02:19]SAM_PROTO_SignData [14:02:19]wFMCommunicate request_size=4 [14:02:19]MH_SAM_APDU [14:02:19]CAPDU: 80 0D 01 02 [14:02:19]Write to MH i2c: E2 08 00 F1 21 80 0D 01 02 00 00 00 00 8B [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [14:02:20]RAPDU: 90 00 [14:02:20]wFMCommunicate OK [14:02:20]wFMCommunicate request_size=255 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 83 02 00 35 04 06 00 66 [14:02:20]Write to MH i2c: E2 02 01 F2 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 83 02 00 35 04 06 00 66 00 00 D8 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [14:02:20]RAPDU: 90 00 [14:02:20]wFMCommunicate OK [14:02:20]wFMCommunicate request_size=10 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 0D 02 02 05 60 0E 9A 5A 75 [14:02:20]Write to MH i2c: E2 0D 00 F3 21 80 0D 02 02 05 00 60 0E 9A 5A 75 00 00 6F [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [14:02:20]RAPDU: 90 00 [14:02:20]wFMCommunicate OK [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 0D 03 02 [14:02:20]Write to MH i2c: E2 08 00 F4 21 80 0D 03 02 00 00 00 00 90 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 0B 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 0B 00 F4 21 00 F5 BA 81 B8 64 24 10 0C 90 00 1D [14:02:20]RAPDU: F5 BA 81 B8 64 24 10 0C 90 00 [14:02:20]wFMCommunicate OK [14:02:20]SAM_PROTO_SignData done [14:02:20]FM_MakeSignedData done [14:02:20]CreateOFDProtocolMessage [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 11 00 00 [14:02:20]Write to MH i2c: E2 08 00 F5 21 80 11 00 00 00 00 00 00 90 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 F5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [14:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:20]wFMCommunicate OK [14:02:20]CreateOFDProtocolMessage done [14:02:20]OFDSenderStorePacket 164611 [14:02:20]StoreOFDPacket docnum=164611 [14:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 DB 07 01 6D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 83 02 00 35 04 06 00 66 60 0E 9A 5A 75 F5 BA 81 B8 64 24 10 0C [14:02:20]CheckFolder [14:02:20]dirname=/storage/ofd_packets [14:02:20]CheckFolder done [14:02:20]ProducePacketName [14:02:20]name=ofd_packets/00164611 [14:02:20]NVStorageSaveData ofd_packets/00164611 [14:02:20]File name is /storage/ofd_packets/00164611 [14:02:20]Write 301 bytes [14:02:20]NVStorageSaveData done [14:02:20]OFDSenderStorePacket done [14:02:20]KKMCreateOFDPacket done [14:02:20]NVStorageSaveData kkm_last_timestamp [14:02:20]File name is /storage/kkm_last_timestamp [14:02:20]Write 4 bytes [14:02:20]NVStorageSaveData done [14:02:20]ExternCall_PrintAddStr [14:02:20]wPrintStart [14:02:20]Write to MH i2c: 01 00 00 F6 21 17 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 FF 0F 2C [14:02:20]RasterBufferAndPrint [14:02:20]line Счет N : (1)458703 [14:02:20]line ИНН: 02508201610067 [14:02:20]line Контрольно-Кассовый Чек [14:02:20]line ПРОДАЖА [14:02:20]line ТРК (МРК, ГНК) : 12 [14:02:20]line Товар: 2710124130 [14:02:20]line Аи-92-К-5 [14:02:20]line 1.980 * 65.80 [14:02:20]line = 130.28 [14:02:20]line НДС 12% НСП 1% [14:02:20]line > о реализуемом товаре [14:02:20]line ОКРУГЛЕНИЕ: -0.28 [14:02:20]line ИТОГО: 130.00 [14:02:20]line Внесено: 130.00 [14:02:20]line СДАЧА: 0.00 [14:02:20]line НСП 1% : 1.15 [14:02:20]line НДС 12% : 13.83 [14:02:20]line Наличными: 130.00 [14:02:20]line Безнал.: 0.00 [14:02:20]line Место: АЗС № 72 "Партнер Нефть" [14:02:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:02:20]line СНО: Общий режим [14:02:20]line Чек 171 13.07.2024 14:02 [14:02:20]line Смена: 446 ФФД: 1.0 [14:02:20]line ЗНМ: 0300000160 [14:02:20]line РНМ: 0000000000090829 [14:02:20]line Версия ККМ: 001 [14:02:20]line ФМ: 0000000000874718 [14:02:20]line ФД: 164611 [14:02:20]line ФПД: 112562747890293 [14:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164611&fm=112562747890293&tin=02508201610067®Number=0000000000090829&sum=13000 [14:02:20]written 0, free lines is 4095 [14:02:20]OFD Sender: Processing packet 164611 [packets to send 104, broken 103] [14:02:20]ProducePacketName [14:02:20]name=ofd_packets/00164611 [14:02:20]OFD Sender: To server: pG, [14:02:20]CommunicateWithHost lk.salyk.kg:30040 [14:02:20]ConnectInit lk.salyk.kg [14:02:20]Connected sock=10 [14:02:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 DB 07 01 6D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC 88 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 83 02 00 35 04 06 00 66 60 0E 9A 5A 75 F5 BA 81 B8 64 24 10 0C [14:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F1 A2 47 00 AC 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 34 37 31 38 10 04 04 00 03 83 02 00 F4 03 04 00 7D 2F 92 66 B6 04 01 00 00 57 C5 FF 79 8C 4D 14 E9 [14:02:21]CommunicateWithHost err = 0 [14:02:21]CheckOFDResponse [14:02:21]1017 (14) - 77093643461234 [14:02:21]1041 (16) - 0000000000874718 [14:02:21]1040 (4) - 164611 [14:02:21]1012 (4) - 13.07.2024 07:40 [14:02:21]1206 (1) - 0 [14:02:21]OFD Sender: Remove packet 164611 [14:02:21]ProducePacketName [14:02:21]name=ofd_packets/00164611 [14:02:21]NVStorageDeleteData [14:02:21]Write to MH i2c: 01 00 00 20 22 42 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 07 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 07 00 20 22 00 00 00 00 00 EB 0C 40 [14:02:21]RasterBufferAndPrint [14:02:21]line [14:02:21]line [14:02:21]line [14:02:21]line [14:02:21]line [14:02:21]written 0, free lines is 3313 [14:02:21]MH_Cut [14:02:21]Write to MH i2c: D1 01 00 27 22 01 1B [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: D1 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: D1 01 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: D1 01 00 27 22 00 1A [14:02:21]Write to MH i2c: 01 00 00 28 22 4A [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]OFD Sender: No OFD packet to send [14:02:21]*** Cut start [14:02:21]*** Partial cut [14:02:21]*** CUTSNS_PIN = 1 [14:02:21]*** CUTSNS_PIN = 0 [14:02:22]*** Brake cut motor [14:02:22]Read from MH i2c: 01 [14:02:22]MH_I2C_Read... [14:02:22]*** Stop cut motor [14:02:22]*** Cut end [14:02:22]Read from MH i2c: 01 07 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 FF 0F 5F [14:02:22]process_action close_receipt done [14:02:22]requested_data is exist [14:02:22]produce_requested_data [14:02:22]requested_item fm.sn is exist - process it [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 11 00 00 [14:02:22]Write to MH i2c: E2 08 00 29 22 80 11 00 00 00 00 00 00 C5 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:22]Read from MH i2c: E2 17 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 17 00 29 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [14:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:22]wFMCommunicate OK [14:02:22]requested_item fd.num is exist - process it [14:02:22]SAM_PROTO_GetFieldsCounters [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 13 00 00 [14:02:22]Write to MH i2c: E2 08 00 2A 22 80 13 00 00 00 00 00 00 C8 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 62 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 62 00 2A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 83 02 00 0E 04 04 00 BE 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 37 [14:02:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 83 02 00 0E 04 04 00 BE 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 [14:02:22]wFMCommunicate OK [14:02:22]SAM_PROTO_GetFieldsCounters done [14:02:22]requested_item shift.num is exist - process it [14:02:22]requested_item shift.opened is exist - process it [14:02:22]req_shift_opened [14:02:22]FM_GetShiftState [14:02:22]SAM_PROTO_GetShiftState [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 13 01 00 [14:02:22]Write to MH i2c: E2 08 00 2B 22 80 13 01 00 00 00 00 00 CA [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 0E 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 0E 00 2B 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AB [14:02:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:02:22]wFMCommunicate OK [14:02:22]SAM_PROTO_GetShiftState done [14:02:22]FM_GetShiftState done [14:02:22]req_shift_opened done [14:02:22]requested_item shift.open_date is exist - process it [14:02:22]req_shift_open_date [14:02:22]req_shift_open_date done [14:02:22]produce_requested_data done [14:02:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164611,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:02:22]process_action_free close_receipt [14:02:22]json_value_free [14:02:22]json_value_free done [14:02:22]process_json_proto returns [14:02:22]Send response to host [14:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164611,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:02:22]free response buf [14:02:22]execute_script done [14:02:22]execute_script returns [14:02:22]free content buf [14:02:22]Sock 7.Close socket [14:02:22]Sock 7.Thread stoped [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:03]accept exits with 9 [14:03:03]New connection [14:03:03]New thread 3067293028 created [14:03:03]Thread 3067149668 joined [14:03:03]Waiting for new connection... [14:03:03] Sock 9.Parse request [14:03:03]Sock 9.Check first char [14:03:03]Sock 9.First char is OK [14:03:03]request: POST /json_proto HTTP/1.0 [14:03:03]Method: POST [14:03:03]URL: /json_proto [14:03:03]Method is POST - this is cgi request [14:03:03]url: /json_proto [14:03:03]query_string will be loaded in cgi processing [14:03:03]execute_cgi json_proto POST (null) [14:03:03]execute_cgi path=json_proto method=POST [14:03:03]POST find Content-Length [14:03:03]Host: 172.17.56.4:8080 [14:03:03]Content-Length: 677 [14:03:03]Content-Type: application/json [14:03:03] [14:03:03]POST finish read [14:03:03]Found Content-Length = 677 [14:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:03]execute_script... [14:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.410, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:03]POST & json_proto [14:03:03]process_json_proto [14:03:03]json parsed OK: [14:03:03]protocol is kg_v1.0 [14:03:03]action value=close_receipt [14:03:03]process_action close_receipt [14:03:03]cmd_close_receipt [14:03:03]MH_GetDate [14:03:03]Write to MH i2c: F0 00 00 2C 22 3D [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 2C 22 00 19 89 92 66 C9 DC B2 64 9B [14:03:03]GetLastDocTimeStamp 1720879340 [14:03:03]current date 1720879385 [14:03:03]FM_GetShiftState [14:03:03]SAM_PROTO_GetShiftState [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 13 01 00 [14:03:03]Write to MH i2c: E2 08 00 2D 22 80 13 01 00 00 00 00 00 CC [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 2D 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AD [14:03:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_GetShiftState done [14:03:03]FM_GetShiftState done [14:03:03]opened in 1720831249 [14:03:03]opened+sec_in_day 1720917649 [14:03:03]quantity*price = 29017 [14:03:03]sum+1 = 29019 [14:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 172 13.07.2024 14:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164612 ФПД: 8609014167621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164612&fm=8609014167621&tin=02508201610067®Number=0000000000090829&sum=29000 [14:03:04]StoreToDocumentArchive [14:03:04]shift 446 fd 164612 [14:03:04]save to /storage/0446/doc_00164612 [14:03:04]save last doc name /storage/0446/doc_00164612 to /storage/kkm_last_doc_name [14:03:04]save OK [14:03:04]Clear old archive folders... [14:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:04]tlvbuf is 014DD540 [14:03:04]SAM_PROTO_ClearQueue [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 09 00 00 [14:03:04]Write to MH i2c: E2 08 00 3A 22 80 09 00 00 00 00 00 00 CE [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_ClearQueue done [14:03:04]KKMCreateOFDPacket [14:03:04]OFDProtocolAddRootSTLVToBuf [14:03:04]FM_MakeSignedData [14:03:04]FM_MakeSignedData [14:03:04]SAM_PROTO_SignData [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 01 02 [14:03:04]Write to MH i2c: E2 08 00 3B 22 80 0D 01 02 00 00 00 00 D6 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=255 [14:03:04]MH_SAM_APDU [14:03: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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 19 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 83 02 00 35 04 06 00 07 [14:03:04]Write to MH i2c: E2 02 01 3C 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 19 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 83 02 00 35 04 06 00 07 00 00 E8 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=10 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 02 02 05 D4 71 3B 38 45 [14:03:04]Write to MH i2c: E2 0D 00 3D 22 80 0D 02 02 05 00 D4 71 3B 38 45 00 00 E0 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [14:03:04]RAPDU: 90 00 [14:03:04]wFMCommunicate OK [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 0D 03 02 [14:03:04]Write to MH i2c: E2 08 00 3E 22 80 0D 03 02 00 00 00 00 DB [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0B 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 0B 00 3E 22 00 0F 92 A4 7F AD ED 13 18 90 00 65 [14:03:04]RAPDU: 0F 92 A4 7F AD ED 13 18 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_SignData done [14:03:04]FM_MakeSignedData done [14:03:04]CreateOFDProtocolMessage [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 11 00 00 [14:03:04]Write to MH i2c: E2 08 00 3F 22 80 11 00 00 00 00 00 00 DB [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 3F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [14:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:03:04]wFMCommunicate OK [14:03:04]CreateOFDProtocolMessage done [14:03:04]OFDSenderStorePacket 164612 [14:03:04]StoreOFDPacket docnum=164612 [14:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 0C 07 01 70 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 19 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 83 02 00 35 04 06 00 07 D4 71 3B 38 45 0F 92 A4 7F AD ED 13 18 [14:03:04]CheckFolder [14:03:04]dirname=/storage/ofd_packets [14:03:04]CheckFolder done [14:03:04]ProducePacketName [14:03:04]name=ofd_packets/00164612 [14:03:04]NVStorageSaveData ofd_packets/00164612 [14:03:04]File name is /storage/ofd_packets/00164612 [14:03:04]Write 301 bytes [14:03:04]NVStorageSaveData done [14:03:04]OFDSenderStorePacket done [14:03:04]KKMCreateOFDPacket done [14:03:04]NVStorageSaveData kkm_last_timestamp [14:03:04]File name is /storage/kkm_last_timestamp [14:03:04]Write 4 bytes [14:03:04]NVStorageSaveData done [14:03:04]ExternCall_PrintAddStr [14:03:04]wPrintStart [14:03:04]Write to MH i2c: 01 00 00 40 22 62 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 40 22 00 00 00 00 00 FF 0F 77 [14:03:04]RasterBufferAndPrint [14:03:04]line Счет N : (1)458704 [14:03:04]line ИНН: 02508201610067 [14:03:04]line Контрольно-Кассовый Чек [14:03:04]line ПРОДАЖА [14:03:04]line ТРК (МРК, ГНК) : 22 [14:03:04]line Товар: 2710124130 [14:03:04]line Аи-92-К-5 [14:03:04]line 4.410 * 65.80 [14:03:04]line = 290.18 [14:03:04]line НДС 12% НСП 1% [14:03:04]line > о реализуемом товаре [14:03:04]line ОКРУГЛЕНИЕ: -0.18 [14:03:04]line ИТОГО: 290.00 [14:03:04]line Внесено: 290.00 [14:03:04]line СДАЧА: 0.00 [14:03:04]line НСП 1% : 2.57 [14:03:04]line НДС 12% : 30.82 [14:03:04]line Наличными: 290.00 [14:03:04]line Безнал.: 0.00 [14:03:04]line Место: АЗС № 72 "Партнер Нефть" [14:03:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:03:04]line СНО: Общий режим [14:03:04]line Чек 172 13.07.2024 14:03 [14:03:04]line Смена: 446 ФФД: 1.0 [14:03:04]line ЗНМ: 0300000160 [14:03:04]line РНМ: 0000000000090829 [14:03:04]line Версия ККМ: 001 [14:03:04]line ФМ: 0000000000874718 [14:03:04]line ФД: 164612 [14:03:04]line ФПД: 8609014167621 [14:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164612&fm=8609014167621&tin=02508201610067®Number=0000000000090829&sum=29000 [14:03:04]written 0, free lines is 4095 [14:03:05]OFD Sender: Processing packet 164612 [packets to send 104, broken 103] [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00164612 [14:03:05]OFD Sender: To server: pG, [14:03:05]CommunicateWithHost lk.salyk.kg:30040 [14:03:05]ConnectInit lk.salyk.kg [14:03:05]Connected sock=10 [14:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 0C 07 01 70 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 3A 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 19 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 83 02 00 35 04 06 00 07 D4 71 3B 38 45 0F 92 A4 7F AD ED 13 18 [14:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 42 47 00 7F AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 83 02 00 F4 03 04 00 A9 2F 92 66 B6 04 01 00 00 EF D0 30 84 50 A3 86 BB [14:03:05]CommunicateWithHost err = 0 [14:03:05]CheckOFDResponse [14:03:05]1017 (14) - 77093643461234 [14:03:05]1041 (16) - 0000000000874718 [14:03:05]1040 (4) - 164612 [14:03:05]1012 (4) - 13.07.2024 07:41 [14:03:05]1206 (1) - 0 [14:03:05]OFD Sender: Remove packet 164612 [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00164612 [14:03:05]NVStorageDeleteData [14:03:05]Write to MH i2c: 01 00 00 6A 22 8C [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 6A 22 00 00 00 00 00 06 0D A6 [14:03:05]RasterBufferAndPrint [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]line [14:03:05]written 0, free lines is 3340 [14:03:05]MH_Cut [14:03:05]Write to MH i2c: D1 01 00 71 22 01 65 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: D1 01 00 71 22 00 64 [14:03:05]Write to MH i2c: 01 00 00 72 22 94 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]OFD Sender: No OFD packet to send [14:03:06]*** Cut start [14:03:06]*** Partial cut [14:03:06]*** CUTSNS_PIN = 1 [14:03:06]*** CUTSNS_PIN = 0 [14:03:06]*** Brake cut motor [14:03:06]Read from MH i2c: 01 [14:03:06]MH_I2C_Read... [14:03:06]*** Stop cut motor [14:03:06]*** Cut end [14:03:06]Read from MH i2c: 01 07 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 72 22 00 00 00 00 00 FF 0F A9 [14:03:06]process_action close_receipt done [14:03:06]requested_data is exist [14:03:06]produce_requested_data [14:03:06]requested_item fm.sn is exist - process it [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 11 00 00 [14:03:06]Write to MH i2c: E2 08 00 73 22 80 11 00 00 00 00 00 00 0F [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 73 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [14:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:03:06]wFMCommunicate OK [14:03:06]requested_item fd.num is exist - process it [14:03:06]SAM_PROTO_GetFieldsCounters [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 00 00 [14:03:06]Write to MH i2c: E2 08 00 74 22 80 13 00 00 00 00 00 00 12 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 62 00 74 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 83 02 00 0E 04 04 00 BE 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 85 [14:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 83 02 00 0E 04 04 00 BE 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 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetFieldsCounters done [14:03:06]requested_item shift.num is exist - process it [14:03:06]requested_item shift.opened is exist - process it [14:03:06]req_shift_opened [14:03:06]FM_GetShiftState [14:03:06]SAM_PROTO_GetShiftState [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 01 00 [14:03:06]Write to MH i2c: E2 08 00 75 22 80 13 01 00 00 00 00 00 14 [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 75 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F5 [14:03:06]RAPDU: 09 00 01 11 CD 91 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]req_shift_opened done [14:03:06]requested_item shift.open_date is exist - process it [14:03:06]req_shift_open_date [14:03:06]req_shift_open_date done [14:03:06]produce_requested_data done [14:03:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164612,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:03:06]process_action_free close_receipt [14:03:06]json_value_free [14:03:06]json_value_free done [14:03:06]process_json_proto returns [14:03:06]Send response to host [14:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164612,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:03:06]free response buf [14:03:06]execute_script done [14:03:06]execute_script returns [14:03:06]free content buf [14:03:06]Sock 9.Close socket [14:03:06]Sock 9.Thread stoped [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]accept exits with 7 [14:05:40]New connection [14:05:40]New thread 3067149668 created [14:05:40]Thread 3067293028 joined [14:05:40]Waiting for new connection... [14:05:40] Sock 7.Parse request [14:05:40]Sock 7.Check first char [14:05:40]Sock 7.First char is OK [14:05:40]request: POST /json_proto HTTP/1.0 [14:05:40]Method: POST [14:05:40]URL: /json_proto [14:05:40]Method is POST - this is cgi request [14:05:40]url: /json_proto [14:05:40]query_string will be loaded in cgi processing [14:05:40]execute_cgi json_proto POST (null) [14:05:40]execute_cgi path=json_proto method=POST [14:05:40]POST find Content-Length [14:05:40]Host: 172.17.56.4:8080 [14:05:40]Content-Length: 677 [14:05:40]Content-Type: application/json [14:05:40] [14:05:40]POST finish read [14:05:40]Found Content-Length = 677 [14:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.730, "sum" : 640.23, "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:05:40]execute_script... [14:05: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)458705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.730, "sum" : 640.23, "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:05:40]POST & json_proto [14:05:40]process_json_proto [14:05:40]json parsed OK: [14:05:40]protocol is kg_v1.0 [14:05:40]action value=close_receipt [14:05:40]process_action close_receipt [14:05:40]cmd_close_receipt [14:05:40]MH_GetDate [14:05:40]Write to MH i2c: F0 00 00 76 22 87 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 76 22 00 B6 89 92 66 C9 DC B2 64 82 [14:05:40]GetLastDocTimeStamp 1720879385 [14:05:40]current date 1720879542 [14:05:40]FM_GetShiftState [14:05:40]SAM_PROTO_GetShiftState [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 01 00 [14:05:40]Write to MH i2c: E2 08 00 77 22 80 13 01 00 00 00 00 00 16 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 77 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F7 [14:05:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetShiftState done [14:05:40]FM_GetShiftState done [14:05:40]opened in 1720831249 [14:05:40]opened+sec_in_day 1720917649 [14:05:40]quantity*price = 64023 [14:05:40]sum+1 = 64024 [14:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 173 13.07.2024 14:05 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164613 ФПД: 13978514681719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140542&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164613&fm=13978514681719&tin=02508201610067®Number=0000000000090829&sum=64000 [14:05:41]StoreToDocumentArchive [14:05:41]shift 446 fd 164613 [14:05:41]save to /storage/0446/doc_00164613 [14:05:41]save last doc name /storage/0446/doc_00164613 to /storage/kkm_last_doc_name [14:05:41]save OK [14:05:41]Clear old archive folders... [14:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:41]tlvbuf is B6EFBD00 [14:05:41]SAM_PROTO_ClearQueue [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 09 00 00 [14:05:41]Write to MH i2c: E2 08 00 84 22 80 09 00 00 00 00 00 00 18 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 84 22 00 90 00 1A [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_ClearQueue done [14:05:41]KKMCreateOFDPacket [14:05:41]OFDProtocolAddRootSTLVToBuf [14:05:41]FM_MakeSignedData [14:05:41]FM_MakeSignedData [14:05:41]SAM_PROTO_SignData [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 01 02 [14:05:41]Write to MH i2c: E2 08 00 85 22 80 0D 01 02 00 00 00 00 20 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=255 [14:05:41]MH_SAM_APDU [14:05: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 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 AD 00 00 00 F4 03 04 00 B6 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 83 02 00 35 04 06 00 0C [14:05:41]Write to MH i2c: E2 02 01 86 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 AD 00 00 00 F4 03 04 00 B6 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 83 02 00 35 04 06 00 0C 00 00 45 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=10 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 02 02 05 B6 A0 66 EF 77 [14:05:41]Write to MH i2c: E2 0D 00 87 22 80 0D 02 02 05 00 B6 A0 66 EF 77 00 00 4F [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [14:05:41]RAPDU: 90 00 [14:05:41]wFMCommunicate OK [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 0D 03 02 [14:05:41]Write to MH i2c: E2 08 00 88 22 80 0D 03 02 00 00 00 00 25 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:41]Read from MH i2c: E2 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0B 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: E2 0B 00 88 22 00 A7 A4 40 D6 25 3D 20 EA 90 00 F3 [14:05:41]RAPDU: A7 A4 40 D6 25 3D 20 EA 90 00 [14:05:41]wFMCommunicate OK [14:05:41]SAM_PROTO_SignData done [14:05:41]FM_MakeSignedData done [14:05:41]CreateOFDProtocolMessage [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 11 00 00 [14:05:42]Write to MH i2c: E2 08 00 89 22 80 11 00 00 00 00 00 00 25 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 89 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [14:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:42]wFMCommunicate OK [14:05:42]CreateOFDProtocolMessage done [14:05:42]OFDSenderStorePacket 164613 [14:05:42]StoreOFDPacket docnum=164613 [14:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2A 3B 07 01 D8 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 AD 00 00 00 F4 03 04 00 B6 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 83 02 00 35 04 06 00 0C B6 A0 66 EF 77 A7 A4 40 D6 25 3D 20 EA [14:05:42]CheckFolder [14:05:42]dirname=/storage/ofd_packets [14:05:42]CheckFolder done [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00164613 [14:05:42]NVStorageSaveData ofd_packets/00164613 [14:05:42]File name is /storage/ofd_packets/00164613 [14:05:42]Write 301 bytes [14:05:42]NVStorageSaveData done [14:05:42]OFDSenderStorePacket done [14:05:42]KKMCreateOFDPacket done [14:05:42]NVStorageSaveData kkm_last_timestamp [14:05:42]File name is /storage/kkm_last_timestamp [14:05:42]Write 4 bytes [14:05:42]NVStorageSaveData done [14:05:42]ExternCall_PrintAddStr [14:05:42]wPrintStart [14:05:42]Write to MH i2c: 01 00 00 8A 22 AC [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 8A 22 00 00 00 00 00 FF 0F C1 [14:05:42]RasterBufferAndPrint [14:05:42]line Счет N : (1)458705 [14:05:42]line ИНН: 02508201610067 [14:05:42]line Контрольно-Кассовый Чек [14:05:42]line ПРОДАЖА [14:05:42]line ТРК (МРК, ГНК) : 22 [14:05:42]line Товар: 2710124130 [14:05:42]line Аи-92-К-5 [14:05:42]line 9.730 * 65.80 [14:05:42]line = 640.23 [14:05:42]line НДС 12% НСП 1% [14:05:42]line > о реализуемом товаре [14:05:42]line ОКРУГЛЕНИЕ: -0.23 [14:05:42]line ИТОГО: 640.00 [14:05:42]line Внесено: 640.00 [14:05:42]line СДАЧА: 0.00 [14:05:42]line НСП 1% : 5.67 [14:05:42]line НДС 12% : 67.99 [14:05:42]line Наличными: 640.00 [14:05:42]line Безнал.: 0.00 [14:05:42]line Место: АЗС № 72 "Партнер Нефть" [14:05:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:05:42]line СНО: Общий режим [14:05:42]line Чек 173 13.07.2024 14:05 [14:05:42]line Смена: 446 ФФД: 1.0 [14:05:42]line ЗНМ: 0300000160 [14:05:42]line РНМ: 0000000000090829 [14:05:42]line Версия ККМ: 001 [14:05:42]line ФМ: 0000000000874718 [14:05:42]line ФД: 164613 [14:05:42]line ФПД: 13978514681719 [14:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140542&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164613&fm=13978514681719&tin=02508201610067®Number=0000000000090829&sum=64000 [14:05:42]OFD Sender: Processing packet 164613 [packets to send 104, broken 103] [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00164613 [14:05:42]OFD Sender: To server: pG, [14:05:42]CommunicateWithHost lk.salyk.kg:30040 [14:05:42]ConnectInit lk.salyk.kg [14:05:42]written 0, free lines is 4095 [14:05:42]Connected sock=10 [14:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2A 3B 07 01 D8 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 17 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 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 AD 00 00 00 F4 03 04 00 B6 89 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 83 02 00 35 04 06 00 0C B6 A0 66 EF 77 A7 A4 40 D6 25 3D 20 EA [14:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 9A 47 00 DF 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 83 02 00 F4 03 04 00 47 30 92 66 B6 04 01 00 00 F4 69 A8 FC 82 80 59 6A [14:05:42]CommunicateWithHost err = 0 [14:05:42]CheckOFDResponse [14:05:42]1017 (14) - 77093643461234 [14:05:42]1041 (16) - 0000000000874718 [14:05:42]1040 (4) - 164613 [14:05:42]1012 (4) - 13.07.2024 07:44 [14:05:42]1206 (1) - 0 [14:05:42]OFD Sender: Remove packet 164613 [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00164613 [14:05:42]NVStorageDeleteData [14:05:42]Write to MH i2c: 01 00 00 B4 22 D6 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 05 0D EF [14:05:42]RasterBufferAndPrint [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]written 0, free lines is 3340 [14:05:42]MH_Cut [14:05:42]Write to MH i2c: D1 01 00 BB 22 01 AF [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 BB 22 00 AE [14:05:42]Write to MH i2c: 01 00 00 BC 22 DE [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:43]OFD Sender: No OFD packet to send [14:05:43]*** Cut start [14:05:43]*** Partial cut [14:05:43]*** CUTSNS_PIN = 1 [14:05:43]*** CUTSNS_PIN = 0 [14:05:43]*** Brake cut motor [14:05:44]Read from MH i2c: 01 [14:05:44]MH_I2C_Read... [14:05:44]*** Stop cut motor [14:05:44]*** Cut end [14:05:44]Read from MH i2c: 01 07 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 BC 22 00 00 00 00 00 FF 0F F3 [14:05:44]process_action close_receipt done [14:05:44]requested_data is exist [14:05:44]produce_requested_data [14:05:44]requested_item fm.sn is exist - process it [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 11 00 00 [14:05:44]Write to MH i2c: E2 08 00 BD 22 80 11 00 00 00 00 00 00 59 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 BD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [14:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:44]wFMCommunicate OK [14:05:44]requested_item fd.num is exist - process it [14:05:44]SAM_PROTO_GetFieldsCounters [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 13 00 00 [14:05:44]Write to MH i2c: E2 08 00 BE 22 80 13 00 00 00 00 00 00 5C [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 62 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 62 00 BE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 83 02 00 0E 04 04 00 BE 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 D3 [14:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 83 02 00 0E 04 04 00 BE 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 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_GetFieldsCounters done [14:05:44]requested_item shift.num is exist - process it [14:05:44]requested_item shift.opened is exist - process it [14:05:44]req_shift_opened [14:05:44]FM_GetShiftState [14:05:44]SAM_PROTO_GetShiftState [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 13 01 00 [14:05:44]Write to MH i2c: E2 08 00 BF 22 80 13 01 00 00 00 00 00 5E [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 BF 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3F [14:05:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_GetShiftState done [14:05:44]FM_GetShiftState done [14:05:44]req_shift_opened done [14:05:44]requested_item shift.open_date is exist - process it [14:05:44]req_shift_open_date [14:05:44]req_shift_open_date done [14:05:44]produce_requested_data done [14:05:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164613,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:05:44]process_action_free close_receipt [14:05:44]json_value_free [14:05:44]json_value_free done [14:05:44]process_json_proto returns [14:05:44]Send response to host [14:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164613,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:05:44]free response buf [14:05:44]execute_script done [14:05:44]execute_script returns [14:05:44]free content buf [14:05:44]Sock 7.Close socket [14:05:44]Sock 7.Thread stoped [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:25]accept exits with 9 [14:09:25]New connection [14:09:25]New thread 3067293028 created [14:09:25]Thread 3067149668 joined [14:09:25]Waiting for new connection... [14:09:25] Sock 9.Parse request [14:09:25]Sock 9.Check first char [14:09:25]Sock 9.First char is OK [14:09:25]request: POST /json_proto HTTP/1.0 [14:09:25]Method: POST [14:09:25]URL: /json_proto [14:09:25]Method is POST - this is cgi request [14:09:25]url: /json_proto [14:09:25]query_string will be loaded in cgi processing [14:09:25]execute_cgi json_proto POST (null) [14:09:25]execute_cgi path=json_proto method=POST [14:09:25]POST find Content-Length [14:09:25]Host: 172.17.56.4:8080 [14:09:25]Content-Length: 677 [14:09:25]Content-Type: application/json [14:09:25] [14:09:25]POST finish read [14:09:25]Found Content-Length = 677 [14:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:25]execute_script... [14:09: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)458706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:25]POST & json_proto [14:09:25]process_json_proto [14:09:25]json parsed OK: [14:09:25]protocol is kg_v1.0 [14:09:25]action value=close_receipt [14:09:25]process_action close_receipt [14:09:25]cmd_close_receipt [14:09:25]MH_GetDate [14:09:25]Write to MH i2c: F0 00 00 C0 22 D1 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: F0 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: F0 09 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: F0 09 00 C0 22 00 97 8A 92 66 C9 DC B2 64 AE [14:09:25]GetLastDocTimeStamp 1720879542 [14:09:25]current date 1720879767 [14:09:25]FM_GetShiftState [14:09:25]SAM_PROTO_GetShiftState [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 13 01 00 [14:09:25]Write to MH i2c: E2 08 00 C1 22 80 13 01 00 00 00 00 00 60 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0E 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0E 00 C1 22 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 41 [14:09:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:09:25]wFMCommunicate OK [14:09:25]SAM_PROTO_GetShiftState done [14:09:25]FM_GetShiftState done [14:09:25]opened in 1720831249 [14:09:25]opened+sec_in_day 1720917649 [14:09:25]quantity*price = 30004 [14:09:25]sum+1 = 30006 [14:09:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 174 13.07.2024 14:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164614 ФПД: 52277662217221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164614&fm=52277662217221&tin=02508201610067®Number=0000000000090829&sum=30000 [14:09:26]StoreToDocumentArchive [14:09:26]shift 446 fd 164614 [14:09:26]save to /storage/0446/doc_00164614 [14:09:26]save last doc name /storage/0446/doc_00164614 to /storage/kkm_last_doc_name [14:09:26]save OK [14:09:26]Clear old archive folders... [14:09:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:26]tlvbuf is B6F14BF0 [14:09:26]SAM_PROTO_ClearQueue [14:09:26]wFMCommunicate request_size=4 [14:09:26]MH_SAM_APDU [14:09:26]CAPDU: 80 09 00 00 [14:09:26]Write to MH i2c: E2 08 00 CE 22 80 09 00 00 00 00 00 00 62 [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:26]Read from MH i2c: E2 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [14:09:26]RAPDU: 90 00 [14:09:26]wFMCommunicate OK [14:09:26]SAM_PROTO_ClearQueue done [14:09:26]KKMCreateOFDPacket [14:09:26]OFDProtocolAddRootSTLVToBuf [14:09:26]FM_MakeSignedData [14:09:26]FM_MakeSignedData [14:09:26]SAM_PROTO_SignData [14:09:26]wFMCommunicate request_size=4 [14:09:26]MH_SAM_APDU [14:09:26]CAPDU: 80 0D 01 02 [14:09:26]Write to MH i2c: E2 08 00 CF 22 80 0D 01 02 00 00 00 00 6A [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:26]Read from MH i2c: E2 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [14:09:26]RAPDU: 90 00 [14:09:26]wFMCommunicate OK [14:09:26]wFMCommunicate request_size=255 [14:09:26]MH_SAM_APDU [14:09: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AE 00 00 00 F4 03 04 00 97 8A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 83 02 00 35 04 06 00 2F [14:09:26]Write to MH i2c: E2 02 01 D0 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AE 00 00 00 F4 03 04 00 97 8A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 83 02 00 35 04 06 00 2F 00 00 E4 [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:26]Read from MH i2c: E2 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [14:09:26]RAPDU: 90 00 [14:09:26]wFMCommunicate OK [14:09:26]wFMCommunicate request_size=10 [14:09:26]MH_SAM_APDU [14:09:26]CAPDU: 80 0D 02 02 05 8B D7 7C 74 05 [14:09:26]Write to MH i2c: E2 0D 00 D1 22 80 0D 02 02 05 00 8B D7 7C 74 05 00 00 CE [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:27]Read from MH i2c: E2 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 03 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [14:09:27]RAPDU: 90 00 [14:09:27]wFMCommunicate OK [14:09:27]wFMCommunicate request_size=4 [14:09:27]MH_SAM_APDU [14:09:27]CAPDU: 80 0D 03 02 [14:09:27]Write to MH i2c: E2 08 00 D2 22 80 0D 03 02 00 00 00 00 6F [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:27]Read from MH i2c: E2 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 0B 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 0B 00 D2 22 00 E1 D5 9D C4 2D 41 F7 93 90 00 7F [14:09:27]RAPDU: E1 D5 9D C4 2D 41 F7 93 90 00 [14:09:27]wFMCommunicate OK [14:09:27]SAM_PROTO_SignData done [14:09:27]FM_MakeSignedData done [14:09:27]CreateOFDProtocolMessage [14:09:27]wFMCommunicate request_size=4 [14:09:27]MH_SAM_APDU [14:09:27]CAPDU: 80 11 00 00 [14:09:27]Write to MH i2c: E2 08 00 D3 22 80 11 00 00 00 00 00 00 6F [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:27]Read from MH i2c: E2 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 17 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: E2 17 00 D3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [14:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:09:27]wFMCommunicate OK [14:09:27]CreateOFDProtocolMessage done [14:09:27]OFDSenderStorePacket 164614 [14:09:27]StoreOFDPacket docnum=164614 [14:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A AB 07 01 16 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AE 00 00 00 F4 03 04 00 97 8A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 83 02 00 35 04 06 00 2F 8B D7 7C 74 05 E1 D5 9D C4 2D 41 F7 93 [14:09:27]CheckFolder [14:09:27]dirname=/storage/ofd_packets [14:09:27]CheckFolder done [14:09:27]ProducePacketName [14:09:27]name=ofd_packets/00164614 [14:09:27]NVStorageSaveData ofd_packets/00164614 [14:09:27]File name is /storage/ofd_packets/00164614 [14:09:27]Write 301 bytes [14:09:27]NVStorageSaveData done [14:09:27]OFDSenderStorePacket done [14:09:27]KKMCreateOFDPacket done [14:09:27]NVStorageSaveData kkm_last_timestamp [14:09:27]File name is /storage/kkm_last_timestamp [14:09:27]Write 4 bytes [14:09:27]NVStorageSaveData done [14:09:27]ExternCall_PrintAddStr [14:09:27]wPrintStart [14:09:27]Write to MH i2c: 01 00 00 D4 22 F6 [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 07 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 07 00 D4 22 00 00 00 00 00 FF 0F 0B [14:09:27]RasterBufferAndPrint [14:09:27]line Счет N : (1)458706 [14:09:27]line ИНН: 02508201610067 [14:09:27]line Контрольно-Кассовый Чек [14:09:27]line ПРОДАЖА [14:09:27]line ТРК (МРК, ГНК) : 12 [14:09:27]line Товар: 2710124130 [14:09:27]line Аи-92-К-5 [14:09:27]line 4.560 * 65.80 [14:09:27]line = 300.05 [14:09:27]line НДС 12% НСП 1% [14:09:27]line > о реализуемом товаре [14:09:27]line ОКРУГЛЕНИЕ: -0.05 [14:09:27]line ИТОГО: 300.00 [14:09:27]line Внесено: 300.00 [14:09:27]line СДАЧА: 0.00 [14:09:27]line НСП 1% : 2.65 [14:09:27]line НДС 12% : 31.86 [14:09:27]line Наличными: 300.00 [14:09:27]line Безнал.: 0.00 [14:09:27]line Место: АЗС № 72 "Партнер Нефть" [14:09:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:09:27]line СНО: Общий режим [14:09:27]line Чек 174 13.07.2024 14:09 [14:09:27]line Смена: 446 ФФД: 1.0 [14:09:27]line ЗНМ: 0300000160 [14:09:27]line РНМ: 0000000000090829 [14:09:27]line Версия ККМ: 001 [14:09:27]line ФМ: 0000000000874718 [14:09:27]line ФД: 164614 [14:09:27]line ФПД: 52277662217221 [14:09:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164614&fm=52277662217221&tin=02508201610067®Number=0000000000090829&sum=30000 [14:09:27]OFD Sender: Processing packet 164614 [packets to send 104, broken 103] [14:09:27]ProducePacketName [14:09:27]name=ofd_packets/00164614 [14:09:27]OFD Sender: To server: pG, [14:09:27]CommunicateWithHost lk.salyk.kg:30040 [14:09:27]ConnectInit lk.salyk.kg [14:09:27]written 0, free lines is 4095 [14:09:27]Connected sock=7 [14:09:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A AB 07 01 16 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 AE 00 00 00 F4 03 04 00 97 8A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 83 02 00 35 04 06 00 2F 8B D7 7C 74 05 E1 D5 9D C4 2D 41 F7 93 [14:09:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED 03 47 00 94 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 34 37 31 38 10 04 04 00 06 83 02 00 F4 03 04 00 28 31 92 66 B6 04 01 00 00 85 BC 62 4D B2 29 C7 2E [14:09:27]CommunicateWithHost err = 0 [14:09:27]CheckOFDResponse [14:09:27]1017 (14) - 77093643461234 [14:09:27]1041 (16) - 0000000000874718 [14:09:27]1040 (4) - 164614 [14:09:27]1012 (4) - 13.07.2024 07:47 [14:09:27]1206 (1) - 0 [14:09:27]OFD Sender: Remove packet 164614 [14:09:27]ProducePacketName [14:09:27]name=ofd_packets/00164614 [14:09:27]NVStorageDeleteData [14:09:27]Write to MH i2c: 01 00 00 FE 22 20 [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 07 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 EF 0C 22 [14:09:27]RasterBufferAndPrint [14:09:27]line [14:09:27]line [14:09:27]line [14:09:27]line [14:09:27]line [14:09:27]written 0, free lines is 3317 [14:09:27]MH_Cut [14:09:27]Write to MH i2c: D1 01 00 05 23 01 FA [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: D1 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: D1 01 00 [14:09:27]MH_I2C_Read... [14:09:27]Read from MH i2c: D1 01 00 05 23 00 F9 [14:09:27]Write to MH i2c: 01 00 00 06 23 29 [14:09:27]Write i2c OK [14:09:27]MH_I2C_Read... [14:09:28]OFD Sender: No OFD packet to send [14:09:28]*** Cut start [14:09:28]*** Partial cut [14:09:28]*** CUTSNS_PIN = 1 [14:09:28]*** CUTSNS_PIN = 0 [14:09:28]*** Brake cut motor [14:09:29]Read from MH i2c: 01 [14:09:29]MH_I2C_Read... [14:09:29]*** Stop cut motor [14:09:29]*** Cut end [14:09:29]Read from MH i2c: 01 07 00 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 FF 0F 3E [14:09:29]process_action close_receipt done [14:09:29]requested_data is exist [14:09:29]produce_requested_data [14:09:29]requested_item fm.sn is exist - process it [14:09:29]wFMCommunicate request_size=4 [14:09:29]MH_SAM_APDU [14:09:29]CAPDU: 80 11 00 00 [14:09:29]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [14:09:29]Write i2c OK [14:09:29]MH_I2C_Read... [14:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:29]Read from MH i2c: E2 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 17 00 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [14:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:09:29]wFMCommunicate OK [14:09:29]requested_item fd.num is exist - process it [14:09:29]SAM_PROTO_GetFieldsCounters [14:09:29]wFMCommunicate request_size=4 [14:09:29]MH_SAM_APDU [14:09:29]CAPDU: 80 13 00 00 [14:09:29]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [14:09:29]Write i2c OK [14:09:29]MH_I2C_Read... [14:09:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:29]Read from MH i2c: E2 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 62 00 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 62 00 08 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 83 02 00 0E 04 04 00 BE 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 22 [14:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 83 02 00 0E 04 04 00 BE 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 [14:09:29]wFMCommunicate OK [14:09:29]SAM_PROTO_GetFieldsCounters done [14:09:29]requested_item shift.num is exist - process it [14:09:29]requested_item shift.opened is exist - process it [14:09:29]req_shift_opened [14:09:29]FM_GetShiftState [14:09:29]SAM_PROTO_GetShiftState [14:09:29]wFMCommunicate request_size=4 [14:09:29]MH_SAM_APDU [14:09:29]CAPDU: 80 13 01 00 [14:09:29]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [14:09:29]Write i2c OK [14:09:29]MH_I2C_Read... [14:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:29]Read from MH i2c: E2 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 0E 00 [14:09:29]MH_I2C_Read... [14:09:29]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8A [14:09:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:09:29]wFMCommunicate OK [14:09:29]SAM_PROTO_GetShiftState done [14:09:29]FM_GetShiftState done [14:09:29]req_shift_opened done [14:09:29]requested_item shift.open_date is exist - process it [14:09:29]req_shift_open_date [14:09:29]req_shift_open_date done [14:09:29]produce_requested_data done [14:09:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164614,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:09:29]process_action_free close_receipt [14:09:29]json_value_free [14:09:29]json_value_free done [14:09:29]process_json_proto returns [14:09:29]Send response to host [14:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164614,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:09:29]free response buf [14:09:29]execute_script done [14:09:29]execute_script returns [14:09:29]free content buf [14:09:29]Sock 9.Close socket [14:09:29]Sock 9.Thread stoped [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:01]accept exits with 10 [14:12:01]New connection [14:12:01]New thread 3067149668 created [14:12:01]Thread 3067293028 joined [14:12:01]Waiting for new connection... [14:12:01] Sock 10.Parse request [14:12:01]Sock 10.Check first char [14:12:01]Sock 10.First char is OK [14:12:01]request: POST /json_proto HTTP/1.0 [14:12:01]Method: POST [14:12:01]URL: /json_proto [14:12:01]Method is POST - this is cgi request [14:12:01]url: /json_proto [14:12:01]query_string will be loaded in cgi processing [14:12:01]execute_cgi json_proto POST (null) [14:12:01]execute_cgi path=json_proto method=POST [14:12:01]POST find Content-Length [14:12:01]Host: 172.17.56.4:8080 [14:12:01]Content-Length: 677 [14:12:01]Content-Type: application/json [14:12:01] [14:12:01]POST finish read [14:12:01]Found Content-Length = 677 [14:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:01]execute_script... [14:12: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)458707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:01]POST & json_proto [14:12:01]process_json_proto [14:12:01]json parsed OK: [14:12:01]protocol is kg_v1.0 [14:12:01]action value=close_receipt [14:12:01]process_action close_receipt [14:12:01]cmd_close_receipt [14:12:01]MH_GetDate [14:12:01]Write to MH i2c: F0 00 00 0A 23 1C [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: F0 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: F0 09 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: F0 09 00 0A 23 00 33 8B 92 66 C9 DC B2 64 96 [14:12:01]GetLastDocTimeStamp 1720879767 [14:12:01]current date 1720879923 [14:12:01]FM_GetShiftState [14:12:01]SAM_PROTO_GetShiftState [14:12:01]wFMCommunicate request_size=4 [14:12:01]MH_SAM_APDU [14:12:01]CAPDU: 80 13 01 00 [14:12:01]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:01]Read from MH i2c: E2 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 0E 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8C [14:12:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:12:01]wFMCommunicate OK [14:12:01]SAM_PROTO_GetShiftState done [14:12:01]FM_GetShiftState done [14:12:01]opened in 1720831249 [14:12:01]opened+sec_in_day 1720917649 [14:12:01]quantity*price = 13160 [14:12:01]sum+1 = 13161 [14:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 175 13.07.2024 14:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164615 ФПД: 27669823420997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164615&fm=27669823420997&tin=02508201610067®Number=0000000000090829&sum=13100 [14:12:02]StoreToDocumentArchive [14:12:02]shift 446 fd 164615 [14:12:02]save to /storage/0446/doc_00164615 [14:12:02]save last doc name /storage/0446/doc_00164615 to /storage/kkm_last_doc_name [14:12:02]save OK [14:12:02]Clear old archive folders... [14:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:02]tlvbuf is 014C8530 [14:12:02]SAM_PROTO_ClearQueue [14:12:02]wFMCommunicate request_size=4 [14:12:02]MH_SAM_APDU [14:12:02]CAPDU: 80 09 00 00 [14:12:02]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [14:12:02]Write i2c OK [14:12:02]MH_I2C_Read... [14:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:02]Read from MH i2c: E2 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 03 00 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [14:12:02]RAPDU: 90 00 [14:12:02]wFMCommunicate OK [14:12:02]SAM_PROTO_ClearQueue done [14:12:02]KKMCreateOFDPacket [14:12:02]OFDProtocolAddRootSTLVToBuf [14:12:02]FM_MakeSignedData [14:12:02]FM_MakeSignedData [14:12:02]SAM_PROTO_SignData [14:12:02]wFMCommunicate request_size=4 [14:12:02]MH_SAM_APDU [14:12:02]CAPDU: 80 0D 01 02 [14:12:02]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [14:12:02]Write i2c OK [14:12:02]MH_I2C_Read... [14:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:02]Read from MH i2c: E2 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 03 00 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [14:12:02]RAPDU: 90 00 [14:12:02]wFMCommunicate OK [14:12:02]wFMCommunicate request_size=255 [14:12:02]MH_SAM_APDU [14:12: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 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 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 33 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 83 02 00 35 04 06 00 19 [14:12:02]Write to MH i2c: E2 02 01 1A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 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 33 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 83 02 00 35 04 06 00 19 00 00 79 [14:12:02]Write i2c OK [14:12:02]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [14:12:03]RAPDU: 90 00 [14:12:03]wFMCommunicate OK [14:12:03]wFMCommunicate request_size=10 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 0D 02 02 05 2A 61 FE FA 45 [14:12:03]Write to MH i2c: E2 0D 00 1B 23 80 0D 02 02 05 00 2A 61 FE FA 45 00 00 8A [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [14:12:03]RAPDU: 90 00 [14:12:03]wFMCommunicate OK [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 0D 03 02 [14:12:03]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0B 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 0B 00 1C 23 00 42 28 C3 51 FC 4C AD 67 90 00 95 [14:12:03]RAPDU: 42 28 C3 51 FC 4C AD 67 90 00 [14:12:03]wFMCommunicate OK [14:12:03]SAM_PROTO_SignData done [14:12:03]FM_MakeSignedData done [14:12:03]CreateOFDProtocolMessage [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 11 00 00 [14:12:03]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 17 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 17 00 1D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [14:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:12:03]wFMCommunicate OK [14:12:03]CreateOFDProtocolMessage done [14:12:03]OFDSenderStorePacket 164615 [14:12:03]StoreOFDPacket docnum=164615 [14:12:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB DA 07 01 5D EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 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 33 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 83 02 00 35 04 06 00 19 2A 61 FE FA 45 42 28 C3 51 FC 4C AD 67 [14:12:03]CheckFolder [14:12:03]dirname=/storage/ofd_packets [14:12:03]CheckFolder done [14:12:03]ProducePacketName [14:12:03]name=ofd_packets/00164615 [14:12:03]NVStorageSaveData ofd_packets/00164615 [14:12:03]File name is /storage/ofd_packets/00164615 [14:12:03]Write 301 bytes [14:12:03]NVStorageSaveData done [14:12:03]OFDSenderStorePacket done [14:12:03]KKMCreateOFDPacket done [14:12:03]NVStorageSaveData kkm_last_timestamp [14:12:03]File name is /storage/kkm_last_timestamp [14:12:03]Write 4 bytes [14:12:03]NVStorageSaveData done [14:12:03]ExternCall_PrintAddStr [14:12:03]wPrintStart [14:12:03]Write to MH i2c: 01 00 00 1E 23 41 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 07 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [14:12:03]RasterBufferAndPrint [14:12:03]line Счет N : (1)458707 [14:12:03]line ИНН: 02508201610067 [14:12:03]line Контрольно-Кассовый Чек [14:12:03]line ПРОДАЖА [14:12:03]line ТРК (МРК, ГНК) : 12 [14:12:03]line Товар: 2710124130 [14:12:03]line Аи-92-К-5 [14:12:03]line 2.000 * 65.80 [14:12:03]line = 131.60 [14:12:03]line НДС 12% НСП 1% [14:12:03]line > о реализуемом товаре [14:12:03]line ОКРУГЛЕНИЕ: -0.60 [14:12:03]line ИТОГО: 131.00 [14:12:03]line Внесено: 131.00 [14:12:03]line СДАЧА: 0.00 [14:12:03]line НСП 1% : 1.16 [14:12:03]line НДС 12% : 13.97 [14:12:03]line Наличными: 131.00 [14:12:03]line Безнал.: 0.00 [14:12:03]line Место: АЗС № 72 "Партнер Нефть" [14:12:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:12:03]line СНО: Общий режим [14:12:03]line Чек 175 13.07.2024 14:12 [14:12:03]line Смена: 446 ФФД: 1.0 [14:12:03]line ЗНМ: 0300000160 [14:12:03]line РНМ: 0000000000090829 [14:12:03]line Версия ККМ: 001 [14:12:03]line ФМ: 0000000000874718 [14:12:03]line ФД: 164615 [14:12:03]line ФПД: 27669823420997 [14:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164615&fm=27669823420997&tin=02508201610067®Number=0000000000090829&sum=13100 [14:12:03]written 0, free lines is 4095 [14:12:03]OFD Sender: Processing packet 164615 [packets to send 104, broken 103] [14:12:03]ProducePacketName [14:12:03]name=ofd_packets/00164615 [14:12:03]OFD Sender: To server: pG, [14:12:03]CommunicateWithHost lk.salyk.kg:30040 [14:12:03]ConnectInit lk.salyk.kg [14:12:03]Write to MH i2c: 01 00 00 48 23 6B [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 07 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 EE 0C 6C [14:12:03]RasterBufferAndPrint [14:12:03]line [14:12:03]line [14:12:03]line [14:12:03]line [14:12:03]line [14:12:03]written 0, free lines is 3316 [14:12:03]MH_Cut [14:12:03]Write to MH i2c: D1 01 00 4F 23 01 44 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: D1 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: D1 01 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: D1 01 00 4F 23 00 43 [14:12:03]Write to MH i2c: 01 00 00 50 23 73 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:04]*** Cut start [14:12:04]*** Partial cut [14:12:04]*** CUTSNS_PIN = 1 [14:12:04]*** CUTSNS_PIN = 0 [14:12:04]*** Brake cut motor [14:12:05]Read from MH i2c: 01 [14:12:05]MH_I2C_Read... [14:12:05]*** Stop cut motor [14:12:05]*** Cut end [14:12:05]Read from MH i2c: 01 07 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 FF 0F 88 [14:12:05]process_action close_receipt done [14:12:05]requested_data is exist [14:12:05]produce_requested_data [14:12:05]requested_item fm.sn is exist - process it [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 11 00 00 [14:12:05]Write to MH i2c: E2 08 00 51 23 80 11 00 00 00 00 00 00 EE [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 17 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 17 00 51 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [14:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:12:05]wFMCommunicate OK [14:12:05]requested_item fd.num is exist - process it [14:12:05]SAM_PROTO_GetFieldsCounters [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 13 00 00 [14:12:05]Write to MH i2c: E2 08 00 52 23 80 13 00 00 00 00 00 00 F1 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 62 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 62 00 52 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 83 02 00 0E 04 04 00 BE 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 70 [14:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 83 02 00 0E 04 04 00 BE 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 [14:12:05]wFMCommunicate OK [14:12:05]SAM_PROTO_GetFieldsCounters done [14:12:05]requested_item shift.num is exist - process it [14:12:05]requested_item shift.opened is exist - process it [14:12:05]req_shift_opened [14:12:05]FM_GetShiftState [14:12:05]SAM_PROTO_GetShiftState [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 13 01 00 [14:12:05]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0E 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D4 [14:12:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:12:05]wFMCommunicate OK [14:12:05]SAM_PROTO_GetShiftState done [14:12:05]FM_GetShiftState done [14:12:05]req_shift_opened done [14:12:05]requested_item shift.open_date is exist - process it [14:12:05]req_shift_open_date [14:12:05]req_shift_open_date done [14:12:05]produce_requested_data done [14:12:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164615,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:12:05]process_action_free close_receipt [14:12:05]json_value_free [14:12:05]json_value_free done [14:12:05]process_json_proto returns [14:12:05]Send response to host [14:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164615,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:12:05]free response buf [14:12:05]execute_script done [14:12:05]execute_script returns [14:12:05]free content buf [14:12:05]Sock 10.Close socket [14:12:05]Sock 10.Thread stoped [14:13:08]accept exits with 7 [14:13:08]New connection [14:13:08]New thread 3067293028 created [14:13:08]Thread 3067149668 joined [14:13:08]Waiting for new connection... [14:13:08] Sock 7.Parse request [14:13:08]Sock 7.Check first char [14:13:08]Sock 7.First char is OK [14:13:08]request: POST /json_proto HTTP/1.0 [14:13:08]Method: POST [14:13:08]URL: /json_proto [14:13:08]Method is POST - this is cgi request [14:13:08]url: /json_proto [14:13:08]query_string will be loaded in cgi processing [14:13:08]execute_cgi json_proto POST (null) [14:13:08]execute_cgi path=json_proto method=POST [14:13:08]POST find Content-Length [14:13:08]Host: 172.17.56.4:8080 [14:13:08]Content-Length: 677 [14:13:08]Content-Type: application/json [14:13:08] [14:13:08]POST finish read [14:13:08]Found Content-Length = 677 [14:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:08]execute_script... [14:13: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)458708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:08]POST & json_proto [14:13:08]process_json_proto [14:13:08]json parsed OK: [14:13:08]protocol is kg_v1.0 [14:13:08]action value=close_receipt [14:13:08]process_action close_receipt [14:13:08]cmd_close_receipt [14:13:08]MH_GetDate [14:13:08]Write to MH i2c: F0 00 00 54 23 66 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 09 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: F0 09 00 54 23 00 76 8B 92 66 C9 DC B2 64 23 [14:13:08]GetLastDocTimeStamp 1720879923 [14:13:08]current date 1720879990 [14:13:08]FM_GetShiftState [14:13:08]SAM_PROTO_GetShiftState [14:13:08]wFMCommunicate request_size=4 [14:13:08]MH_SAM_APDU [14:13:08]CAPDU: 80 13 01 00 [14:13:08]Write to MH i2c: E2 08 00 55 23 80 13 01 00 00 00 00 00 F5 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:08]Read from MH i2c: E2 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: E2 0E 00 55 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D6 [14:13:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:13:08]wFMCommunicate OK [14:13:08]SAM_PROTO_GetShiftState done [14:13:08]FM_GetShiftState done [14:13:08]opened in 1720831249 [14:13:08]opened+sec_in_day 1720917649 [14:13:08]quantity*price = 30004 [14:13:08]sum+1 = 30006 [14:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 176 13.07.2024 14:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164616 ФПД: 110312825559324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164616&fm=110312825559324&tin=02508201610067®Number=0000000000090829&sum=30000 [14:13:09]StoreToDocumentArchive [14:13:09]shift 446 fd 164616 [14:13:09]save to /storage/0446/doc_00164616 [14:13:09]save last doc name /storage/0446/doc_00164616 to /storage/kkm_last_doc_name [14:13:09]save OK [14:13:09]Clear old archive folders... [14:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:09]tlvbuf is 0146B3C0 [14:13:09]SAM_PROTO_ClearQueue [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 09 00 00 [14:13:09]Write to MH i2c: E2 08 00 62 23 80 09 00 00 00 00 00 00 F7 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [14:13:09]RAPDU: 90 00 [14:13:09]wFMCommunicate OK [14:13:09]SAM_PROTO_ClearQueue done [14:13:09]KKMCreateOFDPacket [14:13:09]OFDProtocolAddRootSTLVToBuf [14:13:09]FM_MakeSignedData [14:13:09]FM_MakeSignedData [14:13:09]SAM_PROTO_SignData [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 0D 01 02 [14:13:09]Write to MH i2c: E2 08 00 63 23 80 0D 01 02 00 00 00 00 FF [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [14:13:09]RAPDU: 90 00 [14:13:09]wFMCommunicate OK [14:13:09]wFMCommunicate request_size=255 [14:13:09]MH_SAM_APDU [14:13: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B0 00 00 00 F4 03 04 00 76 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 83 02 00 35 04 06 00 64 [14:13:09]Write to MH i2c: E2 02 01 64 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B0 00 00 00 F4 03 04 00 76 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 83 02 00 35 04 06 00 64 00 00 92 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [14:13:09]RAPDU: 90 00 [14:13:09]wFMCommunicate OK [14:13:09]wFMCommunicate request_size=10 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 0D 02 02 05 54 34 C8 19 1C [14:13:09]Write to MH i2c: E2 0D 00 65 23 80 0D 02 02 05 00 54 34 C8 19 1C 00 00 91 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [14:13:09]RAPDU: 90 00 [14:13:09]wFMCommunicate OK [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 0D 03 02 [14:13:09]Write to MH i2c: E2 08 00 66 23 80 0D 03 02 00 00 00 00 04 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 0B 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 0B 00 66 23 00 58 3C 21 C6 28 E8 22 DF 90 00 91 [14:13:09]RAPDU: 58 3C 21 C6 28 E8 22 DF 90 00 [14:13:09]wFMCommunicate OK [14:13:09]SAM_PROTO_SignData done [14:13:09]FM_MakeSignedData done [14:13:09]CreateOFDProtocolMessage [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 11 00 00 [14:13:09]Write to MH i2c: E2 08 00 67 23 80 11 00 00 00 00 00 00 04 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 17 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 17 00 67 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [14:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:13:09]wFMCommunicate OK [14:13:09]CreateOFDProtocolMessage done [14:13:09]OFDSenderStorePacket 164616 [14:13:09]StoreOFDPacket docnum=164616 [14:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB A3 07 01 49 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B0 00 00 00 F4 03 04 00 76 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 83 02 00 35 04 06 00 64 54 34 C8 19 1C 58 3C 21 C6 28 E8 22 DF [14:13:09]CheckFolder [14:13:09]dirname=/storage/ofd_packets [14:13:09]CheckFolder done [14:13:09]ProducePacketName [14:13:09]name=ofd_packets/00164616 [14:13:09]NVStorageSaveData ofd_packets/00164616 [14:13:09]File name is /storage/ofd_packets/00164616 [14:13:09]Write 301 bytes [14:13:09]NVStorageSaveData done [14:13:09]OFDSenderStorePacket done [14:13:09]KKMCreateOFDPacket done [14:13:09]NVStorageSaveData kkm_last_timestamp [14:13:09]File name is /storage/kkm_last_timestamp [14:13:09]Write 4 bytes [14:13:09]NVStorageSaveData done [14:13:09]ExternCall_PrintAddStr [14:13:09]wPrintStart [14:13:09]Write to MH i2c: 01 00 00 68 23 8B [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 07 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 07 00 68 23 00 00 00 00 00 FF 0F A0 [14:13:09]RasterBufferAndPrint [14:13:09]line Счет N : (1)458708 [14:13:09]line ИНН: 02508201610067 [14:13:09]line Контрольно-Кассовый Чек [14:13:09]line ПРОДАЖА [14:13:09]line ТРК (МРК, ГНК) : 22 [14:13:09]line Товар: 2710124130 [14:13:09]line Аи-92-К-5 [14:13:09]line 4.560 * 65.80 [14:13:09]line = 300.05 [14:13:09]line НДС 12% НСП 1% [14:13:09]line > о реализуемом товаре [14:13:09]line ОКРУГЛЕНИЕ: -0.05 [14:13:09]line ИТОГО: 300.00 [14:13:09]line Внесено: 300.00 [14:13:09]line СДАЧА: 0.00 [14:13:09]line НСП 1% : 2.65 [14:13:09]line НДС 12% : 31.86 [14:13:09]line Наличными: 300.00 [14:13:09]line Безнал.: 0.00 [14:13:09]line Место: АЗС № 72 "Партнер Нефть" [14:13:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:13:09]line СНО: Общий режим [14:13:09]line Чек 176 13.07.2024 14:13 [14:13:09]line Смена: 446 ФФД: 1.0 [14:13:09]line ЗНМ: 0300000160 [14:13:09]line РНМ: 0000000000090829 [14:13:09]line Версия ККМ: 001 [14:13:09]line ФМ: 0000000000874718 [14:13:09]line ФД: 164616 [14:13:09]line ФПД: 110312825559324 [14:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164616&fm=110312825559324&tin=02508201610067®Number=0000000000090829&sum=30000 [14:13:10]written 0, free lines is 4095 [14:13:10]Write to MH i2c: 01 00 00 92 23 B5 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 07 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 F2 0C BA [14:13:10]RasterBufferAndPrint [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]written 0, free lines is 3320 [14:13:10]MH_Cut [14:13:10]Write to MH i2c: D1 01 00 99 23 01 8E [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 01 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 01 00 99 23 00 8D [14:13:10]Write to MH i2c: 01 00 00 9A 23 BD [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:11]*** Cut start [14:13:11]*** Partial cut [14:13:11]*** CUTSNS_PIN = 1 [14:13:11]*** CUTSNS_PIN = 0 [14:13:11]*** Brake cut motor [14:13:11]Read from MH i2c: 01 [14:13:11]MH_I2C_Read... [14:13:11]*** Stop cut motor [14:13:11]*** Cut end [14:13:11]Read from MH i2c: 01 07 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: 01 07 00 9A 23 00 00 00 00 00 FF 0F D2 [14:13:11]process_action close_receipt done [14:13:11]requested_data is exist [14:13:11]produce_requested_data [14:13:11]requested_item fm.sn is exist - process it [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 11 00 00 [14:13:11]Write to MH i2c: E2 08 00 9B 23 80 11 00 00 00 00 00 00 38 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 17 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 17 00 9B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [14:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:13:11]wFMCommunicate OK [14:13:11]requested_item fd.num is exist - process it [14:13:11]SAM_PROTO_GetFieldsCounters [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 13 00 00 [14:13:11]Write to MH i2c: E2 08 00 9C 23 80 13 00 00 00 00 00 00 3B [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 62 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 62 00 9C 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 83 02 00 0E 04 04 00 BE 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 BE [14:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 83 02 00 0E 04 04 00 BE 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 [14:13:12]wFMCommunicate OK [14:13:12]SAM_PROTO_GetFieldsCounters done [14:13:12]requested_item shift.num is exist - process it [14:13:12]requested_item shift.opened is exist - process it [14:13:12]req_shift_opened [14:13:12]FM_GetShiftState [14:13:12]SAM_PROTO_GetShiftState [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 13 01 00 [14:13:12]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0E 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1E [14:13:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:13:12]wFMCommunicate OK [14:13:12]SAM_PROTO_GetShiftState done [14:13:12]FM_GetShiftState done [14:13:12]req_shift_opened done [14:13:12]requested_item shift.open_date is exist - process it [14:13:12]req_shift_open_date [14:13:12]req_shift_open_date done [14:13:12]produce_requested_data done [14:13:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164616,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:13:12]process_action_free close_receipt [14:13:12]json_value_free [14:13:12]json_value_free done [14:13:12]process_json_proto returns [14:13:12]Send response to host [14:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164616,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:13:12]free response buf [14:13:12]execute_script done [14:13:12]execute_script returns [14:13:12]free content buf [14:13:12]Sock 7.Close socket [14:13:12]Sock 7.Thread stoped [14:14:16]ConnectInit Can't connect to host [14:14:16]CommunicateWithHost connect error [14:14:16]CommunicateWithHost err = -1 [14:14:16]OFD Sender: Server communicate error [14:14:16]OFD Sender: Processing packet 164615 [packets to send 105, broken 103] [14:14:16]ProducePacketName [14:14:16]name=ofd_packets/00164615 [14:14:16]OFD Sender: To server: pG, [14:14:16]CommunicateWithHost lk.salyk.kg:30040 [14:14:16]ConnectInit lk.salyk.kg [14:14:17]Connected sock=7 [14:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB DA 07 01 5D EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 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 33 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 83 02 00 35 04 06 00 19 2A 61 FE FA 45 42 28 C3 51 FC 4C AD 67 [14:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 32 58 47 00 7F 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 34 37 31 38 10 04 04 00 07 83 02 00 F4 03 04 00 49 32 92 66 B6 04 01 00 00 3B 4D 79 05 24 67 25 35 [14:14:17]CommunicateWithHost err = 0 [14:14:17]CheckOFDResponse [14:14:17]1017 (14) - 77093643461234 [14:14:17]1041 (16) - 0000000000874718 [14:14:17]1040 (4) - 164615 [14:14:17]1012 (4) - 13.07.2024 07:52 [14:14:17]1206 (1) - 0 [14:14:17]OFD Sender: Remove packet 164615 [14:14:17]ProducePacketName [14:14:17]name=ofd_packets/00164615 [14:14:17]NVStorageDeleteData [14:14:17]OFD Sender: Processing packet 164616 [packets to send 104, broken 103] [14:14:17]ProducePacketName [14:14:17]name=ofd_packets/00164616 [14:14:17]OFD Sender: To server: pG, [14:14:17]CommunicateWithHost lk.salyk.kg:30040 [14:14:17]ConnectInit lk.salyk.kg [14:14:17]Connected sock=7 [14:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB A3 07 01 49 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B0 00 00 00 F4 03 04 00 76 8B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 83 02 00 35 04 06 00 64 54 34 C8 19 1C 58 3C 21 C6 28 E8 22 DF [14:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 F3 47 00 47 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 83 02 00 F4 03 04 00 4A 32 92 66 B6 04 01 00 00 CC 95 5C 8D 01 F5 BF 16 [14:14:18]CommunicateWithHost err = 0 [14:14:18]CheckOFDResponse [14:14:18]1017 (14) - 77093643461234 [14:14:18]1041 (16) - 0000000000874718 [14:14:18]1040 (4) - 164616 [14:14:18]1012 (4) - 13.07.2024 07:52 [14:14:18]1206 (1) - 0 [14:14:18]OFD Sender: Remove packet 164616 [14:14:18]ProducePacketName [14:14:18]name=ofd_packets/00164616 [14:14:18]NVStorageDeleteData [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:02]accept exits with 10 [14:16:02]New connection [14:16:02]New thread 3067149668 created [14:16:02]Thread 3067293028 joined [14:16:02]Waiting for new connection... [14:16:02] Sock 10.Parse request [14:16:02]Sock 10.Check first char [14:16:02]Sock 10.First char is OK [14:16:02]request: POST /json_proto HTTP/1.0 [14:16:02]Method: POST [14:16:02]URL: /json_proto [14:16:02]Method is POST - this is cgi request [14:16:02]url: /json_proto [14:16:02]query_string will be loaded in cgi processing [14:16:02]execute_cgi json_proto POST (null) [14:16:02]execute_cgi path=json_proto method=POST [14:16:02]POST find Content-Length [14:16:02]Host: 172.17.56.4:8080 [14:16:02]Content-Length: 677 [14:16:02]Content-Type: application/json [14:16:02] [14:16:02]POST finish read [14:16:02]Found Content-Length = 677 [14:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.110, "sum" : 270.44, "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" ] } } [14:16:02]execute_script... [14:16: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)458709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.110, "sum" : 270.44, "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" ] } } [14:16:02]POST & json_proto [14:16:02]process_json_proto [14:16:02]json parsed OK: [14:16:02]protocol is kg_v1.0 [14:16:02]action value=close_receipt [14:16:02]process_action close_receipt [14:16:02]cmd_close_receipt [14:16:02]MH_GetDate [14:16:02]Write to MH i2c: F0 00 00 9E 23 B0 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 9E 23 00 24 8C 92 66 C9 DC B2 64 1C [14:16:02]GetLastDocTimeStamp 1720879990 [14:16:02]current date 1720880164 [14:16:02]FM_GetShiftState [14:16:02]SAM_PROTO_GetShiftState [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 13 01 00 [14:16:02]Write to MH i2c: E2 08 00 9F 23 80 13 01 00 00 00 00 00 3F [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 9F 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 20 [14:16:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_GetShiftState done [14:16:02]FM_GetShiftState done [14:16:02]opened in 1720831249 [14:16:02]opened+sec_in_day 1720917649 [14:16:02]quantity*price = 27043 [14:16:02]sum+1 = 27045 [14:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.72 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 177 13.07.2024 14:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164617 ФПД: 265897970486552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164617&fm=265897970486552&tin=02508201610067®Number=0000000000090829&sum=27000 [14:16:03]StoreToDocumentArchive [14:16:03]shift 446 fd 164617 [14:16:03]save to /storage/0446/doc_00164617 [14:16:03]save last doc name /storage/0446/doc_00164617 to /storage/kkm_last_doc_name [14:16:03]save OK [14:16:03]Clear old archive folders... [14:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:03]tlvbuf is B6EFB880 [14:16:03]SAM_PROTO_ClearQueue [14:16:03]wFMCommunicate request_size=4 [14:16:03]MH_SAM_APDU [14:16:03]CAPDU: 80 09 00 00 [14:16:03]Write to MH i2c: E2 08 00 AC 23 80 09 00 00 00 00 00 00 41 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]OFD Sender: No OFD packet to send [14:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:03]Read from MH i2c: E2 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 03 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [14:16:03]RAPDU: 90 00 [14:16:03]wFMCommunicate OK [14:16:03]SAM_PROTO_ClearQueue done [14:16:03]KKMCreateOFDPacket [14:16:03]OFDProtocolAddRootSTLVToBuf [14:16:03]FM_MakeSignedData [14:16:03]FM_MakeSignedData [14:16:03]SAM_PROTO_SignData [14:16:03]wFMCommunicate request_size=4 [14:16:03]MH_SAM_APDU [14:16:03]CAPDU: 80 0D 01 02 [14:16:03]Write to MH i2c: E2 08 00 AD 23 80 0D 01 02 00 00 00 00 49 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:03]Read from MH i2c: E2 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 03 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [14:16:03]RAPDU: 90 00 [14:16:03]wFMCommunicate OK [14:16:03]wFMCommunicate request_size=255 [14:16:03]MH_SAM_APDU [14:16: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 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 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 38 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 B1 00 00 00 F4 03 04 00 24 8C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 83 02 00 35 04 06 00 F1 [14:16:03]Write to MH i2c: E2 02 01 AE 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 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 38 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 B1 00 00 00 F4 03 04 00 24 8C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 83 02 00 35 04 06 00 F1 00 00 DC [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=10 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 02 02 05 D5 32 13 CD 18 [14:16:04]Write to MH i2c: E2 0D 00 AF 23 80 0D 02 02 05 00 D5 32 13 CD 18 00 00 55 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 03 02 [14:16:04]Write to MH i2c: E2 08 00 B0 23 80 0D 03 02 00 00 00 00 4E [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 B0 23 00 FF 1B 51 E5 23 DB 33 74 90 00 44 [14:16:04]RAPDU: FF 1B 51 E5 23 DB 33 74 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_SignData done [14:16:04]FM_MakeSignedData done [14:16:04]CreateOFDProtocolMessage [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 11 00 00 [14:16:04]Write to MH i2c: E2 08 00 B1 23 80 11 00 00 00 00 00 00 4E [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 B1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [14:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:16:04]wFMCommunicate OK [14:16:04]CreateOFDProtocolMessage done [14:16:04]OFDSenderStorePacket 164617 [14:16:04]StoreOFDPacket docnum=164617 [14:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 ED 07 01 A3 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 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 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 38 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 B1 00 00 00 F4 03 04 00 24 8C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 83 02 00 35 04 06 00 F1 D5 32 13 CD 18 FF 1B 51 E5 23 DB 33 74 [14:16:04]CheckFolder [14:16:04]dirname=/storage/ofd_packets [14:16:04]CheckFolder done [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00164617 [14:16:04]NVStorageSaveData ofd_packets/00164617 [14:16:04]File name is /storage/ofd_packets/00164617 [14:16:04]Write 301 bytes [14:16:04]NVStorageSaveData done [14:16:04]OFDSenderStorePacket done [14:16:04]KKMCreateOFDPacket done [14:16:04]NVStorageSaveData kkm_last_timestamp [14:16:04]File name is /storage/kkm_last_timestamp [14:16:04]Write 4 bytes [14:16:04]NVStorageSaveData done [14:16:04]ExternCall_PrintAddStr [14:16:04]wPrintStart [14:16:04]Write to MH i2c: 01 00 00 B2 23 D5 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 B2 23 00 00 00 00 00 FF 0F EA [14:16:04]RasterBufferAndPrint [14:16:04]line Счет N : (1)458709 [14:16:04]line ИНН: 02508201610067 [14:16:04]line Контрольно-Кассовый Чек [14:16:04]line ПРОДАЖА [14:16:04]line ТРК (МРК, ГНК) : 12 [14:16:04]line Товар: 2710124130 [14:16:04]line Аи-92-К-5 [14:16:04]line 4.110 * 65.80 [14:16:04]line = 270.44 [14:16:04]line НДС 12% НСП 1% [14:16:04]line > о реализуемом товаре [14:16:04]line ОКРУГЛЕНИЕ: -0.44 [14:16:04]line ИТОГО: 270.00 [14:16:04]line Внесено: 270.00 [14:16:04]line СДАЧА: 0.00 [14:16:04]line НСП 1% : 2.39 [14:16:04]line НДС 12% : 28.72 [14:16:04]line Наличными: 270.00 [14:16:04]line Безнал.: 0.00 [14:16:04]line Место: АЗС № 72 "Партнер Нефть" [14:16:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:16:04]line СНО: Общий режим [14:16:04]line Чек 177 13.07.2024 14:16 [14:16:04]line Смена: 446 ФФД: 1.0 [14:16:04]line ЗНМ: 0300000160 [14:16:04]line РНМ: 0000000000090829 [14:16:04]line Версия ККМ: 001 [14:16:04]line ФМ: 0000000000874718 [14:16:04]line ФД: 164617 [14:16:04]line ФПД: 265897970486552 [14:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141604&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164617&fm=265897970486552&tin=02508201610067®Number=0000000000090829&sum=27000 [14:16:04]OFD Sender: Processing packet 164617 [packets to send 104, broken 103] [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00164617 [14:16:04]OFD Sender: To server: pG, [14:16:04]CommunicateWithHost lk.salyk.kg:30040 [14:16:04]ConnectInit lk.salyk.kg [14:16:04]written 0, free lines is 4095 [14:16:04]Connected sock=9 [14:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 ED 07 01 A3 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 0E 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A4 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 38 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 B1 00 00 00 F4 03 04 00 24 8C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 83 02 00 35 04 06 00 F1 D5 32 13 CD 18 FF 1B 51 E5 23 DB 33 74 [14:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D F1 47 00 C0 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 83 02 00 F4 03 04 00 B5 32 92 66 B6 04 01 00 00 11 94 47 C1 C3 6B 5B 31 [14:16:04]CommunicateWithHost err = 0 [14:16:04]CheckOFDResponse [14:16:04]1017 (14) - 77093643461234 [14:16:04]1041 (16) - 0000000000874718 [14:16:04]1040 (4) - 164617 [14:16:04]1012 (4) - 13.07.2024 07:54 [14:16:04]1206 (1) - 0 [14:16:04]OFD Sender: Remove packet 164617 [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00164617 [14:16:04]NVStorageDeleteData [14:16:04]Write to MH i2c: 01 00 00 DC 23 FF [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FE 0C 10 [14:16:04]RasterBufferAndPrint [14:16:04]line [14:16:04]line [14:16:04]line [14:16:04]line [14:16:04]line [14:16:04]written 0, free lines is 3335 [14:16:04]MH_Cut [14:16:04]Write to MH i2c: D1 01 00 E3 23 01 D8 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: D1 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: D1 01 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: D1 01 00 E3 23 00 D7 [14:16:04]Write to MH i2c: 01 00 00 E4 23 07 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:05]OFD Sender: No OFD packet to send [14:16:05]*** Cut start [14:16:05]*** Partial cut [14:16:05]*** CUTSNS_PIN = 1 [14:16:05]*** CUTSNS_PIN = 0 [14:16:05]*** Brake cut motor [14:16:06]Read from MH i2c: 01 [14:16:06]MH_I2C_Read... [14:16:06]*** Stop cut motor [14:16:06]*** Cut end [14:16:06]Read from MH i2c: 01 07 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 07 00 E4 23 00 00 00 00 00 FF 0F 1C [14:16:06]process_action close_receipt done [14:16:06]requested_data is exist [14:16:06]produce_requested_data [14:16:06]requested_item fm.sn is exist - process it [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 11 00 00 [14:16:06]Write to MH i2c: E2 08 00 E5 23 80 11 00 00 00 00 00 00 82 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 E5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [14:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:16:06]wFMCommunicate OK [14:16:06]requested_item fd.num is exist - process it [14:16:06]SAM_PROTO_GetFieldsCounters [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 13 00 00 [14:16:06]Write to MH i2c: E2 08 00 E6 23 80 13 00 00 00 00 00 00 85 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 62 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 62 00 E6 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 83 02 00 0E 04 04 00 BE 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 0C [14:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 83 02 00 0E 04 04 00 BE 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 [14:16:06]wFMCommunicate OK [14:16:06]SAM_PROTO_GetFieldsCounters done [14:16:06]requested_item shift.num is exist - process it [14:16:06]requested_item shift.opened is exist - process it [14:16:06]req_shift_opened [14:16:06]FM_GetShiftState [14:16:06]SAM_PROTO_GetShiftState [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 13 01 00 [14:16:06]Write to MH i2c: E2 08 00 E7 23 80 13 01 00 00 00 00 00 87 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 0E 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 0E 00 E7 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 68 [14:16:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:16:06]wFMCommunicate OK [14:16:06]SAM_PROTO_GetShiftState done [14:16:06]FM_GetShiftState done [14:16:06]req_shift_opened done [14:16:06]requested_item shift.open_date is exist - process it [14:16:06]req_shift_open_date [14:16:06]req_shift_open_date done [14:16:06]produce_requested_data done [14:16:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164617,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:16:06]process_action_free close_receipt [14:16:06]json_value_free [14:16:06]json_value_free done [14:16:06]process_json_proto returns [14:16:06]Send response to host [14:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164617,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:16:06]free response buf [14:16:06]execute_script done [14:16:06]execute_script returns [14:16:06]free content buf [14:16:06]Sock 10.Close socket [14:16:06]Sock 10.Thread stoped [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:17]accept exits with 7 [14:21:17]New connection [14:21:17]New thread 3067293028 created [14:21:17]Thread 3067149668 joined [14:21:17]Waiting for new connection... [14:21:17] Sock 7.Parse request [14:21:17]Sock 7.Check first char [14:21:17]Sock 7.First char is OK [14:21:17]request: POST /json_proto HTTP/1.0 [14:21:17]Method: POST [14:21:17]URL: /json_proto [14:21:17]Method is POST - this is cgi request [14:21:17]url: /json_proto [14:21:17]query_string will be loaded in cgi processing [14:21:17]execute_cgi json_proto POST (null) [14:21:17]execute_cgi path=json_proto method=POST [14:21:17]POST find Content-Length [14:21:17]Host: 172.17.56.4:8080 [14:21:17]Content-Length: 677 [14:21:17]Content-Type: application/json [14:21:17] [14:21:17]POST finish read [14:21:17]Found Content-Length = 677 [14:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:17]execute_script... [14:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:17]POST & json_proto [14:21:17]process_json_proto [14:21:17]json parsed OK: [14:21:17]protocol is kg_v1.0 [14:21:17]action value=close_receipt [14:21:17]process_action close_receipt [14:21:17]cmd_close_receipt [14:21:17]MH_GetDate [14:21:17]Write to MH i2c: F0 00 00 E8 23 FA [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: F0 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: F0 09 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: F0 09 00 E8 23 00 60 8D 92 66 C9 DC B2 64 A3 [14:21:17]GetLastDocTimeStamp 1720880164 [14:21:17]current date 1720880480 [14:21:17]FM_GetShiftState [14:21:17]SAM_PROTO_GetShiftState [14:21:17]wFMCommunicate request_size=4 [14:21:17]MH_SAM_APDU [14:21:17]CAPDU: 80 13 01 00 [14:21:17]Write to MH i2c: E2 08 00 E9 23 80 13 01 00 00 00 00 00 89 [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:17]Read from MH i2c: E2 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 0E 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 0E 00 E9 23 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6A [14:21:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:21:17]wFMCommunicate OK [14:21:17]SAM_PROTO_GetShiftState done [14:21:17]FM_GetShiftState done [14:21:17]opened in 1720831249 [14:21:17]opened+sec_in_day 1720917649 [14:21:17]quantity*price = 20003 [14:21:17]sum+1 = 20004 [14:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 178 13.07.2024 14:21 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164618 ФПД: 8071752162860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164618&fm=8071752162860&tin=02508201610067®Number=0000000000090829&sum=20000 [14:21:19]StoreToDocumentArchive [14:21:19]shift 446 fd 164618 [14:21:19]save to /storage/0446/doc_00164618 [14:21:19]save last doc name /storage/0446/doc_00164618 to /storage/kkm_last_doc_name [14:21:19]save OK [14:21:19]Clear old archive folders... [14:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:19]tlvbuf is 0144BF50 [14:21:19]SAM_PROTO_ClearQueue [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 09 00 00 [14:21:19]Write to MH i2c: E2 08 00 F6 23 80 09 00 00 00 00 00 00 8B [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 F6 23 00 90 00 8D [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_ClearQueue done [14:21:19]KKMCreateOFDPacket [14:21:19]OFDProtocolAddRootSTLVToBuf [14:21:19]FM_MakeSignedData [14:21:19]FM_MakeSignedData [14:21:19]SAM_PROTO_SignData [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 01 02 [14:21:19]Write to MH i2c: E2 08 00 F7 23 80 0D 01 02 00 00 00 00 93 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=255 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 60 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 83 02 00 35 04 06 00 07 [14:21:19]Write to MH i2c: E2 02 01 F8 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 60 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 83 02 00 35 04 06 00 07 00 00 99 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=10 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 02 02 05 57 59 EB 9E 2C [14:21:19]Write to MH i2c: E2 0D 00 F9 23 80 0D 02 02 05 00 57 59 EB 9E 2C 00 00 05 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [14:21:19]RAPDU: 90 00 [14:21:19]wFMCommunicate OK [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 0D 03 02 [14:21:19]Write to MH i2c: E2 08 00 FA 23 80 0D 03 02 00 00 00 00 98 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0B 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0B 00 FA 23 00 9B C9 06 E6 2B EF E1 93 90 00 77 [14:21:19]RAPDU: 9B C9 06 E6 2B EF E1 93 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_SignData done [14:21:19]FM_MakeSignedData done [14:21:19]CreateOFDProtocolMessage [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 11 00 00 [14:21:19]Write to MH i2c: E2 08 00 FB 23 80 11 00 00 00 00 00 00 98 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 17 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 17 00 FB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [14:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:21:19]wFMCommunicate OK [14:21:19]CreateOFDProtocolMessage done [14:21:19]OFDSenderStorePacket 164618 [14:21:19]StoreOFDPacket docnum=164618 [14:21:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 7C 07 01 6F 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 60 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 83 02 00 35 04 06 00 07 57 59 EB 9E 2C 9B C9 06 E6 2B EF E1 93 [14:21:19]CheckFolder [14:21:19]dirname=/storage/ofd_packets [14:21:19]CheckFolder done [14:21:19]ProducePacketName [14:21:19]name=ofd_packets/00164618 [14:21:19]NVStorageSaveData ofd_packets/00164618 [14:21:19]File name is /storage/ofd_packets/00164618 [14:21:19]Write 301 bytes [14:21:19]NVStorageSaveData done [14:21:19]OFDSenderStorePacket done [14:21:19]KKMCreateOFDPacket done [14:21:19]NVStorageSaveData kkm_last_timestamp [14:21:19]File name is /storage/kkm_last_timestamp [14:21:19]Write 4 bytes [14:21:19]NVStorageSaveData done [14:21:19]ExternCall_PrintAddStr [14:21:19]wPrintStart [14:21:19]Write to MH i2c: 01 00 00 FC 23 1F [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 07 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 FF 0F 34 [14:21:19]RasterBufferAndPrint [14:21:19]line Счет N : (1)458710 [14:21:19]line ИНН: 02508201610067 [14:21:19]line Контрольно-Кассовый Чек [14:21:19]line ПРОДАЖА [14:21:19]line ТРК (МРК, ГНК) : 12 [14:21:19]line Товар: 2710124130 [14:21:19]line Аи-92-К-5 [14:21:19]line 3.040 * 65.80 [14:21:19]line = 200.03 [14:21:19]line НДС 12% НСП 1% [14:21:19]line > о реализуемом товаре [14:21:19]line ОКРУГЛЕНИЕ: -0.03 [14:21:19]line ИТОГО: 200.00 [14:21:19]line Внесено: 200.00 [14:21:19]line СДАЧА: 0.00 [14:21:19]line НСП 1% : 1.77 [14:21:19]line НДС 12% : 21.24 [14:21:19]line Наличными: 200.00 [14:21:19]line Безнал.: 0.00 [14:21:19]line Место: АЗС № 72 "Партнер Нефть" [14:21:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:21:19]line СНО: Общий режим [14:21:19]line Чек 178 13.07.2024 14:21 [14:21:19]line Смена: 446 ФФД: 1.0 [14:21:19]line ЗНМ: 0300000160 [14:21:19]line РНМ: 0000000000090829 [14:21:19]line Версия ККМ: 001 [14:21:19]line ФМ: 0000000000874718 [14:21:19]line ФД: 164618 [14:21:19]line ФПД: 8071752162860 [14:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164618&fm=8071752162860&tin=02508201610067®Number=0000000000090829&sum=20000 [14:21:19]written 0, free lines is 4095 [14:21:19]OFD Sender: Processing packet 164618 [packets to send 104, broken 103] [14:21:19]ProducePacketName [14:21:19]name=ofd_packets/00164618 [14:21:19]OFD Sender: To server: pG, [14:21:19]CommunicateWithHost lk.salyk.kg:30040 [14:21:19]ConnectInit lk.salyk.kg [14:21:20]Connected sock=10 [14:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 7C 07 01 6F 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 60 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 83 02 00 35 04 06 00 07 57 59 EB 9E 2C 9B C9 06 E6 2B EF E1 93 [14:21:20]Write to MH i2c: 01 00 00 26 24 4A [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FA 0C 57 [14:21:20]RasterBufferAndPrint [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]line [14:21:20]written 0, free lines is 3328 [14:21:20]MH_Cut [14:21:20]Write to MH i2c: D1 01 00 2D 24 01 23 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 01 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: D1 01 00 2D 24 00 22 [14:21:20]Write to MH i2c: 01 00 00 2E 24 52 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 72 7E 47 00 CB 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 34 37 31 38 10 04 04 00 0A 83 02 00 F4 03 04 00 F0 33 92 66 B6 04 01 00 00 40 B9 D1 5E 5E 3C C9 D1 [14:21:20]CommunicateWithHost err = 0 [14:21:20]CheckOFDResponse [14:21:20]1017 (14) - 77093643461234 [14:21:20]1041 (16) - 0000000000874718 [14:21:20]1040 (4) - 164618 [14:21:20]1012 (4) - 13.07.2024 07:59 [14:21:20]1206 (1) - 0 [14:21:20]OFD Sender: Remove packet 164618 [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00164618 [14:21:20]NVStorageDeleteData [14:21:20]*** Cut start [14:21:20]*** Partial cut [14:21:20]*** CUTSNS_PIN = 1 [14:21:20]OFD Sender: No OFD packet to send [14:21:20]*** CUTSNS_PIN = 0 [14:21:20]*** Brake cut motor [14:21:21]Read from MH i2c: 01 [14:21:21]MH_I2C_Read... [14:21:21]*** Stop cut motor [14:21:21]*** Cut end [14:21:21]Read from MH i2c: 01 07 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 FF 0F 67 [14:21:21]process_action close_receipt done [14:21:21]requested_data is exist [14:21:21]produce_requested_data [14:21:21]requested_item fm.sn is exist - process it [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 11 00 00 [14:21:21]Write to MH i2c: E2 08 00 2F 24 80 11 00 00 00 00 00 00 CD [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 17 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 17 00 2F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [14:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:21:21]wFMCommunicate OK [14:21:21]requested_item fd.num is exist - process it [14:21:21]SAM_PROTO_GetFieldsCounters [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 13 00 00 [14:21:21]Write to MH i2c: E2 08 00 30 24 80 13 00 00 00 00 00 00 D0 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 62 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 62 00 30 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 83 02 00 0E 04 04 00 BE 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 5B [14:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 83 02 00 0E 04 04 00 BE 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 [14:21:21]wFMCommunicate OK [14:21:21]SAM_PROTO_GetFieldsCounters done [14:21:21]requested_item shift.num is exist - process it [14:21:21]requested_item shift.opened is exist - process it [14:21:21]req_shift_opened [14:21:21]FM_GetShiftState [14:21:21]SAM_PROTO_GetShiftState [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 13 01 00 [14:21:21]Write to MH i2c: E2 08 00 31 24 80 13 01 00 00 00 00 00 D2 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 0E 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 0E 00 31 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B3 [14:21:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:21:21]wFMCommunicate OK [14:21:21]SAM_PROTO_GetShiftState done [14:21:21]FM_GetShiftState done [14:21:21]req_shift_opened done [14:21:21]requested_item shift.open_date is exist - process it [14:21:21]req_shift_open_date [14:21:21]req_shift_open_date done [14:21:21]produce_requested_data done [14:21:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164618,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:21:21]process_action_free close_receipt [14:21:21]json_value_free [14:21:21]json_value_free done [14:21:21]process_json_proto returns [14:21:21]Send response to host [14:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164618,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:21:21]free response buf [14:21:21]execute_script done [14:21:21]execute_script returns [14:21:21]free content buf [14:21:21]Sock 7.Close socket [14:21:21]Sock 7.Thread stoped [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:45]accept exits with 9 [14:21:45]New connection [14:21:45]New thread 3067149668 created [14:21:45]Thread 3067293028 joined [14:21:45]Waiting for new connection... [14:21:45] Sock 9.Parse request [14:21:45]Sock 9.Check first char [14:21:45]Sock 9.First char is OK [14:21:45]request: POST /json_proto HTTP/1.0 [14:21:45]Method: POST [14:21:45]URL: /json_proto [14:21:45]Method is POST - this is cgi request [14:21:45]url: /json_proto [14:21:45]query_string will be loaded in cgi processing [14:21:45]execute_cgi json_proto POST (null) [14:21:45]execute_cgi path=json_proto method=POST [14:21:45]POST find Content-Length [14:21:45]Host: 172.17.56.4:8080 [14:21:45]Content-Length: 677 [14:21:45]Content-Type: application/json [14:21:45] [14:21:45]POST finish read [14:21:45]Found Content-Length = 677 [14:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:45]execute_script... [14:21: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)458711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:45]POST & json_proto [14:21:45]process_json_proto [14:21:45]json parsed OK: [14:21:45]protocol is kg_v1.0 [14:21:45]action value=close_receipt [14:21:45]process_action close_receipt [14:21:45]cmd_close_receipt [14:21:45]MH_GetDate [14:21:45]Write to MH i2c: F0 00 00 32 24 45 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: F0 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: F0 09 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: F0 09 00 32 24 00 7C 8D 92 66 C9 DC B2 64 0A [14:21:45]GetLastDocTimeStamp 1720880480 [14:21:45]current date 1720880508 [14:21:45]FM_GetShiftState [14:21:45]SAM_PROTO_GetShiftState [14:21:45]wFMCommunicate request_size=4 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 13 01 00 [14:21:45]Write to MH i2c: E2 08 00 33 24 80 13 01 00 00 00 00 00 D4 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0E 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0E 00 33 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B5 [14:21:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:21:45]wFMCommunicate OK [14:21:45]SAM_PROTO_GetShiftState done [14:21:45]FM_GetShiftState done [14:21:45]opened in 1720831249 [14:21:45]opened+sec_in_day 1720917649 [14:21:45]quantity*price = 30004 [14:21:45]sum+1 = 30006 [14:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 179 13.07.2024 14:21 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164619 ФПД: 188157915771480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164619&fm=188157915771480&tin=02508201610067®Number=0000000000090829&sum=30000 [14:21:46]StoreToDocumentArchive [14:21:46]shift 446 fd 164619 [14:21:46]save to /storage/0446/doc_00164619 [14:21:46]save last doc name /storage/0446/doc_00164619 to /storage/kkm_last_doc_name [14:21:46]save OK [14:21:46]Clear old archive folders... [14:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:47]tlvbuf is 014C8460 [14:21:47]SAM_PROTO_ClearQueue [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 09 00 00 [14:21:47]Write to MH i2c: E2 08 00 40 24 80 09 00 00 00 00 00 00 D6 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 40 24 00 90 00 D8 [14:21:47]RAPDU: 90 00 [14:21:47]wFMCommunicate OK [14:21:47]SAM_PROTO_ClearQueue done [14:21:47]KKMCreateOFDPacket [14:21:47]OFDProtocolAddRootSTLVToBuf [14:21:47]FM_MakeSignedData [14:21:47]FM_MakeSignedData [14:21:47]SAM_PROTO_SignData [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 0D 01 02 [14:21:47]Write to MH i2c: E2 08 00 41 24 80 0D 01 02 00 00 00 00 DE [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [14:21:47]RAPDU: 90 00 [14:21:47]wFMCommunicate OK [14:21:47]wFMCommunicate request_size=255 [14:21:47]MH_SAM_APDU [14:21: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 7C 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 83 02 00 35 04 06 00 AB [14:21:47]Write to MH i2c: E2 02 01 42 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 7C 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 83 02 00 35 04 06 00 AB 00 00 C6 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [14:21:47]RAPDU: 90 00 [14:21:47]wFMCommunicate OK [14:21:47]wFMCommunicate request_size=10 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 0D 02 02 05 20 ED BB 32 58 [14:21:47]Write to MH i2c: E2 0D 00 43 24 80 0D 02 02 05 00 20 ED BB 32 58 00 00 3D [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [14:21:47]RAPDU: 90 00 [14:21:47]wFMCommunicate OK [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 0D 03 02 [14:21:47]Write to MH i2c: E2 08 00 44 24 80 0D 03 02 00 00 00 00 E3 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0B 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0B 00 44 24 00 2D 05 93 D9 5D 9F 58 8A 90 00 60 [14:21:47]RAPDU: 2D 05 93 D9 5D 9F 58 8A 90 00 [14:21:47]wFMCommunicate OK [14:21:47]SAM_PROTO_SignData done [14:21:47]FM_MakeSignedData done [14:21:47]CreateOFDProtocolMessage [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 11 00 00 [14:21:47]Write to MH i2c: E2 08 00 45 24 80 11 00 00 00 00 00 00 E3 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 17 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 17 00 45 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [14:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:21:47]wFMCommunicate OK [14:21:47]CreateOFDProtocolMessage done [14:21:47]OFDSenderStorePacket 164619 [14:21:47]StoreOFDPacket docnum=164619 [14:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CD F4 07 01 C4 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 7C 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 83 02 00 35 04 06 00 AB 20 ED BB 32 58 2D 05 93 D9 5D 9F 58 8A [14:21:47]CheckFolder [14:21:47]dirname=/storage/ofd_packets [14:21:47]CheckFolder done [14:21:47]ProducePacketName [14:21:47]name=ofd_packets/00164619 [14:21:47]NVStorageSaveData ofd_packets/00164619 [14:21:47]File name is /storage/ofd_packets/00164619 [14:21:47]Write 301 bytes [14:21:47]NVStorageSaveData done [14:21:47]OFDSenderStorePacket done [14:21:47]KKMCreateOFDPacket done [14:21:47]NVStorageSaveData kkm_last_timestamp [14:21:47]File name is /storage/kkm_last_timestamp [14:21:47]Write 4 bytes [14:21:47]NVStorageSaveData done [14:21:47]OFD Sender: Processing packet 164619 [packets to send 104, broken 103] [14:21:47]ProducePacketName [14:21:47]name=ofd_packets/00164619 [14:21:47]OFD Sender: To server: pG, [14:21:47]CommunicateWithHost lk.salyk.kg:30040 [14:21:47]ConnectInit lk.salyk.kg [14:21:47]ExternCall_PrintAddStr [14:21:47]wPrintStart [14:21:47]Write to MH i2c: 01 00 00 46 24 6A [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 07 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 FF 0F 7F [14:21:47]RasterBufferAndPrint [14:21:47]line Счет N : (1)458711 [14:21:47]line ИНН: 02508201610067 [14:21:47]line Контрольно-Кассовый Чек [14:21:47]line ПРОДАЖА [14:21:47]line ТРК (МРК, ГНК) : 22 [14:21:47]line Товар: 2710124130 [14:21:47]line Аи-92-К-5 [14:21:47]line 4.560 * 65.80 [14:21:47]line = 300.05 [14:21:47]line НДС 12% НСП 1% [14:21:47]line > о реализуемом товаре [14:21:47]line ОКРУГЛЕНИЕ: -0.05 [14:21:47]line ИТОГО: 300.00 [14:21:47]line Внесено: 300.00 [14:21:47]line СДАЧА: 0.00 [14:21:47]line НСП 1% : 2.65 [14:21:47]line НДС 12% : 31.86 [14:21:47]line Наличными: 300.00 [14:21:47]line Безнал.: 0.00 [14:21:47]line Место: АЗС № 72 "Партнер Нефть" [14:21:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:21:47]line СНО: Общий режим [14:21:47]line Чек 179 13.07.2024 14:21 [14:21:47]line Смена: 446 ФФД: 1.0 [14:21:47]line ЗНМ: 0300000160 [14:21:47]line РНМ: 0000000000090829 [14:21:47]line Версия ККМ: 001 [14:21:47]line ФМ: 0000000000874718 [14:21:47]line ФД: 164619 [14:21:47]line ФПД: 188157915771480 [14:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164619&fm=188157915771480&tin=02508201610067®Number=0000000000090829&sum=30000 [14:21:47]Connected sock=11 [14:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CD F4 07 01 C4 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 B3 00 00 00 F4 03 04 00 7C 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 83 02 00 35 04 06 00 AB 20 ED BB 32 58 2D 05 93 D9 5D 9F 58 8A [14:21:47]written 0, free lines is 4095 [14:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 90 33 47 00 40 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 83 02 00 F4 03 04 00 0C 34 92 66 B6 04 01 00 00 AA 02 46 BF 27 68 DE 8D [14:21:48]CommunicateWithHost err = 0 [14:21:48]CheckOFDResponse [14:21:48]1017 (14) - 77093643461234 [14:21:48]1041 (16) - 0000000000874718 [14:21:48]1040 (4) - 164619 [14:21:48]1012 (4) - 13.07.2024 08:00 [14:21:48]1206 (1) - 0 [14:21:48]OFD Sender: Remove packet 164619 [14:21:48]ProducePacketName [14:21:48]name=ofd_packets/00164619 [14:21:48]NVStorageDeleteData [14:21:48]Write to MH i2c: 01 00 00 70 24 94 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 07 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 F5 0C 9C [14:21:48]RasterBufferAndPrint [14:21:48]line [14:21:48]line [14:21:48]line [14:21:48]line [14:21:48]line [14:21:48]written 0, free lines is 3323 [14:21:48]MH_Cut [14:21:48]Write to MH i2c: D1 01 00 77 24 01 6D [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: D1 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: D1 01 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: D1 01 00 77 24 00 6C [14:21:48]Write to MH i2c: 01 00 00 78 24 9C [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]OFD Sender: No OFD packet to send [14:21:48]*** Cut start [14:21:48]*** Partial cut [14:21:48]*** CUTSNS_PIN = 1 [14:21:49]*** CUTSNS_PIN = 0 [14:21:49]*** Brake cut motor [14:21:49]Read from MH i2c: 01 [14:21:49]MH_I2C_Read... [14:21:49]*** Stop cut motor [14:21:49]Read from MH i2c: 01 07 00 [14:21:49]MH_I2C_Read... [14:21:49]*** Cut end [14:21:49]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 FF 0F B1 [14:21:49]process_action close_receipt done [14:21:49]requested_data is exist [14:21:49]produce_requested_data [14:21:49]requested_item fm.sn is exist - process it [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 11 00 00 [14:21:49]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 17 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [14:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:21:49]wFMCommunicate OK [14:21:49]requested_item fd.num is exist - process it [14:21:49]SAM_PROTO_GetFieldsCounters [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 13 00 00 [14:21:49]Write to MH i2c: E2 08 00 7A 24 80 13 00 00 00 00 00 00 1A [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 62 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 62 00 7A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [14:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetFieldsCounters done [14:21:49]requested_item shift.num is exist - process it [14:21:49]requested_item shift.opened is exist - process it [14:21:49]req_shift_opened [14:21:49]FM_GetShiftState [14:21:49]SAM_PROTO_GetShiftState [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 13 01 00 [14:21:49]Write to MH i2c: E2 08 00 7B 24 80 13 01 00 00 00 00 00 1C [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 7B 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FD [14:21:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetShiftState done [14:21:49]FM_GetShiftState done [14:21:49]req_shift_opened done [14:21:49]requested_item shift.open_date is exist - process it [14:21:49]req_shift_open_date [14:21:49]req_shift_open_date done [14:21:49]produce_requested_data done [14:21:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164619,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:21:49]process_action_free close_receipt [14:21:49]json_value_free [14:21:49]json_value_free done [14:21:49]process_json_proto returns [14:21:49]Send response to host [14:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164619,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:21:49]free response buf [14:21:49]execute_script done [14:21:49]execute_script returns [14:21:49]free content buf [14:21:49]Sock 9.Close socket [14:21:49]Sock 9.Thread stoped [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:30]accept exits with 7 [14:23:30]New connection [14:23:30]New thread 3067293028 created [14:23:30]Thread 3067149668 joined [14:23:30]Waiting for new connection... [14:23:30] Sock 7.Parse request [14:23:30]Sock 7.Check first char [14:23:30]Sock 7.First char is OK [14:23:30]request: POST /json_proto HTTP/1.0 [14:23:30]Method: POST [14:23:30]URL: /json_proto [14:23:30]Method is POST - this is cgi request [14:23:30]url: /json_proto [14:23:30]query_string will be loaded in cgi processing [14:23:30]execute_cgi json_proto POST (null) [14:23:30]execute_cgi path=json_proto method=POST [14:23:30]POST find Content-Length [14:23:30]Host: 172.17.56.4:8080 [14:23:30]Content-Length: 677 [14:23:30]Content-Type: application/json [14:23:30] [14:23:30]POST finish read [14:23:30]Found Content-Length = 677 [14:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:30]execute_script... [14:23: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)458712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:30]POST & json_proto [14:23:30]process_json_proto [14:23:30]json parsed OK: [14:23:30]protocol is kg_v1.0 [14:23:30]action value=close_receipt [14:23:30]process_action close_receipt [14:23:30]cmd_close_receipt [14:23:30]MH_GetDate [14:23:30]Write to MH i2c: F0 00 00 7C 24 8F [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: F0 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: F0 09 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: F0 09 00 7C 24 00 E4 8D 92 66 C9 DC B2 64 BC [14:23:30]GetLastDocTimeStamp 1720880508 [14:23:30]current date 1720880612 [14:23:30]FM_GetShiftState [14:23:30]SAM_PROTO_GetShiftState [14:23:30]wFMCommunicate request_size=4 [14:23:30]MH_SAM_APDU [14:23:30]CAPDU: 80 13 01 00 [14:23:30]Write to MH i2c: E2 08 00 7D 24 80 13 01 00 00 00 00 00 1E [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:30]Read from MH i2c: E2 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 0E 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 0E 00 7D 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FF [14:23:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:23:30]wFMCommunicate OK [14:23:30]SAM_PROTO_GetShiftState done [14:23:30]FM_GetShiftState done [14:23:30]opened in 1720831249 [14:23:30]opened+sec_in_day 1720917649 [14:23:30]quantity*price = 45007 [14:23:30]sum+1 = 45008 [14:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 180 13.07.2024 14:23 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164620 ФПД: 62944940264214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164620&fm=62944940264214&tin=02508201610067®Number=0000000000090829&sum=45000 [14:23:31]StoreToDocumentArchive [14:23:31]shift 446 fd 164620 [14:23:31]save to /storage/0446/doc_00164620 [14:23:31]save last doc name /storage/0446/doc_00164620 to /storage/kkm_last_doc_name [14:23:31]save OK [14:23:31]Clear old archive folders... [14:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:31]tlvbuf is B6EFB800 [14:23:31]SAM_PROTO_ClearQueue [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 09 00 00 [14:23:31]Write to MH i2c: E2 08 00 8A 24 80 09 00 00 00 00 00 00 20 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_ClearQueue done [14:23:31]KKMCreateOFDPacket [14:23:31]OFDProtocolAddRootSTLVToBuf [14:23:31]FM_MakeSignedData [14:23:31]FM_MakeSignedData [14:23:31]SAM_PROTO_SignData [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 01 02 [14:23:31]Write to MH i2c: E2 08 00 8B 24 80 0D 01 02 00 00 00 00 28 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=255 [14:23:31]MH_SAM_APDU [14:23: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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E4 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 83 02 00 35 04 06 00 39 [14:23:31]Write to MH i2c: E2 02 01 8C 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E4 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 83 02 00 35 04 06 00 39 00 00 35 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=10 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 02 02 05 3F 82 CE 0B 16 [14:23:31]Write to MH i2c: E2 0D 00 8D 24 80 0D 02 02 05 00 3F 82 CE 0B 16 00 00 E5 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [14:23:31]RAPDU: 90 00 [14:23:31]wFMCommunicate OK [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 0D 03 02 [14:23:31]Write to MH i2c: E2 08 00 8E 24 80 0D 03 02 00 00 00 00 2D [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:32]Read from MH i2c: E2 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 0B 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 0B 00 8E 24 00 94 B3 6A 7D 77 52 52 91 90 00 08 [14:23:32]RAPDU: 94 B3 6A 7D 77 52 52 91 90 00 [14:23:32]wFMCommunicate OK [14:23:32]SAM_PROTO_SignData done [14:23:32]FM_MakeSignedData done [14:23:32]CreateOFDProtocolMessage [14:23:32]wFMCommunicate request_size=4 [14:23:32]MH_SAM_APDU [14:23:32]CAPDU: 80 11 00 00 [14:23:32]Write to MH i2c: E2 08 00 8F 24 80 11 00 00 00 00 00 00 2D [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:32]Read from MH i2c: E2 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 17 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 17 00 8F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [14:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:23:32]wFMCommunicate OK [14:23:32]CreateOFDProtocolMessage done [14:23:32]OFDSenderStorePacket 164620 [14:23:32]StoreOFDPacket docnum=164620 [14:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 3E 07 01 32 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E4 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 83 02 00 35 04 06 00 39 3F 82 CE 0B 16 94 B3 6A 7D 77 52 52 91 [14:23:32]CheckFolder [14:23:32]dirname=/storage/ofd_packets [14:23:32]CheckFolder done [14:23:32]ProducePacketName [14:23:32]name=ofd_packets/00164620 [14:23:32]NVStorageSaveData ofd_packets/00164620 [14:23:32]File name is /storage/ofd_packets/00164620 [14:23:32]Write 301 bytes [14:23:32]NVStorageSaveData done [14:23:32]OFDSenderStorePacket done [14:23:32]KKMCreateOFDPacket done [14:23:32]NVStorageSaveData kkm_last_timestamp [14:23:32]File name is /storage/kkm_last_timestamp [14:23:32]Write 4 bytes [14:23:32]NVStorageSaveData done [14:23:32]ExternCall_PrintAddStr [14:23:32]wPrintStart [14:23:32]Write to MH i2c: 01 00 00 90 24 B4 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 90 24 00 00 00 00 00 FF 0F C9 [14:23:32]RasterBufferAndPrint [14:23:32]line Счет N : (1)458712 [14:23:32]line ИНН: 02508201610067 [14:23:32]line Контрольно-Кассовый Чек [14:23:32]line ПРОДАЖА [14:23:32]line ТРК (МРК, ГНК) : 12 [14:23:32]line Товар: 2710124130 [14:23:32]line Аи-92-К-5 [14:23:32]line 6.840 * 65.80 [14:23:32]line = 450.07 [14:23:32]line НДС 12% НСП 1% [14:23:32]line > о реализуемом товаре [14:23:32]line ОКРУГЛЕНИЕ: -0.07 [14:23:32]line ИТОГО: 450.00 [14:23:32]line Внесено: 450.00 [14:23:32]line СДАЧА: 0.00 [14:23:32]line НСП 1% : 3.98 [14:23:32]line НДС 12% : 47.79 [14:23:32]line Наличными: 450.00 [14:23:32]line Безнал.: 0.00 [14:23:32]line Место: АЗС № 72 "Партнер Нефть" [14:23:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:23:32]line СНО: Общий режим [14:23:32]line Чек 180 13.07.2024 14:23 [14:23:32]line Смена: 446 ФФД: 1.0 [14:23:32]line ЗНМ: 0300000160 [14:23:32]line РНМ: 0000000000090829 [14:23:32]line Версия ККМ: 001 [14:23:32]line ФМ: 0000000000874718 [14:23:32]line ФД: 164620 [14:23:32]line ФПД: 62944940264214 [14:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164620&fm=62944940264214&tin=02508201610067®Number=0000000000090829&sum=45000 [14:23:32]OFD Sender: Processing packet 164620 [packets to send 104, broken 103] [14:23:32]ProducePacketName [14:23:32]name=ofd_packets/00164620 [14:23:32]OFD Sender: To server: pG, [14:23:32]CommunicateWithHost lk.salyk.kg:30040 [14:23:32]ConnectInit lk.salyk.kg [14:23:32]written 0, free lines is 4095 [14:23:32]Connected sock=10 [14:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 3E 07 01 32 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E4 8D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 83 02 00 35 04 06 00 39 3F 82 CE 0B 16 94 B3 6A 7D 77 52 52 91 [14:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 53 47 00 B3 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 34 37 31 38 10 04 04 00 0C 83 02 00 F4 03 04 00 75 34 92 66 B6 04 01 00 00 67 1F 25 5F 3A 9B 76 0A [14:23:32]CommunicateWithHost err = 0 [14:23:32]CheckOFDResponse [14:23:32]1017 (14) - 77093643461234 [14:23:32]1041 (16) - 0000000000874718 [14:23:32]1040 (4) - 164620 [14:23:32]1012 (4) - 13.07.2024 08:01 [14:23:32]1206 (1) - 0 [14:23:32]OFD Sender: Remove packet 164620 [14:23:32]ProducePacketName [14:23:32]name=ofd_packets/00164620 [14:23:32]NVStorageDeleteData [14:23:32]Write to MH i2c: 01 00 00 BA 24 DE [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 09 0D FB [14:23:32]RasterBufferAndPrint [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]line [14:23:32]written 0, free lines is 3343 [14:23:32]MH_Cut [14:23:32]Write to MH i2c: D1 01 00 C1 24 01 B7 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 01 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: D1 01 00 C1 24 00 B6 [14:23:32]Write to MH i2c: 01 00 00 C2 24 E6 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:33]OFD Sender: No OFD packet to send [14:23:33]*** Cut start [14:23:33]*** Partial cut [14:23:33]*** CUTSNS_PIN = 1 [14:23:33]*** CUTSNS_PIN = 0 [14:23:33]*** Brake cut motor [14:23:34]Read from MH i2c: 01 [14:23:34]MH_I2C_Read... [14:23:34]*** Stop cut motor [14:23:34]*** Cut end [14:23:34]Read from MH i2c: 01 07 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [14:23:34]process_action close_receipt done [14:23:34]requested_data is exist [14:23:34]produce_requested_data [14:23:34]requested_item fm.sn is exist - process it [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 11 00 00 [14:23:34]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 17 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [14:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:23:34]wFMCommunicate OK [14:23:34]requested_item fd.num is exist - process it [14:23:34]SAM_PROTO_GetFieldsCounters [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 13 00 00 [14:23:34]Write to MH i2c: E2 08 00 C4 24 80 13 00 00 00 00 00 00 64 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 62 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 62 00 C4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetFieldsCounters done [14:23:34]requested_item shift.num is exist - process it [14:23:34]requested_item shift.opened is exist - process it [14:23:34]req_shift_opened [14:23:34]FM_GetShiftState [14:23:34]SAM_PROTO_GetShiftState [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 13 01 00 [14:23:34]Write to MH i2c: E2 08 00 C5 24 80 13 01 00 00 00 00 00 66 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 C5 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [14:23:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetShiftState done [14:23:34]FM_GetShiftState done [14:23:34]req_shift_opened done [14:23:34]requested_item shift.open_date is exist - process it [14:23:34]req_shift_open_date [14:23:34]req_shift_open_date done [14:23:34]produce_requested_data done [14:23:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164620,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:23:34]process_action_free close_receipt [14:23:34]json_value_free [14:23:34]json_value_free done [14:23:34]process_json_proto returns [14:23:34]Send response to host [14:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164620,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:23:34]free response buf [14:23:34]execute_script done [14:23:34]execute_script returns [14:23:34]free content buf [14:23:34]Sock 7.Close socket [14:23:34]Sock 7.Thread stoped [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:08]accept exits with 9 [14:25:08]New connection [14:25:08]New thread 3067149668 created [14:25:08]Thread 3067293028 joined [14:25:08]Waiting for new connection... [14:25:08] Sock 9.Parse request [14:25:08]Sock 9.Check first char [14:25:08]Sock 9.First char is OK [14:25:08]request: POST /json_proto HTTP/1.0 [14:25:08]Method: POST [14:25:08]URL: /json_proto [14:25:08]Method is POST - this is cgi request [14:25:08]url: /json_proto [14:25:08]query_string will be loaded in cgi processing [14:25:08]execute_cgi json_proto POST (null) [14:25:08]execute_cgi path=json_proto method=POST [14:25:08]POST find Content-Length [14:25:08]Host: 172.17.56.4:8080 [14:25:08]Content-Length: 682 [14:25:08]Content-Type: application/json [14:25:08] [14:25:08]POST finish read [14:25:08]Found Content-Length = 682 [14:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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" ] } } [14:25:08]execute_script... [14:25: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)458713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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" ] } } [14:25:08]POST & json_proto [14:25:08]process_json_proto [14:25:08]json parsed OK: [14:25:08]protocol is kg_v1.0 [14:25:08]action value=close_receipt [14:25:08]process_action close_receipt [14:25:08]cmd_close_receipt [14:25:08]MH_GetDate [14:25:08]Write to MH i2c: F0 00 00 C6 24 D9 [14:25:08]Write i2c OK [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: F0 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: F0 09 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: F0 09 00 C6 24 00 47 8E 92 66 C9 DC B2 64 6A [14:25:08]GetLastDocTimeStamp 1720880612 [14:25:08]current date 1720880711 [14:25:08]FM_GetShiftState [14:25:08]SAM_PROTO_GetShiftState [14:25:08]wFMCommunicate request_size=4 [14:25:08]MH_SAM_APDU [14:25:08]CAPDU: 80 13 01 00 [14:25:08]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [14:25:08]Write i2c OK [14:25:08]MH_I2C_Read... [14:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:08]Read from MH i2c: E2 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 0E 00 [14:25:08]MH_I2C_Read... [14:25:08]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 49 [14:25:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:25:08]wFMCommunicate OK [14:25:08]SAM_PROTO_GetShiftState done [14:25:08]FM_GetShiftState done [14:25:08]opened in 1720831249 [14:25:08]opened+sec_in_day 1720917649 [14:25:08]quantity*price = 150024 [14:25:08]sum+1 = 150025 [14:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 181 13.07.2024 14:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164621 ФПД: 75916859890893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142511&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164621&fm=75916859890893&tin=02508201610067®Number=0000000000090829&sum=150000 [14:25:10]StoreToDocumentArchive [14:25:10]shift 446 fd 164621 [14:25:10]save to /storage/0446/doc_00164621 [14:25:10]save last doc name /storage/0446/doc_00164621 to /storage/kkm_last_doc_name [14:25:10]save OK [14:25:10]Clear old archive folders... [14:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:10]tlvbuf is B6F14760 [14:25:10]SAM_PROTO_ClearQueue [14:25:10]wFMCommunicate request_size=4 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 09 00 00 [14:25:10]Write to MH i2c: E2 08 00 D4 24 80 09 00 00 00 00 00 00 6A [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [14:25:10]RAPDU: 90 00 [14:25:10]wFMCommunicate OK [14:25:10]SAM_PROTO_ClearQueue done [14:25:10]KKMCreateOFDPacket [14:25:10]OFDProtocolAddRootSTLVToBuf [14:25:10]FM_MakeSignedData [14:25:10]FM_MakeSignedData [14:25:10]SAM_PROTO_SignData [14:25:10]wFMCommunicate request_size=4 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 0D 01 02 [14:25:10]Write to MH i2c: E2 08 00 D5 24 80 0D 01 02 00 00 00 00 72 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [14:25:10]RAPDU: 90 00 [14:25:10]wFMCommunicate OK [14:25:10]wFMCommunicate request_size=255 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 B5 00 00 00 F4 03 04 00 47 8E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 83 02 00 35 04 06 00 45 [14:25:10]Write to MH i2c: E2 02 01 D6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 B5 00 00 00 F4 03 04 00 47 8E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 83 02 00 35 04 06 00 45 00 00 49 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [14:25:10]RAPDU: 90 00 [14:25:10]wFMCommunicate OK [14:25:10]wFMCommunicate request_size=10 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 0D 02 02 05 0B C5 77 5C CD [14:25:10]Write to MH i2c: E2 0D 00 D7 24 80 0D 02 02 05 00 0B C5 77 5C CD 00 00 EF [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [14:25:10]RAPDU: 90 00 [14:25:10]wFMCommunicate OK [14:25:10]wFMCommunicate request_size=4 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 0D 03 02 [14:25:10]Write to MH i2c: E2 08 00 D8 24 80 0D 03 02 00 00 00 00 77 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 0B 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 0B 00 D8 24 00 95 A1 7A DC 40 33 7E BF 90 00 B4 [14:25:10]RAPDU: 95 A1 7A DC 40 33 7E BF 90 00 [14:25:10]wFMCommunicate OK [14:25:10]SAM_PROTO_SignData done [14:25:10]FM_MakeSignedData done [14:25:10]CreateOFDProtocolMessage [14:25:10]wFMCommunicate request_size=4 [14:25:10]MH_SAM_APDU [14:25:10]CAPDU: 80 11 00 00 [14:25:10]Write to MH i2c: E2 08 00 D9 24 80 11 00 00 00 00 00 00 77 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:10]Read from MH i2c: E2 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 17 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: E2 17 00 D9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [14:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:25:10]wFMCommunicate OK [14:25:10]CreateOFDProtocolMessage done [14:25:10]OFDSenderStorePacket 164621 [14:25:10]StoreOFDPacket docnum=164621 [14:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 08 07 01 11 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 B5 00 00 00 F4 03 04 00 47 8E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 83 02 00 35 04 06 00 45 0B C5 77 5C CD 95 A1 7A DC 40 33 7E BF [14:25:10]CheckFolder [14:25:10]dirname=/storage/ofd_packets [14:25:10]CheckFolder done [14:25:10]ProducePacketName [14:25:10]name=ofd_packets/00164621 [14:25:10]NVStorageSaveData ofd_packets/00164621 [14:25:10]File name is /storage/ofd_packets/00164621 [14:25:10]Write 301 bytes [14:25:10]NVStorageSaveData done [14:25:10]OFDSenderStorePacket done [14:25:10]KKMCreateOFDPacket done [14:25:10]NVStorageSaveData kkm_last_timestamp [14:25:10]File name is /storage/kkm_last_timestamp [14:25:10]Write 4 bytes [14:25:10]NVStorageSaveData done [14:25:10]ExternCall_PrintAddStr [14:25:10]wPrintStart [14:25:10]Write to MH i2c: 01 00 00 DA 24 FE [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [14:25:10]RasterBufferAndPrint [14:25:10]line Счет N : (1)458713 [14:25:10]line ИНН: 02508201610067 [14:25:10]line Контрольно-Кассовый Чек [14:25:10]line ПРОДАЖА [14:25:10]line ТРК (МРК, ГНК) : 12 [14:25:10]line Товар: 2710124130 [14:25:10]line Аи-92-К-5 [14:25:10]line 22.800 * 65.80 [14:25:10]line = 1500.24 [14:25:10]line НДС 12% НСП 1% [14:25:10]line > о реализуемом товаре [14:25:10]line ОКРУГЛЕНИЕ: -0.24 [14:25:10]line ИТОГО: 1500.00 [14:25:10]line Внесено: 1500.00 [14:25:10]line СДАЧА: 0.00 [14:25:10]line НСП 1% : 13.28 [14:25:10]line НДС 12% : 159.32 [14:25:10]line Наличными: 1500.00 [14:25:10]line Безнал.: 0.00 [14:25:10]line Место: АЗС № 72 "Партнер Нефть" [14:25:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:25:10]line СНО: Общий режим [14:25:10]line Чек 181 13.07.2024 14:25 [14:25:10]line Смена: 446 ФФД: 1.0 [14:25:10]line ЗНМ: 0300000160 [14:25:10]line РНМ: 0000000000090829 [14:25:10]line Версия ККМ: 001 [14:25:10]line ФМ: 0000000000874718 [14:25:10]line ФД: 164621 [14:25:10]line ФПД: 75916859890893 [14:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142511&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164621&fm=75916859890893&tin=02508201610067®Number=0000000000090829&sum=150000 [14:25:10]OFD Sender: Processing packet 164621 [packets to send 104, broken 103] [14:25:10]ProducePacketName [14:25:10]name=ofd_packets/00164621 [14:25:10]OFD Sender: To server: pG, [14:25:10]CommunicateWithHost lk.salyk.kg:30040 [14:25:10]ConnectInit lk.salyk.kg [14:25:10]written 0, free lines is 4095 [14:25:11]Connected sock=7 [14:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 08 07 01 11 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 B5 00 00 00 F4 03 04 00 47 8E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 83 02 00 35 04 06 00 45 0B C5 77 5C CD 95 A1 7A DC 40 33 7E BF [14:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E7 95 47 00 82 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 83 02 00 F4 03 04 00 D7 34 92 66 B6 04 01 00 00 1E 9A EB FC C4 3E 06 F2 [14:25:11]CommunicateWithHost err = 0 [14:25:11]CheckOFDResponse [14:25:11]1017 (14) - 77093643461234 [14:25:11]1041 (16) - 0000000000874718 [14:25:11]1040 (4) - 164621 [14:25:11]1012 (4) - 13.07.2024 08:03 [14:25:11]1206 (1) - 0 [14:25:11]OFD Sender: Remove packet 164621 [14:25:11]ProducePacketName [14:25:11]name=ofd_packets/00164621 [14:25:11]NVStorageDeleteData [14:25:11]Write to MH i2c: 01 00 00 04 25 29 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 07 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 07 00 04 25 00 00 00 00 00 0C 0D 49 [14:25:11]RasterBufferAndPrint [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]written 0, free lines is 3346 [14:25:11]MH_Cut [14:25:11]Write to MH i2c: D1 01 00 0B 25 01 02 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 01 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 01 00 0B 25 00 01 [14:25:11]Write to MH i2c: 01 00 00 0C 25 31 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]OFD Sender: No OFD packet to send [14:25:12]*** Cut start [14:25:12]*** Partial cut [14:25:12]*** CUTSNS_PIN = 1 [14:25:12]*** CUTSNS_PIN = 0 [14:25:12]*** Brake cut motor [14:25:12]Read from MH i2c: 01 [14:25:12]MH_I2C_Read... [14:25:12]*** Stop cut motor [14:25:12]*** Cut end [14:25:12]Read from MH i2c: 01 07 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: 01 07 00 0C 25 00 00 00 00 00 FF 0F 46 [14:25:12]process_action close_receipt done [14:25:12]requested_data is exist [14:25:12]produce_requested_data [14:25:12]requested_item fm.sn is exist - process it [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 11 00 00 [14:25:12]Write to MH i2c: E2 08 00 0D 25 80 11 00 00 00 00 00 00 AC [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 0D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [14:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:25:12]wFMCommunicate OK [14:25:12]requested_item fd.num is exist - process it [14:25:12]SAM_PROTO_GetFieldsCounters [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 13 00 00 [14:25:12]Write to MH i2c: E2 08 00 0E 25 80 13 00 00 00 00 00 00 AF [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 0E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [14:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetFieldsCounters done [14:25:12]requested_item shift.num is exist - process it [14:25:12]requested_item shift.opened is exist - process it [14:25:12]req_shift_opened [14:25:12]FM_GetShiftState [14:25:12]SAM_PROTO_GetShiftState [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 13 01 00 [14:25:12]Write to MH i2c: E2 08 00 0F 25 80 13 01 00 00 00 00 00 B1 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 0F 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [14:25:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetShiftState done [14:25:12]FM_GetShiftState done [14:25:12]req_shift_opened done [14:25:12]requested_item shift.open_date is exist - process it [14:25:12]req_shift_open_date [14:25:12]req_shift_open_date done [14:25:12]produce_requested_data done [14:25:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164621,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:25:12]process_action_free close_receipt [14:25:12]json_value_free [14:25:12]json_value_free done [14:25:12]process_json_proto returns [14:25:12]Send response to host [14:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164621,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:25:12]free response buf [14:25:12]execute_script done [14:25:12]execute_script returns [14:25:12]free content buf [14:25:12]Sock 9.Close socket [14:25:12]Sock 9.Thread stoped [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:04]accept exits with 10 [14:34:04]New connection [14:34:04]New thread 3067293028 created [14:34:04]Thread 3067149668 joined [14:34:04]Waiting for new connection... [14:34:04] Sock 10.Parse request [14:34:04]Sock 10.Check first char [14:34:04]Sock 10.First char is OK [14:34:04]request: POST /json_proto HTTP/1.0 [14:34:04]Method: POST [14:34:04]URL: /json_proto [14:34:04]Method is POST - this is cgi request [14:34:04]url: /json_proto [14:34:04]query_string will be loaded in cgi processing [14:34:04]execute_cgi json_proto POST (null) [14:34:04]execute_cgi path=json_proto method=POST [14:34:04]POST find Content-Length [14:34:04]Host: 172.17.56.4:8080 [14:34:04]Content-Length: 682 [14:34:04]Content-Type: application/json [14:34:04] [14:34:04]POST finish read [14:34:04]Found Content-Length = 682 [14:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:04]execute_script... [14:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:04]POST & json_proto [14:34:04]process_json_proto [14:34:04]json parsed OK: [14:34:04]protocol is kg_v1.0 [14:34:04]action value=close_receipt [14:34:04]process_action close_receipt [14:34:04]cmd_close_receipt [14:34:04]MH_GetDate [14:34:04]Write to MH i2c: F0 00 00 10 25 24 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: F0 09 00 10 25 00 5E 90 92 66 C9 DC B2 64 CE [14:34:04]GetLastDocTimeStamp 1720880711 [14:34:04]current date 1720881246 [14:34:04]FM_GetShiftState [14:34:04]SAM_PROTO_GetShiftState [14:34:04]wFMCommunicate request_size=4 [14:34:04]MH_SAM_APDU [14:34:04]CAPDU: 80 13 01 00 [14:34:04]Write to MH i2c: E2 08 00 11 25 80 13 01 00 00 00 00 00 B3 [14:34:04]Write i2c OK [14:34:04]MH_I2C_Read... [14:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:04]Read from MH i2c: E2 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 [14:34:04]MH_I2C_Read... [14:34:04]Read from MH i2c: E2 0E 00 11 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 94 [14:34:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:34:04]wFMCommunicate OK [14:34:04]SAM_PROTO_GetShiftState done [14:34:04]FM_GetShiftState done [14:34:04]opened in 1720831249 [14:34:04]opened+sec_in_day 1720917649 [14:34:04]quantity*price = 100016 [14:34:04]sum+1 = 100017 [14:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 182 13.07.2024 14:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164622 ФПД: 120498350485451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143407&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164622&fm=120498350485451&tin=02508201610067®Number=0000000000090829&sum=100000 [14:34:05]StoreToDocumentArchive [14:34:05]shift 446 fd 164622 [14:34:05]save to /storage/0446/doc_00164622 [14:34:05]save last doc name /storage/0446/doc_00164622 to /storage/kkm_last_doc_name [14:34:05]save OK [14:34:05]Clear old archive folders... [14:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:05]tlvbuf is B6F143C0 [14:34:05]SAM_PROTO_ClearQueue [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 09 00 00 [14:34:05]Write to MH i2c: E2 08 00 1E 25 80 09 00 00 00 00 00 00 B5 [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:05]Read from MH i2c: E2 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 [14:34:05]MH_I2C_Read... [14:34:05]Read from MH i2c: E2 03 00 1E 25 00 90 00 B7 [14:34:05]RAPDU: 90 00 [14:34:05]wFMCommunicate OK [14:34:05]SAM_PROTO_ClearQueue done [14:34:05]KKMCreateOFDPacket [14:34:05]OFDProtocolAddRootSTLVToBuf [14:34:05]FM_MakeSignedData [14:34:05]FM_MakeSignedData [14:34:05]SAM_PROTO_SignData [14:34:05]wFMCommunicate request_size=4 [14:34:05]MH_SAM_APDU [14:34:05]CAPDU: 80 0D 01 02 [14:34:05]Write to MH i2c: E2 08 00 1F 25 80 0D 01 02 00 00 00 00 BD [14:34:05]Write i2c OK [14:34:05]MH_I2C_Read... [14:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]wFMCommunicate request_size=255 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5F 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 83 02 00 35 04 06 00 6D [14:34:06]Write to MH i2c: E2 02 01 20 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5F 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 83 02 00 35 04 06 00 6D 00 00 34 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 20 25 00 90 00 B9 [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]wFMCommunicate request_size=10 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 02 02 05 97 B5 60 6F CB [14:34:06]Write to MH i2c: E2 0D 00 21 25 80 0D 02 02 05 00 97 B5 60 6F CB 00 00 B0 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [14:34:06]RAPDU: 90 00 [14:34:06]wFMCommunicate OK [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 0D 03 02 [14:34:06]Write to MH i2c: E2 08 00 22 25 80 0D 03 02 00 00 00 00 C2 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0B 00 22 25 00 E0 22 FE 06 DC 55 B5 09 90 00 B8 [14:34:06]RAPDU: E0 22 FE 06 DC 55 B5 09 90 00 [14:34:06]wFMCommunicate OK [14:34:06]SAM_PROTO_SignData done [14:34:06]FM_MakeSignedData done [14:34:06]CreateOFDProtocolMessage [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 11 00 00 [14:34:06]Write to MH i2c: E2 08 00 23 25 80 11 00 00 00 00 00 00 C2 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 17 00 23 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [14:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:34:06]wFMCommunicate OK [14:34:06]CreateOFDProtocolMessage done [14:34:06]OFDSenderStorePacket 164622 [14:34:06]StoreOFDPacket docnum=164622 [14:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 20 07 01 AA 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5F 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 83 02 00 35 04 06 00 6D 97 B5 60 6F CB E0 22 FE 06 DC 55 B5 09 [14:34:06]CheckFolder [14:34:06]dirname=/storage/ofd_packets [14:34:06]CheckFolder done [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00164622 [14:34:06]NVStorageSaveData ofd_packets/00164622 [14:34:06]File name is /storage/ofd_packets/00164622 [14:34:06]Write 301 bytes [14:34:06]NVStorageSaveData done [14:34:06]OFDSenderStorePacket done [14:34:06]KKMCreateOFDPacket done [14:34:06]NVStorageSaveData kkm_last_timestamp [14:34:06]File name is /storage/kkm_last_timestamp [14:34:06]Write 4 bytes [14:34:06]NVStorageSaveData done [14:34:06]ExternCall_PrintAddStr [14:34:06]wPrintStart [14:34:06]Write to MH i2c: 01 00 00 24 25 49 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: 01 07 00 24 25 00 00 00 00 00 FF 0F 5E [14:34:06]RasterBufferAndPrint [14:34:06]line Счет N : (1)458715 [14:34:06]line ИНН: 02508201610067 [14:34:06]line Контрольно-Кассовый Чек [14:34:06]line ПРОДАЖА [14:34:06]line ТРК (МРК, ГНК) : 12 [14:34:06]line Товар: 2710124130 [14:34:06]line Аи-92-К-5 [14:34:06]line 15.200 * 65.80 [14:34:06]line = 1000.16 [14:34:06]line НДС 12% НСП 1% [14:34:06]line > о реализуемом товаре [14:34:06]line ОКРУГЛЕНИЕ: -0.16 [14:34:06]line ИТОГО: 1000.00 [14:34:06]line Внесено: 1000.00 [14:34:06]line СДАЧА: 0.00 [14:34:06]line НСП 1% : 8.85 [14:34:06]line НДС 12% : 106.21 [14:34:06]line Наличными: 1000.00 [14:34:06]line Безнал.: 0.00 [14:34:06]line Место: АЗС № 72 "Партнер Нефть" [14:34:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:34:06]line СНО: Общий режим [14:34:06]line Чек 182 13.07.2024 14:34 [14:34:06]line Смена: 446 ФФД: 1.0 [14:34:06]line ЗНМ: 0300000160 [14:34:06]line РНМ: 0000000000090829 [14:34:06]line Версия ККМ: 001 [14:34:06]line ФМ: 0000000000874718 [14:34:06]line ФД: 164622 [14:34:06]line ФПД: 120498350485451 [14:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143407&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164622&fm=120498350485451&tin=02508201610067®Number=0000000000090829&sum=100000 [14:34:06]OFD Sender: Processing packet 164622 [packets to send 104, broken 103] [14:34:06]ProducePacketName [14:34:06]name=ofd_packets/00164622 [14:34:06]OFD Sender: To server: pG, [14:34:06]CommunicateWithHost lk.salyk.kg:30040 [14:34:06]ConnectInit lk.salyk.kg [14:34:06]written 0, free lines is 4095 [14:34:06]Connected sock=11 [14:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 20 07 01 AA 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5F 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 83 02 00 35 04 06 00 6D 97 B5 60 6F CB E0 22 FE 06 DC 55 B5 09 [14:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 AF 47 00 90 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 34 37 31 38 10 04 04 00 0E 83 02 00 F4 03 04 00 EF 36 92 66 B6 04 01 00 00 20 85 31 9D EB DF 98 C4 [14:34:07]CommunicateWithHost err = 0 [14:34:07]CheckOFDResponse [14:34:07]1017 (14) - 77093643461234 [14:34:07]1041 (16) - 0000000000874718 [14:34:07]1040 (4) - 164622 [14:34:07]1012 (4) - 13.07.2024 08:12 [14:34:07]1206 (1) - 0 [14:34:07]OFD Sender: Remove packet 164622 [14:34:07]ProducePacketName [14:34:07]name=ofd_packets/00164622 [14:34:07]NVStorageDeleteData [14:34:07]Write to MH i2c: 01 00 00 4E 25 73 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 4E 25 00 00 00 00 00 05 0D 8C [14:34:07]RasterBufferAndPrint [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]line [14:34:07]written 0, free lines is 3339 [14:34:07]MH_Cut [14:34:07]Write to MH i2c: D1 01 00 55 25 01 4C [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 01 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: D1 01 00 55 25 00 4B [14:34:07]Write to MH i2c: 01 00 00 56 25 7B [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]OFD Sender: No OFD packet to send [14:34:07]*** Cut start [14:34:07]*** Partial cut [14:34:07]*** CUTSNS_PIN = 1 [14:34:07]*** CUTSNS_PIN = 0 [14:34:08]*** Brake cut motor [14:34:08]Read from MH i2c: 01 [14:34:08]MH_I2C_Read... [14:34:08]*** Stop cut motor [14:34:08]*** Cut end [14:34:08]Read from MH i2c: 01 07 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 07 00 56 25 00 00 00 00 00 FF 0F 90 [14:34:08]process_action close_receipt done [14:34:08]requested_data is exist [14:34:08]produce_requested_data [14:34:08]requested_item fm.sn is exist - process it [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 11 00 00 [14:34:08]Write to MH i2c: E2 08 00 57 25 80 11 00 00 00 00 00 00 F6 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 17 00 57 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [14:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:34:08]wFMCommunicate OK [14:34:08]requested_item fd.num is exist - process it [14:34:08]SAM_PROTO_GetFieldsCounters [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 00 00 [14:34:08]Write to MH i2c: E2 08 00 58 25 80 13 00 00 00 00 00 00 F9 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 62 00 58 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [14:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetFieldsCounters done [14:34:08]requested_item shift.num is exist - process it [14:34:08]requested_item shift.opened is exist - process it [14:34:08]req_shift_opened [14:34:08]FM_GetShiftState [14:34:08]SAM_PROTO_GetShiftState [14:34:08]wFMCommunicate request_size=4 [14:34:08]MH_SAM_APDU [14:34:08]CAPDU: 80 13 01 00 [14:34:08]Write to MH i2c: E2 08 00 59 25 80 13 01 00 00 00 00 00 FB [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:08]Read from MH i2c: E2 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: E2 0E 00 59 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DC [14:34:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:34:08]wFMCommunicate OK [14:34:08]SAM_PROTO_GetShiftState done [14:34:08]FM_GetShiftState done [14:34:08]req_shift_opened done [14:34:08]requested_item shift.open_date is exist - process it [14:34:08]req_shift_open_date [14:34:08]req_shift_open_date done [14:34:08]produce_requested_data done [14:34:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164622,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:34:08]process_action_free close_receipt [14:34:08]json_value_free [14:34:08]json_value_free done [14:34:08]process_json_proto returns [14:34:08]Send response to host [14:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164622,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:34:08]free response buf [14:34:08]execute_script done [14:34:08]execute_script returns [14:34:08]free content buf [14:34:08]Sock 10.Close socket [14:34:08]Sock 10.Thread stoped [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]accept exits with 7 [14:35:32]New connection [14:35:32]New thread 3067149668 created [14:35:32]Thread 3067293028 joined [14:35:32]Waiting for new connection... [14:35:32] Sock 7.Parse request [14:35:32]Sock 7.Check first char [14:35:32]Sock 7.First char is OK [14:35:32]request: POST /json_proto HTTP/1.0 [14:35:32]Method: POST [14:35:32]URL: /json_proto [14:35:32]Method is POST - this is cgi request [14:35:32]url: /json_proto [14:35:32]query_string will be loaded in cgi processing [14:35:32]execute_cgi json_proto POST (null) [14:35:32]execute_cgi path=json_proto method=POST [14:35:32]POST find Content-Length [14:35:32]Host: 172.17.56.4:8080 [14:35:32]Content-Length: 679 [14:35:32]Content-Type: application/json [14:35:32] [14:35:32]POST finish read [14:35:32]Found Content-Length = 679 [14:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 39.920, "sum" : 2870.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2870.00, "total" : 2870.00, "payments": [ { "type": 0, "sum" : 2870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]execute_script... [14:35: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)458714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 39.920, "sum" : 2870.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2870.00, "total" : 2870.00, "payments": [ { "type": 0, "sum" : 2870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]POST & json_proto [14:35:32]process_json_proto [14:35:32]json parsed OK: [14:35:32]protocol is kg_v1.0 [14:35:32]action value=close_receipt [14:35:32]process_action close_receipt [14:35:32]cmd_close_receipt [14:35:32]MH_GetDate [14:35:32]Write to MH i2c: F0 00 00 5A 25 6E [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 5A 25 00 B6 90 92 66 C9 DC B2 64 70 [14:35:32]GetLastDocTimeStamp 1720881247 [14:35:32]current date 1720881334 [14:35:32]FM_GetShiftState [14:35:32]SAM_PROTO_GetShiftState [14:35:32]wFMCommunicate request_size=4 [14:35:32]MH_SAM_APDU [14:35:32]CAPDU: 80 13 01 00 [14:35:32]Write to MH i2c: E2 08 00 5B 25 80 13 01 00 00 00 00 00 FD [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:32]Read from MH i2c: E2 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 5B 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DE [14:35:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:35:32]wFMCommunicate OK [14:35:32]SAM_PROTO_GetShiftState done [14:35:32]FM_GetShiftState done [14:35:32]opened in 1720831249 [14:35:32]opened+sec_in_day 1720917649 [14:35:32]quantity*price = 287024 [14:35:32]sum+1 = 287026 [14:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2870.00 Внесено: 2870.00 СДАЧА: 0.00 НСП 1% : 25.40 НДС 12% : 304.80 Наличными: 2870.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 183 13.07.2024 14:35 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164623 ФПД: 239415697263597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164623&fm=239415697263597&tin=02508201610067®Number=0000000000090829&sum=287000 [14:35:33]StoreToDocumentArchive [14:35:33]shift 446 fd 164623 [14:35:33]save to /storage/0446/doc_00164623 [14:35:33]save last doc name /storage/0446/doc_00164623 to /storage/kkm_last_doc_name [14:35:33]save OK [14:35:33]Clear old archive folders... [14:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:33]tlvbuf is B6EFB6E0 [14:35:33]SAM_PROTO_ClearQueue [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 09 00 00 [14:35:33]Write to MH i2c: E2 08 00 68 25 80 09 00 00 00 00 00 00 FF [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 68 25 00 90 00 01 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]SAM_PROTO_ClearQueue done [14:35:33]KKMCreateOFDPacket [14:35:33]OFDProtocolAddRootSTLVToBuf [14:35:33]FM_MakeSignedData [14:35:33]FM_MakeSignedData [14:35:33]SAM_PROTO_SignData [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 01 02 [14:35:33]Write to MH i2c: E2 08 00 69 25 80 0D 01 02 00 00 00 00 07 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 69 25 00 90 00 02 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=255 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 9B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 77 00 00 00 00 07 04 06 00 18 61 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 83 02 00 35 04 06 00 D9 BF 4F 96 [14:35:33]Write to MH i2c: E2 02 01 6A 25 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 F0 9B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 77 00 00 00 00 07 04 06 00 18 61 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 83 02 00 35 04 06 00 D9 BF 4F 96 00 00 F8 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 6A 25 00 90 00 03 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=7 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 02 02 02 CB ED [14:35:33]Write to MH i2c: E2 0A 00 6B 25 80 0D 02 02 02 00 CB ED 00 00 C6 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 6B 25 00 90 00 04 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 03 02 [14:35:33]Write to MH i2c: E2 08 00 6C 25 80 0D 03 02 00 00 00 00 0C [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 0B 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 0B 00 6C 25 00 64 FA 51 98 A9 BA 31 0A 90 00 F2 [14:35:33]RAPDU: 64 FA 51 98 A9 BA 31 0A 90 00 [14:35:33]wFMCommunicate OK [14:35:33]SAM_PROTO_SignData done [14:35:33]FM_MakeSignedData done [14:35:33]CreateOFDProtocolMessage [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 11 00 00 [14:35:33]Write to MH i2c: E2 08 00 6D 25 80 11 00 00 00 00 00 00 0C [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 17 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 17 00 6D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [14:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:35:34]wFMCommunicate OK [14:35:34]CreateOFDProtocolMessage done [14:35:34]OFDSenderStorePacket 164623 [14:35:34]StoreOFDPacket docnum=164623 [14:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2D 05 04 01 71 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 9B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 77 00 00 00 00 07 04 06 00 18 61 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 83 02 00 35 04 06 00 D9 BF 4F 96 CB ED 64 FA 51 98 A9 BA 31 0A [14:35:34]CheckFolder [14:35:34]dirname=/storage/ofd_packets [14:35:34]CheckFolder done [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00164623 [14:35:34]NVStorageSaveData ofd_packets/00164623 [14:35:34]File name is /storage/ofd_packets/00164623 [14:35:34]Write 298 bytes [14:35:34]NVStorageSaveData done [14:35:34]OFDSenderStorePacket done [14:35:34]KKMCreateOFDPacket done [14:35:34]NVStorageSaveData kkm_last_timestamp [14:35:34]File name is /storage/kkm_last_timestamp [14:35:34]Write 4 bytes [14:35:34]NVStorageSaveData done [14:35:34]ExternCall_PrintAddStr [14:35:34]wPrintStart [14:35:34]Write to MH i2c: 01 00 00 6E 25 93 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 6E 25 00 00 00 00 00 FF 0F A8 [14:35:34]RasterBufferAndPrint [14:35:34]line Счет N : (1)458714 [14:35:34]line ИНН: 02508201610067 [14:35:34]line Контрольно-Кассовый Чек [14:35:34]line ПРОДАЖА [14:35:34]line ТРК (МРК, ГНК) : 21 [14:35:34]line Товар: 2710194210 [14:35:34]line ДТ-К-5 [14:35:34]line 39.920 * 71.90 [14:35:34]line = 2870.25 [14:35:34]line НДС 12% НСП 1% [14:35:34]line > о реализуемом товаре [14:35:34]line ОКРУГЛЕНИЕ: -0.25 [14:35:34]line ИТОГО: 2870.00 [14:35:34]line Внесено: 2870.00 [14:35:34]line СДАЧА: 0.00 [14:35:34]line НСП 1% : 25.40 [14:35:34]line НДС 12% : 304.80 [14:35:34]line Наличными: 2870.00 [14:35:34]line Безнал.: 0.00 [14:35:34]line Место: АЗС № 72 "Партнер Нефть" [14:35:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:35:34]line СНО: Общий режим [14:35:34]line Чек 183 13.07.2024 14:35 [14:35:34]line Смена: 446 ФФД: 1.0 [14:35:34]line ЗНМ: 0300000160 [14:35:34]line РНМ: 0000000000090829 [14:35:34]line Версия ККМ: 001 [14:35:34]line ФМ: 0000000000874718 [14:35:34]line ФД: 164623 [14:35:34]line ФПД: 239415697263597 [14:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164623&fm=239415697263597&tin=02508201610067®Number=0000000000090829&sum=287000 [14:35:34]written 0, free lines is 4095 [14:35:34]OFD Sender: Processing packet 164623 [packets to send 104, broken 103] [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00164623 [14:35:34]OFD Sender: To server: pG, [14:35:34]CommunicateWithHost lk.salyk.kg:30040 [14:35:34]ConnectInit lk.salyk.kg [14:35:34]Connected sock=10 [14:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2D 05 04 01 71 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 9B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 77 00 00 00 00 07 04 06 00 18 61 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 B6 90 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 83 02 00 35 04 06 00 D9 BF 4F 96 CB ED 64 FA 51 98 A9 BA 31 0A [14:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 63 47 00 1C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 83 02 00 F4 03 04 00 47 37 92 66 B6 04 01 00 00 74 A5 65 B7 F3 0E 95 CE [14:35:34]CommunicateWithHost err = 0 [14:35:34]CheckOFDResponse [14:35:34]1017 (14) - 77093643461234 [14:35:34]1041 (16) - 0000000000874718 [14:35:34]1040 (4) - 164623 [14:35:34]1012 (4) - 13.07.2024 08:13 [14:35:34]1206 (1) - 0 [14:35:34]OFD Sender: Remove packet 164623 [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00164623 [14:35:34]NVStorageDeleteData [14:35:34]Write to MH i2c: 01 00 00 98 25 BD [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 98 25 00 00 00 00 00 0A 0D DB [14:35:34]RasterBufferAndPrint [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]written 0, free lines is 3348 [14:35:34]MH_Cut [14:35:34]Write to MH i2c: D1 01 00 9F 25 01 96 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 01 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 01 00 9F 25 00 95 [14:35:34]Write to MH i2c: 01 00 00 A0 25 C5 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]OFD Sender: No OFD packet to send [14:35:35]*** Cut start [14:35:35]*** Partial cut [14:35:35]*** CUTSNS_PIN = 1 [14:35:35]*** CUTSNS_PIN = 0 [14:35:35]*** Brake cut motor [14:35:35]Read from MH i2c: 01 [14:35:35]MH_I2C_Read... [14:35:35]*** Stop cut motor [14:35:35]*** Cut end [14:35:35]Read from MH i2c: 01 07 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 07 00 A0 25 00 00 00 00 00 FF 0F DA [14:35:35]process_action close_receipt done [14:35:35]requested_data is exist [14:35:35]produce_requested_data [14:35:35]requested_item fm.sn is exist - process it [14:35:35]wFMCommunicate request_size=4 [14:35:35]MH_SAM_APDU [14:35:35]CAPDU: 80 11 00 00 [14:35:35]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:35]Read from MH i2c: E2 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 17 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [14:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:35:35]wFMCommunicate OK [14:35:35]requested_item fd.num is exist - process it [14:35:35]SAM_PROTO_GetFieldsCounters [14:35:35]wFMCommunicate request_size=4 [14:35:35]MH_SAM_APDU [14:35:35]CAPDU: 80 13 00 00 [14:35:35]Write to MH i2c: E2 08 00 A2 25 80 13 00 00 00 00 00 00 43 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:35]Read from MH i2c: E2 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 62 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 62 00 A2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:35: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:35]wFMCommunicate OK [14:35:35]SAM_PROTO_GetFieldsCounters done [14:35:35]requested_item shift.num is exist - process it [14:35:35]requested_item shift.opened is exist - process it [14:35:35]req_shift_opened [14:35:35]FM_GetShiftState [14:35:35]SAM_PROTO_GetShiftState [14:35:35]wFMCommunicate request_size=4 [14:35:35]MH_SAM_APDU [14:35:35]CAPDU: 80 13 01 00 [14:35:35]Write to MH i2c: E2 08 00 A3 25 80 13 01 00 00 00 00 00 45 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:35]Read from MH i2c: E2 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 0E 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: E2 0E 00 A3 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 26 [14:35:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:35:35]wFMCommunicate OK [14:35:35]SAM_PROTO_GetShiftState done [14:35:35]FM_GetShiftState done [14:35:35]req_shift_opened done [14:35:35]requested_item shift.open_date is exist - process it [14:35:35]req_shift_open_date [14:35:35]req_shift_open_date done [14:35:35]produce_requested_data done [14:35:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164623,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:35:35]process_action_free close_receipt [14:35:35]json_value_free [14:35:35]json_value_free done [14:35:35]process_json_proto returns [14:35:35]Send response to host [14:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164623,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:35:35]free response buf [14:35:35]execute_script done [14:35:35]execute_script returns [14:35:35]free content buf [14:35:35]Sock 7.Close socket [14:35:35]Sock 7.Thread stoped [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:04]accept exits with 9 [14:41:04]New connection [14:41:04]New thread 3067293028 created [14:41:04]Thread 3067149668 joined [14:41:04]Waiting for new connection... [14:41:04] Sock 9.Parse request [14:41:04]Sock 9.Check first char [14:41:04]Sock 9.First char is OK [14:41:04]request: POST /json_proto HTTP/1.0 [14:41:04]Method: POST [14:41:04]URL: /json_proto [14:41:04]Method is POST - this is cgi request [14:41:04]url: /json_proto [14:41:04]query_string will be loaded in cgi processing [14:41:04]execute_cgi json_proto POST (null) [14:41:04]execute_cgi path=json_proto method=POST [14:41:04]POST find Content-Length [14:41:04]Host: 172.17.56.4:8080 [14:41:04]Content-Length: 790 [14:41:04]Content-Type: application/json [14:41:04] [14:41:04]POST finish read [14:41:04]Found Content-Length = 790 [14:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 30.000, "sum" : 2137.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2137.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:04]execute_script... [14:41:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 30.000, "sum" : 2137.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2137.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:04]POST & json_proto [14:41:04]process_json_proto [14:41:04]json parsed OK: [14:41:04]protocol is kg_v1.0 [14:41:04]action value=close_receipt [14:41:04]process_action close_receipt [14:41:04]cmd_close_receipt [14:41:04]MH_GetDate [14:41:04]Write to MH i2c: F0 00 00 A4 25 B8 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 09 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: F0 09 00 A4 25 00 02 92 92 66 C9 DC B2 64 08 [14:41:04]GetLastDocTimeStamp 1720881334 [14:41:04]current date 1720881666 [14:41:04]FM_GetShiftState [14:41:04]SAM_PROTO_GetShiftState [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 13 01 00 [14:41:04]Write to MH i2c: E2 08 00 A5 25 80 13 01 00 00 00 00 00 47 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0E 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0E 00 A5 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 28 [14:41:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:04]wFMCommunicate OK [14:41:04]SAM_PROTO_GetShiftState done [14:41:04]FM_GetShiftState done [14:41:04]opened in 1720831249 [14:41:04]opened+sec_in_day 1720917649 [14:41:04]quantity*price = 213780 [14:41:04]sum+1 = 213781 [14:41:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2137.80 НСП 1% : 18.92 НДС 12% : 227.02 Наличными: 0.00 Безнал.: 2137.80 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 184 13.07.2024 14:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164624 ФПД: 91011756349689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164624&fm=91011756349689&tin=02508201610067®Number=0000000000090829&sum=213780 [14:41:05]StoreToDocumentArchive [14:41:05]shift 446 fd 164624 [14:41:05]save to /storage/0446/doc_00164624 [14:41:05]save last doc name /storage/0446/doc_00164624 to /storage/kkm_last_doc_name [14:41:05]save OK [14:41:05]Clear old archive folders... [14:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:05]tlvbuf is B6EFB460 [14:41:05]SAM_PROTO_ClearQueue [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 09 00 00 [14:41:05]Write to MH i2c: E2 08 00 B2 25 80 09 00 00 00 00 00 00 49 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_ClearQueue done [14:41:05]KKMCreateOFDPacket [14:41:05]OFDProtocolAddRootSTLVToBuf [14:41:05]FM_MakeSignedData [14:41:05]FM_MakeSignedData [14:41:05]SAM_PROTO_SignData [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 01 02 [14:41:05]Write to MH i2c: E2 08 00 B3 25 80 0D 01 02 00 00 00 00 51 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 B3 25 00 90 00 4C [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]wFMCommunicate request_size=255 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 03 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 83 02 00 35 04 06 00 52 C6 53 68 [14:41:05]Write to MH i2c: E2 02 01 B4 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 03 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 83 02 00 35 04 06 00 52 C6 53 68 00 00 35 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 B4 25 00 90 00 4D [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=7 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 02 02 02 58 F9 [14:41:06]Write to MH i2c: E2 0A 00 B5 25 80 0D 02 02 02 00 58 F9 00 00 A9 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [14:41:06]RAPDU: 90 00 [14:41:06]wFMCommunicate OK [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 0D 03 02 [14:41:06]Write to MH i2c: E2 08 00 B6 25 80 0D 03 02 00 00 00 00 56 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0B 00 B6 25 00 0A 1C CC 4A C5 F6 5E 4C 90 00 F8 [14:41:06]RAPDU: 0A 1C CC 4A C5 F6 5E 4C 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_SignData done [14:41:06]FM_MakeSignedData done [14:41:06]CreateOFDProtocolMessage [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 11 00 00 [14:41:06]Write to MH i2c: E2 08 00 B7 25 80 11 00 00 00 00 00 00 56 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 B7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [14:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:06]wFMCommunicate OK [14:41:06]CreateOFDProtocolMessage done [14:41:06]OFDSenderStorePacket 164624 [14:41:06]StoreOFDPacket docnum=164624 [14:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F7 AE 04 01 3D 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 03 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 83 02 00 35 04 06 00 52 C6 53 68 58 F9 0A 1C CC 4A C5 F6 5E 4C [14:41:06]CheckFolder [14:41:06]dirname=/storage/ofd_packets [14:41:06]CheckFolder done [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00164624 [14:41:06]NVStorageSaveData ofd_packets/00164624 [14:41:06]File name is /storage/ofd_packets/00164624 [14:41:06]Write 298 bytes [14:41:06]NVStorageSaveData done [14:41:06]OFDSenderStorePacket done [14:41:06]KKMCreateOFDPacket done [14:41:06]NVStorageSaveData kkm_last_timestamp [14:41:06]File name is /storage/kkm_last_timestamp [14:41:06]Write 4 bytes [14:41:06]NVStorageSaveData done [14:41:06]ExternCall_PrintAddStr [14:41:06]wPrintStart [14:41:06]Write to MH i2c: 01 00 00 B8 25 DD [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 B8 25 00 00 00 00 00 FF 0F F2 [14:41:06]RasterBufferAndPrint [14:41:06]line Счет N : (1)458717 [14:41:06]line ИНН: 02508201610067 [14:41:06]line Контрольно-Кассовый Чек [14:41:06]line ПРОДАЖА [14:41:06]line ТРК (МРК, ГНК) : 21 [14:41:06]line Товар: 2710194210 [14:41:06]line ДТ-К-5 [14:41:06]line 30.000 * 71.26 [14:41:06]line = 2137.80 [14:41:06]line НДС 12% НСП 1% [14:41:06]line > о реализуемом товаре [14:41:06]line ИТОГО: 2137.80 [14:41:06]line НСП 1% : 18.92 [14:41:06]line НДС 12% : 227.02 [14:41:06]line Наличными: 0.00 [14:41:06]line Безнал.: 2137.80 [14:41:06]line Место: АЗС № 72 "Партнер Нефть" [14:41:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:41:06]line СНО: Общий режим [14:41:06]line Чек 184 13.07.2024 14:41 [14:41:06]line Смена: 446 ФФД: 1.0 [14:41:06]line ЗНМ: 0300000160 [14:41:06]line РНМ: 0000000000090829 [14:41:06]line Версия ККМ: 001 [14:41:06]line Платежная система: KICB Банк [14:41:06]line ФМ: 0000000000874718 [14:41:06]line ФД: 164624 [14:41:06]line ФПД: 91011756349689 [14:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164624&fm=91011756349689&tin=02508201610067®Number=0000000000090829&sum=213780 [14:41:06]OFD Sender: Processing packet 164624 [packets to send 104, broken 103] [14:41:06]ProducePacketName [14:41:06]name=ofd_packets/00164624 [14:41:06]OFD Sender: To server: pG, [14:41:06]CommunicateWithHost lk.salyk.kg:30040 [14:41:06]ConnectInit lk.salyk.kg [14:41:06]written 0, free lines is 4095 [14:41:06]Connected sock=10 [14:41:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F7 AE 04 01 3D 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 03 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 83 02 00 35 04 06 00 52 C6 53 68 58 F9 0A 1C CC 4A C5 F6 5E 4C [14:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B CC 47 00 1B 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 34 37 31 38 10 04 04 00 10 83 02 00 F4 03 04 00 93 38 92 66 B6 04 01 00 00 BC 46 01 99 77 B2 E4 45 [14:41:07]CommunicateWithHost err = 0 [14:41:07]CheckOFDResponse [14:41:07]1017 (14) - 77093643461234 [14:41:07]1041 (16) - 0000000000874718 [14:41:07]1040 (4) - 164624 [14:41:07]1012 (4) - 13.07.2024 08:19 [14:41:07]1206 (1) - 0 [14:41:07]OFD Sender: Remove packet 164624 [14:41:07]ProducePacketName [14:41:07]name=ofd_packets/00164624 [14:41:07]NVStorageDeleteData [14:41:07]Write to MH i2c: 01 00 00 E1 25 06 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 E1 25 00 00 00 00 00 1D 0D 37 [14:41:07]RasterBufferAndPrint [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]line [14:41:07]written 0, free lines is 3366 [14:41:07]MH_Cut [14:41:07]Write to MH i2c: D1 01 00 E8 25 01 DF [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: D1 01 00 E8 25 00 DE [14:41:07]Write to MH i2c: 01 00 00 E9 25 0E [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]OFD Sender: No OFD packet to send [14:41:07]*** Cut start [14:41:07]*** Partial cut [14:41:07]*** CUTSNS_PIN = 1 [14:41:07]*** CUTSNS_PIN = 0 [14:41:08]*** Brake cut motor [14:41:08]Read from MH i2c: 01 [14:41:08]MH_I2C_Read... [14:41:08]*** Stop cut motor [14:41:08]*** Cut end [14:41:08]Read from MH i2c: 01 07 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 E9 25 00 00 00 00 00 FF 0F 23 [14:41:08]process_action close_receipt done [14:41:08]requested_data is exist [14:41:08]produce_requested_data [14:41:08]requested_item fm.sn is exist - process it [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 11 00 00 [14:41:08]Write to MH i2c: E2 08 00 EA 25 80 11 00 00 00 00 00 00 89 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 17 00 EA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [14:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:08]wFMCommunicate OK [14:41:08]requested_item fd.num is exist - process it [14:41:08]SAM_PROTO_GetFieldsCounters [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 00 00 [14:41:08]Write to MH i2c: E2 08 00 EB 25 80 13 00 00 00 00 00 00 8C [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 62 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 62 00 EB 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:41:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_GetFieldsCounters done [14:41:08]requested_item shift.num is exist - process it [14:41:08]requested_item shift.opened is exist - process it [14:41:08]req_shift_opened [14:41:08]FM_GetShiftState [14:41:08]SAM_PROTO_GetShiftState [14:41:08]wFMCommunicate request_size=4 [14:41:08]MH_SAM_APDU [14:41:08]CAPDU: 80 13 01 00 [14:41:08]Write to MH i2c: E2 08 00 EC 25 80 13 01 00 00 00 00 00 8E [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:08]Read from MH i2c: E2 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: E2 0E 00 EC 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6F [14:41:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:08]wFMCommunicate OK [14:41:08]SAM_PROTO_GetShiftState done [14:41:08]FM_GetShiftState done [14:41:08]req_shift_opened done [14:41:08]requested_item shift.open_date is exist - process it [14:41:08]req_shift_open_date [14:41:08]req_shift_open_date done [14:41:08]produce_requested_data done [14:41:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164624,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:41:08]process_action_free close_receipt [14:41:08]json_value_free [14:41:08]json_value_free done [14:41:08]process_json_proto returns [14:41:08]Send response to host [14:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164624,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:41:08]free response buf [14:41:08]execute_script done [14:41:08]execute_script returns [14:41:08]free content buf [14:41:08]Sock 9.Close socket [14:41:08]Sock 9.Thread stoped [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:21]accept exits with 7 [14:41:21]New connection [14:41:21]New thread 3067149668 created [14:41:21]Thread 3067293028 joined [14:41:21]Waiting for new connection... [14:41:21] Sock 7.Parse request [14:41:21]Sock 7.Check first char [14:41:21]Sock 7.First char is OK [14:41:21]request: POST /json_proto HTTP/1.0 [14:41:21]Method: POST [14:41:21]URL: /json_proto [14:41:21]Method is POST - this is cgi request [14:41:21]url: /json_proto [14:41:21]query_string will be loaded in cgi processing [14:41:21]execute_cgi json_proto POST (null) [14:41:21]execute_cgi path=json_proto method=POST [14:41:21]POST find Content-Length [14:41:21]Host: 172.17.56.4:8080 [14:41:21]Content-Length: 679 [14:41:21]Content-Type: application/json [14:41:21] [14:41:21]POST finish read [14:41:21]Found Content-Length = 679 [14:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:41:21]execute_script... [14:41:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:41:21]POST & json_proto [14:41:21]process_json_proto [14:41:21]json parsed OK: [14:41:21]protocol is kg_v1.0 [14:41:21]action value=close_receipt [14:41:21]process_action close_receipt [14:41:21]cmd_close_receipt [14:41:21]MH_GetDate [14:41:21]Write to MH i2c: F0 00 00 ED 25 01 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: F0 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: F0 09 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: F0 09 00 ED 25 00 14 92 92 66 C9 DC B2 64 63 [14:41:21]GetLastDocTimeStamp 1720881667 [14:41:21]current date 1720881684 [14:41:21]FM_GetShiftState [14:41:21]SAM_PROTO_GetShiftState [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 13 01 00 [14:41:21]Write to MH i2c: E2 08 00 EE 25 80 13 01 00 00 00 00 00 90 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 0E 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 0E 00 EE 25 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 71 [14:41:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:21]wFMCommunicate OK [14:41:21]SAM_PROTO_GetShiftState done [14:41:21]FM_GetShiftState done [14:41:21]opened in 1720831249 [14:41:21]opened+sec_in_day 1720917649 [14:41:21]quantity*price = 200025 [14:41:21]sum+1 = 200027 [14:41:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 185 13.07.2024 14:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164625 ФПД: 172377548008139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164625&fm=172377548008139&tin=02508201610067®Number=0000000000090829&sum=200000 [14:41:23]StoreToDocumentArchive [14:41:23]shift 446 fd 164625 [14:41:23]save to /storage/0446/doc_00164625 [14:41:23]save last doc name /storage/0446/doc_00164625 to /storage/kkm_last_doc_name [14:41:23]save OK [14:41:23]Clear old archive folders... [14:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:23]tlvbuf is 014C7DD0 [14:41:23]SAM_PROTO_ClearQueue [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 09 00 00 [14:41:23]Write to MH i2c: E2 08 00 FB 25 80 09 00 00 00 00 00 00 92 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [14:41:23]RAPDU: 90 00 [14:41:23]wFMCommunicate OK [14:41:23]SAM_PROTO_ClearQueue done [14:41:23]KKMCreateOFDPacket [14:41:23]OFDProtocolAddRootSTLVToBuf [14:41:23]FM_MakeSignedData [14:41:23]FM_MakeSignedData [14:41:23]SAM_PROTO_SignData [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 0D 01 02 [14:41:23]Write to MH i2c: E2 08 00 FC 25 80 0D 01 02 00 00 00 00 9A [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [14:41:23]RAPDU: 90 00 [14:41:23]wFMCommunicate OK [14:41:23]wFMCommunicate request_size=255 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 14 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 83 02 00 35 04 06 00 9C C6 C6 84 [14:41:23]Write to MH i2c: E2 02 01 FD 25 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 14 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 83 02 00 35 04 06 00 9C C6 C6 84 00 00 E5 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [14:41:23]RAPDU: 90 00 [14:41:23]wFMCommunicate OK [14:41:23]wFMCommunicate request_size=7 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 0D 02 02 02 2A CB [14:41:23]Write to MH i2c: E2 0A 00 FE 25 80 0D 02 02 02 00 2A CB 00 00 96 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 03 00 FE 25 00 90 00 97 [14:41:23]RAPDU: 90 00 [14:41:23]wFMCommunicate OK [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 0D 03 02 [14:41:23]Write to MH i2c: E2 08 00 FF 25 80 0D 03 02 00 00 00 00 9F [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0B 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0B 00 FF 25 00 BF 85 7C 2B 0B AC 04 EC 90 00 32 [14:41:23]RAPDU: BF 85 7C 2B 0B AC 04 EC 90 00 [14:41:23]wFMCommunicate OK [14:41:23]SAM_PROTO_SignData done [14:41:23]FM_MakeSignedData done [14:41:23]CreateOFDProtocolMessage [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 11 00 00 [14:41:23]Write to MH i2c: E2 08 00 00 26 80 11 00 00 00 00 00 00 A0 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 17 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 17 00 00 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [14:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:23]wFMCommunicate OK [14:41:23]CreateOFDProtocolMessage done [14:41:23]OFDSenderStorePacket 164625 [14:41:23]StoreOFDPacket docnum=164625 [14:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 2E 04 01 7E 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 14 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 83 02 00 35 04 06 00 9C C6 C6 84 2A CB BF 85 7C 2B 0B AC 04 EC [14:41:23]CheckFolder [14:41:23]dirname=/storage/ofd_packets [14:41:23]CheckFolder done [14:41:23]ProducePacketName [14:41:23]name=ofd_packets/00164625 [14:41:23]NVStorageSaveData ofd_packets/00164625 [14:41:23]File name is /storage/ofd_packets/00164625 [14:41:23]Write 298 bytes [14:41:23]NVStorageSaveData done [14:41:23]OFDSenderStorePacket done [14:41:23]KKMCreateOFDPacket done [14:41:23]NVStorageSaveData kkm_last_timestamp [14:41:23]File name is /storage/kkm_last_timestamp [14:41:23]Write 4 bytes [14:41:23]NVStorageSaveData done [14:41:23]ExternCall_PrintAddStr [14:41:23]wPrintStart [14:41:23]Write to MH i2c: 01 00 00 01 26 27 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 07 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 07 00 01 26 00 00 00 00 00 FF 0F 3C [14:41:23]RasterBufferAndPrint [14:41:23]line Счет N : (1)458718 [14:41:23]line ИНН: 02508201610067 [14:41:23]line Контрольно-Кассовый Чек [14:41:23]line ПРОДАЖА [14:41:23]line ТРК (МРК, ГНК) : 11 [14:41:23]line Товар: 2710194210 [14:41:23]line ДТ-К-5 [14:41:23]line 27.820 * 71.90 [14:41:23]line = 2000.26 [14:41:23]line НДС 12% НСП 1% [14:41:23]line > о реализуемом товаре [14:41:23]line ОКРУГЛЕНИЕ: -0.26 [14:41:23]line ИТОГО: 2000.00 [14:41:23]line Внесено: 2000.00 [14:41:23]line СДАЧА: 0.00 [14:41:23]line НСП 1% : 17.70 [14:41:23]line НДС 12% : 212.42 [14:41:23]line Наличными: 2000.00 [14:41:23]line Безнал.: 0.00 [14:41:23]line Место: АЗС № 72 "Партнер Нефть" [14:41:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:41:23]line СНО: Общий режим [14:41:23]line Чек 185 13.07.2024 14:41 [14:41:23]line Смена: 446 ФФД: 1.0 [14:41:23]line ЗНМ: 0300000160 [14:41:23]line РНМ: 0000000000090829 [14:41:23]line Версия ККМ: 001 [14:41:23]line ФМ: 0000000000874718 [14:41:23]line ФД: 164625 [14:41:23]line ФПД: 172377548008139 [14:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164625&fm=172377548008139&tin=02508201610067®Number=0000000000090829&sum=200000 [14:41:23]OFD Sender: Processing packet 164625 [packets to send 104, broken 103] [14:41:23]ProducePacketName [14:41:23]name=ofd_packets/00164625 [14:41:23]OFD Sender: To server: pG, [14:41:23]CommunicateWithHost lk.salyk.kg:30040 [14:41:23]written 0, free lines is 4095 [14:41:23]ConnectInit lk.salyk.kg [14:41:24]Connected sock=10 [14:41:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 2E 04 01 7E 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 14 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 83 02 00 35 04 06 00 9C C6 C6 84 2A CB BF 85 7C 2B 0B AC 04 EC [14:41:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C 64 47 00 B1 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 83 02 00 F4 03 04 00 A5 38 92 66 B6 04 01 00 00 B6 45 A1 9B 2E C5 4F 9C [14:41:24]CommunicateWithHost err = 0 [14:41:24]CheckOFDResponse [14:41:24]1017 (14) - 77093643461234 [14:41:24]1041 (16) - 0000000000874718 [14:41:24]1040 (4) - 164625 [14:41:24]1012 (4) - 13.07.2024 08:19 [14:41:24]1206 (1) - 0 [14:41:24]OFD Sender: Remove packet 164625 [14:41:24]ProducePacketName [14:41:24]name=ofd_packets/00164625 [14:41:24]NVStorageDeleteData [14:41:24]Write to MH i2c: 01 00 00 2B 26 51 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: 01 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: 01 07 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: 01 07 00 2B 26 00 00 00 00 00 06 0D 6B [14:41:24]RasterBufferAndPrint [14:41:24]line [14:41:24]line [14:41:24]line [14:41:24]line [14:41:24]line [14:41:24]written 0, free lines is 3343 [14:41:24]MH_Cut [14:41:24]Write to MH i2c: D1 01 00 32 26 01 2A [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: D1 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: D1 01 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: D1 01 00 32 26 00 29 [14:41:24]Write to MH i2c: 01 00 00 33 26 59 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]OFD Sender: No OFD packet to send [14:41:25]*** Cut start [14:41:25]*** Partial cut [14:41:25]*** CUTSNS_PIN = 1 [14:41:25]*** CUTSNS_PIN = 0 [14:41:25]*** Brake cut motor [14:41:25]Read from MH i2c: 01 [14:41:25]MH_I2C_Read... [14:41:25]*** Stop cut motor [14:41:25]*** Cut end [14:41:25]Read from MH i2c: 01 07 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [14:41:25]process_action close_receipt done [14:41:25]requested_data is exist [14:41:25]produce_requested_data [14:41:25]requested_item fm.sn is exist - process it [14:41:25]wFMCommunicate request_size=4 [14:41:25]MH_SAM_APDU [14:41:25]CAPDU: 80 11 00 00 [14:41:25]Write to MH i2c: E2 08 00 34 26 80 11 00 00 00 00 00 00 D4 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 17 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 17 00 34 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [14:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:25]wFMCommunicate OK [14:41:25]requested_item fd.num is exist - process it [14:41:25]SAM_PROTO_GetFieldsCounters [14:41:25]wFMCommunicate request_size=4 [14:41:25]MH_SAM_APDU [14:41:25]CAPDU: 80 13 00 00 [14:41:25]Write to MH i2c: E2 08 00 35 26 80 13 00 00 00 00 00 00 D7 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 62 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 62 00 35 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:25]wFMCommunicate OK [14:41:25]SAM_PROTO_GetFieldsCounters done [14:41:25]requested_item shift.num is exist - process it [14:41:25]requested_item shift.opened is exist - process it [14:41:25]req_shift_opened [14:41:25]FM_GetShiftState [14:41:25]SAM_PROTO_GetShiftState [14:41:25]wFMCommunicate request_size=4 [14:41:25]MH_SAM_APDU [14:41:25]CAPDU: 80 13 01 00 [14:41:25]Write to MH i2c: E2 08 00 36 26 80 13 01 00 00 00 00 00 D9 [14:41:25]Write i2c OK [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 [14:41:25]MH_I2C_Read... [14:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:25]Read from MH i2c: E2 0E 00 [14:41:25]MH_I2C_Read... [14:41:25]Read from MH i2c: E2 0E 00 36 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [14:41:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:25]wFMCommunicate OK [14:41:25]SAM_PROTO_GetShiftState done [14:41:25]FM_GetShiftState done [14:41:25]req_shift_opened done [14:41:25]requested_item shift.open_date is exist - process it [14:41:25]req_shift_open_date [14:41:25]req_shift_open_date done [14:41:25]produce_requested_data done [14:41:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164625,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:41:25]process_action_free close_receipt [14:41:25]json_value_free [14:41:25]json_value_free done [14:41:25]process_json_proto returns [14:41:25]Send response to host [14:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164625,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:41:25]free response buf [14:41:25]execute_script done [14:41:25]execute_script returns [14:41:25]free content buf [14:41:25]Sock 7.Close socket [14:41:25]Sock 7.Thread stoped [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:50]accept exits with 9 [14:41:50]New connection [14:41:50]New thread 3067293028 created [14:41:50]Thread 3067149668 joined [14:41:50]Waiting for new connection... [14:41:50] Sock 9.Parse request [14:41:50]Sock 9.Check first char [14:41:50]Sock 9.First char is OK [14:41:50]request: POST /json_proto HTTP/1.0 [14:41:50]Method: POST [14:41:50]URL: /json_proto [14:41:50]Method is POST - this is cgi request [14:41:50]url: /json_proto [14:41:50]query_string will be loaded in cgi processing [14:41:50]execute_cgi json_proto POST (null) [14:41:50]execute_cgi path=json_proto method=POST [14:41:50]POST find Content-Length [14:41:50]Host: 172.17.56.4:8080 [14:41:50]Content-Length: 790 [14:41:50]Content-Type: application/json [14:41:50] [14:41:50]POST finish read [14:41:50]Found Content-Length = 790 [14:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:50]execute_script... [14:41:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:50]POST & json_proto [14:41:50]process_json_proto [14:41:50]json parsed OK: [14:41:50]protocol is kg_v1.0 [14:41:50]action value=close_receipt [14:41:50]process_action close_receipt [14:41:50]cmd_close_receipt [14:41:50]MH_GetDate [14:41:50]Write to MH i2c: F0 00 00 37 26 4C [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 37 26 00 30 92 92 66 C9 DC B2 64 CA [14:41:50]GetLastDocTimeStamp 1720881684 [14:41:50]current date 1720881712 [14:41:50]FM_GetShiftState [14:41:50]SAM_PROTO_GetShiftState [14:41:50]wFMCommunicate request_size=4 [14:41:50]MH_SAM_APDU [14:41:50]CAPDU: 80 13 01 00 [14:41:50]Write to MH i2c: E2 08 00 38 26 80 13 01 00 00 00 00 00 DB [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:50]Read from MH i2c: E2 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 38 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BC [14:41:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:50]wFMCommunicate OK [14:41:50]SAM_PROTO_GetShiftState done [14:41:50]FM_GetShiftState done [14:41:50]opened in 1720831249 [14:41:50]opened+sec_in_day 1720917649 [14:41:50]quantity*price = 50023 [14:41:50]sum+1 = 50025 [14:41:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 186 13.07.2024 14:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164626 ФПД: 155193162023274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164626&fm=155193162023274&tin=02508201610067®Number=0000000000090829&sum=50024 [14:41:51]StoreToDocumentArchive [14:41:51]shift 446 fd 164626 [14:41:51]save to /storage/0446/doc_00164626 [14:41:51]save last doc name /storage/0446/doc_00164626 to /storage/kkm_last_doc_name [14:41:51]save OK [14:41:51]Clear old archive folders... [14:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:51]tlvbuf is 01457510 [14:41:51]SAM_PROTO_ClearQueue [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 09 00 00 [14:41:51]Write to MH i2c: E2 08 00 45 26 80 09 00 00 00 00 00 00 DD [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_ClearQueue done [14:41:51]KKMCreateOFDPacket [14:41:51]OFDProtocolAddRootSTLVToBuf [14:41:51]FM_MakeSignedData [14:41:51]FM_MakeSignedData [14:41:51]SAM_PROTO_SignData [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 01 02 [14:41:51]Write to MH i2c: E2 08 00 46 26 80 0D 01 02 00 00 00 00 E5 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=255 [14:41:51]MH_SAM_APDU [14:41: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 30 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 83 02 00 35 04 06 00 8D [14:41:51]Write to MH i2c: E2 02 01 47 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 30 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 83 02 00 35 04 06 00 8D 00 00 03 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=10 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 02 02 05 25 B9 4B 41 6A [14:41:51]Write to MH i2c: E2 0D 00 48 26 80 0D 02 02 05 00 25 B9 4B 41 6A 00 00 C6 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 48 26 00 90 00 E2 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 03 02 [14:41:51]Write to MH i2c: E2 08 00 49 26 80 0D 03 02 00 00 00 00 EA [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0B 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 0B 00 49 26 00 4A 25 4B A6 60 B6 D4 68 90 00 9D [14:41:51]RAPDU: 4A 25 4B A6 60 B6 D4 68 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_SignData done [14:41:51]FM_MakeSignedData done [14:41:51]CreateOFDProtocolMessage [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 11 00 00 [14:41:51]Write to MH i2c: E2 08 00 4A 26 80 11 00 00 00 00 00 00 EA [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 17 00 4A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [14:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:51]wFMCommunicate OK [14:41:51]CreateOFDProtocolMessage done [14:41:51]OFDSenderStorePacket 164626 [14:41:51]StoreOFDPacket docnum=164626 [14:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2D 56 07 01 86 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 30 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 83 02 00 35 04 06 00 8D 25 B9 4B 41 6A 4A 25 4B A6 60 B6 D4 68 [14:41:51]CheckFolder [14:41:51]dirname=/storage/ofd_packets [14:41:51]CheckFolder done [14:41:51]ProducePacketName [14:41:51]name=ofd_packets/00164626 [14:41:51]NVStorageSaveData ofd_packets/00164626 [14:41:51]File name is /storage/ofd_packets/00164626 [14:41:51]Write 301 bytes [14:41:51]NVStorageSaveData done [14:41:51]OFDSenderStorePacket done [14:41:51]KKMCreateOFDPacket done [14:41:51]NVStorageSaveData kkm_last_timestamp [14:41:51]File name is /storage/kkm_last_timestamp [14:41:51]Write 4 bytes [14:41:51]NVStorageSaveData done [14:41:51]ExternCall_PrintAddStr [14:41:51]wPrintStart [14:41:51]Write to MH i2c: 01 00 00 4B 26 71 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 07 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 FF 0F 86 [14:41:51]RasterBufferAndPrint [14:41:51]line Счет N : (1)458719 [14:41:51]line ИНН: 02508201610067 [14:41:51]line Контрольно-Кассовый Чек [14:41:51]line ПРОДАЖА [14:41:51]line ТРК (МРК, ГНК) : 22 [14:41:51]line Товар: 2710124130 [14:41:51]line Аи-92-К-5 [14:41:51]line 7.670 * 65.22 [14:41:51]line = 500.24 [14:41:51]line НДС 12% НСП 1% [14:41:51]line > о реализуемом товаре [14:41:51]line ИТОГО: 500.24 [14:41:51]line НСП 1% : 4.43 [14:41:51]line НДС 12% : 53.12 [14:41:51]line Наличными: 0.00 [14:41:51]line Безнал.: 500.24 [14:41:51]line Место: АЗС № 72 "Партнер Нефть" [14:41:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:41:51]line СНО: Общий режим [14:41:51]line Чек 186 13.07.2024 14:41 [14:41:51]line Смена: 446 ФФД: 1.0 [14:41:51]line ЗНМ: 0300000160 [14:41:51]line РНМ: 0000000000090829 [14:41:51]line Версия ККМ: 001 [14:41:51]line Платежная система: KICB Банк [14:41:51]line ФМ: 0000000000874718 [14:41:51]line ФД: 164626 [14:41:51]line ФПД: 155193162023274 [14:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164626&fm=155193162023274&tin=02508201610067®Number=0000000000090829&sum=50024 [14:41:52]OFD Sender: Processing packet 164626 [packets to send 104, broken 103] [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00164626 [14:41:52]OFD Sender: To server: pG, [14:41:52]CommunicateWithHost lk.salyk.kg:30040 [14:41:52]ConnectInit lk.salyk.kg [14:41:52]written 0, free lines is 4095 [14:41:52]Connected sock=10 [14:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2D 56 07 01 86 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 30 92 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 83 02 00 35 04 06 00 8D 25 B9 4B 41 6A 4A 25 4B A6 60 B6 D4 68 [14:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 13 DC 47 00 DA BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 83 02 00 F4 03 04 00 C1 38 92 66 B6 04 01 00 00 40 87 79 B8 48 9A 8A 18 [14:41:52]CommunicateWithHost err = 0 [14:41:52]CheckOFDResponse [14:41:52]1017 (14) - 77093643461234 [14:41:52]1041 (16) - 0000000000874718 [14:41:52]1040 (4) - 164626 [14:41:52]1012 (4) - 13.07.2024 08:20 [14:41:52]1206 (1) - 0 [14:41:52]OFD Sender: Remove packet 164626 [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00164626 [14:41:52]NVStorageDeleteData [14:41:52]Write to MH i2c: 01 00 00 74 26 9A [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 05 0D B3 [14:41:52]RasterBufferAndPrint [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]line [14:41:52]written 0, free lines is 3339 [14:41:52]MH_Cut [14:41:52]Write to MH i2c: D1 01 00 7B 26 01 73 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: D1 01 00 7B 26 00 72 [14:41:52]Write to MH i2c: 01 00 00 7C 26 A2 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:53]OFD Sender: No OFD packet to send [14:41:53]*** Cut start [14:41:53]*** Partial cut [14:41:53]*** CUTSNS_PIN = 1 [14:41:53]*** CUTSNS_PIN = 0 [14:41:53]*** Brake cut motor [14:41:53]Read from MH i2c: 01 [14:41:53]MH_I2C_Read... [14:41:53]*** Stop cut motor [14:41:53]*** Cut end [14:41:53]Read from MH i2c: 01 07 00 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [14:41:53]process_action close_receipt done [14:41:53]requested_data is exist [14:41:53]produce_requested_data [14:41:53]requested_item fm.sn is exist - process it [14:41:53]wFMCommunicate request_size=4 [14:41:53]MH_SAM_APDU [14:41:53]CAPDU: 80 11 00 00 [14:41:53]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 17 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [14:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:41:54]wFMCommunicate OK [14:41:54]requested_item fd.num is exist - process it [14:41:54]SAM_PROTO_GetFieldsCounters [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 00 00 [14:41:54]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 7E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [14:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetFieldsCounters done [14:41:54]requested_item shift.num is exist - process it [14:41:54]requested_item shift.opened is exist - process it [14:41:54]req_shift_opened [14:41:54]FM_GetShiftState [14:41:54]SAM_PROTO_GetShiftState [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 01 00 [14:41:54]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 03 [14:41:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetShiftState done [14:41:54]FM_GetShiftState done [14:41:54]req_shift_opened done [14:41:54]requested_item shift.open_date is exist - process it [14:41:54]req_shift_open_date [14:41:54]req_shift_open_date done [14:41:54]produce_requested_data done [14:41:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164626,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:41:54]process_action_free close_receipt [14:41:54]json_value_free [14:41:54]json_value_free done [14:41:54]process_json_proto returns [14:41:54]Send response to host [14:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164626,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:41:54]free response buf [14:41:54]execute_script done [14:41:54]execute_script returns [14:41:54]free content buf [14:41:54]Sock 9.Close socket [14:41:54]Sock 9.Thread stoped [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:24]accept exits with 7 [14:45:24]New connection [14:45:24]New thread 3067149668 created [14:45:24]Thread 3067293028 joined [14:45:24]Waiting for new connection... [14:45:24] Sock 7.Parse request [14:45:24]Sock 7.Check first char [14:45:24]Sock 7.First char is OK [14:45:24]request: POST /json_proto HTTP/1.0 [14:45:24]Method: POST [14:45:24]URL: /json_proto [14:45:24]Method is POST - this is cgi request [14:45:24]url: /json_proto [14:45:24]query_string will be loaded in cgi processing [14:45:24]execute_cgi json_proto POST (null) [14:45:24]execute_cgi path=json_proto method=POST [14:45:24]POST find Content-Length [14:45:24]Host: 172.17.56.4:8080 [14:45:24]Content-Length: 677 [14:45:24]Content-Type: application/json [14:45:24] [14:45:24]POST finish read [14:45:24]Found Content-Length = 677 [14:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.000, "sum" : 592.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 592.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:24]execute_script... [14:45: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)458720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.000, "sum" : 592.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 592.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:24]POST & json_proto [14:45:24]process_json_proto [14:45:24]json parsed OK: [14:45:24]protocol is kg_v1.0 [14:45:24]action value=close_receipt [14:45:24]process_action close_receipt [14:45:24]cmd_close_receipt [14:45:24]MH_GetDate [14:45:24]Write to MH i2c: F0 00 00 80 26 95 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: F0 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: F0 09 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: F0 09 00 80 26 00 06 93 92 66 C9 DC B2 64 EA [14:45:24]GetLastDocTimeStamp 1720881712 [14:45:24]current date 1720881926 [14:45:24]FM_GetShiftState [14:45:24]SAM_PROTO_GetShiftState [14:45:24]wFMCommunicate request_size=4 [14:45:24]MH_SAM_APDU [14:45:24]CAPDU: 80 13 01 00 [14:45:24]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [14:45:24]Write i2c OK [14:45:24]MH_I2C_Read... [14:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:24]Read from MH i2c: E2 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 0E 00 [14:45:24]MH_I2C_Read... [14:45:24]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 05 [14:45:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:45:24]wFMCommunicate OK [14:45:24]SAM_PROTO_GetShiftState done [14:45:24]FM_GetShiftState done [14:45:24]opened in 1720831249 [14:45:24]opened+sec_in_day 1720917649 [14:45:24]quantity*price = 59220 [14:45:24]sum+1 = 59221 [14:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 592.00 Внесено: 592.00 СДАЧА: 0.00 НСП 1% : 5.24 НДС 12% : 62.89 Наличными: 592.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 187 13.07.2024 14:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164627 ФПД: 40501243082896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144526&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164627&fm=40501243082896&tin=02508201610067®Number=0000000000090829&sum=59200 [14:45:25]StoreToDocumentArchive [14:45:25]shift 446 fd 164627 [14:45:25]save to /storage/0446/doc_00164627 [14:45:25]save last doc name /storage/0446/doc_00164627 to /storage/kkm_last_doc_name [14:45:25]save OK [14:45:25]Clear old archive folders... [14:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:25]tlvbuf is 014B9B60 [14:45:25]SAM_PROTO_ClearQueue [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 09 00 00 [14:45:25]Write to MH i2c: E2 08 00 8E 26 80 09 00 00 00 00 00 00 26 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_ClearQueue done [14:45:25]KKMCreateOFDPacket [14:45:25]OFDProtocolAddRootSTLVToBuf [14:45:25]FM_MakeSignedData [14:45:25]FM_MakeSignedData [14:45:25]SAM_PROTO_SignData [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 0D 01 02 [14:45:25]Write to MH i2c: E2 08 00 8F 26 80 0D 01 02 00 00 00 00 2E [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [14:45:25]RAPDU: 90 00 [14:45:25]wFMCommunicate OK [14:45:25]wFMCommunicate request_size=255 [14:45:25]MH_SAM_APDU [14:45: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 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 06 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 83 02 00 35 04 06 00 24 [14:45:25]Write to MH i2c: E2 02 01 90 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 06 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 83 02 00 35 04 06 00 24 00 00 5D [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [14:45:26]RAPDU: 90 00 [14:45:26]wFMCommunicate OK [14:45:26]wFMCommunicate request_size=10 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 0D 02 02 05 D5 EE 34 F8 90 [14:45:26]Write to MH i2c: E2 0D 00 91 26 80 0D 02 02 05 00 D5 EE 34 F8 90 00 00 BA [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [14:45:26]RAPDU: 90 00 [14:45:26]wFMCommunicate OK [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 0D 03 02 [14:45:26]Write to MH i2c: E2 08 00 92 26 80 0D 03 02 00 00 00 00 33 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0B 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0B 00 92 26 00 E9 F0 2C B9 8B 7A CC EE 90 00 B1 [14:45:26]RAPDU: E9 F0 2C B9 8B 7A CC EE 90 00 [14:45:26]wFMCommunicate OK [14:45:26]SAM_PROTO_SignData done [14:45:26]FM_MakeSignedData done [14:45:26]CreateOFDProtocolMessage [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 11 00 00 [14:45:26]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 17 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [14:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:26]wFMCommunicate OK [14:45:26]CreateOFDProtocolMessage done [14:45:26]OFDSenderStorePacket 164627 [14:45:26]StoreOFDPacket docnum=164627 [14:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 3F 07 01 11 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 06 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 83 02 00 35 04 06 00 24 D5 EE 34 F8 90 E9 F0 2C B9 8B 7A CC EE [14:45:26]CheckFolder [14:45:26]dirname=/storage/ofd_packets [14:45:26]CheckFolder done [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00164627 [14:45:26]NVStorageSaveData ofd_packets/00164627 [14:45:26]File name is /storage/ofd_packets/00164627 [14:45:26]Write 301 bytes [14:45:26]NVStorageSaveData done [14:45:26]OFDSenderStorePacket done [14:45:26]KKMCreateOFDPacket done [14:45:26]NVStorageSaveData kkm_last_timestamp [14:45:26]File name is /storage/kkm_last_timestamp [14:45:26]Write 4 bytes [14:45:26]NVStorageSaveData done [14:45:26]ExternCall_PrintAddStr [14:45:26]wPrintStart [14:45:26]Write to MH i2c: 01 00 00 94 26 BA [14:45:26]OFD Sender: Processing packet 164627 [packets to send 104, broken 103] [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00164627 [14:45:26]OFD Sender: To server: pG, [14:45:26]CommunicateWithHost lk.salyk.kg:30040 [14:45:26]ConnectInit lk.salyk.kg [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [14:45:26]RasterBufferAndPrint [14:45:26]line Счет N : (1)458720 [14:45:26]line ИНН: 02508201610067 [14:45:26]line Контрольно-Кассовый Чек [14:45:26]line ПРОДАЖА [14:45:26]line ТРК (МРК, ГНК) : 22 [14:45:26]line Товар: 2710124130 [14:45:26]line Аи-92-К-5 [14:45:26]line 9.000 * 65.80 [14:45:26]line = 592.20 [14:45:26]line НДС 12% НСП 1% [14:45:26]line > о реализуемом товаре [14:45:26]line ОКРУГЛЕНИЕ: -0.20 [14:45:26]line ИТОГО: 592.00 [14:45:26]line Внесено: 592.00 [14:45:26]line СДАЧА: 0.00 [14:45:26]line НСП 1% : 5.24 [14:45:26]line НДС 12% : 62.89 [14:45:26]line Наличными: 592.00 [14:45:26]line Безнал.: 0.00 [14:45:26]line Место: АЗС № 72 "Партнер Нефть" [14:45:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:45:26]line СНО: Общий режим [14:45:26]line Чек 187 13.07.2024 14:45 [14:45:26]line Смена: 446 ФФД: 1.0 [14:45:26]line ЗНМ: 0300000160 [14:45:26]line РНМ: 0000000000090829 [14:45:26]line Версия ККМ: 001 [14:45:26]line ФМ: 0000000000874718 [14:45:26]line ФД: 164627 [14:45:26]line ФПД: 40501243082896 [14:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144526&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164627&fm=40501243082896&tin=02508201610067®Number=0000000000090829&sum=59200 [14:45:26]Connected sock=10 [14:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 3F 07 01 11 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 06 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 83 02 00 35 04 06 00 24 D5 EE 34 F8 90 E9 F0 2C B9 8B 7A CC EE [14:45:26]written 0, free lines is 4095 [14:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 2B 47 00 47 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 34 37 31 38 10 04 04 00 13 83 02 00 F4 03 04 00 97 39 92 66 B6 04 01 00 00 DE FD C2 45 C1 91 8E E0 [14:45:26]CommunicateWithHost err = 0 [14:45:26]CheckOFDResponse [14:45:26]1017 (14) - 77093643461234 [14:45:26]1041 (16) - 0000000000874718 [14:45:26]1040 (4) - 164627 [14:45:26]1012 (4) - 13.07.2024 08:23 [14:45:26]1206 (1) - 0 [14:45:26]OFD Sender: Remove packet 164627 [14:45:26]ProducePacketName [14:45:26]name=ofd_packets/00164627 [14:45:26]NVStorageDeleteData [14:45:26]Write to MH i2c: 01 00 00 BE 26 E4 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 FB 0C F2 [14:45:26]RasterBufferAndPrint [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]line [14:45:26]written 0, free lines is 3330 [14:45:26]MH_Cut [14:45:26]Write to MH i2c: D1 01 00 C5 26 01 BD [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 01 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: D1 01 00 C5 26 00 BC [14:45:26]Write to MH i2c: 01 00 00 C6 26 EC [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:27]OFD Sender: No OFD packet to send [14:45:27]*** Cut start [14:45:27]*** Partial cut [14:45:27]*** CUTSNS_PIN = 1 [14:45:27]*** CUTSNS_PIN = 0 [14:45:27]*** Brake cut motor [14:45:28]Read from MH i2c: 01 [14:45:28]MH_I2C_Read... [14:45:28]*** Stop cut motor [14:45:28]*** Cut end [14:45:28]Read from MH i2c: 01 07 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 FF 0F 01 [14:45:28]process_action close_receipt done [14:45:28]requested_data is exist [14:45:28]produce_requested_data [14:45:28]requested_item fm.sn is exist - process it [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 11 00 00 [14:45:28]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [14:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:28]wFMCommunicate OK [14:45:28]requested_item fd.num is exist - process it [14:45:28]SAM_PROTO_GetFieldsCounters [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 13 00 00 [14:45:28]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 62 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 62 00 C8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [14:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:28]wFMCommunicate OK [14:45:28]SAM_PROTO_GetFieldsCounters done [14:45:28]requested_item shift.num is exist - process it [14:45:28]requested_item shift.opened is exist - process it [14:45:28]req_shift_opened [14:45:28]FM_GetShiftState [14:45:28]SAM_PROTO_GetShiftState [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 13 01 00 [14:45:28]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0E 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4D [14:45:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:45:28]wFMCommunicate OK [14:45:28]SAM_PROTO_GetShiftState done [14:45:28]FM_GetShiftState done [14:45:28]req_shift_opened done [14:45:28]requested_item shift.open_date is exist - process it [14:45:28]req_shift_open_date [14:45:28]req_shift_open_date done [14:45:28]produce_requested_data done [14:45:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164627,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:45:28]process_action_free close_receipt [14:45:28]json_value_free [14:45:28]json_value_free done [14:45:28]process_json_proto returns [14:45:28]Send response to host [14:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164627,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:45:28]free response buf [14:45:28]execute_script done [14:45:28]execute_script returns [14:45:28]free content buf [14:45:28]Sock 7.Close socket [14:45:28]Sock 7.Thread stoped [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:06]accept exits with 9 [14:49:06]New connection [14:49:06]New thread 3067293028 created [14:49:06]Thread 3067149668 joined [14:49:06]Waiting for new connection... [14:49:06] Sock 9.Parse request [14:49:06]Sock 9.Check first char [14:49:06]Sock 9.First char is OK [14:49:06]request: POST /json_proto HTTP/1.0 [14:49:06]Method: POST [14:49:06]URL: /json_proto [14:49:06]Method is POST - this is cgi request [14:49:06]url: /json_proto [14:49:06]query_string will be loaded in cgi processing [14:49:06]execute_cgi json_proto POST (null) [14:49:06]execute_cgi path=json_proto method=POST [14:49:06]POST find Content-Length [14:49:06]Host: 172.17.56.4:8080 [14:49:06]Content-Length: 640 [14:49:06]Content-Type: application/json [14:49:06] [14:49:06]POST finish read [14:49:06]Found Content-Length = 640 [14:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]execute_script... [14:49: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)458721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]POST & json_proto [14:49:06]process_json_proto [14:49:06]json parsed OK: [14:49:06]protocol is kg_v1.0 [14:49:06]action value=close_receipt [14:49:06]process_action close_receipt [14:49:06]cmd_close_receipt [14:49:06]MH_GetDate [14:49:06]Write to MH i2c: F0 00 00 CA 26 DF [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 09 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 09 00 CA 26 00 E4 93 92 66 C9 DC B2 64 12 [14:49:06]GetLastDocTimeStamp 1720881926 [14:49:06]current date 1720882148 [14:49:06]FM_GetShiftState [14:49:06]SAM_PROTO_GetShiftState [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 13 01 00 [14:49:06]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4F [14:49:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:49:06]wFMCommunicate OK [14:49:06]SAM_PROTO_GetShiftState done [14:49:06]FM_GetShiftState done [14:49:06]opened in 1720831249 [14:49:06]opened+sec_in_day 1720917649 [14:49:06]quantity*price = 65800 [14:49:06]sum+1 = 65801 [14:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 188 13.07.2024 14:49 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164628 ФПД: 252797403162429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164628&fm=252797403162429&tin=02508201610067®Number=0000000000090829&sum=65800 [14:49:07]StoreToDocumentArchive [14:49:07]shift 446 fd 164628 [14:49:07]save to /storage/0446/doc_00164628 [14:49:07]save last doc name /storage/0446/doc_00164628 to /storage/kkm_last_doc_name [14:49:07]save OK [14:49:07]Clear old archive folders... [14:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:07]tlvbuf is B6F14BC0 [14:49:07]SAM_PROTO_ClearQueue [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 09 00 00 [14:49:07]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_ClearQueue done [14:49:07]KKMCreateOFDPacket [14:49:07]OFDProtocolAddRootSTLVToBuf [14:49:07]FM_MakeSignedData [14:49:07]FM_MakeSignedData [14:49:07]SAM_PROTO_SignData [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 0D 01 02 [14:49:07]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]wFMCommunicate request_size=255 [14:49:07]MH_SAM_APDU [14:49: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 BC 00 00 00 F4 03 04 00 E4 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 83 02 00 35 04 06 00 E5 [14:49:07]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 BC 00 00 00 F4 03 04 00 E4 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 83 02 00 35 04 06 00 E5 00 00 C1 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=10 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 02 02 05 EA FB 6A 67 3D [14:49:08]Write to MH i2c: E2 0D 00 DB 26 80 0D 02 02 05 00 EA FB 6A 67 3D 00 00 78 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 03 02 [14:49:08]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 DC 26 00 0A 45 C7 C6 7B 7E A3 95 90 00 8B [14:49:08]RAPDU: 0A 45 C7 C6 7B 7E A3 95 90 00 [14:49:08]wFMCommunicate OK [14:49:08]SAM_PROTO_SignData done [14:49:08]FM_MakeSignedData done [14:49:08]CreateOFDProtocolMessage [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 11 00 00 [14:49:08]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [14:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:49:08]wFMCommunicate OK [14:49:08]CreateOFDProtocolMessage done [14:49:08]OFDSenderStorePacket 164628 [14:49:08]StoreOFDPacket docnum=164628 [14:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 D7 07 01 94 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 BC 00 00 00 F4 03 04 00 E4 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 83 02 00 35 04 06 00 E5 EA FB 6A 67 3D 0A 45 C7 C6 7B 7E A3 95 [14:49:08]CheckFolder [14:49:08]dirname=/storage/ofd_packets [14:49:08]CheckFolder done [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00164628 [14:49:08]NVStorageSaveData ofd_packets/00164628 [14:49:08]File name is /storage/ofd_packets/00164628 [14:49:08]Write 301 bytes [14:49:08]NVStorageSaveData done [14:49:08]OFDSenderStorePacket done [14:49:08]KKMCreateOFDPacket done [14:49:08]NVStorageSaveData kkm_last_timestamp [14:49:08]File name is /storage/kkm_last_timestamp [14:49:08]Write 4 bytes [14:49:08]NVStorageSaveData done [14:49:08]ExternCall_PrintAddStr [14:49:08]wPrintStart [14:49:08]Write to MH i2c: 01 00 00 DE 26 04 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [14:49:08]RasterBufferAndPrint [14:49:08]line Счет N : (1)458721 [14:49:08]line ИНН: 02508201610067 [14:49:08]line Контрольно-Кассовый Чек [14:49:08]line ПРОДАЖА [14:49:08]line ТРК (МРК, ГНК) : 22 [14:49:08]line Товар: 2710124130 [14:49:08]line Аи-92-К-5 [14:49:08]line 10.000 * 65.80 [14:49:08]line = 658.00 [14:49:08]line НДС 12% НСП 1% [14:49:08]line > о реализуемом товаре [14:49:08]line ИТОГО: 658.00 [14:49:08]line НСП 1% : 5.82 [14:49:08]line НДС 12% : 69.88 [14:49:08]line Наличными: 658.00 [14:49:08]line Безнал.: 0.00 [14:49:08]line Место: АЗС № 72 "Партнер Нефть" [14:49:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:49:08]line СНО: Общий режим [14:49:08]line Чек 188 13.07.2024 14:49 [14:49:08]line Смена: 446 ФФД: 1.0 [14:49:08]line ЗНМ: 0300000160 [14:49:08]line РНМ: 0000000000090829 [14:49:08]line Версия ККМ: 001 [14:49:08]line ФМ: 0000000000874718 [14:49:08]line ФД: 164628 [14:49:08]line ФПД: 252797403162429 [14:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T144908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164628&fm=252797403162429&tin=02508201610067®Number=0000000000090829&sum=65800 [14:49:08]written 0, free lines is 4095 [14:49:08]OFD Sender: Processing packet 164628 [packets to send 104, broken 103] [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00164628 [14:49:08]OFD Sender: To server: pG, [14:49:08]CommunicateWithHost lk.salyk.kg:30040 [14:49:08]ConnectInit lk.salyk.kg [14:49:08]Connected sock=10 [14:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 D7 07 01 94 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 BC 00 00 00 F4 03 04 00 E4 93 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 83 02 00 35 04 06 00 E5 EA FB 6A 67 3D 0A 45 C7 C6 7B 7E A3 95 [14:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 85 47 00 61 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 83 02 00 F4 03 04 00 75 3A 92 66 B6 04 01 00 00 B1 E7 7B 21 4E A5 BC 94 [14:49:08]CommunicateWithHost err = 0 [14:49:08]CheckOFDResponse [14:49:08]1017 (14) - 77093643461234 [14:49:08]1041 (16) - 0000000000874718 [14:49:08]1040 (4) - 164628 [14:49:08]1012 (4) - 13.07.2024 08:27 [14:49:08]1206 (1) - 0 [14:49:08]OFD Sender: Remove packet 164628 [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00164628 [14:49:08]NVStorageDeleteData [14:49:09]Write to MH i2c: 01 00 00 05 27 2C [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 27 0D 67 [14:49:09]RasterBufferAndPrint [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]line [14:49:09]written 0, free lines is 3374 [14:49:09]MH_Cut [14:49:09]Write to MH i2c: D1 01 00 0C 27 01 05 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: D1 01 00 0C 27 00 04 [14:49:09]Write to MH i2c: 01 00 00 0D 27 34 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]OFD Sender: No OFD packet to send [14:49:09]*** Cut start [14:49:09]*** Partial cut [14:49:09]*** CUTSNS_PIN = 1 [14:49:09]*** CUTSNS_PIN = 0 [14:49:09]*** Brake cut motor [14:49:10]Read from MH i2c: 01 [14:49:10]MH_I2C_Read... [14:49:10]*** Stop cut motor [14:49:10]*** Cut end [14:49:10]Read from MH i2c: 01 07 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 0D 27 00 00 00 00 00 FF 0F 49 [14:49:10]process_action close_receipt done [14:49:10]requested_data is exist [14:49:10]produce_requested_data [14:49:10]requested_item fm.sn is exist - process it [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 11 00 00 [14:49:10]Write to MH i2c: E2 08 00 0E 27 80 11 00 00 00 00 00 00 AF [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 17 00 0E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [14:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:49:10]wFMCommunicate OK [14:49:10]requested_item fd.num is exist - process it [14:49:10]SAM_PROTO_GetFieldsCounters [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 00 00 [14:49:10]Write to MH i2c: E2 08 00 0F 27 80 13 00 00 00 00 00 00 B2 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 62 00 0F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:49: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetFieldsCounters done [14:49:10]requested_item shift.num is exist - process it [14:49:10]requested_item shift.opened is exist - process it [14:49:10]req_shift_opened [14:49:10]FM_GetShiftState [14:49:10]SAM_PROTO_GetShiftState [14:49:10]wFMCommunicate request_size=4 [14:49:10]MH_SAM_APDU [14:49:10]CAPDU: 80 13 01 00 [14:49:10]Write to MH i2c: E2 08 00 10 27 80 13 01 00 00 00 00 00 B4 [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 0E 00 10 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 95 [14:49:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetShiftState done [14:49:10]FM_GetShiftState done [14:49:10]req_shift_opened done [14:49:10]requested_item shift.open_date is exist - process it [14:49:10]req_shift_open_date [14:49:10]req_shift_open_date done [14:49:10]produce_requested_data done [14:49:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164628,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:49:10]process_action_free close_receipt [14:49:10]json_value_free [14:49:10]json_value_free done [14:49:10]process_json_proto returns [14:49:10]Send response to host [14:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164628,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:49:10]free response buf [14:49:10]execute_script done [14:49:10]execute_script returns [14:49:10]free content buf [14:49:10]Sock 9.Close socket [14:49:10]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:13]accept exits with 7 [14:52:13]New connection [14:52:13]New thread 3067149668 created [14:52:13]Thread 3067293028 joined [14:52:13]Waiting for new connection... [14:52:13] Sock 7.Parse request [14:52:13]Sock 7.Check first char [14:52:13]Sock 7.First char is OK [14:52:13]request: POST /json_proto HTTP/1.0 [14:52:13]Method: POST [14:52:13]URL: /json_proto [14:52:13]Method is POST - this is cgi request [14:52:13]url: /json_proto [14:52:13]query_string will be loaded in cgi processing [14:52:13]execute_cgi json_proto POST (null) [14:52:13]execute_cgi path=json_proto method=POST [14:52:13]POST find Content-Length [14:52:13]Host: 172.17.56.4:8080 [14:52:13]Content-Length: 682 [14:52:13]Content-Type: application/json [14:52:13] [14:52:13]POST finish read [14:52:13]Found Content-Length = 682 [14:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:52:13]execute_script... [14:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:52:13]POST & json_proto [14:52:13]process_json_proto [14:52:13]json parsed OK: [14:52:13]protocol is kg_v1.0 [14:52:13]action value=close_receipt [14:52:13]process_action close_receipt [14:52:13]cmd_close_receipt [14:52:13]MH_GetDate [14:52:13]Write to MH i2c: F0 00 00 11 27 27 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: F0 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: F0 09 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: F0 09 00 11 27 00 9F 94 92 66 C9 DC B2 64 16 [14:52:13]GetLastDocTimeStamp 1720882148 [14:52:13]current date 1720882335 [14:52:13]FM_GetShiftState [14:52:13]SAM_PROTO_GetShiftState [14:52:13]wFMCommunicate request_size=4 [14:52:13]MH_SAM_APDU [14:52:13]CAPDU: 80 13 01 00 [14:52:13]Write to MH i2c: E2 08 00 12 27 80 13 01 00 00 00 00 00 B6 [14:52:13]Write i2c OK [14:52:13]MH_I2C_Read... [14:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:13]Read from MH i2c: E2 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0E 00 [14:52:13]MH_I2C_Read... [14:52:13]Read from MH i2c: E2 0E 00 12 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 97 [14:52:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:52:13]wFMCommunicate OK [14:52:13]SAM_PROTO_GetShiftState done [14:52:13]FM_GetShiftState done [14:52:13]opened in 1720831249 [14:52:13]opened+sec_in_day 1720917649 [14:52:13]quantity*price = 200032 [14:52:13]sum+1 = 200033 [14:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 189 13.07.2024 14:52 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164629 ФПД: 266667687444466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164629&fm=266667687444466&tin=02508201610067®Number=0000000000090829&sum=200000 [14:52:14]StoreToDocumentArchive [14:52:14]shift 446 fd 164629 [14:52:14]save to /storage/0446/doc_00164629 [14:52:14]save last doc name /storage/0446/doc_00164629 to /storage/kkm_last_doc_name [14:52:14]save OK [14:52:14]Clear old archive folders... [14:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:14]tlvbuf is 0144C080 [14:52:14]SAM_PROTO_ClearQueue [14:52:14]wFMCommunicate request_size=4 [14:52:14]MH_SAM_APDU [14:52:14]CAPDU: 80 09 00 00 [14:52:14]Write to MH i2c: E2 08 00 1F 27 80 09 00 00 00 00 00 00 B8 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]OFD Sender: No OFD packet to send [14:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:14]Read from MH i2c: E2 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 03 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 03 00 1F 27 00 90 00 BA [14:52:14]RAPDU: 90 00 [14:52:14]wFMCommunicate OK [14:52:14]SAM_PROTO_ClearQueue done [14:52:14]KKMCreateOFDPacket [14:52:14]OFDProtocolAddRootSTLVToBuf [14:52:14]FM_MakeSignedData [14:52:14]FM_MakeSignedData [14:52:14]SAM_PROTO_SignData [14:52:14]wFMCommunicate request_size=4 [14:52:14]MH_SAM_APDU [14:52:14]CAPDU: 80 0D 01 02 [14:52:14]Write to MH i2c: E2 08 00 20 27 80 0D 01 02 00 00 00 00 C0 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:14]Read from MH i2c: E2 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 03 00 [14:52:14]MH_I2C_Read... [14:52:14]Read from MH i2c: E2 03 00 20 27 00 90 00 BB [14:52:14]RAPDU: 90 00 [14:52:14]wFMCommunicate OK [14:52:14]wFMCommunicate request_size=255 [14:52:14]MH_SAM_APDU [14: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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 94 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 83 02 00 35 04 06 00 F2 [14:52:14]Write to MH i2c: E2 02 01 21 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 94 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 83 02 00 35 04 06 00 F2 00 00 52 [14:52:14]Write i2c OK [14:52:14]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 03 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 03 00 21 27 00 90 00 BC [14:52:15]RAPDU: 90 00 [14:52:15]wFMCommunicate OK [14:52:15]wFMCommunicate request_size=10 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 0D 02 02 05 88 68 C8 7F F2 [14:52:15]Write to MH i2c: E2 0D 00 22 27 80 0D 02 02 05 00 88 68 C8 7F F2 00 00 F6 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 03 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 03 00 22 27 00 90 00 BD [14:52:15]RAPDU: 90 00 [14:52:15]wFMCommunicate OK [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 0D 03 02 [14:52:15]Write to MH i2c: E2 08 00 23 27 80 0D 03 02 00 00 00 00 C5 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 0B 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 0B 00 23 27 00 65 E3 92 D8 EA 41 F6 7E 90 00 17 [14:52:15]RAPDU: 65 E3 92 D8 EA 41 F6 7E 90 00 [14:52:15]wFMCommunicate OK [14:52:15]SAM_PROTO_SignData done [14:52:15]FM_MakeSignedData done [14:52:15]CreateOFDProtocolMessage [14:52:15]wFMCommunicate request_size=4 [14:52:15]MH_SAM_APDU [14:52:15]CAPDU: 80 11 00 00 [14:52:15]Write to MH i2c: E2 08 00 24 27 80 11 00 00 00 00 00 00 C5 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:15]Read from MH i2c: E2 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: E2 17 00 24 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [14:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:52:15]wFMCommunicate OK [14:52:15]CreateOFDProtocolMessage done [14:52:15]OFDSenderStorePacket 164629 [14:52:15]StoreOFDPacket docnum=164629 [14:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB B7 07 01 5A 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 94 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 83 02 00 35 04 06 00 F2 88 68 C8 7F F2 65 E3 92 D8 EA 41 F6 7E [14:52:15]CheckFolder [14:52:15]dirname=/storage/ofd_packets [14:52:15]CheckFolder done [14:52:15]ProducePacketName [14:52:15]name=ofd_packets/00164629 [14:52:15]NVStorageSaveData ofd_packets/00164629 [14:52:15]File name is /storage/ofd_packets/00164629 [14:52:15]Write 301 bytes [14:52:15]NVStorageSaveData done [14:52:15]OFDSenderStorePacket done [14:52:15]KKMCreateOFDPacket done [14:52:15]NVStorageSaveData kkm_last_timestamp [14:52:15]File name is /storage/kkm_last_timestamp [14:52:15]Write 4 bytes [14:52:15]NVStorageSaveData done [14:52:15]ExternCall_PrintAddStr [14:52:15]wPrintStart [14:52:15]Write to MH i2c: 01 00 00 25 27 4C [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 FF 0F 61 [14:52:15]RasterBufferAndPrint [14:52:15]line Счет N : (1)458722 [14:52:15]line ИНН: 02508201610067 [14:52:15]line Контрольно-Кассовый Чек [14:52:15]line ПРОДАЖА [14:52:15]line ТРК (МРК, ГНК) : 12 [14:52:15]line Товар: 2710124130 [14:52:15]line Аи-92-К-5 [14:52:15]line 30.400 * 65.80 [14:52:15]line = 2000.32 [14:52:15]line НДС 12% НСП 1% [14:52:15]line > о реализуемом товаре [14:52:15]line ОКРУГЛЕНИЕ: -0.32 [14:52:15]line ИТОГО: 2000.00 [14:52:15]line Внесено: 2000.00 [14:52:15]line СДАЧА: 0.00 [14:52:15]line НСП 1% : 17.70 [14:52:15]line НДС 12% : 212.42 [14:52:15]line Наличными: 2000.00 [14:52:15]line Безнал.: 0.00 [14:52:15]line Место: АЗС № 72 "Партнер Нефть" [14:52:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:52:15]line СНО: Общий режим [14:52:15]line Чек 189 13.07.2024 14:52 [14:52:15]line Смена: 446 ФФД: 1.0 [14:52:15]line ЗНМ: 0300000160 [14:52:15]line РНМ: 0000000000090829 [14:52:15]line Версия ККМ: 001 [14:52:15]line ФМ: 0000000000874718 [14:52:15]line ФД: 164629 [14:52:15]line ФПД: 266667687444466 [14:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164629&fm=266667687444466&tin=02508201610067®Number=0000000000090829&sum=200000 [14:52:15]OFD Sender: Processing packet 164629 [packets to send 104, broken 103] [14:52:15]ProducePacketName [14:52:15]name=ofd_packets/00164629 [14:52:15]OFD Sender: To server: pG, [14:52:15]CommunicateWithHost lk.salyk.kg:30040 [14:52:15]ConnectInit lk.salyk.kg [14:52:15]written 0, free lines is 4095 [14:52:15]Connected sock=9 [14:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB B7 07 01 5A 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 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 94 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 83 02 00 35 04 06 00 F2 88 68 C8 7F F2 65 E3 92 D8 EA 41 F6 7E [14:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F 6C 47 00 28 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 34 37 31 38 10 04 04 00 15 83 02 00 F4 03 04 00 30 3B 92 66 B6 04 01 00 00 90 A9 37 CA C1 F6 9D 82 [14:52:15]CommunicateWithHost err = 0 [14:52:15]CheckOFDResponse [14:52:15]1017 (14) - 77093643461234 [14:52:15]1041 (16) - 0000000000874718 [14:52:15]1040 (4) - 164629 [14:52:15]1012 (4) - 13.07.2024 08:30 [14:52:15]1206 (1) - 0 [14:52:15]OFD Sender: Remove packet 164629 [14:52:15]ProducePacketName [14:52:15]name=ofd_packets/00164629 [14:52:15]NVStorageDeleteData [14:52:15]Write to MH i2c: 01 00 00 4F 27 76 [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 07 0D 91 [14:52:15]RasterBufferAndPrint [14:52:15]line [14:52:15]line [14:52:15]line [14:52:15]line [14:52:15]line [14:52:15]written 0, free lines is 3341 [14:52:15]MH_Cut [14:52:15]Write to MH i2c: D1 01 00 56 27 01 4F [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: D1 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: D1 01 00 [14:52:15]MH_I2C_Read... [14:52:15]Read from MH i2c: D1 01 00 56 27 00 4E [14:52:15]Write to MH i2c: 01 00 00 57 27 7E [14:52:15]Write i2c OK [14:52:15]MH_I2C_Read... [14:52:16]OFD Sender: No OFD packet to send [14:52:16]*** Cut start [14:52:16]*** Partial cut [14:52:16]*** CUTSNS_PIN = 1 [14:52:16]*** CUTSNS_PIN = 0 [14:52:16]*** Brake cut motor [14:52:17]Read from MH i2c: 01 [14:52:17]MH_I2C_Read... [14:52:17]*** Stop cut motor [14:52:17]*** Cut end [14:52:17]Read from MH i2c: 01 07 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: 01 07 00 57 27 00 00 00 00 00 FF 0F 93 [14:52:17]process_action close_receipt done [14:52:17]requested_data is exist [14:52:17]produce_requested_data [14:52:17]requested_item fm.sn is exist - process it [14:52:17]wFMCommunicate request_size=4 [14:52:17]MH_SAM_APDU [14:52:17]CAPDU: 80 11 00 00 [14:52:17]Write to MH i2c: E2 08 00 58 27 80 11 00 00 00 00 00 00 F9 [14:52:17]Write i2c OK [14:52:17]MH_I2C_Read... [14:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:17]Read from MH i2c: E2 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 17 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 17 00 58 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [14:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:52:17]wFMCommunicate OK [14:52:17]requested_item fd.num is exist - process it [14:52:17]SAM_PROTO_GetFieldsCounters [14:52:17]wFMCommunicate request_size=4 [14:52:17]MH_SAM_APDU [14:52:17]CAPDU: 80 13 00 00 [14:52:17]Write to MH i2c: E2 08 00 59 27 80 13 00 00 00 00 00 00 FC [14:52:17]Write i2c OK [14:52:17]MH_I2C_Read... [14:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:17]Read from MH i2c: E2 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 62 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 62 00 59 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:17]wFMCommunicate OK [14:52:17]SAM_PROTO_GetFieldsCounters done [14:52:17]requested_item shift.num is exist - process it [14:52:17]requested_item shift.opened is exist - process it [14:52:17]req_shift_opened [14:52:17]FM_GetShiftState [14:52:17]SAM_PROTO_GetShiftState [14:52:17]wFMCommunicate request_size=4 [14:52:17]MH_SAM_APDU [14:52:17]CAPDU: 80 13 01 00 [14:52:17]Write to MH i2c: E2 08 00 5A 27 80 13 01 00 00 00 00 00 FE [14:52:17]Write i2c OK [14:52:17]MH_I2C_Read... [14:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:17]Read from MH i2c: E2 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 0E 00 [14:52:17]MH_I2C_Read... [14:52:17]Read from MH i2c: E2 0E 00 5A 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DF [14:52:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:52:17]wFMCommunicate OK [14:52:17]SAM_PROTO_GetShiftState done [14:52:17]FM_GetShiftState done [14:52:17]req_shift_opened done [14:52:17]requested_item shift.open_date is exist - process it [14:52:17]req_shift_open_date [14:52:17]req_shift_open_date done [14:52:17]produce_requested_data done [14:52:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164629,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:52:17]process_action_free close_receipt [14:52:17]json_value_free [14:52:17]json_value_free done [14:52:17]process_json_proto returns [14:52:17]Send response to host [14:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164629,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:52:17]free response buf [14:52:17]execute_script done [14:52:17]execute_script returns [14:52:17]free content buf [14:52:17]Sock 7.Close socket [14:52:17]Sock 7.Thread stoped [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:29]accept exits with 10 [14:58:29]New connection [14:58:29]New thread 3067293028 created [14:58:29]Thread 3067149668 joined [14:58:29]Waiting for new connection... [14:58:29] Sock 10.Parse request [14:58:29]Sock 10.Check first char [14:58:29]Sock 10.First char is OK [14:58:29]request: POST /json_proto HTTP/1.0 [14:58:29]Method: POST [14:58:29]URL: /json_proto [14:58:29]Method is POST - this is cgi request [14:58:29]url: /json_proto [14:58:29]query_string will be loaded in cgi processing [14:58:29]execute_cgi json_proto POST (null) [14:58:29]execute_cgi path=json_proto method=POST [14:58:29]POST find Content-Length [14:58:29]Host: 172.17.56.4:8080 [14:58:29]Content-Length: 677 [14:58:29]Content-Type: application/json [14:58:29] [14:58:29]POST finish read [14:58:29]Found Content-Length = 677 [14:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:29]execute_script... [14:58: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)458723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:29]POST & json_proto [14:58:29]process_json_proto [14:58:29]json parsed OK: [14:58:29]protocol is kg_v1.0 [14:58:29]action value=close_receipt [14:58:29]process_action close_receipt [14:58:29]cmd_close_receipt [14:58:29]MH_GetDate [14:58:29]Write to MH i2c: F0 00 00 5B 27 71 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: F0 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: F0 09 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: F0 09 00 5B 27 00 17 96 92 66 C9 DC B2 64 DA [14:58:29]GetLastDocTimeStamp 1720882335 [14:58:29]current date 1720882711 [14:58:29]FM_GetShiftState [14:58:29]SAM_PROTO_GetShiftState [14:58:29]wFMCommunicate request_size=4 [14:58:29]MH_SAM_APDU [14:58:29]CAPDU: 80 13 01 00 [14:58:29]Write to MH i2c: E2 08 00 5C 27 80 13 01 00 00 00 00 00 00 [14:58:29]Write i2c OK [14:58:29]MH_I2C_Read... [14:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:29]Read from MH i2c: E2 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 0E 00 [14:58:29]MH_I2C_Read... [14:58:29]Read from MH i2c: E2 0E 00 5C 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E1 [14:58:29]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:58:29]wFMCommunicate OK [14:58:29]SAM_PROTO_GetShiftState done [14:58:29]FM_GetShiftState done [14:58:29]opened in 1720831249 [14:58:29]opened+sec_in_day 1720917649 [14:58:29]quantity*price = 20003 [14:58:29]sum+1 = 20004 [14:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 190 13.07.2024 14:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164630 ФПД: 204443887431253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164630&fm=204443887431253&tin=02508201610067®Number=0000000000090829&sum=20000 [14:58:30]StoreToDocumentArchive [14:58:30]shift 446 fd 164630 [14:58:30]save to /storage/0446/doc_00164630 [14:58:30]save last doc name /storage/0446/doc_00164630 to /storage/kkm_last_doc_name [14:58:30]save OK [14:58:30]Clear old archive folders... [14:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:30]tlvbuf is 014230D0 [14:58:30]SAM_PROTO_ClearQueue [14:58:30]wFMCommunicate request_size=4 [14:58:30]MH_SAM_APDU [14:58:30]CAPDU: 80 09 00 00 [14:58:30]Write to MH i2c: E2 08 00 69 27 80 09 00 00 00 00 00 00 02 [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 69 27 00 90 00 04 [14:58:30]RAPDU: 90 00 [14:58:30]wFMCommunicate OK [14:58:30]SAM_PROTO_ClearQueue done [14:58:30]KKMCreateOFDPacket [14:58:30]OFDProtocolAddRootSTLVToBuf [14:58:30]FM_MakeSignedData [14:58:30]FM_MakeSignedData [14:58:30]SAM_PROTO_SignData [14:58:30]wFMCommunicate request_size=4 [14:58:30]MH_SAM_APDU [14:58:30]CAPDU: 80 0D 01 02 [14:58:30]Write to MH i2c: E2 08 00 6A 27 80 0D 01 02 00 00 00 00 0A [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 6A 27 00 90 00 05 [14:58:30]RAPDU: 90 00 [14:58:30]wFMCommunicate OK [14:58:30]wFMCommunicate request_size=255 [14:58:30]MH_SAM_APDU [14:58: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 17 96 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 83 02 00 35 04 06 00 B9 [14:58:30]Write to MH i2c: E2 02 01 6B 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 17 96 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 83 02 00 35 04 06 00 B9 00 00 9A [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 6B 27 00 90 00 06 [14:58:30]RAPDU: 90 00 [14:58:30]wFMCommunicate OK [14:58:30]wFMCommunicate request_size=10 [14:58:30]MH_SAM_APDU [14:58:30]CAPDU: 80 0D 02 02 05 F0 CD 49 6E 55 [14:58:30]Write to MH i2c: E2 0D 00 6C 27 80 0D 02 02 05 00 F0 CD 49 6E 55 00 00 E0 [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:30]Read from MH i2c: E2 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 [14:58:30]MH_I2C_Read... [14:58:30]Read from MH i2c: E2 03 00 6C 27 00 90 00 07 [14:58:30]RAPDU: 90 00 [14:58:30]wFMCommunicate OK [14:58:30]wFMCommunicate request_size=4 [14:58:30]MH_SAM_APDU [14:58:30]CAPDU: 80 0D 03 02 [14:58:30]Write to MH i2c: E2 08 00 6D 27 80 0D 03 02 00 00 00 00 0F [14:58:30]Write i2c OK [14:58:30]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 0B 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 0B 00 6D 27 00 2D 44 39 C9 36 52 A9 EA 90 00 9E [14:58:31]RAPDU: 2D 44 39 C9 36 52 A9 EA 90 00 [14:58:31]wFMCommunicate OK [14:58:31]SAM_PROTO_SignData done [14:58:31]FM_MakeSignedData done [14:58:31]CreateOFDProtocolMessage [14:58:31]wFMCommunicate request_size=4 [14:58:31]MH_SAM_APDU [14:58:31]CAPDU: 80 11 00 00 [14:58:31]Write to MH i2c: E2 08 00 6E 27 80 11 00 00 00 00 00 00 0F [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:31]Read from MH i2c: E2 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 17 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: E2 17 00 6E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [14:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:58:31]wFMCommunicate OK [14:58:31]CreateOFDProtocolMessage done [14:58:31]OFDSenderStorePacket 164630 [14:58:31]StoreOFDPacket docnum=164630 [14:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 47 9C 07 01 F4 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 17 96 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 83 02 00 35 04 06 00 B9 F0 CD 49 6E 55 2D 44 39 C9 36 52 A9 EA [14:58:31]CheckFolder [14:58:31]dirname=/storage/ofd_packets [14:58:31]CheckFolder done [14:58:31]ProducePacketName [14:58:31]name=ofd_packets/00164630 [14:58:31]NVStorageSaveData ofd_packets/00164630 [14:58:31]File name is /storage/ofd_packets/00164630 [14:58:31]Write 301 bytes [14:58:31]NVStorageSaveData done [14:58:31]OFDSenderStorePacket done [14:58:31]KKMCreateOFDPacket done [14:58:31]NVStorageSaveData kkm_last_timestamp [14:58:31]File name is /storage/kkm_last_timestamp [14:58:31]Write 4 bytes [14:58:31]NVStorageSaveData done [14:58:31]ExternCall_PrintAddStr [14:58:31]wPrintStart [14:58:31]Write to MH i2c: 01 00 00 6F 27 96 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 07 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 07 00 6F 27 00 00 00 00 00 FF 0F AB [14:58:31]RasterBufferAndPrint [14:58:31]line Счет N : (1)458723 [14:58:31]line ИНН: 02508201610067 [14:58:31]line Контрольно-Кассовый Чек [14:58:31]line ПРОДАЖА [14:58:31]line ТРК (МРК, ГНК) : 12 [14:58:31]line Товар: 2710124130 [14:58:31]line Аи-92-К-5 [14:58:31]line 3.040 * 65.80 [14:58:31]line = 200.03 [14:58:31]line НДС 12% НСП 1% [14:58:31]line > о реализуемом товаре [14:58:31]line ОКРУГЛЕНИЕ: -0.03 [14:58:31]line ИТОГО: 200.00 [14:58:31]line Внесено: 200.00 [14:58:31]line СДАЧА: 0.00 [14:58:31]line НСП 1% : 1.77 [14:58:31]line НДС 12% : 21.24 [14:58:31]line Наличными: 200.00 [14:58:31]line Безнал.: 0.00 [14:58:31]line Место: АЗС № 72 "Партнер Нефть" [14:58:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:58:31]line СНО: Общий режим [14:58:31]line Чек 190 13.07.2024 14:58 [14:58:31]line Смена: 446 ФФД: 1.0 [14:58:31]line ЗНМ: 0300000160 [14:58:31]line РНМ: 0000000000090829 [14:58:31]line Версия ККМ: 001 [14:58:31]line ФМ: 0000000000874718 [14:58:31]line ФД: 164630 [14:58:31]line ФПД: 204443887431253 [14:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164630&fm=204443887431253&tin=02508201610067®Number=0000000000090829&sum=20000 [14:58:31]written 0, free lines is 4095 [14:58:31]OFD Sender: Processing packet 164630 [packets to send 104, broken 103] [14:58:31]ProducePacketName [14:58:31]name=ofd_packets/00164630 [14:58:31]OFD Sender: To server: pG, [14:58:31]CommunicateWithHost lk.salyk.kg:30040 [14:58:31]ConnectInit lk.salyk.kg [14:58:31]Connected sock=9 [14:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 47 9C 07 01 F4 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 17 96 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 83 02 00 35 04 06 00 B9 F0 CD 49 6E 55 2D 44 39 C9 36 52 A9 EA [14:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 71 47 00 B7 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 34 37 31 38 10 04 04 00 16 83 02 00 F4 03 04 00 A8 3C 92 66 B6 04 01 00 00 E6 A9 38 99 7B D9 20 16 [14:58:31]CommunicateWithHost err = 0 [14:58:31]CheckOFDResponse [14:58:31]1017 (14) - 77093643461234 [14:58:31]1041 (16) - 0000000000874718 [14:58:31]1040 (4) - 164630 [14:58:31]1012 (4) - 13.07.2024 08:36 [14:58:31]1206 (1) - 0 [14:58:31]OFD Sender: Remove packet 164630 [14:58:31]ProducePacketName [14:58:31]name=ofd_packets/00164630 [14:58:31]NVStorageDeleteData [14:58:31]Write to MH i2c: 01 00 00 99 27 C0 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 07 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: 01 07 00 99 27 00 00 00 00 00 F2 0C C5 [14:58:31]RasterBufferAndPrint [14:58:31]line [14:58:31]line [14:58:31]line [14:58:31]line [14:58:31]line [14:58:31]written 0, free lines is 3321 [14:58:31]MH_Cut [14:58:31]Write to MH i2c: D1 01 00 A0 27 01 99 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: D1 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: D1 01 00 [14:58:31]MH_I2C_Read... [14:58:31]Read from MH i2c: D1 01 00 A0 27 00 98 [14:58:31]Write to MH i2c: 01 00 00 A1 27 C8 [14:58:31]Write i2c OK [14:58:31]MH_I2C_Read... [14:58:32]OFD Sender: No OFD packet to send [14:58:32]*** Cut start [14:58:32]*** Partial cut [14:58:32]*** CUTSNS_PIN = 1 [14:58:32]*** CUTSNS_PIN = 0 [14:58:32]*** Brake cut motor [14:58:33]Read from MH i2c: 01 [14:58:33]MH_I2C_Read... [14:58:33]*** Stop cut motor [14:58:33]*** Cut end [14:58:33]Read from MH i2c: 01 07 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 FF 0F DD [14:58:33]process_action close_receipt done [14:58:33]requested_data is exist [14:58:33]produce_requested_data [14:58:33]requested_item fm.sn is exist - process it [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 11 00 00 [14:58:33]Write to MH i2c: E2 08 00 A2 27 80 11 00 00 00 00 00 00 43 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 A2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [14:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:58:33]wFMCommunicate OK [14:58:33]requested_item fd.num is exist - process it [14:58:33]SAM_PROTO_GetFieldsCounters [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 00 00 [14:58:33]Write to MH i2c: E2 08 00 A3 27 80 13 00 00 00 00 00 00 46 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 62 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 62 00 A3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [14:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_GetFieldsCounters done [14:58:33]requested_item shift.num is exist - process it [14:58:33]requested_item shift.opened is exist - process it [14:58:33]req_shift_opened [14:58:33]FM_GetShiftState [14:58:33]SAM_PROTO_GetShiftState [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 01 00 [14:58:33]Write to MH i2c: E2 08 00 A4 27 80 13 01 00 00 00 00 00 48 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0E 00 A4 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 29 [14:58:33]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_GetShiftState done [14:58:33]FM_GetShiftState done [14:58:33]req_shift_opened done [14:58:33]requested_item shift.open_date is exist - process it [14:58:33]req_shift_open_date [14:58:33]req_shift_open_date done [14:58:33]produce_requested_data done [14:58:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164630,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [14:58:33]process_action_free close_receipt [14:58:33]json_value_free [14:58:33]json_value_free done [14:58:33]process_json_proto returns [14:58:33]Send response to host [14:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164630,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [14:58:33]free response buf [14:58:33]execute_script done [14:58:33]execute_script returns [14:58:33]free content buf [14:58:33]Sock 10.Close socket [14:58:33]Sock 10.Thread stoped [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:40]accept exits with 7 [15:04:40]New connection [15:04:40]New thread 3067149668 created [15:04:40]Thread 3067293028 joined [15:04:40]Waiting for new connection... [15:04:40] Sock 7.Parse request [15:04:40]Sock 7.Check first char [15:04:40]Sock 7.First char is OK [15:04:40]request: POST /json_proto HTTP/1.0 [15:04:40]Method: POST [15:04:40]URL: /json_proto [15:04:40]Method is POST - this is cgi request [15:04:40]url: /json_proto [15:04:40]query_string will be loaded in cgi processing [15:04:40]execute_cgi json_proto POST (null) [15:04:40]execute_cgi path=json_proto method=POST [15:04:40]POST find Content-Length [15:04:40]Host: 172.17.56.4:8080 [15:04:40]Content-Length: 678 [15:04:40]Content-Type: application/json [15:04:40] [15:04:40]POST finish read [15:04:40]Found Content-Length = 678 [15:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:40]execute_script... [15:04: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)458724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:40]POST & json_proto [15:04:40]process_json_proto [15:04:40]json parsed OK: [15:04:40]protocol is kg_v1.0 [15:04:40]action value=close_receipt [15:04:40]process_action close_receipt [15:04:40]cmd_close_receipt [15:04:40]MH_GetDate [15:04:40]Write to MH i2c: F0 00 00 A5 27 BB [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 09 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 09 00 A5 27 00 8A 97 92 66 C9 DC B2 64 98 [15:04:40]GetLastDocTimeStamp 1720882711 [15:04:40]current date 1720883082 [15:04:40]FM_GetShiftState [15:04:40]SAM_PROTO_GetShiftState [15:04:40]wFMCommunicate request_size=4 [15:04:40]MH_SAM_APDU [15:04:40]CAPDU: 80 13 01 00 [15:04:40]Write to MH i2c: E2 08 00 A6 27 80 13 01 00 00 00 00 00 4A [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0E 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0E 00 A6 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2B [15:04:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:04:40]wFMCommunicate OK [15:04:40]SAM_PROTO_GetShiftState done [15:04:40]FM_GetShiftState done [15:04:40]opened in 1720831249 [15:04:40]opened+sec_in_day 1720917649 [15:04:40]quantity*price = 70011 [15:04:40]sum+1 = 70012 [15:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 191 13.07.2024 15:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164631 ФПД: 28037457791372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150442&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164631&fm=28037457791372&tin=02508201610067®Number=0000000000090829&sum=70000 [15:04:41]StoreToDocumentArchive [15:04:41]shift 446 fd 164631 [15:04:41]save to /storage/0446/doc_00164631 [15:04:41]save last doc name /storage/0446/doc_00164631 to /storage/kkm_last_doc_name [15:04:41]save OK [15:04:41]Clear old archive folders... [15:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:41]tlvbuf is 0145D6E0 [15:04:41]SAM_PROTO_ClearQueue [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 09 00 00 [15:04:41]Write to MH i2c: E2 08 00 B3 27 80 09 00 00 00 00 00 00 4C [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 B3 27 00 90 00 4E [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_ClearQueue done [15:04:41]KKMCreateOFDPacket [15:04:41]OFDProtocolAddRootSTLVToBuf [15:04:41]FM_MakeSignedData [15:04:41]FM_MakeSignedData [15:04:41]SAM_PROTO_SignData [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 01 02 [15:04:41]Write to MH i2c: E2 08 00 B4 27 80 0D 01 02 00 00 00 00 54 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 B4 27 00 90 00 4F [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=255 [15:04:41]MH_SAM_APDU [15:04: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 BF 00 00 00 F4 03 04 00 8A 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 83 02 00 35 04 06 00 19 [15:04:41]Write to MH i2c: E2 02 01 B5 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 BF 00 00 00 F4 03 04 00 8A 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 83 02 00 35 04 06 00 19 00 00 5D [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 B5 27 00 90 00 50 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=10 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 02 02 05 7F FA B6 49 8C [15:04:41]Write to MH i2c: E2 0D 00 B6 27 80 0D 02 02 05 00 7F FA B6 49 8C 00 00 65 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 B6 27 00 90 00 51 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 03 02 [15:04:41]Write to MH i2c: E2 08 00 B7 27 80 0D 03 02 00 00 00 00 59 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 0B 00 B7 27 00 CA 49 C2 93 F5 A1 08 0E 90 00 6E [15:04:42]RAPDU: CA 49 C2 93 F5 A1 08 0E 90 00 [15:04:42]wFMCommunicate OK [15:04:42]SAM_PROTO_SignData done [15:04:42]FM_MakeSignedData done [15:04:42]CreateOFDProtocolMessage [15:04:42]wFMCommunicate request_size=4 [15:04:42]MH_SAM_APDU [15:04:42]CAPDU: 80 11 00 00 [15:04:42]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:42]Read from MH i2c: E2 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [15:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:42]wFMCommunicate OK [15:04:42]CreateOFDProtocolMessage done [15:04:42]OFDSenderStorePacket 164631 [15:04:42]StoreOFDPacket docnum=164631 [15:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 9A 07 01 38 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 BF 00 00 00 F4 03 04 00 8A 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 83 02 00 35 04 06 00 19 7F FA B6 49 8C CA 49 C2 93 F5 A1 08 0E [15:04:42]CheckFolder [15:04:42]dirname=/storage/ofd_packets [15:04:42]CheckFolder done [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00164631 [15:04:42]NVStorageSaveData ofd_packets/00164631 [15:04:42]File name is /storage/ofd_packets/00164631 [15:04:42]Write 301 bytes [15:04:42]NVStorageSaveData done [15:04:42]OFDSenderStorePacket done [15:04:42]KKMCreateOFDPacket done [15:04:42]NVStorageSaveData kkm_last_timestamp [15:04:42]File name is /storage/kkm_last_timestamp [15:04:42]Write 4 bytes [15:04:42]NVStorageSaveData done [15:04:42]ExternCall_PrintAddStr [15:04:42]wPrintStart [15:04:42]Write to MH i2c: 01 00 00 B9 27 E0 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 FF 0F F5 [15:04:42]RasterBufferAndPrint [15:04:42]line Счет N : (1)458724 [15:04:42]line ИНН: 02508201610067 [15:04:42]line Контрольно-Кассовый Чек [15:04:42]line ПРОДАЖА [15:04:42]line ТРК (МРК, ГНК) : 12 [15:04:42]line Товар: 2710124130 [15:04:42]line Аи-92-К-5 [15:04:42]line 10.640 * 65.80 [15:04:42]line = 700.11 [15:04:42]line НДС 12% НСП 1% [15:04:42]line > о реализуемом товаре [15:04:42]line ОКРУГЛЕНИЕ: -0.11 [15:04:42]line ИТОГО: 700.00 [15:04:42]line Внесено: 700.00 [15:04:42]line СДАЧА: 0.00 [15:04:42]line НСП 1% : 6.20 [15:04:42]line НДС 12% : 74.35 [15:04:42]line Наличными: 700.00 [15:04:42]line Безнал.: 0.00 [15:04:42]line Место: АЗС № 72 "Партнер Нефть" [15:04:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:04:42]line СНО: Общий режим [15:04:42]line Чек 191 13.07.2024 15:04 [15:04:42]line Смена: 446 ФФД: 1.0 [15:04:42]line ЗНМ: 0300000160 [15:04:42]line РНМ: 0000000000090829 [15:04:42]line Версия ККМ: 001 [15:04:42]line ФМ: 0000000000874718 [15:04:42]line ФД: 164631 [15:04:42]line ФПД: 28037457791372 [15:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150442&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164631&fm=28037457791372&tin=02508201610067®Number=0000000000090829&sum=70000 [15:04:42]OFD Sender: Processing packet 164631 [packets to send 104, broken 103] [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00164631 [15:04:42]OFD Sender: To server: pG, [15:04:42]CommunicateWithHost lk.salyk.kg:30040 [15:04:42]ConnectInit lk.salyk.kg [15:04:42]written 0, free lines is 4095 [15:04:42]Connected sock=11 [15:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 9A 07 01 38 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 BF 00 00 00 F4 03 04 00 8A 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 83 02 00 35 04 06 00 19 7F FA B6 49 8C CA 49 C2 93 F5 A1 08 0E [15:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB 7A 47 00 8E 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 34 37 31 38 10 04 04 00 17 83 02 00 F4 03 04 00 1B 3E 92 66 B6 04 01 00 00 FE 01 AE 64 40 37 AC A2 [15:04:42]CommunicateWithHost err = 0 [15:04:42]CheckOFDResponse [15:04:42]1017 (14) - 77093643461234 [15:04:42]1041 (16) - 0000000000874718 [15:04:42]1040 (4) - 164631 [15:04:42]1012 (4) - 13.07.2024 08:43 [15:04:42]1206 (1) - 0 [15:04:42]OFD Sender: Remove packet 164631 [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00164631 [15:04:42]NVStorageDeleteData [15:04:42]Write to MH i2c: 01 00 00 E3 27 0A [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 E3 27 00 00 00 00 00 F7 0C 14 [15:04:42]RasterBufferAndPrint [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]written 0, free lines is 3323 [15:04:42]MH_Cut [15:04:42]Write to MH i2c: D1 01 00 EA 27 01 E3 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 01 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 01 00 EA 27 00 E2 [15:04:42]Write to MH i2c: 01 00 00 EB 27 12 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:43]OFD Sender: No OFD packet to send [15:04:43]*** Cut start [15:04:43]*** Partial cut [15:04:43]*** CUTSNS_PIN = 1 [15:04:43]*** CUTSNS_PIN = 0 [15:04:43]*** Brake cut motor [15:04:44]Read from MH i2c: 01 [15:04:44]MH_I2C_Read... [15:04:44]*** Stop cut motor [15:04:44]*** Cut end [15:04:44]Read from MH i2c: 01 07 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: 01 07 00 EB 27 00 00 00 00 00 FF 0F 27 [15:04:44]process_action close_receipt done [15:04:44]requested_data is exist [15:04:44]produce_requested_data [15:04:44]requested_item fm.sn is exist - process it [15:04:44]wFMCommunicate request_size=4 [15:04:44]MH_SAM_APDU [15:04:44]CAPDU: 80 11 00 00 [15:04:44]Write to MH i2c: E2 08 00 EC 27 80 11 00 00 00 00 00 00 8D [15:04:44]Write i2c OK [15:04:44]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 17 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 17 00 EC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [15:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:44]wFMCommunicate OK [15:04:44]requested_item fd.num is exist - process it [15:04:44]SAM_PROTO_GetFieldsCounters [15:04:44]wFMCommunicate request_size=4 [15:04:44]MH_SAM_APDU [15:04:44]CAPDU: 80 13 00 00 [15:04:44]Write to MH i2c: E2 08 00 ED 27 80 13 00 00 00 00 00 00 90 [15:04:44]Write i2c OK [15:04:44]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 62 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 62 00 ED 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [15:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:44]wFMCommunicate OK [15:04:44]SAM_PROTO_GetFieldsCounters done [15:04:44]requested_item shift.num is exist - process it [15:04:44]requested_item shift.opened is exist - process it [15:04:44]req_shift_opened [15:04:44]FM_GetShiftState [15:04:44]SAM_PROTO_GetShiftState [15:04:44]wFMCommunicate request_size=4 [15:04:44]MH_SAM_APDU [15:04:44]CAPDU: 80 13 01 00 [15:04:44]Write to MH i2c: E2 08 00 EE 27 80 13 01 00 00 00 00 00 92 [15:04:44]Write i2c OK [15:04:44]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 EE 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 73 [15:04:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:04:44]wFMCommunicate OK [15:04:44]SAM_PROTO_GetShiftState done [15:04:44]FM_GetShiftState done [15:04:44]req_shift_opened done [15:04:44]requested_item shift.open_date is exist - process it [15:04:44]req_shift_open_date [15:04:44]req_shift_open_date done [15:04:44]produce_requested_data done [15:04:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164631,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:04:44]process_action_free close_receipt [15:04:44]json_value_free [15:04:44]json_value_free done [15:04:44]process_json_proto returns [15:04:44]Send response to host [15:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164631,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:04:44]free response buf [15:04:44]execute_script done [15:04:44]execute_script returns [15:04:44]free content buf [15:04:44]Sock 7.Close socket [15:04:44]Sock 7.Thread stoped [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:04:59]accept exits with 9 [15:04:59]New connection [15:04:59]New thread 3067293028 created [15:04:59]Thread 3067149668 joined [15:04:59]Waiting for new connection... [15:04:59] Sock 9.Parse request [15:04:59]Sock 9.Check first char [15:04:59]Sock 9.First char is OK [15:04:59]request: POST /json_proto HTTP/1.0 [15:04:59]Method: POST [15:04:59]URL: /json_proto [15:04:59]Method is POST - this is cgi request [15:04:59]url: /json_proto [15:04:59]query_string will be loaded in cgi processing [15:04:59]execute_cgi json_proto POST (null) [15:04:59]execute_cgi path=json_proto method=POST [15:04:59]POST find Content-Length [15:04:59]Host: 172.17.56.4:8080 [15:04:59]Content-Length: 677 [15:04:59]Content-Type: application/json [15:04:59] [15:04:59]POST finish read [15:04:59]Found Content-Length = 677 [15:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.280, "sum" : 347.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 347.00, "total" : 347.00, "payments": [ { "type": 0, "sum" : 347.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:59]execute_script... [15:04: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)458725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.280, "sum" : 347.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 347.00, "total" : 347.00, "payments": [ { "type": 0, "sum" : 347.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:59]POST & json_proto [15:04:59]process_json_proto [15:04:59]json parsed OK: [15:04:59]protocol is kg_v1.0 [15:04:59]action value=close_receipt [15:04:59]process_action close_receipt [15:04:59]cmd_close_receipt [15:04:59]MH_GetDate [15:04:59]Write to MH i2c: F0 00 00 EF 27 05 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 09 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: F0 09 00 EF 27 00 9D 97 92 66 C9 DC B2 64 F5 [15:04:59]GetLastDocTimeStamp 1720883082 [15:04:59]current date 1720883101 [15:04:59]FM_GetShiftState [15:04:59]SAM_PROTO_GetShiftState [15:04:59]wFMCommunicate request_size=4 [15:04:59]MH_SAM_APDU [15:04:59]CAPDU: 80 13 01 00 [15:04:59]Write to MH i2c: E2 08 00 F0 27 80 13 01 00 00 00 00 00 94 [15:04:59]Write i2c OK [15:04:59]MH_I2C_Read... [15:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:59]Read from MH i2c: E2 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 0E 00 [15:04:59]MH_I2C_Read... [15:04:59]Read from MH i2c: E2 0E 00 F0 27 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 75 [15:04:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:04:59]wFMCommunicate OK [15:04:59]SAM_PROTO_GetShiftState done [15:04:59]FM_GetShiftState done [15:04:59]opened in 1720831249 [15:04:59]opened+sec_in_day 1720917649 [15:04:59]quantity*price = 34742 [15:04:59]sum+1 = 34743 [15:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 347.00 Внесено: 347.00 СДАЧА: 0.00 НСП 1% : 3.07 НДС 12% : 36.89 Наличными: 347.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 192 13.07.2024 15:05 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164632 ФПД: 196285322365761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164632&fm=196285322365761&tin=02508201610067®Number=0000000000090829&sum=34700 [15:05:00]StoreToDocumentArchive [15:05:00]shift 446 fd 164632 [15:05:00]save to /storage/0446/doc_00164632 [15:05:00]save last doc name /storage/0446/doc_00164632 to /storage/kkm_last_doc_name [15:05:00]save OK [15:05:00]Clear old archive folders... [15:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:00]tlvbuf is B6F2DBF0 [15:05:00]SAM_PROTO_ClearQueue [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 09 00 00 [15:05:00]Write to MH i2c: E2 08 00 FD 27 80 09 00 00 00 00 00 00 96 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 FD 27 00 90 00 98 [15:05:00]RAPDU: 90 00 [15:05:00]wFMCommunicate OK [15:05:00]SAM_PROTO_ClearQueue done [15:05:00]KKMCreateOFDPacket [15:05:00]OFDProtocolAddRootSTLVToBuf [15:05:00]FM_MakeSignedData [15:05:00]FM_MakeSignedData [15:05:00]SAM_PROTO_SignData [15:05:00]wFMCommunicate request_size=4 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 0D 01 02 [15:05:00]Write to MH i2c: E2 08 00 FE 27 80 0D 01 02 00 00 00 00 9E [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:00]Read from MH i2c: E2 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 [15:05:00]MH_I2C_Read... [15:05:00]Read from MH i2c: E2 03 00 FE 27 00 90 00 99 [15:05:00]RAPDU: 90 00 [15:05:00]wFMCommunicate OK [15:05:00]wFMCommunicate request_size=255 [15:05:00]MH_SAM_APDU [15:05:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B6 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9D 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 83 02 00 35 04 06 00 B2 [15:05:00]Write to MH i2c: E2 02 01 FF 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B6 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9D 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 83 02 00 35 04 06 00 B2 00 00 37 [15:05:00]Write i2c OK [15:05:00]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 FF 27 00 90 00 9A [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=10 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 02 02 05 85 3C EA 0B 41 [15:05:01]Write to MH i2c: E2 0D 00 00 28 80 0D 02 02 05 00 85 3C EA 0B 41 00 00 A3 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 03 00 00 28 00 90 00 9C [15:05:01]RAPDU: 90 00 [15:05:01]wFMCommunicate OK [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 0D 03 02 [15:05:01]Write to MH i2c: E2 08 00 01 28 80 0D 03 02 00 00 00 00 A4 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 0B 00 01 28 00 DE A9 65 12 24 D7 6C EB 90 00 F5 [15:05:01]RAPDU: DE A9 65 12 24 D7 6C EB 90 00 [15:05:01]wFMCommunicate OK [15:05:01]SAM_PROTO_SignData done [15:05:01]FM_MakeSignedData done [15:05:01]CreateOFDProtocolMessage [15:05:01]wFMCommunicate request_size=4 [15:05:01]MH_SAM_APDU [15:05:01]CAPDU: 80 11 00 00 [15:05:01]Write to MH i2c: E2 08 00 02 28 80 11 00 00 00 00 00 00 A4 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:01]Read from MH i2c: E2 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: E2 17 00 02 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [15:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:05:01]wFMCommunicate OK [15:05:01]CreateOFDProtocolMessage done [15:05:01]OFDSenderStorePacket 164632 [15:05:01]StoreOFDPacket docnum=164632 [15:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB BE 07 01 44 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 A0 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B6 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9D 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 83 02 00 35 04 06 00 B2 85 3C EA 0B 41 DE A9 65 12 24 D7 6C EB [15:05:01]CheckFolder [15:05:01]dirname=/storage/ofd_packets [15:05:01]CheckFolder done [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00164632 [15:05:01]NVStorageSaveData ofd_packets/00164632 [15:05:01]File name is /storage/ofd_packets/00164632 [15:05:01]Write 301 bytes [15:05:01]NVStorageSaveData done [15:05:01]OFDSenderStorePacket done [15:05:01]KKMCreateOFDPacket done [15:05:01]NVStorageSaveData kkm_last_timestamp [15:05:01]File name is /storage/kkm_last_timestamp [15:05:01]Write 4 bytes [15:05:01]NVStorageSaveData done [15:05:01]ExternCall_PrintAddStr [15:05:01]wPrintStart [15:05:01]Write to MH i2c: 01 00 00 03 28 2B [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 03 28 00 00 00 00 00 FF 0F 40 [15:05:01]RasterBufferAndPrint [15:05:01]line Счет N : (1)458725 [15:05:01]line ИНН: 02508201610067 [15:05:01]line Контрольно-Кассовый Чек [15:05:01]line ПРОДАЖА [15:05:01]line ТРК (МРК, ГНК) : 22 [15:05:01]line Товар: 2710124130 [15:05:01]line Аи-92-К-5 [15:05:01]line 5.280 * 65.80 [15:05:01]line = 347.42 [15:05:01]line НДС 12% НСП 1% [15:05:01]line > о реализуемом товаре [15:05:01]line ОКРУГЛЕНИЕ: -0.42 [15:05:01]line ИТОГО: 347.00 [15:05:01]line Внесено: 347.00 [15:05:01]line СДАЧА: 0.00 [15:05:01]line НСП 1% : 3.07 [15:05:01]line НДС 12% : 36.89 [15:05:01]line Наличными: 347.00 [15:05:01]line Безнал.: 0.00 [15:05:01]line Место: АЗС № 72 "Партнер Нефть" [15:05:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:05:01]line СНО: Общий режим [15:05:01]line Чек 192 13.07.2024 15:05 [15:05:01]line Смена: 446 ФФД: 1.0 [15:05:01]line ЗНМ: 0300000160 [15:05:01]line РНМ: 0000000000090829 [15:05:01]line Версия ККМ: 001 [15:05:01]line ФМ: 0000000000874718 [15:05:01]line ФД: 164632 [15:05:01]line ФПД: 196285322365761 [15:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164632&fm=196285322365761&tin=02508201610067®Number=0000000000090829&sum=34700 [15:05:01]written 0, free lines is 4095 [15:05:01]OFD Sender: Processing packet 164632 [packets to send 104, broken 103] [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00164632 [15:05:01]OFD Sender: To server: pG, [15:05:01]CommunicateWithHost lk.salyk.kg:30040 [15:05:01]ConnectInit lk.salyk.kg [15:05:01]Connected sock=10 [15:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB BE 07 01 44 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 A0 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B6 87 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0E 00 00 00 00 07 04 06 00 8C 87 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9D 97 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 83 02 00 35 04 06 00 B2 85 3C EA 0B 41 DE A9 65 12 24 D7 6C EB [15:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 0C 47 00 CC D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 83 02 00 F4 03 04 00 2E 3E 92 66 B6 04 01 00 00 F3 56 DE 0C AE 8B 31 E1 [15:05:01]CommunicateWithHost err = 0 [15:05:01]CheckOFDResponse [15:05:01]1017 (14) - 77093643461234 [15:05:01]1041 (16) - 0000000000874718 [15:05:01]1040 (4) - 164632 [15:05:01]1012 (4) - 13.07.2024 08:43 [15:05:01]1206 (1) - 0 [15:05:01]OFD Sender: Remove packet 164632 [15:05:01]ProducePacketName [15:05:01]name=ofd_packets/00164632 [15:05:01]NVStorageDeleteData [15:05:01]Write to MH i2c: 01 00 00 2D 28 55 [15:05:01]Write i2c OK [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 [15:05:01]MH_I2C_Read... [15:05:01]Read from MH i2c: 01 07 00 2D 28 00 00 00 00 00 F1 0C 59 [15:05:01]RasterBufferAndPrint [15:05:01]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]line [15:05:02]written 0, free lines is 3319 [15:05:02]MH_Cut [15:05:02]Write to MH i2c: D1 01 00 34 28 01 2E [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 01 00 [15:05:02]MH_I2C_Read... [15:05:02]Read from MH i2c: D1 01 00 34 28 00 2D [15:05:02]Write to MH i2c: 01 00 00 35 28 5D [15:05:02]Write i2c OK [15:05:02]MH_I2C_Read... [15:05:02]OFD Sender: No OFD packet to send [15:05:02]*** Cut start [15:05:02]*** Partial cut [15:05:02]*** CUTSNS_PIN = 1 [15:05:02]*** CUTSNS_PIN = 0 [15:05:02]*** Brake cut motor [15:05:03]Read from MH i2c: 01 [15:05:03]MH_I2C_Read... [15:05:03]*** Stop cut motor [15:05:03]*** Cut end [15:05:03]Read from MH i2c: 01 07 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: 01 07 00 35 28 00 00 00 00 00 FF 0F 72 [15:05:03]process_action close_receipt done [15:05:03]requested_data is exist [15:05:03]produce_requested_data [15:05:03]requested_item fm.sn is exist - process it [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 11 00 00 [15:05:03]Write to MH i2c: E2 08 00 36 28 80 11 00 00 00 00 00 00 D8 [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 17 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 17 00 36 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [15:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:05:03]wFMCommunicate OK [15:05:03]requested_item fd.num is exist - process it [15:05:03]SAM_PROTO_GetFieldsCounters [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 13 00 00 [15:05:03]Write to MH i2c: E2 08 00 37 28 80 13 00 00 00 00 00 00 DB [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 62 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 62 00 37 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:03]wFMCommunicate OK [15:05:03]SAM_PROTO_GetFieldsCounters done [15:05:03]requested_item shift.num is exist - process it [15:05:03]requested_item shift.opened is exist - process it [15:05:03]req_shift_opened [15:05:03]FM_GetShiftState [15:05:03]SAM_PROTO_GetShiftState [15:05:03]wFMCommunicate request_size=4 [15:05:03]MH_SAM_APDU [15:05:03]CAPDU: 80 13 01 00 [15:05:03]Write to MH i2c: E2 08 00 38 28 80 13 01 00 00 00 00 00 DD [15:05:03]Write i2c OK [15:05:03]MH_I2C_Read... [15:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:03]Read from MH i2c: E2 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 0E 00 [15:05:03]MH_I2C_Read... [15:05:03]Read from MH i2c: E2 0E 00 38 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BE [15:05:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:05:03]wFMCommunicate OK [15:05:03]SAM_PROTO_GetShiftState done [15:05:03]FM_GetShiftState done [15:05:03]req_shift_opened done [15:05:03]requested_item shift.open_date is exist - process it [15:05:03]req_shift_open_date [15:05:03]req_shift_open_date done [15:05:03]produce_requested_data done [15:05:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164632,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:05:03]process_action_free close_receipt [15:05:03]json_value_free [15:05:03]json_value_free done [15:05:03]process_json_proto returns [15:05:03]Send response to host [15:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164632,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:05:03]free response buf [15:05:03]execute_script done [15:05:03]execute_script returns [15:05:03]free content buf [15:05:03]Sock 9.Close socket [15:05:03]Sock 9.Thread stoped [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:50]accept exits with 7 [15:11:50]New connection [15:11:50]New thread 3067149668 created [15:11:50]Thread 3067293028 joined [15:11:50]Waiting for new connection... [15:11:50] Sock 7.Parse request [15:11:50]Sock 7.Check first char [15:11:50]Sock 7.First char is OK [15:11:50]request: POST /json_proto HTTP/1.0 [15:11:50]Method: POST [15:11:50]URL: /json_proto [15:11:50]Method is POST - this is cgi request [15:11:50]url: /json_proto [15:11:50]query_string will be loaded in cgi processing [15:11:50]execute_cgi json_proto POST (null) [15:11:50]execute_cgi path=json_proto method=POST [15:11:50]POST find Content-Length [15:11:50]Host: 172.17.56.4:8080 [15:11:50]Content-Length: 790 [15:11:50]Content-Type: application/json [15:11:50] [15:11:50]POST finish read [15:11:50]Found Content-Length = 790 [15:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:50]execute_script... [15:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:50]POST & json_proto [15:11:50]process_json_proto [15:11:50]json parsed OK: [15:11:50]protocol is kg_v1.0 [15:11:50]action value=close_receipt [15:11:50]process_action close_receipt [15:11:50]cmd_close_receipt [15:11:50]MH_GetDate [15:11:50]Write to MH i2c: F0 00 00 39 28 50 [15:11:50]Write i2c OK [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: F0 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: F0 09 00 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: F0 09 00 39 28 00 39 99 92 66 C9 DC B2 64 DE [15:11:50]GetLastDocTimeStamp 1720883101 [15:11:50]current date 1720883513 [15:11:50]FM_GetShiftState [15:11:50]SAM_PROTO_GetShiftState [15:11:50]wFMCommunicate request_size=4 [15:11:50]MH_SAM_APDU [15:11:50]CAPDU: 80 13 01 00 [15:11:50]Write to MH i2c: E2 08 00 3A 28 80 13 01 00 00 00 00 00 DF [15:11:50]Write i2c OK [15:11:50]MH_I2C_Read... [15:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:50]Read from MH i2c: E2 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 0E 00 [15:11:50]MH_I2C_Read... [15:11:50]Read from MH i2c: E2 0E 00 3A 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C0 [15:11:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:11:50]wFMCommunicate OK [15:11:50]SAM_PROTO_GetShiftState done [15:11:50]FM_GetShiftState done [15:11:50]opened in 1720831249 [15:11:50]opened+sec_in_day 1720917649 [15:11:50]quantity*price = 300004 [15:11:50]sum+1 = 300006 [15:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.05 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.05 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 193 13.07.2024 15:11 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164633 ФПД: 257812886027793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164633&fm=257812886027793&tin=02508201610067®Number=0000000000090829&sum=300005 [15:11:52]StoreToDocumentArchive [15:11:52]shift 446 fd 164633 [15:11:52]save to /storage/0446/doc_00164633 [15:11:52]save last doc name /storage/0446/doc_00164633 to /storage/kkm_last_doc_name [15:11:52]save OK [15:11:52]Clear old archive folders... [15:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:11:52]tlvbuf is B6F14530 [15:11:52]SAM_PROTO_ClearQueue [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 09 00 00 [15:11:52]Write to MH i2c: E2 08 00 47 28 80 09 00 00 00 00 00 00 E1 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]SAM_PROTO_ClearQueue done [15:11:52]KKMCreateOFDPacket [15:11:52]OFDProtocolAddRootSTLVToBuf [15:11:52]FM_MakeSignedData [15:11:52]FM_MakeSignedData [15:11:52]SAM_PROTO_SignData [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 0D 01 02 [15:11:52]Write to MH i2c: E2 08 00 48 28 80 0D 01 02 00 00 00 00 E9 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 48 28 00 90 00 E4 [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]wFMCommunicate request_size=255 [15:11:52]MH_SAM_APDU [15:11: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 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 99 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 83 02 00 35 04 06 00 EA 7A BD 7D [15:11:52]Write to MH i2c: E2 02 01 49 28 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 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 99 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 83 02 00 35 04 06 00 EA 7A BD 7D 00 00 A7 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 49 28 00 90 00 E5 [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]wFMCommunicate request_size=7 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 0D 02 02 02 7E 11 [15:11:52]Write to MH i2c: E2 0A 00 4A 28 80 0D 02 02 02 00 7E 11 00 00 7F [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 03 00 4A 28 00 90 00 E6 [15:11:52]RAPDU: 90 00 [15:11:52]wFMCommunicate OK [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 0D 03 02 [15:11:52]Write to MH i2c: E2 08 00 4B 28 80 0D 03 02 00 00 00 00 EE [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 0B 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 0B 00 4B 28 00 3A 50 4D E4 13 16 D7 19 90 00 C3 [15:11:52]RAPDU: 3A 50 4D E4 13 16 D7 19 90 00 [15:11:52]wFMCommunicate OK [15:11:52]SAM_PROTO_SignData done [15:11:52]FM_MakeSignedData done [15:11:52]CreateOFDProtocolMessage [15:11:52]wFMCommunicate request_size=4 [15:11:52]MH_SAM_APDU [15:11:52]CAPDU: 80 11 00 00 [15:11:52]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:52]Read from MH i2c: E2 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 17 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [15:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:11:52]wFMCommunicate OK [15:11:52]CreateOFDProtocolMessage done [15:11:52]OFDSenderStorePacket 164633 [15:11:52]StoreOFDPacket docnum=164633 [15:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AB 85 04 01 D2 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 99 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 83 02 00 35 04 06 00 EA 7A BD 7D 7E 11 3A 50 4D E4 13 16 D7 19 [15:11:52]CheckFolder [15:11:52]dirname=/storage/ofd_packets [15:11:52]CheckFolder done [15:11:52]ProducePacketName [15:11:52]name=ofd_packets/00164633 [15:11:52]NVStorageSaveData ofd_packets/00164633 [15:11:52]File name is /storage/ofd_packets/00164633 [15:11:52]Write 298 bytes [15:11:52]NVStorageSaveData done [15:11:52]OFDSenderStorePacket done [15:11:52]KKMCreateOFDPacket done [15:11:52]NVStorageSaveData kkm_last_timestamp [15:11:52]File name is /storage/kkm_last_timestamp [15:11:52]Write 4 bytes [15:11:52]NVStorageSaveData done [15:11:52]ExternCall_PrintAddStr [15:11:52]wPrintStart [15:11:52]Write to MH i2c: 01 00 00 4D 28 75 [15:11:52]Write i2c OK [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: 01 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: 01 07 00 [15:11:52]MH_I2C_Read... [15:11:52]Read from MH i2c: 01 07 00 4D 28 00 00 00 00 00 FF 0F 8A [15:11:52]RasterBufferAndPrint [15:11:52]line Счет N : (1)458726 [15:11:52]line ИНН: 02508201610067 [15:11:52]line Контрольно-Кассовый Чек [15:11:52]line ПРОДАЖА [15:11:52]line ТРК (МРК, ГНК) : 11 [15:11:52]line Товар: 2710194210 [15:11:52]line ДТ-К-5 [15:11:52]line 42.100 * 71.26 [15:11:52]line = 3000.05 [15:11:52]line НДС 12% НСП 1% [15:11:52]line > о реализуемом товаре [15:11:52]line ИТОГО: 3000.05 [15:11:52]line НСП 1% : 26.55 [15:11:52]line НДС 12% : 318.59 [15:11:52]line Наличными: 0.00 [15:11:52]line Безнал.: 3000.05 [15:11:52]line Место: АЗС № 72 "Партнер Нефть" [15:11:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:11:52]line СНО: Общий режим [15:11:52]line Чек 193 13.07.2024 15:11 [15:11:52]line Смена: 446 ФФД: 1.0 [15:11:52]line ЗНМ: 0300000160 [15:11:52]line РНМ: 0000000000090829 [15:11:52]line Версия ККМ: 001 [15:11:52]line Платежная система: KICB Банк [15:11:52]line ФМ: 0000000000874718 [15:11:52]line ФД: 164633 [15:11:52]line ФПД: 257812886027793 [15:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164633&fm=257812886027793&tin=02508201610067®Number=0000000000090829&sum=300005 [15:11:52]OFD Sender: Processing packet 164633 [packets to send 104, broken 103] [15:11:52]ProducePacketName [15:11:52]name=ofd_packets/00164633 [15:11:52]OFD Sender: To server: pG, [15:11:52]CommunicateWithHost lk.salyk.kg:30040 [15:11:52]ConnectInit lk.salyk.kg [15:11:52]written 0, free lines is 4095 [15:11:52]Connected sock=10 [15:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AB 85 04 01 D2 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 99 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 83 02 00 35 04 06 00 EA 7A BD 7D 7E 11 3A 50 4D E4 13 16 D7 19 [15:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 41 47 00 8F 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 34 37 31 38 10 04 04 00 19 83 02 00 F4 03 04 00 C9 3F 92 66 B6 04 01 00 00 90 18 39 32 5A 9C 7C 9C [15:11:53]CommunicateWithHost err = 0 [15:11:53]CheckOFDResponse [15:11:53]1017 (14) - 77093643461234 [15:11:53]1041 (16) - 0000000000874718 [15:11:53]1040 (4) - 164633 [15:11:53]1012 (4) - 13.07.2024 08:50 [15:11:53]1206 (1) - 0 [15:11:53]OFD Sender: Remove packet 164633 [15:11:53]ProducePacketName [15:11:53]name=ofd_packets/00164633 [15:11:53]NVStorageDeleteData [15:11:53]Write to MH i2c: 01 00 00 76 28 9E [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 07 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: 01 07 00 76 28 00 00 00 00 00 04 0D B6 [15:11:53]RasterBufferAndPrint [15:11:53]line [15:11:53]line [15:11:53]line [15:11:53]line [15:11:53]line [15:11:53]written 0, free lines is 3338 [15:11:53]MH_Cut [15:11:53]Write to MH i2c: D1 01 00 7D 28 01 77 [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: D1 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: D1 01 00 [15:11:53]MH_I2C_Read... [15:11:53]Read from MH i2c: D1 01 00 7D 28 00 76 [15:11:53]Write to MH i2c: 01 00 00 7E 28 A6 [15:11:53]Write i2c OK [15:11:53]MH_I2C_Read... [15:11:53]OFD Sender: No OFD packet to send [15:11:53]*** Cut start [15:11:53]*** Partial cut [15:11:53]*** CUTSNS_PIN = 1 [15:11:54]*** CUTSNS_PIN = 0 [15:11:54]*** Brake cut motor [15:11:54]Read from MH i2c: 01 [15:11:54]MH_I2C_Read... [15:11:54]*** Stop cut motor [15:11:54]*** Cut end [15:11:54]Read from MH i2c: 01 07 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: 01 07 00 7E 28 00 00 00 00 00 FF 0F BB [15:11:54]process_action close_receipt done [15:11:54]requested_data is exist [15:11:54]produce_requested_data [15:11:54]requested_item fm.sn is exist - process it [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 11 00 00 [15:11:54]Write to MH i2c: E2 08 00 7F 28 80 11 00 00 00 00 00 00 21 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 17 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 17 00 7F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [15:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:11:54]wFMCommunicate OK [15:11:54]requested_item fd.num is exist - process it [15:11:54]SAM_PROTO_GetFieldsCounters [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 13 00 00 [15:11:54]Write to MH i2c: E2 08 00 80 28 80 13 00 00 00 00 00 00 24 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 62 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 62 00 80 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:54]wFMCommunicate OK [15:11:54]SAM_PROTO_GetFieldsCounters done [15:11:54]requested_item shift.num is exist - process it [15:11:54]requested_item shift.opened is exist - process it [15:11:54]req_shift_opened [15:11:54]FM_GetShiftState [15:11:54]SAM_PROTO_GetShiftState [15:11:54]wFMCommunicate request_size=4 [15:11:54]MH_SAM_APDU [15:11:54]CAPDU: 80 13 01 00 [15:11:54]Write to MH i2c: E2 08 00 81 28 80 13 01 00 00 00 00 00 26 [15:11:54]Write i2c OK [15:11:54]MH_I2C_Read... [15:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:54]Read from MH i2c: E2 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 0E 00 [15:11:54]MH_I2C_Read... [15:11:54]Read from MH i2c: E2 0E 00 81 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 07 [15:11:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:11:54]wFMCommunicate OK [15:11:54]SAM_PROTO_GetShiftState done [15:11:54]FM_GetShiftState done [15:11:54]req_shift_opened done [15:11:54]requested_item shift.open_date is exist - process it [15:11:54]req_shift_open_date [15:11:54]req_shift_open_date done [15:11:54]produce_requested_data done [15:11:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164633,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:11:54]process_action_free close_receipt [15:11:54]json_value_free [15:11:54]json_value_free done [15:11:54]process_json_proto returns [15:11:54]Send response to host [15:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164633,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:11:54]free response buf [15:11:54]execute_script done [15:11:54]execute_script returns [15:11:54]free content buf [15:11:54]Sock 7.Close socket [15:11:54]Sock 7.Thread stoped [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:02]accept exits with 9 [15:19:02]New connection [15:19:02]New thread 3067293028 created [15:19:02]Thread 3067149668 joined [15:19:02]Waiting for new connection... [15:19:02] Sock 9.Parse request [15:19:02]Sock 9.Check first char [15:19:02]Sock 9.First char is OK [15:19:02]request: POST /json_proto HTTP/1.0 [15:19:02]Method: POST [15:19:02]URL: /json_proto [15:19:02]Method is POST - this is cgi request [15:19:02]url: /json_proto [15:19:02]query_string will be loaded in cgi processing [15:19:02]execute_cgi json_proto POST (null) [15:19:02]execute_cgi path=json_proto method=POST [15:19:02]POST find Content-Length [15:19:02]Host: 172.17.56.4:8080 [15:19:02]Content-Length: 677 [15:19:02]Content-Type: application/json [15:19:02] [15:19:02]POST finish read [15:19:02]Found Content-Length = 677 [15:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:19:02]execute_script... [15:19: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)458727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:19:02]POST & json_proto [15:19:02]process_json_proto [15:19:02]json parsed OK: [15:19:02]protocol is kg_v1.0 [15:19:02]action value=close_receipt [15:19:02]process_action close_receipt [15:19:02]cmd_close_receipt [15:19:02]MH_GetDate [15:19:02]Write to MH i2c: F0 00 00 82 28 99 [15:19:02]Write i2c OK [15:19:02]MH_I2C_Read... [15:19:02]Read from MH i2c: F0 [15:19:02]MH_I2C_Read... [15:19:02]Read from MH i2c: F0 09 00 [15:19:02]MH_I2C_Read... [15:19:02]Read from MH i2c: F0 09 00 82 28 00 E9 9A 92 66 C9 DC B2 64 D8 [15:19:02]GetLastDocTimeStamp 1720883513 [15:19:02]current date 1720883945 [15:19:02]FM_GetShiftState [15:19:02]SAM_PROTO_GetShiftState [15:19:02]wFMCommunicate request_size=4 [15:19:02]MH_SAM_APDU [15:19:02]CAPDU: 80 13 01 00 [15:19:02]Write to MH i2c: E2 08 00 83 28 80 13 01 00 00 00 00 00 28 [15:19:02]Write i2c OK [15:19:02]MH_I2C_Read... [15:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:03]Read from MH i2c: E2 [15:19:03]MH_I2C_Read... [15:19:03]Read from MH i2c: E2 0E 00 [15:19:03]MH_I2C_Read... [15:19:03]Read from MH i2c: E2 0E 00 83 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 09 [15:19:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:19:03]wFMCommunicate OK [15:19:03]SAM_PROTO_GetShiftState done [15:19:03]FM_GetShiftState done [15:19:03]opened in 1720831249 [15:19:03]opened+sec_in_day 1720917649 [15:19:03]quantity*price = 50008 [15:19:03]sum+1 = 50009 [15:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 194 13.07.2024 15:19 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164634 ФПД: 224758977932130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151905&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164634&fm=224758977932130&tin=02508201610067®Number=0000000000090829&sum=50000 [15:19:04]StoreToDocumentArchive [15:19:04]shift 446 fd 164634 [15:19:04]save to /storage/0446/doc_00164634 [15:19:04]save last doc name /storage/0446/doc_00164634 to /storage/kkm_last_doc_name [15:19:04]save OK [15:19:04]Clear old archive folders... [15:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:04]tlvbuf is 01478FB0 [15:19:04]SAM_PROTO_ClearQueue [15:19:04]wFMCommunicate request_size=4 [15:19:04]MH_SAM_APDU [15:19:04]CAPDU: 80 09 00 00 [15:19:04]Write to MH i2c: E2 08 00 90 28 80 09 00 00 00 00 00 00 2A [15:19:04]OFD Sender: No OFD packet to send [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 90 28 00 90 00 2C [15:19:04]RAPDU: 90 00 [15:19:04]wFMCommunicate OK [15:19:04]SAM_PROTO_ClearQueue done [15:19:04]KKMCreateOFDPacket [15:19:04]OFDProtocolAddRootSTLVToBuf [15:19:04]FM_MakeSignedData [15:19:04]FM_MakeSignedData [15:19:04]SAM_PROTO_SignData [15:19:04]wFMCommunicate request_size=4 [15:19:04]MH_SAM_APDU [15:19:04]CAPDU: 80 0D 01 02 [15:19:04]Write to MH i2c: E2 08 00 91 28 80 0D 01 02 00 00 00 00 32 [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 91 28 00 90 00 2D [15:19:04]RAPDU: 90 00 [15:19:04]wFMCommunicate OK [15:19:04]wFMCommunicate request_size=255 [15:19:04]MH_SAM_APDU [15:19: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 E9 9A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 83 02 00 35 04 06 00 CC [15:19:04]Write to MH i2c: E2 02 01 92 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 E9 9A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 83 02 00 35 04 06 00 CC 00 00 12 [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 92 28 00 90 00 2E [15:19:04]RAPDU: 90 00 [15:19:04]wFMCommunicate OK [15:19:04]wFMCommunicate request_size=10 [15:19:04]MH_SAM_APDU [15:19:04]CAPDU: 80 0D 02 02 05 6A C7 0A 2B 62 [15:19:04]Write to MH i2c: E2 0D 00 93 28 80 0D 02 02 05 00 6A C7 0A 2B 62 00 00 07 [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 03 00 93 28 00 90 00 2F [15:19:04]RAPDU: 90 00 [15:19:04]wFMCommunicate OK [15:19:04]wFMCommunicate request_size=4 [15:19:04]MH_SAM_APDU [15:19:04]CAPDU: 80 0D 03 02 [15:19:04]Write to MH i2c: E2 08 00 94 28 80 0D 03 02 00 00 00 00 37 [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 0B 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 0B 00 94 28 00 BC 33 D8 D6 A4 E1 D6 CB 90 00 FB [15:19:04]RAPDU: BC 33 D8 D6 A4 E1 D6 CB 90 00 [15:19:04]wFMCommunicate OK [15:19:04]SAM_PROTO_SignData done [15:19:04]FM_MakeSignedData done [15:19:04]CreateOFDProtocolMessage [15:19:04]wFMCommunicate request_size=4 [15:19:04]MH_SAM_APDU [15:19:04]CAPDU: 80 11 00 00 [15:19:04]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:04]Read from MH i2c: E2 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 17 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [15:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:19:04]wFMCommunicate OK [15:19:04]CreateOFDProtocolMessage done [15:19:04]OFDSenderStorePacket 164634 [15:19:04]StoreOFDPacket docnum=164634 [15:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 7E 07 01 4A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 E9 9A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 83 02 00 35 04 06 00 CC 6A C7 0A 2B 62 BC 33 D8 D6 A4 E1 D6 CB [15:19:04]CheckFolder [15:19:04]dirname=/storage/ofd_packets [15:19:04]CheckFolder done [15:19:04]ProducePacketName [15:19:04]name=ofd_packets/00164634 [15:19:04]NVStorageSaveData ofd_packets/00164634 [15:19:04]File name is /storage/ofd_packets/00164634 [15:19:04]Write 301 bytes [15:19:04]NVStorageSaveData done [15:19:04]OFDSenderStorePacket done [15:19:04]KKMCreateOFDPacket done [15:19:04]NVStorageSaveData kkm_last_timestamp [15:19:04]File name is /storage/kkm_last_timestamp [15:19:04]Write 4 bytes [15:19:04]NVStorageSaveData done [15:19:04]ExternCall_PrintAddStr [15:19:04]wPrintStart [15:19:04]Write to MH i2c: 01 00 00 96 28 BE [15:19:04]Write i2c OK [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: 01 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: 01 07 00 [15:19:04]MH_I2C_Read... [15:19:04]Read from MH i2c: 01 07 00 96 28 00 00 00 00 00 FF 0F D3 [15:19:04]RasterBufferAndPrint [15:19:04]line Счет N : (1)458727 [15:19:04]line ИНН: 02508201610067 [15:19:04]line Контрольно-Кассовый Чек [15:19:04]line ПРОДАЖА [15:19:04]line ТРК (МРК, ГНК) : 22 [15:19:04]line Товар: 2710124130 [15:19:04]line Аи-92-К-5 [15:19:04]line 7.600 * 65.80 [15:19:04]line = 500.08 [15:19:04]line НДС 12% НСП 1% [15:19:04]line > о реализуемом товаре [15:19:04]line ОКРУГЛЕНИЕ: -0.08 [15:19:04]line ИТОГО: 500.00 [15:19:04]line Внесено: 500.00 [15:19:04]line СДАЧА: 0.00 [15:19:04]line НСП 1% : 4.42 [15:19:04]line НДС 12% : 53.11 [15:19:04]line Наличными: 500.00 [15:19:04]line Безнал.: 0.00 [15:19:04]line Место: АЗС № 72 "Партнер Нефть" [15:19:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:19:04]line СНО: Общий режим [15:19:04]line Чек 194 13.07.2024 15:19 [15:19:04]line Смена: 446 ФФД: 1.0 [15:19:04]line ЗНМ: 0300000160 [15:19:04]line РНМ: 0000000000090829 [15:19:04]line Версия ККМ: 001 [15:19:04]line ФМ: 0000000000874718 [15:19:04]line ФД: 164634 [15:19:04]line ФПД: 224758977932130 [15:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151905&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164634&fm=224758977932130&tin=02508201610067®Number=0000000000090829&sum=50000 [15:19:04]written 0, free lines is 4095 [15:19:04]OFD Sender: Processing packet 164634 [packets to send 104, broken 103] [15:19:04]ProducePacketName [15:19:04]name=ofd_packets/00164634 [15:19:04]OFD Sender: To server: pG, [15:19:04]CommunicateWithHost lk.salyk.kg:30040 [15:19:04]ConnectInit lk.salyk.kg [15:19:04]Connected sock=10 [15:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 7E 07 01 4A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 E9 9A 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 83 02 00 35 04 06 00 CC 6A C7 0A 2B 62 BC 33 D8 D6 A4 E1 D6 CB [15:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 16 47 00 FB FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 83 02 00 F4 03 04 00 79 41 92 66 B6 04 01 00 00 61 8F 0E 9C E3 7F F3 AC [15:19:05]CommunicateWithHost err = 0 [15:19:05]CheckOFDResponse [15:19:05]1017 (14) - 77093643461234 [15:19:05]1041 (16) - 0000000000874718 [15:19:05]1040 (4) - 164634 [15:19:05]1012 (4) - 13.07.2024 08:57 [15:19:05]1206 (1) - 0 [15:19:05]OFD Sender: Remove packet 164634 [15:19:05]ProducePacketName [15:19:05]name=ofd_packets/00164634 [15:19:05]NVStorageDeleteData [15:19:05]Write to MH i2c: 01 00 00 C0 28 E8 [15:19:05]Write i2c OK [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: 01 [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: 01 07 00 [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: 01 07 00 C0 28 00 00 00 00 00 0B 0D 07 [15:19:05]RasterBufferAndPrint [15:19:05]line [15:19:05]line [15:19:05]line [15:19:05]line [15:19:05]line [15:19:05]written 0, free lines is 3345 [15:19:05]MH_Cut [15:19:05]Write to MH i2c: D1 01 00 C7 28 01 C1 [15:19:05]Write i2c OK [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: D1 [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: D1 01 00 [15:19:05]MH_I2C_Read... [15:19:05]Read from MH i2c: D1 01 00 C7 28 00 C0 [15:19:05]Write to MH i2c: 01 00 00 C8 28 F0 [15:19:05]Write i2c OK [15:19:05]MH_I2C_Read... [15:19:05]OFD Sender: No OFD packet to send [15:19:05]*** Cut start [15:19:05]*** Partial cut [15:19:05]*** CUTSNS_PIN = 1 [15:19:05]*** CUTSNS_PIN = 0 [15:19:06]*** Brake cut motor [15:19:06]Read from MH i2c: 01 [15:19:06]MH_I2C_Read... [15:19:06]*** Stop cut motor [15:19:06]*** Cut end [15:19:06]Read from MH i2c: 01 07 00 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: 01 07 00 C8 28 00 00 00 00 00 FF 0F 05 [15:19:06]process_action close_receipt done [15:19:06]requested_data is exist [15:19:06]produce_requested_data [15:19:06]requested_item fm.sn is exist - process it [15:19:06]wFMCommunicate request_size=4 [15:19:06]MH_SAM_APDU [15:19:06]CAPDU: 80 11 00 00 [15:19:06]Write to MH i2c: E2 08 00 C9 28 80 11 00 00 00 00 00 00 6B [15:19:06]Write i2c OK [15:19:06]MH_I2C_Read... [15:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:06]Read from MH i2c: E2 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 17 00 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 17 00 C9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [15:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:19:06]wFMCommunicate OK [15:19:06]requested_item fd.num is exist - process it [15:19:06]SAM_PROTO_GetFieldsCounters [15:19:06]wFMCommunicate request_size=4 [15:19:06]MH_SAM_APDU [15:19:06]CAPDU: 80 13 00 00 [15:19:06]Write to MH i2c: E2 08 00 CA 28 80 13 00 00 00 00 00 00 6E [15:19:06]Write i2c OK [15:19:06]MH_I2C_Read... [15:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:06]Read from MH i2c: E2 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 62 00 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 62 00 CA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:06]wFMCommunicate OK [15:19:06]SAM_PROTO_GetFieldsCounters done [15:19:06]requested_item shift.num is exist - process it [15:19:06]requested_item shift.opened is exist - process it [15:19:06]req_shift_opened [15:19:06]FM_GetShiftState [15:19:06]SAM_PROTO_GetShiftState [15:19:06]wFMCommunicate request_size=4 [15:19:06]MH_SAM_APDU [15:19:06]CAPDU: 80 13 01 00 [15:19:06]Write to MH i2c: E2 08 00 CB 28 80 13 01 00 00 00 00 00 70 [15:19:06]Write i2c OK [15:19:06]MH_I2C_Read... [15:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:06]Read from MH i2c: E2 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 0E 00 [15:19:06]MH_I2C_Read... [15:19:06]Read from MH i2c: E2 0E 00 CB 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 51 [15:19:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:19:06]wFMCommunicate OK [15:19:06]SAM_PROTO_GetShiftState done [15:19:06]FM_GetShiftState done [15:19:06]req_shift_opened done [15:19:06]requested_item shift.open_date is exist - process it [15:19:06]req_shift_open_date [15:19:06]req_shift_open_date done [15:19:06]produce_requested_data done [15:19:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164634,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:19:06]process_action_free close_receipt [15:19:06]json_value_free [15:19:06]json_value_free done [15:19:06]process_json_proto returns [15:19:06]Send response to host [15:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164634,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:19:06]free response buf [15:19:06]execute_script done [15:19:06]execute_script returns [15:19:06]free content buf [15:19:06]Sock 9.Close socket [15:19:06]Sock 9.Thread stoped [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:22]accept exits with 7 [15:23:22]New connection [15:23:22]New thread 3067149668 created [15:23:22]Thread 3067293028 joined [15:23:22]Waiting for new connection... [15:23:22] Sock 7.Parse request [15:23:22]Sock 7.Check first char [15:23:22]Sock 7.First char is OK [15:23:22]request: POST /json_proto HTTP/1.0 [15:23:22]Method: POST [15:23:22]URL: /json_proto [15:23:22]Method is POST - this is cgi request [15:23:22]url: /json_proto [15:23:22]query_string will be loaded in cgi processing [15:23:22]execute_cgi json_proto POST (null) [15:23:22]execute_cgi path=json_proto method=POST [15:23:22]POST find Content-Length [15:23:22]Host: 172.17.56.4:8080 [15:23:22]Content-Length: 682 [15:23:22]Content-Type: application/json [15:23:22] [15:23:22]POST finish read [15:23:22]Found Content-Length = 682 [15:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:22]execute_script... [15:23:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:22]POST & json_proto [15:23:22]process_json_proto [15:23:22]json parsed OK: [15:23:22]protocol is kg_v1.0 [15:23:22]action value=close_receipt [15:23:22]process_action close_receipt [15:23:22]cmd_close_receipt [15:23:22]MH_GetDate [15:23:22]Write to MH i2c: F0 00 00 CC 28 E3 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 CC 28 00 ED 9B 92 66 C9 DC B2 64 27 [15:23:22]GetLastDocTimeStamp 1720883945 [15:23:22]current date 1720884205 [15:23:22]FM_GetShiftState [15:23:22]SAM_PROTO_GetShiftState [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 01 00 [15:23:22]Write to MH i2c: E2 08 00 CD 28 80 13 01 00 00 00 00 00 72 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 CD 28 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 53 [15:23:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetShiftState done [15:23:22]FM_GetShiftState done [15:23:22]opened in 1720831249 [15:23:22]opened+sec_in_day 1720917649 [15:23:22]quantity*price = 100016 [15:23:22]sum+1 = 100017 [15:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 195 13.07.2024 15:23 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164635 ФПД: 159626145977928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164635&fm=159626145977928&tin=02508201610067®Number=0000000000090829&sum=100000 [15:23:24]StoreToDocumentArchive [15:23:24]shift 446 fd 164635 [15:23:24]save to /storage/0446/doc_00164635 [15:23:24]save last doc name /storage/0446/doc_00164635 to /storage/kkm_last_doc_name [15:23:24]save OK [15:23:24]Clear old archive folders... [15:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:24]tlvbuf is 014DAFB0 [15:23:24]SAM_PROTO_ClearQueue [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 09 00 00 [15:23:24]Write to MH i2c: E2 08 00 DA 28 80 09 00 00 00 00 00 00 74 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_ClearQueue done [15:23:24]KKMCreateOFDPacket [15:23:24]OFDProtocolAddRootSTLVToBuf [15:23:24]FM_MakeSignedData [15:23:24]FM_MakeSignedData [15:23:24]SAM_PROTO_SignData [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 01 02 [15:23:24]Write to MH i2c: E2 08 00 DB 28 80 0D 01 02 00 00 00 00 7C [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=255 [15:23:24]MH_SAM_APDU [15:23: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 ED 9B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 83 02 00 35 04 06 00 91 [15:23:24]Write to MH i2c: E2 02 01 DC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 ED 9B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 83 02 00 35 04 06 00 91 00 00 CA [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=10 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 02 02 05 2D DB BA 56 48 [15:23:24]Write to MH i2c: E2 0D 00 DD 28 80 0D 02 02 05 00 2D DB BA 56 48 00 00 E9 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 DD 28 00 90 00 79 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 03 02 [15:23:24]Write to MH i2c: E2 08 00 DE 28 80 0D 03 02 00 00 00 00 81 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0B 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0B 00 DE 28 00 C5 A5 27 BB 5C 66 ED 4B 90 00 C8 [15:23:24]RAPDU: C5 A5 27 BB 5C 66 ED 4B 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_SignData done [15:23:24]FM_MakeSignedData done [15:23:24]CreateOFDProtocolMessage [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 11 00 00 [15:23:24]Write to MH i2c: E2 08 00 DF 28 80 11 00 00 00 00 00 00 81 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 DF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [15:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:23:24]wFMCommunicate OK [15:23:24]CreateOFDProtocolMessage done [15:23:24]OFDSenderStorePacket 164635 [15:23:24]StoreOFDPacket docnum=164635 [15:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C D3 07 01 CF BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 ED 9B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 83 02 00 35 04 06 00 91 2D DB BA 56 48 C5 A5 27 BB 5C 66 ED 4B [15:23:24]CheckFolder [15:23:24]dirname=/storage/ofd_packets [15:23:24]CheckFolder done [15:23:24]ProducePacketName [15:23:24]name=ofd_packets/00164635 [15:23:24]NVStorageSaveData ofd_packets/00164635 [15:23:24]File name is /storage/ofd_packets/00164635 [15:23:24]Write 301 bytes [15:23:24]NVStorageSaveData done [15:23:24]OFDSenderStorePacket done [15:23:24]KKMCreateOFDPacket done [15:23:24]NVStorageSaveData kkm_last_timestamp [15:23:24]File name is /storage/kkm_last_timestamp [15:23:24]Write 4 bytes [15:23:24]NVStorageSaveData done [15:23:24]ExternCall_PrintAddStr [15:23:24]wPrintStart [15:23:24]Write to MH i2c: 01 00 00 E0 28 08 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 FF 0F 1D [15:23:24]RasterBufferAndPrint [15:23:24]line Счет N : (1)458728 [15:23:24]line ИНН: 02508201610067 [15:23:24]line Контрольно-Кассовый Чек [15:23:24]line ПРОДАЖА [15:23:24]line ТРК (МРК, ГНК) : 22 [15:23:24]line Товар: 2710124130 [15:23:24]line Аи-92-К-5 [15:23:24]line 15.200 * 65.80 [15:23:24]line = 1000.16 [15:23:24]line НДС 12% НСП 1% [15:23:24]line > о реализуемом товаре [15:23:24]line ОКРУГЛЕНИЕ: -0.16 [15:23:24]line ИТОГО: 1000.00 [15:23:24]line Внесено: 1000.00 [15:23:24]line СДАЧА: 0.00 [15:23:24]line НСП 1% : 8.85 [15:23:24]line НДС 12% : 106.21 [15:23:24]line Наличными: 1000.00 [15:23:24]line Безнал.: 0.00 [15:23:24]line Место: АЗС № 72 "Партнер Нефть" [15:23:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:23:24]line СНО: Общий режим [15:23:24]line Чек 195 13.07.2024 15:23 [15:23:24]line Смена: 446 ФФД: 1.0 [15:23:24]line ЗНМ: 0300000160 [15:23:24]line РНМ: 0000000000090829 [15:23:24]line Версия ККМ: 001 [15:23:24]line ФМ: 0000000000874718 [15:23:24]line ФД: 164635 [15:23:24]line ФПД: 159626145977928 [15:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164635&fm=159626145977928&tin=02508201610067®Number=0000000000090829&sum=100000 [15:23:24]OFD Sender: Processing packet 164635 [packets to send 104, broken 103] [15:23:24]ProducePacketName [15:23:24]name=ofd_packets/00164635 [15:23:24]OFD Sender: To server: pG, [15:23:24]CommunicateWithHost lk.salyk.kg:30040 [15:23:24]ConnectInit lk.salyk.kg [15:23:24]written 0, free lines is 4095 [15:23:25]Connected sock=10 [15:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C D3 07 01 CF BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 ED 9B 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 83 02 00 35 04 06 00 91 2D DB BA 56 48 C5 A5 27 BB 5C 66 ED 4B [15:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 30 71 47 00 B1 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 83 02 00 F4 03 04 00 7E 42 92 66 B6 04 01 00 00 EE FA 5D 8C D2 B3 C0 7A [15:23:25]CommunicateWithHost err = 0 [15:23:25]CheckOFDResponse [15:23:25]1017 (14) - 77093643461234 [15:23:25]1041 (16) - 0000000000874718 [15:23:25]1040 (4) - 164635 [15:23:25]1012 (4) - 13.07.2024 09:01 [15:23:25]1206 (1) - 0 [15:23:25]OFD Sender: Remove packet 164635 [15:23:25]ProducePacketName [15:23:25]name=ofd_packets/00164635 [15:23:25]NVStorageDeleteData [15:23:25]Write to MH i2c: 01 00 00 0A 29 33 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 07 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 07 00 0A 29 00 00 00 00 00 09 0D 50 [15:23:25]RasterBufferAndPrint [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]written 0, free lines is 3343 [15:23:25]MH_Cut [15:23:25]Write to MH i2c: D1 01 00 11 29 01 0C [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 01 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 01 00 11 29 00 0B [15:23:25]Write to MH i2c: 01 00 00 12 29 3B [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]OFD Sender: No OFD packet to send [15:23:26]*** Cut start [15:23:26]*** Partial cut [15:23:26]*** CUTSNS_PIN = 1 [15:23:26]*** CUTSNS_PIN = 0 [15:23:26]*** Brake cut motor [15:23:26]Read from MH i2c: 01 [15:23:26]MH_I2C_Read... [15:23:26]*** Stop cut motor [15:23:26]*** Cut end [15:23:26]Read from MH i2c: 01 07 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 12 29 00 00 00 00 00 FF 0F 50 [15:23:26]process_action close_receipt done [15:23:26]requested_data is exist [15:23:26]produce_requested_data [15:23:26]requested_item fm.sn is exist - process it [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 11 00 00 [15:23:26]Write to MH i2c: E2 08 00 13 29 80 11 00 00 00 00 00 00 B6 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 13 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [15:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:23:26]wFMCommunicate OK [15:23:26]requested_item fd.num is exist - process it [15:23:26]SAM_PROTO_GetFieldsCounters [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 13 00 00 [15:23:26]Write to MH i2c: E2 08 00 14 29 80 13 00 00 00 00 00 00 B9 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 62 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 62 00 14 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [15:23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_GetFieldsCounters done [15:23:26]requested_item shift.num is exist - process it [15:23:26]requested_item shift.opened is exist - process it [15:23:26]req_shift_opened [15:23:26]FM_GetShiftState [15:23:26]SAM_PROTO_GetShiftState [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 13 01 00 [15:23:26]Write to MH i2c: E2 08 00 15 29 80 13 01 00 00 00 00 00 BB [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0E 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0E 00 15 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9C [15:23:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_GetShiftState done [15:23:26]FM_GetShiftState done [15:23:26]req_shift_opened done [15:23:26]requested_item shift.open_date is exist - process it [15:23:26]req_shift_open_date [15:23:26]req_shift_open_date done [15:23:26]produce_requested_data done [15:23:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164635,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:23:26]process_action_free close_receipt [15:23:26]json_value_free [15:23:26]json_value_free done [15:23:26]process_json_proto returns [15:23:26]Send response to host [15:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164635,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:23:26]free response buf [15:23:26]execute_script done [15:23:26]execute_script returns [15:23:26]free content buf [15:23:26]Sock 7.Close socket [15:23:26]Sock 7.Thread stoped [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:09]accept exits with 9 [15:25:09]New connection [15:25:09]New thread 3067293028 created [15:25:09]Thread 3067149668 joined [15:25:09]Waiting for new connection... [15:25:09] Sock 9.Parse request [15:25:09]Sock 9.Check first char [15:25:09]Sock 9.First char is OK [15:25:09]request: POST /json_proto HTTP/1.0 [15:25:09]Method: POST [15:25:09]URL: /json_proto [15:25:09]Method is POST - this is cgi request [15:25:09]url: /json_proto [15:25:09]query_string will be loaded in cgi processing [15:25:09]execute_cgi json_proto POST (null) [15:25:09]execute_cgi path=json_proto method=POST [15:25:09]POST find Content-Length [15:25:09]Host: 172.17.56.4:8080 [15:25:09]Content-Length: 674 [15:25:09]Content-Type: application/json [15:25:09] [15:25:09]POST finish read [15:25:09]Found Content-Length = 674 [15:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:09]execute_script... [15:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:09]POST & json_proto [15:25:09]process_json_proto [15:25:09]json parsed OK: [15:25:09]protocol is kg_v1.0 [15:25:09]action value=close_receipt [15:25:09]process_action close_receipt [15:25:09]cmd_close_receipt [15:25:09]MH_GetDate [15:25:09]Write to MH i2c: F0 00 00 16 29 2E [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: F0 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: F0 09 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: F0 09 00 16 29 00 58 9C 92 66 C9 DC B2 64 DE [15:25:09]GetLastDocTimeStamp 1720884205 [15:25:09]current date 1720884312 [15:25:09]FM_GetShiftState [15:25:09]SAM_PROTO_GetShiftState [15:25:09]wFMCommunicate request_size=4 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 13 01 00 [15:25:09]Write to MH i2c: E2 08 00 17 29 80 13 01 00 00 00 00 00 BD [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 0E 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 0E 00 17 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9E [15:25:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:25:09]wFMCommunicate OK [15:25:09]SAM_PROTO_GetShiftState done [15:25:09]FM_GetShiftState done [15:25:09]opened in 1720831249 [15:25:09]opened+sec_in_day 1720917649 [15:25:09]quantity*price = 60036 [15:25:09]sum+1 = 60038 [15:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 196 13.07.2024 15:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164636 ФПД: 59241901725042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152512&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164636&fm=59241901725042&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:10]StoreToDocumentArchive [15:25:10]shift 446 fd 164636 [15:25:10]save to /storage/0446/doc_00164636 [15:25:10]save last doc name /storage/0446/doc_00164636 to /storage/kkm_last_doc_name [15:25:10]save OK [15:25:10]Clear old archive folders... [15:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:25:10]tlvbuf is 01423550 [15:25:10]SAM_PROTO_ClearQueue [15:25:10]wFMCommunicate request_size=4 [15:25:10]MH_SAM_APDU [15:25:10]CAPDU: 80 09 00 00 [15:25:10]Write to MH i2c: E2 08 00 24 29 80 09 00 00 00 00 00 00 BF [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:10]Read from MH i2c: E2 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: E2 03 00 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [15:25:10]RAPDU: 90 00 [15:25:10]wFMCommunicate OK [15:25:10]SAM_PROTO_ClearQueue done [15:25:10]KKMCreateOFDPacket [15:25:10]OFDProtocolAddRootSTLVToBuf [15:25:10]FM_MakeSignedData [15:25:10]FM_MakeSignedData [15:25:10]SAM_PROTO_SignData [15:25:10]wFMCommunicate request_size=4 [15:25:10]MH_SAM_APDU [15:25:10]CAPDU: 80 0D 01 02 [15:25:10]Write to MH i2c: E2 08 00 25 29 80 0D 01 02 00 00 00 00 C7 [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:10]Read from MH i2c: E2 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: E2 03 00 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [15:25:10]RAPDU: 90 00 [15:25:10]wFMCommunicate OK [15:25:10]wFMCommunicate request_size=255 [15:25:10]MH_SAM_APDU [15:25:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 C4 00 00 00 F4 03 04 00 58 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 83 02 00 35 04 06 00 35 E1 54 82 [15:25:10]Write to MH i2c: E2 02 01 26 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 C4 00 00 00 F4 03 04 00 58 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 83 02 00 35 04 06 00 35 E1 54 82 00 00 2E [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]OFD Sender: No OFD packet to send [15:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:11]Read from MH i2c: E2 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 03 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [15:25:11]RAPDU: 90 00 [15:25:11]wFMCommunicate OK [15:25:11]wFMCommunicate request_size=7 [15:25:11]MH_SAM_APDU [15:25:11]CAPDU: 80 0D 02 02 02 15 72 [15:25:11]Write to MH i2c: E2 0A 00 27 29 80 0D 02 02 02 00 15 72 00 00 55 [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:11]Read from MH i2c: E2 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 03 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 03 00 27 29 00 90 00 C4 [15:25:11]RAPDU: 90 00 [15:25:11]wFMCommunicate OK [15:25:11]wFMCommunicate request_size=4 [15:25:11]MH_SAM_APDU [15:25:11]CAPDU: 80 0D 03 02 [15:25:11]Write to MH i2c: E2 08 00 28 29 80 0D 03 02 00 00 00 00 CC [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:11]Read from MH i2c: E2 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 0B 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 0B 00 28 29 00 98 19 0E 3C 2F A3 0A A9 90 00 4D [15:25:11]RAPDU: 98 19 0E 3C 2F A3 0A A9 90 00 [15:25:11]wFMCommunicate OK [15:25:11]SAM_PROTO_SignData done [15:25:11]FM_MakeSignedData done [15:25:11]CreateOFDProtocolMessage [15:25:11]wFMCommunicate request_size=4 [15:25:11]MH_SAM_APDU [15:25:11]CAPDU: 80 11 00 00 [15:25:11]Write to MH i2c: E2 08 00 29 29 80 11 00 00 00 00 00 00 CC [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:11]Read from MH i2c: E2 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 17 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 17 00 29 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [15:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:11]wFMCommunicate OK [15:25:11]CreateOFDProtocolMessage done [15:25:11]OFDSenderStorePacket 164636 [15:25:11]StoreOFDPacket docnum=164636 [15:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B8 9F 04 01 33 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 C4 00 00 00 F4 03 04 00 58 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 83 02 00 35 04 06 00 35 E1 54 82 15 72 98 19 0E 3C 2F A3 0A A9 [15:25:11]CheckFolder [15:25:11]dirname=/storage/ofd_packets [15:25:11]CheckFolder done [15:25:11]ProducePacketName [15:25:11]name=ofd_packets/00164636 [15:25:11]NVStorageSaveData ofd_packets/00164636 [15:25:11]File name is /storage/ofd_packets/00164636 [15:25:11]Write 298 bytes [15:25:11]NVStorageSaveData done [15:25:11]OFDSenderStorePacket done [15:25:11]KKMCreateOFDPacket done [15:25:11]NVStorageSaveData kkm_last_timestamp [15:25:11]File name is /storage/kkm_last_timestamp [15:25:11]Write 4 bytes [15:25:11]NVStorageSaveData done [15:25:11]ExternCall_PrintAddStr [15:25:11]wPrintStart [15:25:11]Write to MH i2c: 01 00 00 2A 29 53 [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: 01 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: 01 07 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [15:25:11]RasterBufferAndPrint [15:25:11]line Счет N : (1)458729 [15:25:11]line ИНН: 02508201610067 [15:25:11]line Контрольно-Кассовый Чек [15:25:11]line ПРОДАЖА [15:25:11]line ТРК (МРК, ГНК) : 21 [15:25:11]line Товар: 2710194210 [15:25:11]line ДТ-К-5 [15:25:11]line 8.350 * 71.90 [15:25:11]line = 600.37 [15:25:11]line НДС 12% НСП 1% [15:25:11]line > о реализуемом товаре [15:25:11]line ОКРУГЛЕНИЕ: -0.37 [15:25:11]line ИТОГО: 600.00 [15:25:11]line Внесено: 600.00 [15:25:11]line СДАЧА: 0.00 [15:25:11]line НСП 1% : 5.31 [15:25:11]line НДС 12% : 63.76 [15:25:11]line Наличными: 600.00 [15:25:11]line Безнал.: 0.00 [15:25:11]line Место: АЗС № 72 "Партнер Нефть" [15:25:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:25:11]line СНО: Общий режим [15:25:11]line Чек 196 13.07.2024 15:25 [15:25:11]line Смена: 446 ФФД: 1.0 [15:25:11]line ЗНМ: 0300000160 [15:25:11]line РНМ: 0000000000090829 [15:25:11]line Версия ККМ: 001 [15:25:11]line ФМ: 0000000000874718 [15:25:11]line ФД: 164636 [15:25:11]line ФПД: 59241901725042 [15:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152512&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164636&fm=59241901725042&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:11]OFD Sender: Processing packet 164636 [packets to send 104, broken 103] [15:25:11]ProducePacketName [15:25:11]name=ofd_packets/00164636 [15:25:11]OFD Sender: To server: pG, [15:25:11]CommunicateWithHost lk.salyk.kg:30040 [15:25:11]ConnectInit lk.salyk.kg [15:25:11]written 0, free lines is 4095 [15:25:11]Connected sock=10 [15:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B8 9F 04 01 33 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 C4 00 00 00 F4 03 04 00 58 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 83 02 00 35 04 06 00 35 E1 54 82 15 72 98 19 0E 3C 2F A3 0A A9 [15:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 9E 47 00 DF A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 83 02 00 F4 03 04 00 E8 42 92 66 B6 04 01 00 00 B7 45 50 B6 E1 5B 4C 7F [15:25:11]CommunicateWithHost err = 0 [15:25:11]CheckOFDResponse [15:25:11]1017 (14) - 77093643461234 [15:25:11]1041 (16) - 0000000000874718 [15:25:11]1040 (4) - 164636 [15:25:11]1012 (4) - 13.07.2024 09:03 [15:25:11]1206 (1) - 0 [15:25:11]OFD Sender: Remove packet 164636 [15:25:11]ProducePacketName [15:25:11]name=ofd_packets/00164636 [15:25:11]NVStorageDeleteData [15:25:12]Write to MH i2c: 01 00 00 54 29 7D [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: 01 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: 01 07 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: 01 07 00 54 29 00 00 00 00 00 F1 0C 81 [15:25:12]RasterBufferAndPrint [15:25:12]line [15:25:12]line [15:25:12]line [15:25:12]line [15:25:12]line [15:25:12]written 0, free lines is 3320 [15:25:12]MH_Cut [15:25:12]Write to MH i2c: D1 01 00 5B 29 01 56 [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: D1 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: D1 01 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: D1 01 00 5B 29 00 55 [15:25:12]Write to MH i2c: 01 00 00 5C 29 85 [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]OFD Sender: No OFD packet to send [15:25:12]*** Cut start [15:25:12]*** Partial cut [15:25:12]*** CUTSNS_PIN = 1 [15:25:12]*** CUTSNS_PIN = 0 [15:25:12]*** Brake cut motor [15:25:13]Read from MH i2c: 01 [15:25:13]MH_I2C_Read... [15:25:13]*** Stop cut motor [15:25:13]*** Cut end [15:25:13]Read from MH i2c: 01 07 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: 01 07 00 5C 29 00 00 00 00 00 FF 0F 9A [15:25:13]process_action close_receipt done [15:25:13]requested_data is exist [15:25:13]produce_requested_data [15:25:13]requested_item fm.sn is exist - process it [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 11 00 00 [15:25:13]Write to MH i2c: E2 08 00 5D 29 80 11 00 00 00 00 00 00 00 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 17 00 5D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [15:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:13]wFMCommunicate OK [15:25:13]requested_item fd.num is exist - process it [15:25:13]SAM_PROTO_GetFieldsCounters [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 13 00 00 [15:25:13]Write to MH i2c: E2 08 00 5E 29 80 13 00 00 00 00 00 00 03 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 62 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 62 00 5E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_GetFieldsCounters done [15:25:13]requested_item shift.num is exist - process it [15:25:13]requested_item shift.opened is exist - process it [15:25:13]req_shift_opened [15:25:13]FM_GetShiftState [15:25:13]SAM_PROTO_GetShiftState [15:25:13]wFMCommunicate request_size=4 [15:25:13]MH_SAM_APDU [15:25:13]CAPDU: 80 13 01 00 [15:25:13]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [15:25:13]Write i2c OK [15:25:13]MH_I2C_Read... [15:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:13]Read from MH i2c: E2 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0E 00 [15:25:13]MH_I2C_Read... [15:25:13]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E6 [15:25:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:25:13]wFMCommunicate OK [15:25:13]SAM_PROTO_GetShiftState done [15:25:13]FM_GetShiftState done [15:25:13]req_shift_opened done [15:25:13]requested_item shift.open_date is exist - process it [15:25:13]req_shift_open_date [15:25:13]req_shift_open_date done [15:25:13]produce_requested_data done [15:25:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164636,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:25:13]process_action_free close_receipt [15:25:13]json_value_free [15:25:13]json_value_free done [15:25:13]process_json_proto returns [15:25:13]Send response to host [15:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164636,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:25:13]free response buf [15:25:13]execute_script done [15:25:13]execute_script returns [15:25:13]free content buf [15:25:13]Sock 9.Close socket [15:25:13]Sock 9.Thread stoped [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]accept exits with 7 [15:25:52]New connection [15:25:52]New thread 3067149668 created [15:25:52]Thread 3067293028 joined [15:25:52]Waiting for new connection... [15:25:52] Sock 7.Parse request [15:25:52]Sock 7.Check first char [15:25:52]Sock 7.First char is OK [15:25:52]request: POST /json_proto HTTP/1.0 [15:25:52]Method: POST [15:25:52]URL: /json_proto [15:25:52]Method is POST - this is cgi request [15:25:52]url: /json_proto [15:25:52]query_string will be loaded in cgi processing [15:25:52]execute_cgi json_proto POST (null) [15:25:52]execute_cgi path=json_proto method=POST [15:25:52]POST find Content-Length [15:25:52]Host: 172.17.56.4:8080 [15:25:52]Content-Length: 677 [15:25:52]Content-Type: application/json [15:25:52] [15:25:52]POST finish read [15:25:52]Found Content-Length = 677 [15:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:52]execute_script... [15:25: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)458730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:52]POST & json_proto [15:25:52]process_json_proto [15:25:52]json parsed OK: [15:25:52]protocol is kg_v1.0 [15:25:52]action value=close_receipt [15:25:52]process_action close_receipt [15:25:52]cmd_close_receipt [15:25:52]MH_GetDate [15:25:52]Write to MH i2c: F0 00 00 60 29 78 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: F0 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: F0 09 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: F0 09 00 60 29 00 82 9C 92 66 C9 DC B2 64 52 [15:25:52]GetLastDocTimeStamp 1720884312 [15:25:52]current date 1720884354 [15:25:52]FM_GetShiftState [15:25:52]SAM_PROTO_GetShiftState [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 13 01 00 [15:25:52]Write to MH i2c: E2 08 00 61 29 80 13 01 00 00 00 00 00 07 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]OFD Sender: No OFD packet to send [15:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:52]Read from MH i2c: E2 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 0E 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 0E 00 61 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E8 [15:25:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:25:52]wFMCommunicate OK [15:25:52]SAM_PROTO_GetShiftState done [15:25:52]FM_GetShiftState done [15:25:52]opened in 1720831249 [15:25:52]opened+sec_in_day 1720917649 [15:25:52]quantity*price = 60009 [15:25:52]sum+1 = 60011 [15:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 197 13.07.2024 15:25 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164637 ФПД: 78206009826013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164637&fm=78206009826013&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:53]StoreToDocumentArchive [15:25:53]shift 446 fd 164637 [15:25:53]save to /storage/0446/doc_00164637 [15:25:53]save last doc name /storage/0446/doc_00164637 to /storage/kkm_last_doc_name [15:25:53]save OK [15:25:53]Clear old archive folders... [15:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:53]tlvbuf is 01516B90 [15:25:53]SAM_PROTO_ClearQueue [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 09 00 00 [15:25:53]Write to MH i2c: E2 08 00 6E 29 80 09 00 00 00 00 00 00 09 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]SAM_PROTO_ClearQueue done [15:25:53]KKMCreateOFDPacket [15:25:53]OFDProtocolAddRootSTLVToBuf [15:25:53]FM_MakeSignedData [15:25:53]FM_MakeSignedData [15:25:53]SAM_PROTO_SignData [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 0D 01 02 [15:25:53]Write to MH i2c: E2 08 00 6F 29 80 0D 01 02 00 00 00 00 11 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]wFMCommunicate request_size=255 [15:25:53]MH_SAM_APDU [15:25: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 83 02 00 35 04 06 00 47 [15:25:53]Write to MH i2c: E2 02 01 70 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 83 02 00 35 04 06 00 47 00 00 2E [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 70 29 00 90 00 0D [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]wFMCommunicate request_size=10 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 0D 02 02 05 20 C1 6F 5A DD [15:25:53]Write to MH i2c: E2 0D 00 71 29 80 0D 02 02 05 00 20 C1 6F 5A DD 00 00 A5 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:54]Read from MH i2c: E2 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 03 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 03 00 71 29 00 90 00 0E [15:25:54]RAPDU: 90 00 [15:25:54]wFMCommunicate OK [15:25:54]wFMCommunicate request_size=4 [15:25:54]MH_SAM_APDU [15:25:54]CAPDU: 80 0D 03 02 [15:25:54]Write to MH i2c: E2 08 00 72 29 80 0D 03 02 00 00 00 00 16 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:54]Read from MH i2c: E2 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 0B 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 0B 00 72 29 00 5A 70 FA 0D 4A 2F C4 AB 90 00 D0 [15:25:54]RAPDU: 5A 70 FA 0D 4A 2F C4 AB 90 00 [15:25:54]wFMCommunicate OK [15:25:54]SAM_PROTO_SignData done [15:25:54]FM_MakeSignedData done [15:25:54]CreateOFDProtocolMessage [15:25:54]wFMCommunicate request_size=4 [15:25:54]MH_SAM_APDU [15:25:54]CAPDU: 80 11 00 00 [15:25:54]Write to MH i2c: E2 08 00 73 29 80 11 00 00 00 00 00 00 16 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:54]Read from MH i2c: E2 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 17 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 17 00 73 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [15:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:54]wFMCommunicate OK [15:25:54]CreateOFDProtocolMessage done [15:25:54]OFDSenderStorePacket 164637 [15:25:54]StoreOFDPacket docnum=164637 [15:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 86 46 07 01 98 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 83 02 00 35 04 06 00 47 20 C1 6F 5A DD 5A 70 FA 0D 4A 2F C4 AB [15:25:54]CheckFolder [15:25:54]dirname=/storage/ofd_packets [15:25:54]CheckFolder done [15:25:54]ProducePacketName [15:25:54]name=ofd_packets/00164637 [15:25:54]NVStorageSaveData ofd_packets/00164637 [15:25:54]File name is /storage/ofd_packets/00164637 [15:25:54]Write 301 bytes [15:25:54]NVStorageSaveData done [15:25:54]OFDSenderStorePacket done [15:25:54]KKMCreateOFDPacket done [15:25:54]NVStorageSaveData kkm_last_timestamp [15:25:54]File name is /storage/kkm_last_timestamp [15:25:54]Write 4 bytes [15:25:54]NVStorageSaveData done [15:25:54]ExternCall_PrintAddStr [15:25:54]wPrintStart [15:25:54]Write to MH i2c: 01 00 00 74 29 9D [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 FF 0F B2 [15:25:54]RasterBufferAndPrint [15:25:54]line Счет N : (1)458730 [15:25:54]line ИНН: 02508201610067 [15:25:54]line Контрольно-Кассовый Чек [15:25:54]line ПРОДАЖА [15:25:54]line ТРК (МРК, ГНК) : 22 [15:25:54]line Товар: 2710124130 [15:25:54]line Аи-92-К-5 [15:25:54]line 9.120 * 65.80 [15:25:54]line = 600.10 [15:25:54]line НДС 12% НСП 1% [15:25:54]line > о реализуемом товаре [15:25:54]line ОКРУГЛЕНИЕ: -0.10 [15:25:54]line ИТОГО: 600.00 [15:25:54]line Внесено: 600.00 [15:25:54]line СДАЧА: 0.00 [15:25:54]line НСП 1% : 5.31 [15:25:54]line НДС 12% : 63.73 [15:25:54]line Наличными: 600.00 [15:25:54]line Безнал.: 0.00 [15:25:54]line Место: АЗС № 72 "Партнер Нефть" [15:25:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:25:54]line СНО: Общий режим [15:25:54]line Чек 197 13.07.2024 15:25 [15:25:54]line Смена: 446 ФФД: 1.0 [15:25:54]line ЗНМ: 0300000160 [15:25:54]line РНМ: 0000000000090829 [15:25:54]line Версия ККМ: 001 [15:25:54]line ФМ: 0000000000874718 [15:25:54]line ФД: 164637 [15:25:54]line ФПД: 78206009826013 [15:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164637&fm=78206009826013&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:54]OFD Sender: Processing packet 164637 [packets to send 104, broken 103] [15:25:54]ProducePacketName [15:25:54]name=ofd_packets/00164637 [15:25:54]OFD Sender: To server: pG, [15:25:54]CommunicateWithHost lk.salyk.kg:30040 [15:25:54]ConnectInit lk.salyk.kg [15:25:54]written 0, free lines is 4095 [15:25:54]Connected sock=10 [15:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 86 46 07 01 98 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 82 9C 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 83 02 00 35 04 06 00 47 20 C1 6F 5A DD 5A 70 FA 0D 4A 2F C4 AB [15:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 D7 47 00 A9 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 83 02 00 F4 03 04 00 13 43 92 66 B6 04 01 00 00 C8 35 F3 C8 75 D2 80 31 [15:25:54]CommunicateWithHost err = 0 [15:25:54]CheckOFDResponse [15:25:54]1017 (14) - 77093643461234 [15:25:54]1041 (16) - 0000000000874718 [15:25:54]1040 (4) - 164637 [15:25:54]1012 (4) - 13.07.2024 09:04 [15:25:54]1206 (1) - 0 [15:25:54]OFD Sender: Remove packet 164637 [15:25:54]ProducePacketName [15:25:54]name=ofd_packets/00164637 [15:25:54]NVStorageDeleteData [15:25:54]Write to MH i2c: 01 00 00 9E 29 C7 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 9E 29 00 00 00 00 00 F0 0C CA [15:25:54]RasterBufferAndPrint [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]written 0, free lines is 3319 [15:25:54]MH_Cut [15:25:54]Write to MH i2c: D1 01 00 A5 29 01 A0 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 01 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 01 00 A5 29 00 9F [15:25:54]Write to MH i2c: 01 00 00 A6 29 CF [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:55]OFD Sender: No OFD packet to send [15:25:55]*** Cut start [15:25:55]*** Partial cut [15:25:55]*** CUTSNS_PIN = 1 [15:25:55]*** CUTSNS_PIN = 0 [15:25:55]*** Brake cut motor [15:25:56]Read from MH i2c: 01 [15:25:56]MH_I2C_Read... [15:25:56]*** Stop cut motor [15:25:56]*** Cut end [15:25:56]Read from MH i2c: 01 07 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 07 00 A6 29 00 00 00 00 00 FF 0F E4 [15:25:56]process_action close_receipt done [15:25:56]requested_data is exist [15:25:56]produce_requested_data [15:25:56]requested_item fm.sn is exist - process it [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 11 00 00 [15:25:56]Write to MH i2c: E2 08 00 A7 29 80 11 00 00 00 00 00 00 4A [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 17 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 17 00 A7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [15:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:56]wFMCommunicate OK [15:25:56]requested_item fd.num is exist - process it [15:25:56]SAM_PROTO_GetFieldsCounters [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 13 00 00 [15:25:56]Write to MH i2c: E2 08 00 A8 29 80 13 00 00 00 00 00 00 4D [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 62 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 62 00 A8 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15:25: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_GetFieldsCounters done [15:25:56]requested_item shift.num is exist - process it [15:25:56]requested_item shift.opened is exist - process it [15:25:56]req_shift_opened [15:25:56]FM_GetShiftState [15:25:56]SAM_PROTO_GetShiftState [15:25:56]wFMCommunicate request_size=4 [15:25:56]MH_SAM_APDU [15:25:56]CAPDU: 80 13 01 00 [15:25:56]Write to MH i2c: E2 08 00 A9 29 80 13 01 00 00 00 00 00 4F [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 A9 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 30 [15:25:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_GetShiftState done [15:25:56]FM_GetShiftState done [15:25:56]req_shift_opened done [15:25:56]requested_item shift.open_date is exist - process it [15:25:56]req_shift_open_date [15:25:56]req_shift_open_date done [15:25:56]produce_requested_data done [15:25:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164637,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:25:56]process_action_free close_receipt [15:25:56]json_value_free [15:25:56]json_value_free done [15:25:56]process_json_proto returns [15:25:56]Send response to host [15:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164637,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:25:56]free response buf [15:25:56]execute_script done [15:25:56]execute_script returns [15:25:56]free content buf [15:25:56]Sock 7.Close socket [15:25:56]Sock 7.Thread stoped [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:23]accept exits with 9 [15:29:23]New connection [15:29:23]New thread 3067293028 created [15:29:23]Thread 3067149668 joined [15:29:23]Waiting for new connection... [15:29:23] Sock 9.Parse request [15:29:23]Sock 9.Check first char [15:29:23]Sock 9.First char is OK [15:29:23]request: POST /json_proto HTTP/1.0 [15:29:23]Method: POST [15:29:23]URL: /json_proto [15:29:23]Method is POST - this is cgi request [15:29:23]url: /json_proto [15:29:23]query_string will be loaded in cgi processing [15:29:23]execute_cgi json_proto POST (null) [15:29:23]execute_cgi path=json_proto method=POST [15:29:23]POST find Content-Length [15:29:23]Host: 172.17.56.4:8080 [15:29:23]Content-Length: 673 [15:29:23]Content-Type: application/json [15:29:23] [15:29:23]POST finish read [15:29:23]Found Content-Length = 673 [15:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "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" ] } } [15:29:23]execute_script... [15:29: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)458731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "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" ] } } [15:29:23]POST & json_proto [15:29:23]process_json_proto [15:29:23]json parsed OK: [15:29:23]protocol is kg_v1.0 [15:29:23]action value=close_receipt [15:29:23]process_action close_receipt [15:29:23]cmd_close_receipt [15:29:23]MH_GetDate [15:29:23]Write to MH i2c: F0 00 00 AA 29 C2 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 AA 29 00 56 9D 92 66 C9 DC B2 64 71 [15:29:23]GetLastDocTimeStamp 1720884354 [15:29:23]current date 1720884566 [15:29:23]FM_GetShiftState [15:29:23]SAM_PROTO_GetShiftState [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 13 01 00 [15:29:23]Write to MH i2c: E2 08 00 AB 29 80 13 01 00 00 00 00 00 51 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 AB 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 32 [15:29:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_GetShiftState done [15:29:23]FM_GetShiftState done [15:29:23]opened in 1720831249 [15:29:23]opened+sec_in_day 1720917649 [15:29:23]quantity*price = 7040 [15:29:23]sum+1 = 7042 [15:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.48 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 198 13.07.2024 15:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164638 ФПД: 37377490122283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164638&fm=37377490122283&tin=02508201610067®Number=0000000000090829&sum=7000 [15:29:24]StoreToDocumentArchive [15:29:24]shift 446 fd 164638 [15:29:24]save to /storage/0446/doc_00164638 [15:29:24]save last doc name /storage/0446/doc_00164638 to /storage/kkm_last_doc_name [15:29:24]save OK [15:29:24]Clear old archive folders... [15:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:24]tlvbuf is 01457C20 [15:29:24]SAM_PROTO_ClearQueue [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 09 00 00 [15:29:24]Write to MH i2c: E2 08 00 B8 29 80 09 00 00 00 00 00 00 53 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 B8 29 00 90 00 55 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_ClearQueue done [15:29:24]KKMCreateOFDPacket [15:29:24]OFDProtocolAddRootSTLVToBuf [15:29:24]FM_MakeSignedData [15:29:24]FM_MakeSignedData [15:29:24]SAM_PROTO_SignData [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 01 02 [15:29:24]Write to MH i2c: E2 08 00 B9 29 80 0D 01 02 00 00 00 00 5B [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 B9 29 00 90 00 56 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=255 [15:29:24]MH_SAM_APDU [15:29: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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 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 EC 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 C6 00 00 00 F4 03 04 00 56 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 83 02 00 35 04 06 00 21 [15:29:24]Write to MH i2c: E2 02 01 BA 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 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 EC 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 C6 00 00 00 F4 03 04 00 56 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 83 02 00 35 04 06 00 21 00 00 4C [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 BA 29 00 90 00 57 [15:29:25]RAPDU: 90 00 [15:29:25]wFMCommunicate OK [15:29:25]wFMCommunicate request_size=10 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 0D 02 02 05 FE A0 05 76 2B [15:29:25]Write to MH i2c: E2 0D 00 BB 29 80 0D 02 02 05 00 FE A0 05 76 2B 00 00 AC [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [15:29:25]RAPDU: 90 00 [15:29:25]wFMCommunicate OK [15:29:25]wFMCommunicate request_size=4 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 0D 03 02 [15:29:25]Write to MH i2c: E2 08 00 BC 29 80 0D 03 02 00 00 00 00 60 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 0B 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 0B 00 BC 29 00 53 C5 6B 82 6A 2F 64 96 90 00 F9 [15:29:25]RAPDU: 53 C5 6B 82 6A 2F 64 96 90 00 [15:29:25]wFMCommunicate OK [15:29:25]SAM_PROTO_SignData done [15:29:25]FM_MakeSignedData done [15:29:25]CreateOFDProtocolMessage [15:29:25]wFMCommunicate request_size=4 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 11 00 00 [15:29:25]Write to MH i2c: E2 08 00 BD 29 80 11 00 00 00 00 00 00 60 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 17 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 17 00 BD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [15:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:29:25]wFMCommunicate OK [15:29:25]CreateOFDProtocolMessage done [15:29:25]OFDSenderStorePacket 164638 [15:29:25]StoreOFDPacket docnum=164638 [15:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 95 07 01 6E 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 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 EC 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 C6 00 00 00 F4 03 04 00 56 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 83 02 00 35 04 06 00 21 FE A0 05 76 2B 53 C5 6B 82 6A 2F 64 96 [15:29:25]CheckFolder [15:29:25]dirname=/storage/ofd_packets [15:29:25]CheckFolder done [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00164638 [15:29:25]NVStorageSaveData ofd_packets/00164638 [15:29:25]File name is /storage/ofd_packets/00164638 [15:29:25]Write 301 bytes [15:29:25]NVStorageSaveData done [15:29:25]OFDSenderStorePacket done [15:29:25]KKMCreateOFDPacket done [15:29:25]NVStorageSaveData kkm_last_timestamp [15:29:25]File name is /storage/kkm_last_timestamp [15:29:25]Write 4 bytes [15:29:25]NVStorageSaveData done [15:29:25]ExternCall_PrintAddStr [15:29:25]wPrintStart [15:29:25]Write to MH i2c: 01 00 00 BE 29 E7 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 BE 29 00 00 00 00 00 FF 0F FC [15:29:25]RasterBufferAndPrint [15:29:25]line Счет N : (1)458731 [15:29:25]line ИНН: 02508201610067 [15:29:25]line Контрольно-Кассовый Чек [15:29:25]line ПРОДАЖА [15:29:25]line ТРК (МРК, ГНК) : 12 [15:29:25]line Товар: 2710124130 [15:29:25]line Аи-92-К-5 [15:29:25]line 1.070 * 65.80 [15:29:25]line = 70.41 [15:29:25]line НДС 12% НСП 1% [15:29:25]line > о реализуемом товаре [15:29:25]line ОКРУГЛЕНИЕ: -0.41 [15:29:25]line ИТОГО: 70.00 [15:29:25]line Внесено: 70.00 [15:29:25]line СДАЧА: 0.00 [15:29:25]line НСП 1% : 0.62 [15:29:25]line НДС 12% : 7.48 [15:29:25]line Наличными: 70.00 [15:29:25]line Безнал.: 0.00 [15:29:25]line Место: АЗС № 72 "Партнер Нефть" [15:29:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:29:25]line СНО: Общий режим [15:29:25]line Чек 198 13.07.2024 15:29 [15:29:25]line Смена: 446 ФФД: 1.0 [15:29:25]line ЗНМ: 0300000160 [15:29:25]line РНМ: 0000000000090829 [15:29:25]line Версия ККМ: 001 [15:29:25]line ФМ: 0000000000874718 [15:29:25]line ФД: 164638 [15:29:25]line ФПД: 37377490122283 [15:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152926&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164638&fm=37377490122283&tin=02508201610067®Number=0000000000090829&sum=7000 [15:29:25]OFD Sender: Processing packet 164638 [packets to send 104, broken 103] [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00164638 [15:29:25]OFD Sender: To server: pG, [15:29:25]CommunicateWithHost lk.salyk.kg:30040 [15:29:25]ConnectInit lk.salyk.kg [15:29:25]written 0, free lines is 4095 [15:29:25]Connected sock=10 [15:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 95 07 01 6E 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 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 EC 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 C6 00 00 00 F4 03 04 00 56 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 83 02 00 35 04 06 00 21 FE A0 05 76 2B 53 C5 6B 82 6A 2F 64 96 [15:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C7 E9 47 00 8A 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 34 37 31 38 10 04 04 00 1E 83 02 00 F4 03 04 00 E6 43 92 66 B6 04 01 00 00 99 22 42 72 F9 FF A7 11 [15:29:26]CommunicateWithHost err = 0 [15:29:26]CheckOFDResponse [15:29:26]1017 (14) - 77093643461234 [15:29:26]1041 (16) - 0000000000874718 [15:29:26]1040 (4) - 164638 [15:29:26]1012 (4) - 13.07.2024 09:07 [15:29:26]1206 (1) - 0 [15:29:26]OFD Sender: Remove packet 164638 [15:29:26]ProducePacketName [15:29:26]name=ofd_packets/00164638 [15:29:26]NVStorageDeleteData [15:29:26]Write to MH i2c: 01 00 00 E8 29 11 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 07 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 07 00 E8 29 00 00 00 00 00 F0 0C 14 [15:29:26]RasterBufferAndPrint [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]written 0, free lines is 3318 [15:29:26]MH_Cut [15:29:26]Write to MH i2c: D1 01 00 EF 29 01 EA [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 01 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 01 00 EF 29 00 E9 [15:29:26]Write to MH i2c: 01 00 00 F0 29 19 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]OFD Sender: No OFD packet to send [15:29:26]*** Cut start [15:29:26]*** Partial cut [15:29:26]*** CUTSNS_PIN = 1 [15:29:26]*** CUTSNS_PIN = 0 [15:29:27]*** Brake cut motor [15:29:27]Read from MH i2c: 01 [15:29:27]MH_I2C_Read... [15:29:27]*** Stop cut motor [15:29:27]*** Cut end [15:29:27]Read from MH i2c: 01 07 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: 01 07 00 F0 29 00 00 00 00 00 FF 0F 2E [15:29:27]process_action close_receipt done [15:29:27]requested_data is exist [15:29:27]produce_requested_data [15:29:27]requested_item fm.sn is exist - process it [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 11 00 00 [15:29:27]Write to MH i2c: E2 08 00 F1 29 80 11 00 00 00 00 00 00 94 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 F1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [15:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:29:27]wFMCommunicate OK [15:29:27]requested_item fd.num is exist - process it [15:29:27]SAM_PROTO_GetFieldsCounters [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 00 00 [15:29:27]Write to MH i2c: E2 08 00 F2 29 80 13 00 00 00 00 00 00 97 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 F2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [15:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetFieldsCounters done [15:29:27]requested_item shift.num is exist - process it [15:29:27]requested_item shift.opened is exist - process it [15:29:27]req_shift_opened [15:29:27]FM_GetShiftState [15:29:27]SAM_PROTO_GetShiftState [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 01 00 [15:29:27]Write to MH i2c: E2 08 00 F3 29 80 13 01 00 00 00 00 00 99 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 0E 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 0E 00 F3 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7A [15:29:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetShiftState done [15:29:27]FM_GetShiftState done [15:29:27]req_shift_opened done [15:29:27]requested_item shift.open_date is exist - process it [15:29:27]req_shift_open_date [15:29:27]req_shift_open_date done [15:29:27]produce_requested_data done [15:29:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164638,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:29:27]process_action_free close_receipt [15:29:27]json_value_free [15:29:27]json_value_free done [15:29:27]process_json_proto returns [15:29:27]Send response to host [15:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164638,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:29:27]free response buf [15:29:27]execute_script done [15:29:27]execute_script returns [15:29:27]free content buf [15:29:27]Sock 9.Close socket [15:29:27]Sock 9.Thread stoped [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:09]accept exits with 7 [15:30:09]New connection [15:30:09]New thread 3067149668 created [15:30:09]Thread 3067293028 joined [15:30:09]Waiting for new connection... [15:30:09] Sock 7.Parse request [15:30:09]Sock 7.Check first char [15:30:09]Sock 7.First char is OK [15:30:09]request: POST /json_proto HTTP/1.0 [15:30:09]Method: POST [15:30:09]URL: /json_proto [15:30:09]Method is POST - this is cgi request [15:30:09]url: /json_proto [15:30:09]query_string will be loaded in cgi processing [15:30:09]execute_cgi json_proto POST (null) [15:30:09]execute_cgi path=json_proto method=POST [15:30:09]POST find Content-Length [15:30:09]Host: 172.17.56.4:8080 [15:30:09]Content-Length: 791 [15:30:09]Content-Type: application/json [15:30:09] [15:30:09]POST finish read [15:30:09]Found Content-Length = 791 [15:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:09]execute_script... [15:30:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:09]POST & json_proto [15:30:09]process_json_proto [15:30:09]json parsed OK: [15:30:09]protocol is kg_v1.0 [15:30:09]action value=close_receipt [15:30:09]process_action close_receipt [15:30:09]cmd_close_receipt [15:30:09]MH_GetDate [15:30:09]Write to MH i2c: F0 00 00 F4 29 0C [15:30:09]Write i2c OK [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: F0 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: F0 09 00 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: F0 09 00 F4 29 00 83 9D 92 66 C9 DC B2 64 E8 [15:30:09]GetLastDocTimeStamp 1720884566 [15:30:09]current date 1720884611 [15:30:09]FM_GetShiftState [15:30:09]SAM_PROTO_GetShiftState [15:30:09]wFMCommunicate request_size=4 [15:30:09]MH_SAM_APDU [15:30:09]CAPDU: 80 13 01 00 [15:30:09]Write to MH i2c: E2 08 00 F5 29 80 13 01 00 00 00 00 00 9B [15:30:09]Write i2c OK [15:30:09]MH_I2C_Read... [15:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:09]Read from MH i2c: E2 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 0E 00 [15:30:09]MH_I2C_Read... [15:30:09]Read from MH i2c: E2 0E 00 F5 29 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [15:30:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:30:09]wFMCommunicate OK [15:30:09]SAM_PROTO_GetShiftState done [15:30:09]FM_GetShiftState done [15:30:09]opened in 1720831249 [15:30:09]opened+sec_in_day 1720917649 [15:30:09]quantity*price = 65220 [15:30:09]sum+1 = 65221 [15:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 199 13.07.2024 15:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164639 ФПД: 274665672946795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153011&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164639&fm=274665672946795&tin=02508201610067®Number=0000000000090829&sum=65220 [15:30:10]StoreToDocumentArchive [15:30:10]shift 446 fd 164639 [15:30:10]save to /storage/0446/doc_00164639 [15:30:10]save last doc name /storage/0446/doc_00164639 to /storage/kkm_last_doc_name [15:30:10]save OK [15:30:10]Clear old archive folders... [15:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:10]tlvbuf is 014C84B0 [15:30:10]SAM_PROTO_ClearQueue [15:30:10]wFMCommunicate request_size=4 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 09 00 00 [15:30:10]Write to MH i2c: E2 08 00 02 2A 80 09 00 00 00 00 00 00 9E [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [15:30:10]RAPDU: 90 00 [15:30:10]wFMCommunicate OK [15:30:10]SAM_PROTO_ClearQueue done [15:30:10]KKMCreateOFDPacket [15:30:10]OFDProtocolAddRootSTLVToBuf [15:30:10]FM_MakeSignedData [15:30:10]FM_MakeSignedData [15:30:10]SAM_PROTO_SignData [15:30:10]wFMCommunicate request_size=4 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 0D 01 02 [15:30:10]Write to MH i2c: E2 08 00 03 2A 80 0D 01 02 00 00 00 00 A6 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [15:30:10]RAPDU: 90 00 [15:30:10]wFMCommunicate OK [15:30:10]wFMCommunicate request_size=255 [15:30:10]MH_SAM_APDU [15:30: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 83 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 83 02 00 35 04 06 00 F9 [15:30:10]Write to MH i2c: E2 02 01 04 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 83 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 83 02 00 35 04 06 00 F9 00 00 6D [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [15:30:11]RAPDU: 90 00 [15:30:11]wFMCommunicate OK [15:30:11]wFMCommunicate request_size=10 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 0D 02 02 05 CE 95 DE 34 6B [15:30:11]Write to MH i2c: E2 0D 00 05 2A 80 0D 02 02 05 00 CE 95 DE 34 6B 00 00 93 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [15:30:11]RAPDU: 90 00 [15:30:11]wFMCommunicate OK [15:30:11]wFMCommunicate request_size=4 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 0D 03 02 [15:30:11]Write to MH i2c: E2 08 00 06 2A 80 0D 03 02 00 00 00 00 AB [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 0B 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 0B 00 06 2A 00 DE 90 E6 CF B7 6F 6A 61 90 00 C0 [15:30:11]RAPDU: DE 90 E6 CF B7 6F 6A 61 90 00 [15:30:11]wFMCommunicate OK [15:30:11]SAM_PROTO_SignData done [15:30:11]FM_MakeSignedData done [15:30:11]CreateOFDProtocolMessage [15:30:11]wFMCommunicate request_size=4 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 11 00 00 [15:30:11]Write to MH i2c: E2 08 00 07 2A 80 11 00 00 00 00 00 00 AB [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 17 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 17 00 07 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [15:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:30:11]wFMCommunicate OK [15:30:11]CreateOFDProtocolMessage done [15:30:11]OFDSenderStorePacket 164639 [15:30:11]StoreOFDPacket docnum=164639 [15:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 97 07 01 F3 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 83 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 83 02 00 35 04 06 00 F9 CE 95 DE 34 6B DE 90 E6 CF B7 6F 6A 61 [15:30:11]CheckFolder [15:30:11]dirname=/storage/ofd_packets [15:30:11]CheckFolder done [15:30:11]ProducePacketName [15:30:11]name=ofd_packets/00164639 [15:30:11]NVStorageSaveData ofd_packets/00164639 [15:30:11]File name is /storage/ofd_packets/00164639 [15:30:11]Write 301 bytes [15:30:11]NVStorageSaveData done [15:30:11]OFDSenderStorePacket done [15:30:11]KKMCreateOFDPacket done [15:30:11]NVStorageSaveData kkm_last_timestamp [15:30:11]File name is /storage/kkm_last_timestamp [15:30:11]Write 4 bytes [15:30:11]NVStorageSaveData done [15:30:11]ExternCall_PrintAddStr [15:30:11]wPrintStart [15:30:11]Write to MH i2c: 01 00 00 08 2A 32 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 08 2A 00 00 00 00 00 FF 0F 47 [15:30:11]RasterBufferAndPrint [15:30:11]line Счет N : (1)458732 [15:30:11]line ИНН: 02508201610067 [15:30:11]line Контрольно-Кассовый Чек [15:30:11]line ПРОДАЖА [15:30:11]line ТРК (МРК, ГНК) : 22 [15:30:11]line Товар: 2710124130 [15:30:11]line Аи-92-К-5 [15:30:11]line 10.000 * 65.22 [15:30:11]line = 652.20 [15:30:11]line НДС 12% НСП 1% [15:30:11]line > о реализуемом товаре [15:30:11]line ИТОГО: 652.20 [15:30:11]line НСП 1% : 5.77 [15:30:11]line НДС 12% : 69.26 [15:30:11]line Наличными: 0.00 [15:30:11]line Безнал.: 652.20 [15:30:11]line Место: АЗС № 72 "Партнер Нефть" [15:30:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:30:11]line СНО: Общий режим [15:30:11]line Чек 199 13.07.2024 15:30 [15:30:11]line Смена: 446 ФФД: 1.0 [15:30:11]line ЗНМ: 0300000160 [15:30:11]line РНМ: 0000000000090829 [15:30:11]line Версия ККМ: 001 [15:30:11]line Платежная система: KICB Банк [15:30:11]line ФМ: 0000000000874718 [15:30:11]line ФД: 164639 [15:30:11]line ФПД: 274665672946795 [15:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153011&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164639&fm=274665672946795&tin=02508201610067®Number=0000000000090829&sum=65220 [15:30:11]written 0, free lines is 4095 [15:30:11]OFD Sender: Processing packet 164639 [packets to send 104, broken 103] [15:30:11]ProducePacketName [15:30:11]name=ofd_packets/00164639 [15:30:11]OFD Sender: To server: pG, [15:30:11]CommunicateWithHost lk.salyk.kg:30040 [15:30:11]ConnectInit lk.salyk.kg [15:30:11]Connected sock=10 [15:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 97 07 01 F3 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 83 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 83 02 00 35 04 06 00 F9 CE 95 DE 34 6B DE 90 E6 CF B7 6F 6A 61 [15:30:11]Write to MH i2c: 01 00 00 31 2A 5B [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: 01 07 00 31 2A 00 00 00 00 00 15 0D 84 [15:30:11]RasterBufferAndPrint [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]line [15:30:11]written 0, free lines is 3353 [15:30:11]MH_Cut [15:30:11]Write to MH i2c: D1 01 00 38 2A 01 34 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 01 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: D1 01 00 38 2A 00 33 [15:30:11]Write to MH i2c: 01 00 00 39 2A 63 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 81 6C 47 00 8F 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 34 37 31 38 10 04 04 00 1F 83 02 00 F4 03 04 00 14 44 92 66 B6 04 01 00 00 17 25 BE 44 66 6A 38 7F [15:30:11]CommunicateWithHost err = 0 [15:30:11]CheckOFDResponse [15:30:11]1017 (14) - 77093643461234 [15:30:11]1041 (16) - 0000000000874718 [15:30:11]1040 (4) - 164639 [15:30:11]1012 (4) - 13.07.2024 09:08 [15:30:11]1206 (1) - 0 [15:30:11]OFD Sender: Remove packet 164639 [15:30:11]ProducePacketName [15:30:11]name=ofd_packets/00164639 [15:30:11]NVStorageDeleteData [15:30:12]*** Cut start [15:30:12]*** Partial cut [15:30:12]*** CUTSNS_PIN = 1 [15:30:12]OFD Sender: No OFD packet to send [15:30:12]*** CUTSNS_PIN = 0 [15:30:12]*** Brake cut motor [15:30:12]Read from MH i2c: 01 [15:30:12]MH_I2C_Read... [15:30:12]*** Stop cut motor [15:30:12]*** Cut end [15:30:12]Read from MH i2c: 01 07 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: 01 07 00 39 2A 00 00 00 00 00 FF 0F 78 [15:30:12]process_action close_receipt done [15:30:12]requested_data is exist [15:30:12]produce_requested_data [15:30:12]requested_item fm.sn is exist - process it [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 11 00 00 [15:30:12]Write to MH i2c: E2 08 00 3A 2A 80 11 00 00 00 00 00 00 DE [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 3A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [15:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:30:12]wFMCommunicate OK [15:30:12]requested_item fd.num is exist - process it [15:30:12]SAM_PROTO_GetFieldsCounters [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 13 00 00 [15:30:12]Write to MH i2c: E2 08 00 3B 2A 80 13 00 00 00 00 00 00 E1 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:13]Read from MH i2c: E2 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: E2 62 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: E2 62 00 3B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:13]wFMCommunicate OK [15:30:13]SAM_PROTO_GetFieldsCounters done [15:30:13]requested_item shift.num is exist - process it [15:30:13]requested_item shift.opened is exist - process it [15:30:13]req_shift_opened [15:30:13]FM_GetShiftState [15:30:13]SAM_PROTO_GetShiftState [15:30:13]wFMCommunicate request_size=4 [15:30:13]MH_SAM_APDU [15:30:13]CAPDU: 80 13 01 00 [15:30:13]Write to MH i2c: E2 08 00 3C 2A 80 13 01 00 00 00 00 00 E3 [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:13]Read from MH i2c: E2 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: E2 0E 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: E2 0E 00 3C 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C4 [15:30:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:30:13]wFMCommunicate OK [15:30:13]SAM_PROTO_GetShiftState done [15:30:13]FM_GetShiftState done [15:30:13]req_shift_opened done [15:30:13]requested_item shift.open_date is exist - process it [15:30:13]req_shift_open_date [15:30:13]req_shift_open_date done [15:30:13]produce_requested_data done [15:30:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164639,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:30:13]process_action_free close_receipt [15:30:13]json_value_free [15:30:13]json_value_free done [15:30:13]process_json_proto returns [15:30:13]Send response to host [15:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164639,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:30:13]free response buf [15:30:13]execute_script done [15:30:13]execute_script returns [15:30:13]free content buf [15:30:13]Sock 7.Close socket [15:30:13]Sock 7.Thread stoped [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:45]accept exits with 9 [15:31:45]New connection [15:31:45]New thread 3067293028 created [15:31:45]Thread 3067149668 joined [15:31:45]Waiting for new connection... [15:31:45] Sock 9.Parse request [15:31:45]Sock 9.Check first char [15:31:45]Sock 9.First char is OK [15:31:45]request: POST /json_proto HTTP/1.0 [15:31:45]Method: POST [15:31:45]URL: /json_proto [15:31:45]Method is POST - this is cgi request [15:31:45]url: /json_proto [15:31:45]query_string will be loaded in cgi processing [15:31:45]execute_cgi json_proto POST (null) [15:31:45]execute_cgi path=json_proto method=POST [15:31:45]POST find Content-Length [15:31:45]Host: 172.17.56.4:8080 [15:31:45]Content-Length: 679 [15:31:45]Content-Type: application/json [15:31:45] [15:31:45]POST finish read [15:31:45]Found Content-Length = 679 [15:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 25.000, "sum" : 1797.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1797.00, "total" : 1797.00, "payments": [ { "type": 0, "sum" : 1797.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:45]execute_script... [15:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 25.000, "sum" : 1797.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1797.00, "total" : 1797.00, "payments": [ { "type": 0, "sum" : 1797.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:45]POST & json_proto [15:31:45]process_json_proto [15:31:45]json parsed OK: [15:31:45]protocol is kg_v1.0 [15:31:45]action value=close_receipt [15:31:45]process_action close_receipt [15:31:45]cmd_close_receipt [15:31:45]MH_GetDate [15:31:45]Write to MH i2c: F0 00 00 3D 2A 56 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 09 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 09 00 3D 2A 00 E3 9D 92 66 C9 DC B2 64 92 [15:31:45]GetLastDocTimeStamp 1720884611 [15:31:45]current date 1720884707 [15:31:45]FM_GetShiftState [15:31:45]SAM_PROTO_GetShiftState [15:31:45]wFMCommunicate request_size=4 [15:31:45]MH_SAM_APDU [15:31:45]CAPDU: 80 13 01 00 [15:31:45]Write to MH i2c: E2 08 00 3E 2A 80 13 01 00 00 00 00 00 E5 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:45]Read from MH i2c: E2 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 3E 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [15:31:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:31:45]wFMCommunicate OK [15:31:45]SAM_PROTO_GetShiftState done [15:31:45]FM_GetShiftState done [15:31:45]opened in 1720831249 [15:31:45]opened+sec_in_day 1720917649 [15:31:45]quantity*price = 179750 [15:31:45]sum+1 = 179751 [15:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1797.00 Внесено: 1797.00 СДАЧА: 0.00 НСП 1% : 15.91 НДС 12% : 190.88 Наличными: 1797.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 200 13.07.2024 15:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164640 ФПД: 216827626217131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153147&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164640&fm=216827626217131&tin=02508201610067®Number=0000000000090829&sum=179700 [15:31:46]StoreToDocumentArchive [15:31:46]shift 446 fd 164640 [15:31:46]save to /storage/0446/doc_00164640 [15:31:46]save last doc name /storage/0446/doc_00164640 to /storage/kkm_last_doc_name [15:31:46]save OK [15:31:46]Clear old archive folders... [15:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:46]tlvbuf is 0146B240 [15:31:46]SAM_PROTO_ClearQueue [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 09 00 00 [15:31:46]Write to MH i2c: E2 08 00 4B 2A 80 09 00 00 00 00 00 00 E7 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 4B 2A 00 90 00 E9 [15:31:46]RAPDU: 90 00 [15:31:46]wFMCommunicate OK [15:31:46]SAM_PROTO_ClearQueue done [15:31:46]KKMCreateOFDPacket [15:31:46]OFDProtocolAddRootSTLVToBuf [15:31:46]FM_MakeSignedData [15:31:46]FM_MakeSignedData [15:31:46]SAM_PROTO_SignData [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 0D 01 02 [15:31:46]Write to MH i2c: E2 08 00 4C 2A 80 0D 01 02 00 00 00 00 EF [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [15:31:46]RAPDU: 90 00 [15:31:46]wFMCommunicate OK [15:31:46]wFMCommunicate request_size=255 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E3 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 83 02 00 35 04 06 00 C5 34 1D A3 [15:31:46]Write to MH i2c: E2 02 01 4D 2A 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 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E3 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 83 02 00 35 04 06 00 C5 34 1D A3 00 00 4D [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:46]Read from MH i2c: E2 03 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 4D 2A 00 90 00 EB [15:31:46]RAPDU: 90 00 [15:31:46]wFMCommunicate OK [15:31:46]wFMCommunicate request_size=7 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 0D 02 02 02 5E AB [15:31:46]Write to MH i2c: E2 0A 00 4E 2A 80 0D 02 02 02 00 5E AB 00 00 FF [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 03 00 4E 2A 00 90 00 EC [15:31:46]RAPDU: 90 00 [15:31:46]wFMCommunicate OK [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 0D 03 02 [15:31:46]Write to MH i2c: E2 08 00 4F 2A 80 0D 03 02 00 00 00 00 F4 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 0B 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 0B 00 4F 2A 00 E2 D1 33 C0 07 B3 94 2E 90 00 17 [15:31:46]RAPDU: E2 D1 33 C0 07 B3 94 2E 90 00 [15:31:46]wFMCommunicate OK [15:31:46]SAM_PROTO_SignData done [15:31:46]FM_MakeSignedData done [15:31:46]CreateOFDProtocolMessage [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 11 00 00 [15:31:46]Write to MH i2c: E2 08 00 50 2A 80 11 00 00 00 00 00 00 F4 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:46]Read from MH i2c: E2 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 17 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: E2 17 00 50 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [15:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:31:46]wFMCommunicate OK [15:31:46]CreateOFDProtocolMessage done [15:31:46]OFDSenderStorePacket 164640 [15:31:46]StoreOFDPacket docnum=164640 [15:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 21 D4 04 01 23 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E3 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 83 02 00 35 04 06 00 C5 34 1D A3 5E AB E2 D1 33 C0 07 B3 94 2E [15:31:46]CheckFolder [15:31:46]dirname=/storage/ofd_packets [15:31:46]CheckFolder done [15:31:46]ProducePacketName [15:31:46]name=ofd_packets/00164640 [15:31:46]NVStorageSaveData ofd_packets/00164640 [15:31:46]File name is /storage/ofd_packets/00164640 [15:31:46]Write 298 bytes [15:31:46]NVStorageSaveData done [15:31:46]OFDSenderStorePacket done [15:31:46]KKMCreateOFDPacket done [15:31:46]NVStorageSaveData kkm_last_timestamp [15:31:46]File name is /storage/kkm_last_timestamp [15:31:46]Write 4 bytes [15:31:46]NVStorageSaveData done [15:31:46]ExternCall_PrintAddStr [15:31:46]wPrintStart [15:31:46]Write to MH i2c: 01 00 00 51 2A 7B [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: 01 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: 01 07 00 [15:31:46]MH_I2C_Read... [15:31:46]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 FF 0F 90 [15:31:46]RasterBufferAndPrint [15:31:46]line Счет N : (1)458733 [15:31:46]line ИНН: 02508201610067 [15:31:46]line Контрольно-Кассовый Чек [15:31:46]line ПРОДАЖА [15:31:46]line ТРК (МРК, ГНК) : 11 [15:31:46]line Товар: 2710194210 [15:31:46]line ДТ-К-5 [15:31:46]line 25.000 * 71.90 [15:31:46]line = 1797.50 [15:31:46]line НДС 12% НСП 1% [15:31:46]line > о реализуемом товаре [15:31:46]line ОКРУГЛЕНИЕ: -0.50 [15:31:46]line ИТОГО: 1797.00 [15:31:46]line Внесено: 1797.00 [15:31:46]line СДАЧА: 0.00 [15:31:46]line НСП 1% : 15.91 [15:31:46]line НДС 12% : 190.88 [15:31:46]line Наличными: 1797.00 [15:31:46]line Безнал.: 0.00 [15:31:46]line Место: АЗС № 72 "Партнер Нефть" [15:31:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:31:46]line СНО: Общий режим [15:31:46]line Чек 200 13.07.2024 15:31 [15:31:46]line Смена: 446 ФФД: 1.0 [15:31:46]line ЗНМ: 0300000160 [15:31:46]line РНМ: 0000000000090829 [15:31:46]line Версия ККМ: 001 [15:31:46]line ФМ: 0000000000874718 [15:31:46]line ФД: 164640 [15:31:46]line ФПД: 216827626217131 [15:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153147&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164640&fm=216827626217131&tin=02508201610067®Number=0000000000090829&sum=179700 [15:31:47]OFD Sender: Processing packet 164640 [packets to send 104, broken 103] [15:31:47]ProducePacketName [15:31:47]name=ofd_packets/00164640 [15:31:47]OFD Sender: To server: pG, [15:31:47]CommunicateWithHost lk.salyk.kg:30040 [15:31:47]ConnectInit lk.salyk.kg [15:31:47]written 0, free lines is 4095 [15:31:47]Connected sock=10 [15:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 21 D4 04 01 23 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E3 9D 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 83 02 00 35 04 06 00 C5 34 1D A3 5E AB E2 D1 33 C0 07 B3 94 2E [15:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 F7 47 00 15 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 83 02 00 F4 03 04 00 74 44 92 66 B6 04 01 00 00 B4 BC 38 28 66 E8 48 EE [15:31:47]CommunicateWithHost err = 0 [15:31:47]CheckOFDResponse [15:31:47]1017 (14) - 77093643461234 [15:31:47]1041 (16) - 0000000000874718 [15:31:47]1040 (4) - 164640 [15:31:47]1012 (4) - 13.07.2024 09:10 [15:31:47]1206 (1) - 0 [15:31:47]OFD Sender: Remove packet 164640 [15:31:47]ProducePacketName [15:31:47]name=ofd_packets/00164640 [15:31:47]NVStorageDeleteData [15:31:47]Write to MH i2c: 01 00 00 7B 2A A5 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 07 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 07 00 7B 2A 00 00 00 00 00 F0 0C A8 [15:31:47]RasterBufferAndPrint [15:31:47]line [15:31:47]line [15:31:47]line [15:31:47]line [15:31:47]line [15:31:47]written 0, free lines is 3318 [15:31:47]MH_Cut [15:31:47]Write to MH i2c: D1 01 00 82 2A 01 7E [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: D1 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: D1 01 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: D1 01 00 82 2A 00 7D [15:31:47]Write to MH i2c: 01 00 00 83 2A AD [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]OFD Sender: No OFD packet to send [15:31:48]*** Cut start [15:31:48]*** Partial cut [15:31:48]*** CUTSNS_PIN = 1 [15:31:48]*** CUTSNS_PIN = 0 [15:31:48]*** Brake cut motor [15:31:48]Read from MH i2c: 01 [15:31:48]MH_I2C_Read... [15:31:48]*** Stop cut motor [15:31:48]*** Cut end [15:31:48]Read from MH i2c: 01 07 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 83 2A 00 00 00 00 00 FF 0F C2 [15:31:48]process_action close_receipt done [15:31:48]requested_data is exist [15:31:48]produce_requested_data [15:31:48]requested_item fm.sn is exist - process it [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 11 00 00 [15:31:48]Write to MH i2c: E2 08 00 84 2A 80 11 00 00 00 00 00 00 28 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 17 00 84 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [15:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:31:48]wFMCommunicate OK [15:31:48]requested_item fd.num is exist - process it [15:31:48]SAM_PROTO_GetFieldsCounters [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 13 00 00 [15:31:48]Write to MH i2c: E2 08 00 85 2A 80 13 00 00 00 00 00 00 2B [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 62 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 62 00 85 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [15:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:48]wFMCommunicate OK [15:31:48]SAM_PROTO_GetFieldsCounters done [15:31:48]requested_item shift.num is exist - process it [15:31:48]requested_item shift.opened is exist - process it [15:31:48]req_shift_opened [15:31:48]FM_GetShiftState [15:31:48]SAM_PROTO_GetShiftState [15:31:48]wFMCommunicate request_size=4 [15:31:48]MH_SAM_APDU [15:31:48]CAPDU: 80 13 01 00 [15:31:48]Write to MH i2c: E2 08 00 86 2A 80 13 01 00 00 00 00 00 2D [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:48]Read from MH i2c: E2 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0E 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: E2 0E 00 86 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0E [15:31:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:31:48]wFMCommunicate OK [15:31:48]SAM_PROTO_GetShiftState done [15:31:48]FM_GetShiftState done [15:31:48]req_shift_opened done [15:31:48]requested_item shift.open_date is exist - process it [15:31:48]req_shift_open_date [15:31:48]req_shift_open_date done [15:31:48]produce_requested_data done [15:31:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164640,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:31:48]process_action_free close_receipt [15:31:48]json_value_free [15:31:48]json_value_free done [15:31:48]process_json_proto returns [15:31:48]Send response to host [15:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164640,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:31:48]free response buf [15:31:48]execute_script done [15:31:48]execute_script returns [15:31:48]free content buf [15:31:48]Sock 9.Close socket [15:31:48]Sock 9.Thread stoped [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:13]accept exits with 7 [15:34:13]New connection [15:34:13]New thread 3067149668 created [15:34:13]Thread 3067293028 joined [15:34:13]Waiting for new connection... [15:34:13] Sock 7.Parse request [15:34:13]Sock 7.Check first char [15:34:13]Sock 7.First char is OK [15:34:13]request: POST /json_proto HTTP/1.0 [15:34:13]Method: POST [15:34:13]URL: /json_proto [15:34:13]Method is POST - this is cgi request [15:34:13]url: /json_proto [15:34:13]query_string will be loaded in cgi processing [15:34:13]execute_cgi json_proto POST (null) [15:34:13]execute_cgi path=json_proto method=POST [15:34:13]POST find Content-Length [15:34:13]Host: 172.17.56.4:8080 [15:34:13]Content-Length: 679 [15:34:13]Content-Type: application/json [15:34:13] [15:34:13]POST finish read [15:34:13]Found Content-Length = 679 [15:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:13]execute_script... [15:34: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)458734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:13]POST & json_proto [15:34:13]process_json_proto [15:34:13]json parsed OK: [15:34:13]protocol is kg_v1.0 [15:34:13]action value=close_receipt [15:34:13]process_action close_receipt [15:34:13]cmd_close_receipt [15:34:13]MH_GetDate [15:34:13]Write to MH i2c: F0 00 00 87 2A A0 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: F0 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: F0 09 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: F0 09 00 87 2A 00 77 9E 92 66 C9 DC B2 64 71 [15:34:13]GetLastDocTimeStamp 1720884707 [15:34:13]current date 1720884855 [15:34:13]FM_GetShiftState [15:34:13]SAM_PROTO_GetShiftState [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 13 01 00 [15:34:13]Write to MH i2c: E2 08 00 88 2A 80 13 01 00 00 00 00 00 2F [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 88 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [15:34:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_GetShiftState done [15:34:13]FM_GetShiftState done [15:34:13]opened in 1720831249 [15:34:13]opened+sec_in_day 1720917649 [15:34:13]quantity*price = 300038 [15:34:13]sum+1 = 300040 [15:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 201 13.07.2024 15:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164641 ФПД: 152017090156632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164641&fm=152017090156632&tin=02508201610067®Number=0000000000090829&sum=300000 [15:34:14]StoreToDocumentArchive [15:34:14]shift 446 fd 164641 [15:34:14]save to /storage/0446/doc_00164641 [15:34:14]save last doc name /storage/0446/doc_00164641 to /storage/kkm_last_doc_name [15:34:14]save OK [15:34:14]Clear old archive folders... [15:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:14]tlvbuf is 01412660 [15:34:14]SAM_PROTO_ClearQueue [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 09 00 00 [15:34:14]Write to MH i2c: E2 08 00 95 2A 80 09 00 00 00 00 00 00 31 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]SAM_PROTO_ClearQueue done [15:34:14]KKMCreateOFDPacket [15:34:14]OFDProtocolAddRootSTLVToBuf [15:34:14]FM_MakeSignedData [15:34:14]FM_MakeSignedData [15:34:14]SAM_PROTO_SignData [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 01 02 [15:34:14]Write to MH i2c: E2 08 00 96 2A 80 0D 01 02 00 00 00 00 39 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 96 2A 00 90 00 34 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=255 [15:34:14]MH_SAM_APDU [15:34: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 77 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 83 02 00 35 04 06 00 8A 42 3C A8 [15:34:14]Write to MH i2c: E2 02 01 97 2A 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 77 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 83 02 00 35 04 06 00 8A 42 3C A8 00 00 46 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=7 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 02 02 02 98 58 [15:34:14]Write to MH i2c: E2 0A 00 98 2A 80 0D 02 02 02 00 98 58 00 00 30 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 03 00 98 2A 00 90 00 36 [15:34:14]RAPDU: 90 00 [15:34:14]wFMCommunicate OK [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 0D 03 02 [15:34:14]Write to MH i2c: E2 08 00 99 2A 80 0D 03 02 00 00 00 00 3E [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 0B 00 99 2A 00 80 45 CC 2D 44 93 CD 2E 90 00 CF [15:34:14]RAPDU: 80 45 CC 2D 44 93 CD 2E 90 00 [15:34:14]wFMCommunicate OK [15:34:14]SAM_PROTO_SignData done [15:34:14]FM_MakeSignedData done [15:34:14]CreateOFDProtocolMessage [15:34:14]wFMCommunicate request_size=4 [15:34:14]MH_SAM_APDU [15:34:14]CAPDU: 80 11 00 00 [15:34:14]Write to MH i2c: E2 08 00 9A 2A 80 11 00 00 00 00 00 00 3E [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:14]Read from MH i2c: E2 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: E2 17 00 9A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [15:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:34:14]wFMCommunicate OK [15:34:14]CreateOFDProtocolMessage done [15:34:14]OFDSenderStorePacket 164641 [15:34:14]StoreOFDPacket docnum=164641 [15:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 61 2C 04 01 09 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 77 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 83 02 00 35 04 06 00 8A 42 3C A8 98 58 80 45 CC 2D 44 93 CD 2E [15:34:14]CheckFolder [15:34:14]dirname=/storage/ofd_packets [15:34:14]CheckFolder done [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00164641 [15:34:14]NVStorageSaveData ofd_packets/00164641 [15:34:14]File name is /storage/ofd_packets/00164641 [15:34:14]Write 298 bytes [15:34:14]NVStorageSaveData done [15:34:14]OFDSenderStorePacket done [15:34:14]KKMCreateOFDPacket done [15:34:14]NVStorageSaveData kkm_last_timestamp [15:34:14]File name is /storage/kkm_last_timestamp [15:34:14]Write 4 bytes [15:34:14]NVStorageSaveData done [15:34:14]ExternCall_PrintAddStr [15:34:14]wPrintStart [15:34:14]Write to MH i2c: 01 00 00 9B 2A C5 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 9B 2A 00 00 00 00 00 FF 0F DA [15:34:14]RasterBufferAndPrint [15:34:14]line Счет N : (1)458734 [15:34:14]line ИНН: 02508201610067 [15:34:14]line Контрольно-Кассовый Чек [15:34:14]line ПРОДАЖА [15:34:14]line ТРК (МРК, ГНК) : 21 [15:34:14]line Товар: 2710194210 [15:34:14]line ДТ-К-5 [15:34:14]line 41.730 * 71.90 [15:34:14]line = 3000.39 [15:34:14]line НДС 12% НСП 1% [15:34:14]line > о реализуемом товаре [15:34:14]line ОКРУГЛЕНИЕ: -0.39 [15:34:14]line ИТОГО: 3000.00 [15:34:14]line Внесено: 3000.00 [15:34:14]line СДАЧА: 0.00 [15:34:14]line НСП 1% : 26.55 [15:34:14]line НДС 12% : 318.62 [15:34:14]line Наличными: 3000.00 [15:34:14]line Безнал.: 0.00 [15:34:14]line Место: АЗС № 72 "Партнер Нефть" [15:34:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:34:14]line СНО: Общий режим [15:34:14]line Чек 201 13.07.2024 15:34 [15:34:14]line Смена: 446 ФФД: 1.0 [15:34:14]line ЗНМ: 0300000160 [15:34:14]line РНМ: 0000000000090829 [15:34:14]line Версия ККМ: 001 [15:34:14]line ФМ: 0000000000874718 [15:34:14]line ФД: 164641 [15:34:14]line ФПД: 152017090156632 [15:34:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164641&fm=152017090156632&tin=02508201610067®Number=0000000000090829&sum=300000 [15:34:15]OFD Sender: Processing packet 164641 [packets to send 104, broken 103] [15:34:15]ProducePacketName [15:34:15]name=ofd_packets/00164641 [15:34:15]OFD Sender: To server: pG, [15:34:15]CommunicateWithHost lk.salyk.kg:30040 [15:34:15]ConnectInit lk.salyk.kg [15:34:15]written 0, free lines is 4095 [15:34:15]Connected sock=10 [15:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 61 2C 04 01 09 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 77 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 83 02 00 35 04 06 00 8A 42 3C A8 98 58 80 45 CC 2D 44 93 CD 2E [15:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE B4 47 00 99 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 83 02 00 F4 03 04 00 08 45 92 66 B6 04 01 00 00 03 F4 F6 A0 2B 33 A9 50 [15:34:15]CommunicateWithHost err = 0 [15:34:15]CheckOFDResponse [15:34:15]1017 (14) - 77093643461234 [15:34:15]1041 (16) - 0000000000874718 [15:34:15]1040 (4) - 164641 [15:34:15]1012 (4) - 13.07.2024 09:12 [15:34:15]1206 (1) - 0 [15:34:15]OFD Sender: Remove packet 164641 [15:34:15]ProducePacketName [15:34:15]name=ofd_packets/00164641 [15:34:15]NVStorageDeleteData [15:34:15]Write to MH i2c: 01 00 00 C5 2A EF [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 C5 2A 00 00 00 00 00 01 0D 04 [15:34:15]RasterBufferAndPrint [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]line [15:34:15]written 0, free lines is 3335 [15:34:15]MH_Cut [15:34:15]Write to MH i2c: D1 01 00 CC 2A 01 C8 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 01 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: D1 01 00 CC 2A 00 C7 [15:34:15]Write to MH i2c: 01 00 00 CD 2A F7 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:16]OFD Sender: No OFD packet to send [15:34:16]*** Cut start [15:34:16]*** Partial cut [15:34:16]*** CUTSNS_PIN = 1 [15:34:16]*** CUTSNS_PIN = 0 [15:34:16]*** Brake cut motor [15:34:16]Read from MH i2c: 01 [15:34:16]MH_I2C_Read... [15:34:16]*** Stop cut motor [15:34:17]*** Cut end [15:34:17]Read from MH i2c: 01 07 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 FF 0F 0C [15:34:17]process_action close_receipt done [15:34:17]requested_data is exist [15:34:17]produce_requested_data [15:34:17]requested_item fm.sn is exist - process it [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 11 00 00 [15:34:17]Write to MH i2c: E2 08 00 CE 2A 80 11 00 00 00 00 00 00 72 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 17 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 17 00 CE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [15:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:34:17]wFMCommunicate OK [15:34:17]requested_item fd.num is exist - process it [15:34:17]SAM_PROTO_GetFieldsCounters [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 13 00 00 [15:34:17]Write to MH i2c: E2 08 00 CF 2A 80 13 00 00 00 00 00 00 75 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 62 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 62 00 CF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [15:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:17]wFMCommunicate OK [15:34:17]SAM_PROTO_GetFieldsCounters done [15:34:17]requested_item shift.num is exist - process it [15:34:17]requested_item shift.opened is exist - process it [15:34:17]req_shift_opened [15:34:17]FM_GetShiftState [15:34:17]SAM_PROTO_GetShiftState [15:34:17]wFMCommunicate request_size=4 [15:34:17]MH_SAM_APDU [15:34:17]CAPDU: 80 13 01 00 [15:34:17]Write to MH i2c: E2 08 00 D0 2A 80 13 01 00 00 00 00 00 77 [15:34:17]Write i2c OK [15:34:17]MH_I2C_Read... [15:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:17]Read from MH i2c: E2 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0E 00 [15:34:17]MH_I2C_Read... [15:34:17]Read from MH i2c: E2 0E 00 D0 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 58 [15:34:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:34:17]wFMCommunicate OK [15:34:17]SAM_PROTO_GetShiftState done [15:34:17]FM_GetShiftState done [15:34:17]req_shift_opened done [15:34:17]requested_item shift.open_date is exist - process it [15:34:17]req_shift_open_date [15:34:17]req_shift_open_date done [15:34:17]produce_requested_data done [15:34:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164641,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:34:17]process_action_free close_receipt [15:34:17]json_value_free [15:34:17]json_value_free done [15:34:17]process_json_proto returns [15:34:17]Send response to host [15:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164641,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:34:17]free response buf [15:34:17]execute_script done [15:34:17]execute_script returns [15:34:17]free content buf [15:34:17]Sock 7.Close socket [15:34:17]Sock 7.Thread stoped [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:23]accept exits with 9 [15:36:23]New connection [15:36:23]New thread 3067293028 created [15:36:23]Thread 3067149668 joined [15:36:23]Waiting for new connection... [15:36:23] Sock 9.Parse request [15:36:23]Sock 9.Check first char [15:36:23]Sock 9.First char is OK [15:36:23]request: POST /json_proto HTTP/1.0 [15:36:23]Method: POST [15:36:23]URL: /json_proto [15:36:23]Method is POST - this is cgi request [15:36:23]url: /json_proto [15:36:23]query_string will be loaded in cgi processing [15:36:23]execute_cgi json_proto POST (null) [15:36:23]execute_cgi path=json_proto method=POST [15:36:23]POST find Content-Length [15:36:23]Host: 172.17.56.4:8080 [15:36:23]Content-Length: 678 [15:36:23]Content-Type: application/json [15:36:23] [15:36:23]POST finish read [15:36:23]Found Content-Length = 678 [15:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.710, "sum" : 770.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:23]execute_script... [15:36: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)458735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.710, "sum" : 770.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:23]POST & json_proto [15:36:23]process_json_proto [15:36:23]json parsed OK: [15:36:23]protocol is kg_v1.0 [15:36:23]action value=close_receipt [15:36:23]process_action close_receipt [15:36:23]cmd_close_receipt [15:36:23]MH_GetDate [15:36:23]Write to MH i2c: F0 00 00 D1 2A EA [15:36:23]Write i2c OK [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: F0 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: F0 09 00 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: F0 09 00 D1 2A 00 F9 9E 92 66 C9 DC B2 64 3D [15:36:23]GetLastDocTimeStamp 1720884855 [15:36:23]current date 1720884985 [15:36:23]FM_GetShiftState [15:36:23]SAM_PROTO_GetShiftState [15:36:23]wFMCommunicate request_size=4 [15:36:23]MH_SAM_APDU [15:36:23]CAPDU: 80 13 01 00 [15:36:23]Write to MH i2c: E2 08 00 D2 2A 80 13 01 00 00 00 00 00 79 [15:36:23]Write i2c OK [15:36:23]MH_I2C_Read... [15:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:23]Read from MH i2c: E2 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: E2 0E 00 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: E2 0E 00 D2 2A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [15:36:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:36:23]wFMCommunicate OK [15:36:23]SAM_PROTO_GetShiftState done [15:36:23]FM_GetShiftState done [15:36:23]opened in 1720831249 [15:36:23]opened+sec_in_day 1720917649 [15:36:23]quantity*price = 77051 [15:36:23]sum+1 = 77053 [15:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.82 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 202 13.07.2024 15:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164642 ФПД: 7558002252816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164642&fm=7558002252816&tin=02508201610067®Number=0000000000090829&sum=77000 [15:36:24]StoreToDocumentArchive [15:36:24]shift 446 fd 164642 [15:36:24]save to /storage/0446/doc_00164642 [15:36:24]save last doc name /storage/0446/doc_00164642 to /storage/kkm_last_doc_name [15:36:24]save OK [15:36:24]Clear old archive folders... [15:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:24]tlvbuf is B6EFBB00 [15:36:24]SAM_PROTO_ClearQueue [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 09 00 00 [15:36:24]Write to MH i2c: E2 08 00 DF 2A 80 09 00 00 00 00 00 00 7B [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 DF 2A 00 90 00 7D [15:36:24]RAPDU: 90 00 [15:36:24]wFMCommunicate OK [15:36:24]SAM_PROTO_ClearQueue done [15:36:24]KKMCreateOFDPacket [15:36:24]OFDProtocolAddRootSTLVToBuf [15:36:24]FM_MakeSignedData [15:36:24]FM_MakeSignedData [15:36:24]SAM_PROTO_SignData [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 0D 01 02 [15:36:24]Write to MH i2c: E2 08 00 E0 2A 80 0D 01 02 00 00 00 00 83 [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 E0 2A 00 90 00 7E [15:36:24]RAPDU: 90 00 [15:36:24]wFMCommunicate OK [15:36:24]wFMCommunicate request_size=255 [15:36:24]MH_SAM_APDU [15:36: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 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F9 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 83 02 00 35 04 06 00 06 [15:36:24]Write to MH i2c: E2 02 01 E1 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F9 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 83 02 00 35 04 06 00 06 00 00 E4 [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 E1 2A 00 90 00 7F [15:36:24]RAPDU: 90 00 [15:36:24]wFMCommunicate OK [15:36:24]wFMCommunicate request_size=10 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 0D 02 02 05 DF BC 0A 1C 10 [15:36:24]Write to MH i2c: E2 0D 00 E2 2A 80 0D 02 02 05 00 DF BC 0A 1C 10 00 00 61 [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 03 00 E2 2A 00 90 00 80 [15:36:24]RAPDU: 90 00 [15:36:24]wFMCommunicate OK [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 0D 03 02 [15:36:24]Write to MH i2c: E2 08 00 E3 2A 80 0D 03 02 00 00 00 00 88 [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 0B 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 0B 00 E3 2A 00 95 D2 CD 43 3A 69 1D 58 90 00 18 [15:36:24]RAPDU: 95 D2 CD 43 3A 69 1D 58 90 00 [15:36:24]wFMCommunicate OK [15:36:24]SAM_PROTO_SignData done [15:36:24]FM_MakeSignedData done [15:36:24]CreateOFDProtocolMessage [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 11 00 00 [15:36:24]Write to MH i2c: E2 08 00 E4 2A 80 11 00 00 00 00 00 00 88 [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:24]Read from MH i2c: E2 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 17 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: E2 17 00 E4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [15:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:24]wFMCommunicate OK [15:36:24]CreateOFDProtocolMessage done [15:36:24]OFDSenderStorePacket 164642 [15:36:24]StoreOFDPacket docnum=164642 [15:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 36 07 01 4D 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 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F9 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 83 02 00 35 04 06 00 06 DF BC 0A 1C 10 95 D2 CD 43 3A 69 1D 58 [15:36:24]CheckFolder [15:36:24]dirname=/storage/ofd_packets [15:36:24]CheckFolder done [15:36:24]ProducePacketName [15:36:24]name=ofd_packets/00164642 [15:36:24]NVStorageSaveData ofd_packets/00164642 [15:36:24]File name is /storage/ofd_packets/00164642 [15:36:24]Write 301 bytes [15:36:24]NVStorageSaveData done [15:36:24]OFDSenderStorePacket done [15:36:24]KKMCreateOFDPacket done [15:36:24]NVStorageSaveData kkm_last_timestamp [15:36:24]File name is /storage/kkm_last_timestamp [15:36:24]Write 4 bytes [15:36:24]NVStorageSaveData done [15:36:24]ExternCall_PrintAddStr [15:36:24]wPrintStart [15:36:24]Write to MH i2c: 01 00 00 E5 2A 0F [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: 01 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: 01 07 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 FF 0F 24 [15:36:24]RasterBufferAndPrint [15:36:24]line Счет N : (1)458735 [15:36:24]line ИНН: 02508201610067 [15:36:24]line Контрольно-Кассовый Чек [15:36:24]line ПРОДАЖА [15:36:24]line ТРК (МРК, ГНК) : 22 [15:36:24]line Товар: 2710124130 [15:36:24]line Аи-92-К-5 [15:36:24]line 11.710 * 65.80 [15:36:24]line = 770.52 [15:36:24]line НДС 12% НСП 1% [15:36:24]line > о реализуемом товаре [15:36:24]line ОКРУГЛЕНИЕ: -0.52 [15:36:24]line ИТОГО: 770.00 [15:36:24]line Внесено: 770.00 [15:36:24]line СДАЧА: 0.00 [15:36:24]line НСП 1% : 6.82 [15:36:24]line НДС 12% : 81.82 [15:36:24]line Наличными: 770.00 [15:36:24]line Безнал.: 0.00 [15:36:24]line Место: АЗС № 72 "Партнер Нефть" [15:36:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:36:24]line СНО: Общий режим [15:36:24]line Чек 202 13.07.2024 15:36 [15:36:24]line Смена: 446 ФФД: 1.0 [15:36:24]line ЗНМ: 0300000160 [15:36:24]line РНМ: 0000000000090829 [15:36:24]line Версия ККМ: 001 [15:36:24]line ФМ: 0000000000874718 [15:36:24]line ФД: 164642 [15:36:24]line ФПД: 7558002252816 [15:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164642&fm=7558002252816&tin=02508201610067®Number=0000000000090829&sum=77000 [15:36:25]OFD Sender: Processing packet 164642 [packets to send 104, broken 103] [15:36:25]ProducePacketName [15:36:25]name=ofd_packets/00164642 [15:36:25]OFD Sender: To server: pG, [15:36:25]CommunicateWithHost lk.salyk.kg:30040 [15:36:25]ConnectInit lk.salyk.kg [15:36:25]written 0, free lines is 4095 [15:36:25]Connected sock=10 [15:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 36 07 01 4D 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 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F9 9E 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 83 02 00 35 04 06 00 06 DF BC 0A 1C 10 95 D2 CD 43 3A 69 1D 58 [15:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 C2 47 00 10 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 83 02 00 F4 03 04 00 8A 45 92 66 B6 04 01 00 00 44 86 D4 3C 4E 89 2C 6D [15:36:25]CommunicateWithHost err = 0 [15:36:25]CheckOFDResponse [15:36:25]1017 (14) - 77093643461234 [15:36:25]1041 (16) - 0000000000874718 [15:36:25]1040 (4) - 164642 [15:36:25]1012 (4) - 13.07.2024 09:14 [15:36:25]1206 (1) - 0 [15:36:25]OFD Sender: Remove packet 164642 [15:36:25]ProducePacketName [15:36:25]name=ofd_packets/00164642 [15:36:25]NVStorageDeleteData [15:36:25]Write to MH i2c: 01 00 00 0F 2B 3A [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: 01 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: 01 07 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: 01 07 00 0F 2B 00 00 00 00 00 F5 0C 42 [15:36:25]RasterBufferAndPrint [15:36:25]line [15:36:25]line [15:36:25]line [15:36:25]line [15:36:25]line [15:36:25]written 0, free lines is 3324 [15:36:25]MH_Cut [15:36:25]Write to MH i2c: D1 01 00 16 2B 01 13 [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: D1 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: D1 01 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: D1 01 00 16 2B 00 12 [15:36:25]Write to MH i2c: 01 00 00 17 2B 42 [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:26]OFD Sender: No OFD packet to send [15:36:26]*** Cut start [15:36:26]*** Partial cut [15:36:26]*** CUTSNS_PIN = 1 [15:36:26]*** CUTSNS_PIN = 0 [15:36:26]*** Brake cut motor [15:36:26]Read from MH i2c: 01 [15:36:26]MH_I2C_Read... [15:36:26]*** Stop cut motor [15:36:27]*** Cut end [15:36:27]Read from MH i2c: 01 07 00 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: 01 07 00 17 2B 00 00 00 00 00 FF 0F 57 [15:36:27]process_action close_receipt done [15:36:27]requested_data is exist [15:36:27]produce_requested_data [15:36:27]requested_item fm.sn is exist - process it [15:36:27]wFMCommunicate request_size=4 [15:36:27]MH_SAM_APDU [15:36:27]CAPDU: 80 11 00 00 [15:36:27]Write to MH i2c: E2 08 00 18 2B 80 11 00 00 00 00 00 00 BD [15:36:27]Write i2c OK [15:36:27]MH_I2C_Read... [15:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:27]Read from MH i2c: E2 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 17 00 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 17 00 18 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [15:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:27]wFMCommunicate OK [15:36:27]requested_item fd.num is exist - process it [15:36:27]SAM_PROTO_GetFieldsCounters [15:36:27]wFMCommunicate request_size=4 [15:36:27]MH_SAM_APDU [15:36:27]CAPDU: 80 13 00 00 [15:36:27]Write to MH i2c: E2 08 00 19 2B 80 13 00 00 00 00 00 00 C0 [15:36:27]Write i2c OK [15:36:27]MH_I2C_Read... [15:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:27]Read from MH i2c: E2 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 62 00 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 62 00 19 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:27]wFMCommunicate OK [15:36:27]SAM_PROTO_GetFieldsCounters done [15:36:27]requested_item shift.num is exist - process it [15:36:27]requested_item shift.opened is exist - process it [15:36:27]req_shift_opened [15:36:27]FM_GetShiftState [15:36:27]SAM_PROTO_GetShiftState [15:36:27]wFMCommunicate request_size=4 [15:36:27]MH_SAM_APDU [15:36:27]CAPDU: 80 13 01 00 [15:36:27]Write to MH i2c: E2 08 00 1A 2B 80 13 01 00 00 00 00 00 C2 [15:36:27]Write i2c OK [15:36:27]MH_I2C_Read... [15:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:27]Read from MH i2c: E2 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 0E 00 [15:36:27]MH_I2C_Read... [15:36:27]Read from MH i2c: E2 0E 00 1A 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A3 [15:36:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:36:27]wFMCommunicate OK [15:36:27]SAM_PROTO_GetShiftState done [15:36:27]FM_GetShiftState done [15:36:27]req_shift_opened done [15:36:27]requested_item shift.open_date is exist - process it [15:36:27]req_shift_open_date [15:36:27]req_shift_open_date done [15:36:27]produce_requested_data done [15:36:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164642,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:36:27]process_action_free close_receipt [15:36:27]json_value_free [15:36:27]json_value_free done [15:36:27]process_json_proto returns [15:36:27]Send response to host [15:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164642,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:36:27]free response buf [15:36:27]execute_script done [15:36:27]execute_script returns [15:36:27]free content buf [15:36:27]Sock 9.Close socket [15:36:27]Sock 9.Thread stoped [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:35]accept exits with 7 [15:39:35]New connection [15:39:35]New thread 3067149668 created [15:39:35]Thread 3067293028 joined [15:39:35]Waiting for new connection... [15:39:35] Sock 7.Parse request [15:39:35]Sock 7.Check first char [15:39:35]Sock 7.First char is OK [15:39:35]request: POST /json_proto HTTP/1.0 [15:39:35]Method: POST [15:39:35]URL: /json_proto [15:39:35]Method is POST - this is cgi request [15:39:35]url: /json_proto [15:39:35]query_string will be loaded in cgi processing [15:39:35]execute_cgi json_proto POST (null) [15:39:35]execute_cgi path=json_proto method=POST [15:39:35]POST find Content-Length [15:39:35]Host: 172.17.56.4:8080 [15:39:35]Content-Length: 679 [15:39:35]Content-Type: application/json [15:39:35] [15:39:35]POST finish read [15:39:35]Found Content-Length = 679 [15:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.070, "sum" : 3600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:35]execute_script... [15:39: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)458736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.070, "sum" : 3600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:35]POST & json_proto [15:39:35]process_json_proto [15:39:35]json parsed OK: [15:39:35]protocol is kg_v1.0 [15:39:35]action value=close_receipt [15:39:35]process_action close_receipt [15:39:35]cmd_close_receipt [15:39:35]MH_GetDate [15:39:35]Write to MH i2c: F0 00 00 1B 2B 35 [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 09 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 09 00 1B 2B 00 B9 9F 92 66 C9 DC B2 64 49 [15:39:35]GetLastDocTimeStamp 1720884985 [15:39:35]current date 1720885177 [15:39:35]FM_GetShiftState [15:39:35]SAM_PROTO_GetShiftState [15:39:35]wFMCommunicate request_size=4 [15:39:35]MH_SAM_APDU [15:39:35]CAPDU: 80 13 01 00 [15:39:35]Write to MH i2c: E2 08 00 1C 2B 80 13 01 00 00 00 00 00 C4 [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:35]Read from MH i2c: E2 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 0E 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 0E 00 1C 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A5 [15:39:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:39:35]wFMCommunicate OK [15:39:35]SAM_PROTO_GetShiftState done [15:39:35]FM_GetShiftState done [15:39:35]opened in 1720831249 [15:39:35]opened+sec_in_day 1720917649 [15:39:35]quantity*price = 360003 [15:39:35]sum+1 = 360004 [15:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 3600.00 Внесено: 3600.00 СДАЧА: 0.00 НСП 1% : 31.86 НДС 12% : 382.30 Наличными: 3600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 203 13.07.2024 15:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164643 ФПД: 20605541722423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153937&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164643&fm=20605541722423&tin=02508201610067®Number=0000000000090829&sum=360000 [15:39:36]StoreToDocumentArchive [15:39:36]shift 446 fd 164643 [15:39:36]save to /storage/0446/doc_00164643 [15:39:36]save last doc name /storage/0446/doc_00164643 to /storage/kkm_last_doc_name [15:39:36]save OK [15:39:36]Clear old archive folders... [15:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:39:36]tlvbuf is 01449570 [15:39:36]SAM_PROTO_ClearQueue [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 09 00 00 [15:39:36]Write to MH i2c: E2 08 00 29 2B 80 09 00 00 00 00 00 00 C6 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 29 2B 00 90 00 C8 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_ClearQueue done [15:39:36]KKMCreateOFDPacket [15:39:36]OFDProtocolAddRootSTLVToBuf [15:39:36]FM_MakeSignedData [15:39:36]FM_MakeSignedData [15:39:36]SAM_PROTO_SignData [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 01 02 [15:39:36]Write to MH i2c: E2 08 00 2A 2B 80 0D 01 02 00 00 00 00 CE [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 2A 2B 00 90 00 C9 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=255 [15:39:36]MH_SAM_APDU [15:39: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 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 B9 9F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 83 02 00 35 04 06 00 12 BD 99 FE [15:39:36]Write to MH i2c: E2 02 01 2B 2B 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 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 B9 9F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 83 02 00 35 04 06 00 12 BD 99 FE 00 00 59 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 2B 2B 00 90 00 CA [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=7 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 02 02 02 A9 37 [15:39:36]Write to MH i2c: E2 0A 00 2C 2B 80 0D 02 02 02 00 A9 37 00 00 B5 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 2C 2B 00 90 00 CB [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 03 02 [15:39:36]Write to MH i2c: E2 08 00 2D 2B 80 0D 03 02 00 00 00 00 D3 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 2D 2B 00 7C 69 8D 79 A3 F2 C7 45 90 00 60 [15:39:36]RAPDU: 7C 69 8D 79 A3 F2 C7 45 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_SignData done [15:39:36]FM_MakeSignedData done [15:39:36]CreateOFDProtocolMessage [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 11 00 00 [15:39:36]Write to MH i2c: E2 08 00 2E 2B 80 11 00 00 00 00 00 00 D3 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 2E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [15:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:39:36]wFMCommunicate OK [15:39:36]CreateOFDProtocolMessage done [15:39:36]OFDSenderStorePacket 164643 [15:39:36]StoreOFDPacket docnum=164643 [15:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 85 04 01 70 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 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 B9 9F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 83 02 00 35 04 06 00 12 BD 99 FE A9 37 7C 69 8D 79 A3 F2 C7 45 [15:39:36]CheckFolder [15:39:36]dirname=/storage/ofd_packets [15:39:36]CheckFolder done [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00164643 [15:39:36]NVStorageSaveData ofd_packets/00164643 [15:39:36]File name is /storage/ofd_packets/00164643 [15:39:36]Write 298 bytes [15:39:36]NVStorageSaveData done [15:39:36]OFDSenderStorePacket done [15:39:36]KKMCreateOFDPacket done [15:39:36]NVStorageSaveData kkm_last_timestamp [15:39:36]File name is /storage/kkm_last_timestamp [15:39:36]Write 4 bytes [15:39:36]NVStorageSaveData done [15:39:36]ExternCall_PrintAddStr [15:39:36]wPrintStart [15:39:36]Write to MH i2c: 01 00 00 2F 2B 5A [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 07 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 07 00 2F 2B 00 00 00 00 00 FF 0F 6F [15:39:36]RasterBufferAndPrint [15:39:36]line Счет N : (1)458736 [15:39:36]line ИНН: 02508201610067 [15:39:36]line Контрольно-Кассовый Чек [15:39:36]line ПРОДАЖА [15:39:36]line ТРК (МРК, ГНК) : 21 [15:39:36]line Товар: 2710194210 [15:39:36]line ДТ-К-5 [15:39:36]line 50.070 * 71.90 [15:39:36]line = 3600.03 [15:39:36]line НДС 12% НСП 1% [15:39:36]line > о реализуемом товаре [15:39:36]line ОКРУГЛЕНИЕ: -0.03 [15:39:36]line ИТОГО: 3600.00 [15:39:36]line Внесено: 3600.00 [15:39:36]line СДАЧА: 0.00 [15:39:36]line НСП 1% : 31.86 [15:39:36]line НДС 12% : 382.30 [15:39:36]line Наличными: 3600.00 [15:39:36]line Безнал.: 0.00 [15:39:36]line Место: АЗС № 72 "Партнер Нефть" [15:39:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:39:36]line СНО: Общий режим [15:39:36]line Чек 203 13.07.2024 15:39 [15:39:36]line Смена: 446 ФФД: 1.0 [15:39:36]line ЗНМ: 0300000160 [15:39:36]line РНМ: 0000000000090829 [15:39:36]line Версия ККМ: 001 [15:39:36]line ФМ: 0000000000874718 [15:39:36]line ФД: 164643 [15:39:36]line ФПД: 20605541722423 [15:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153937&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164643&fm=20605541722423&tin=02508201610067®Number=0000000000090829&sum=360000 [15:39:37]written 0, free lines is 4095 [15:39:37]OFD Sender: Processing packet 164643 [packets to send 104, broken 103] [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00164643 [15:39:37]OFD Sender: To server: pG, [15:39:37]CommunicateWithHost lk.salyk.kg:30040 [15:39:37]ConnectInit lk.salyk.kg [15:39:37]Connected sock=10 [15:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 85 04 01 70 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 96 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 B9 9F 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 83 02 00 35 04 06 00 12 BD 99 FE A9 37 7C 69 8D 79 A3 F2 C7 45 [15:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 BC 47 00 85 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 83 02 00 F4 03 04 00 4A 46 92 66 B6 04 01 00 00 90 52 3D AF 84 55 9F C1 [15:39:37]CommunicateWithHost err = 0 [15:39:37]CheckOFDResponse [15:39:37]1017 (14) - 77093643461234 [15:39:37]1041 (16) - 0000000000874718 [15:39:37]1040 (4) - 164643 [15:39:37]1012 (4) - 13.07.2024 09:18 [15:39:37]1206 (1) - 0 [15:39:37]OFD Sender: Remove packet 164643 [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00164643 [15:39:37]NVStorageDeleteData [15:39:37]Write to MH i2c: 01 00 00 59 2B 84 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 59 2B 00 00 00 00 00 F7 0C 8E [15:39:37]RasterBufferAndPrint [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]written 0, free lines is 3326 [15:39:37]MH_Cut [15:39:37]Write to MH i2c: D1 01 00 60 2B 01 5D [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 60 2B 00 5C [15:39:37]Write to MH i2c: 01 00 00 61 2B 8C [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]OFD Sender: No OFD packet to send [15:39:38]*** Cut start [15:39:38]*** Partial cut [15:39:38]*** CUTSNS_PIN = 1 [15:39:38]*** CUTSNS_PIN = 0 [15:39:38]*** Brake cut motor [15:39:38]Read from MH i2c: 01 [15:39:38]MH_I2C_Read... [15:39:38]*** Stop cut motor [15:39:38]*** Cut end [15:39:38]Read from MH i2c: 01 07 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: 01 07 00 61 2B 00 00 00 00 00 FF 0F A1 [15:39:38]process_action close_receipt done [15:39:38]requested_data is exist [15:39:38]produce_requested_data [15:39:38]requested_item fm.sn is exist - process it [15:39:38]wFMCommunicate request_size=4 [15:39:38]MH_SAM_APDU [15:39:38]CAPDU: 80 11 00 00 [15:39:38]Write to MH i2c: E2 08 00 62 2B 80 11 00 00 00 00 00 00 07 [15:39:38]Write i2c OK [15:39:38]MH_I2C_Read... [15:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:38]Read from MH i2c: E2 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 17 00 [15:39:38]MH_I2C_Read... [15:39:38]Read from MH i2c: E2 17 00 62 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [15:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:39:38]wFMCommunicate OK [15:39:38]requested_item fd.num is exist - process it [15:39:38]SAM_PROTO_GetFieldsCounters [15:39:38]wFMCommunicate request_size=4 [15:39:38]MH_SAM_APDU [15:39:38]CAPDU: 80 13 00 00 [15:39:38]Write to MH i2c: E2 08 00 63 2B 80 13 00 00 00 00 00 00 0A [15:39:38]Write i2c OK [15:39:38]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 62 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 62 00 63 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [15:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:39]wFMCommunicate OK [15:39:39]SAM_PROTO_GetFieldsCounters done [15:39:39]requested_item shift.num is exist - process it [15:39:39]requested_item shift.opened is exist - process it [15:39:39]req_shift_opened [15:39:39]FM_GetShiftState [15:39:39]SAM_PROTO_GetShiftState [15:39:39]wFMCommunicate request_size=4 [15:39:39]MH_SAM_APDU [15:39:39]CAPDU: 80 13 01 00 [15:39:39]Write to MH i2c: E2 08 00 64 2B 80 13 01 00 00 00 00 00 0C [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 64 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 ED [15:39:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:39:39]wFMCommunicate OK [15:39:39]SAM_PROTO_GetShiftState done [15:39:39]FM_GetShiftState done [15:39:39]req_shift_opened done [15:39:39]requested_item shift.open_date is exist - process it [15:39:39]req_shift_open_date [15:39:39]req_shift_open_date done [15:39:39]produce_requested_data done [15:39:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164643,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:39:39]process_action_free close_receipt [15:39:39]json_value_free [15:39:39]json_value_free done [15:39:39]process_json_proto returns [15:39:39]Send response to host [15:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164643,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:39:39]free response buf [15:39:39]execute_script done [15:39:39]execute_script returns [15:39:39]free content buf [15:39:39]Sock 7.Close socket [15:39:39]Sock 7.Thread stoped [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:12]accept exits with 9 [15:44:12]New connection [15:44:12]New thread 3067293028 created [15:44:12]Thread 3067149668 joined [15:44:12]Waiting for new connection... [15:44:12] Sock 9.Parse request [15:44:12]Sock 9.Check first char [15:44:12]Sock 9.First char is OK [15:44:12]request: POST /json_proto HTTP/1.0 [15:44:12]Method: POST [15:44:12]URL: /json_proto [15:44:12]Method is POST - this is cgi request [15:44:12]url: /json_proto [15:44:12]query_string will be loaded in cgi processing [15:44:12]execute_cgi json_proto POST (null) [15:44:12]execute_cgi path=json_proto method=POST [15:44:12]POST find Content-Length [15:44:12]Host: 172.17.56.4:8080 [15:44:12]Content-Length: 677 [15:44:12]Content-Type: application/json [15:44:12] [15:44:12]POST finish read [15:44:12]Found Content-Length = 677 [15:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:12]execute_script... [15:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:44:12]POST & json_proto [15:44:12]process_json_proto [15:44:12]json parsed OK: [15:44:12]protocol is kg_v1.0 [15:44:12]action value=close_receipt [15:44:12]process_action close_receipt [15:44:12]cmd_close_receipt [15:44:12]MH_GetDate [15:44:12]Write to MH i2c: F0 00 00 65 2B 7F [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 09 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: F0 09 00 65 2B 00 CF A0 92 66 C9 DC B2 64 AA [15:44:12]GetLastDocTimeStamp 1720885177 [15:44:12]current date 1720885455 [15:44:12]FM_GetShiftState [15:44:12]SAM_PROTO_GetShiftState [15:44:12]wFMCommunicate request_size=4 [15:44:12]MH_SAM_APDU [15:44:12]CAPDU: 80 13 01 00 [15:44:12]Write to MH i2c: E2 08 00 66 2B 80 13 01 00 00 00 00 00 0E [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0E 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0E 00 66 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EF [15:44:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:44:12]wFMCommunicate OK [15:44:12]SAM_PROTO_GetShiftState done [15:44:12]FM_GetShiftState done [15:44:12]opened in 1720831249 [15:44:12]opened+sec_in_day 1720917649 [15:44:12]quantity*price = 50008 [15:44:12]sum+1 = 50009 [15:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 204 13.07.2024 15:44 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164644 ФПД: 19113479025050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164644&fm=19113479025050&tin=02508201610067®Number=0000000000090829&sum=50000 [15:44:13]StoreToDocumentArchive [15:44:13]shift 446 fd 164644 [15:44:13]save to /storage/0446/doc_00164644 [15:44:13]save last doc name /storage/0446/doc_00164644 to /storage/kkm_last_doc_name [15:44:13]save OK [15:44:13]Clear old archive folders... [15:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:13]tlvbuf is B6FABA80 [15:44:13]SAM_PROTO_ClearQueue [15:44:13]wFMCommunicate request_size=4 [15:44:13]MH_SAM_APDU [15:44:13]CAPDU: 80 09 00 00 [15:44:13]Write to MH i2c: E2 08 00 73 2B 80 09 00 00 00 00 00 00 10 [15:44:13]Write i2c OK [15:44:13]MH_I2C_Read... [15:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:13]Read from MH i2c: E2 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 73 2B 00 90 00 12 [15:44:13]RAPDU: 90 00 [15:44:13]wFMCommunicate OK [15:44:13]SAM_PROTO_ClearQueue done [15:44:13]KKMCreateOFDPacket [15:44:13]OFDProtocolAddRootSTLVToBuf [15:44:13]FM_MakeSignedData [15:44:13]FM_MakeSignedData [15:44:13]SAM_PROTO_SignData [15:44:13]wFMCommunicate request_size=4 [15:44:13]MH_SAM_APDU [15:44:13]CAPDU: 80 0D 01 02 [15:44:13]Write to MH i2c: E2 08 00 74 2B 80 0D 01 02 00 00 00 00 18 [15:44:13]Write i2c OK [15:44:13]MH_I2C_Read... [15:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:13]Read from MH i2c: E2 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 [15:44:13]MH_I2C_Read... [15:44:13]Read from MH i2c: E2 03 00 74 2B 00 90 00 13 [15:44:13]RAPDU: 90 00 [15:44:13]wFMCommunicate OK [15:44:13]wFMCommunicate request_size=255 [15:44:13]MH_SAM_APDU [15:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC 00 00 00 F4 03 04 00 CF A0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 83 02 00 35 04 06 00 11 [15:44:13]Write to MH i2c: E2 02 01 75 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC 00 00 00 F4 03 04 00 CF A0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 83 02 00 35 04 06 00 11 00 00 3D [15:44:13]Write i2c OK [15:44:13]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 75 2B 00 90 00 14 [15:44:14]RAPDU: 90 00 [15:44:14]wFMCommunicate OK [15:44:14]wFMCommunicate request_size=10 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 0D 02 02 05 62 34 20 B1 9A [15:44:14]Write to MH i2c: E2 0D 00 76 2B 80 0D 02 02 05 00 62 34 20 B1 9A 00 00 26 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 03 00 76 2B 00 90 00 15 [15:44:14]RAPDU: 90 00 [15:44:14]wFMCommunicate OK [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 0D 03 02 [15:44:14]Write to MH i2c: E2 08 00 77 2B 80 0D 03 02 00 00 00 00 1D [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0B 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0B 00 77 2B 00 2F CF FB 74 A5 C8 90 AC 90 00 34 [15:44:14]RAPDU: 2F CF FB 74 A5 C8 90 AC 90 00 [15:44:14]wFMCommunicate OK [15:44:14]SAM_PROTO_SignData done [15:44:14]FM_MakeSignedData done [15:44:14]CreateOFDProtocolMessage [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 11 00 00 [15:44:14]Write to MH i2c: E2 08 00 78 2B 80 11 00 00 00 00 00 00 1D [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 17 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 17 00 78 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [15:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:44:14]wFMCommunicate OK [15:44:14]CreateOFDProtocolMessage done [15:44:14]OFDSenderStorePacket 164644 [15:44:14]StoreOFDPacket docnum=164644 [15:44:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 A6 07 01 DB 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC 00 00 00 F4 03 04 00 CF A0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 83 02 00 35 04 06 00 11 62 34 20 B1 9A 2F CF FB 74 A5 C8 90 AC [15:44:14]CheckFolder [15:44:14]dirname=/storage/ofd_packets [15:44:14]CheckFolder done [15:44:14]ProducePacketName [15:44:14]name=ofd_packets/00164644 [15:44:14]NVStorageSaveData ofd_packets/00164644 [15:44:14]File name is /storage/ofd_packets/00164644 [15:44:14]Write 301 bytes [15:44:14]NVStorageSaveData done [15:44:14]OFDSenderStorePacket done [15:44:14]KKMCreateOFDPacket done [15:44:14]NVStorageSaveData kkm_last_timestamp [15:44:14]File name is /storage/kkm_last_timestamp [15:44:14]Write 4 bytes [15:44:14]NVStorageSaveData done [15:44:14]OFD Sender: Processing packet 164644 [packets to send 104, broken 103] [15:44:14]ProducePacketName [15:44:14]name=ofd_packets/00164644 [15:44:14]OFD Sender: To server: pG, [15:44:14]CommunicateWithHost lk.salyk.kg:30040 [15:44:14]ConnectInit lk.salyk.kg [15:44:14]ExternCall_PrintAddStr [15:44:14]wPrintStart [15:44:14]Write to MH i2c: 01 00 00 79 2B A4 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 FF 0F B9 [15:44:14]RasterBufferAndPrint [15:44:14]line Счет N : (1)458737 [15:44:14]line ИНН: 02508201610067 [15:44:14]line Контрольно-Кассовый Чек [15:44:14]line ПРОДАЖА [15:44:14]line ТРК (МРК, ГНК) : 12 [15:44:14]line Товар: 2710124130 [15:44:14]line Аи-92-К-5 [15:44:14]line 7.600 * 65.80 [15:44:14]line = 500.08 [15:44:14]line НДС 12% НСП 1% [15:44:14]line > о реализуемом товаре [15:44:14]line ОКРУГЛЕНИЕ: -0.08 [15:44:14]line ИТОГО: 500.00 [15:44:14]line Внесено: 500.00 [15:44:14]line СДАЧА: 0.00 [15:44:14]line НСП 1% : 4.42 [15:44:14]line НДС 12% : 53.11 [15:44:14]line Наличными: 500.00 [15:44:14]line Безнал.: 0.00 [15:44:14]line Место: АЗС № 72 "Партнер Нефть" [15:44:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:44:14]line СНО: Общий режим [15:44:14]line Чек 204 13.07.2024 15:44 [15:44:14]line Смена: 446 ФФД: 1.0 [15:44:14]line ЗНМ: 0300000160 [15:44:14]line РНМ: 0000000000090829 [15:44:14]line Версия ККМ: 001 [15:44:14]line ФМ: 0000000000874718 [15:44:14]line ФД: 164644 [15:44:14]line ФПД: 19113479025050 [15:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154415&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164644&fm=19113479025050&tin=02508201610067®Number=0000000000090829&sum=50000 [15:44:14]Connected sock=11 [15:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 A6 07 01 DB 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC 00 00 00 F4 03 04 00 CF A0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 83 02 00 35 04 06 00 11 62 34 20 B1 9A 2F CF FB 74 A5 C8 90 AC [15:44:14]written 0, free lines is 4095 [15:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E D3 47 00 8D 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 34 37 31 38 10 04 04 00 24 83 02 00 F4 03 04 00 5F 47 92 66 B6 04 01 00 00 7C 87 9E F5 FB A6 61 21 [15:44:14]CommunicateWithHost err = 0 [15:44:14]CheckOFDResponse [15:44:14]1017 (14) - 77093643461234 [15:44:14]1041 (16) - 0000000000874718 [15:44:14]1040 (4) - 164644 [15:44:14]1012 (4) - 13.07.2024 09:22 [15:44:14]1206 (1) - 0 [15:44:14]OFD Sender: Remove packet 164644 [15:44:14]ProducePacketName [15:44:14]name=ofd_packets/00164644 [15:44:14]NVStorageDeleteData [15:44:15]Write to MH i2c: 01 00 00 A3 2B CE [15:44:15]Write i2c OK [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: 01 [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: 01 07 00 [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: 01 07 00 A3 2B 00 00 00 00 00 EC 0C CD [15:44:15]RasterBufferAndPrint [15:44:15]line [15:44:15]line [15:44:15]line [15:44:15]line [15:44:15]line [15:44:15]written 0, free lines is 3314 [15:44:15]MH_Cut [15:44:15]Write to MH i2c: D1 01 00 AA 2B 01 A7 [15:44:15]Write i2c OK [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: D1 [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: D1 01 00 [15:44:15]MH_I2C_Read... [15:44:15]Read from MH i2c: D1 01 00 AA 2B 00 A6 [15:44:15]Write to MH i2c: 01 00 00 AB 2B D6 [15:44:15]Write i2c OK [15:44:15]MH_I2C_Read... [15:44:15]OFD Sender: No OFD packet to send [15:44:15]*** Cut start [15:44:15]*** Partial cut [15:44:15]*** CUTSNS_PIN = 1 [15:44:15]*** CUTSNS_PIN = 0 [15:44:15]*** Brake cut motor [15:44:16]Read from MH i2c: 01 [15:44:16]MH_I2C_Read... [15:44:16]*** Stop cut motor [15:44:16]*** Cut end [15:44:16]Read from MH i2c: 01 07 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: 01 07 00 AB 2B 00 00 00 00 00 FF 0F EB [15:44:16]process_action close_receipt done [15:44:16]requested_data is exist [15:44:16]produce_requested_data [15:44:16]requested_item fm.sn is exist - process it [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 11 00 00 [15:44:16]Write to MH i2c: E2 08 00 AC 2B 80 11 00 00 00 00 00 00 51 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 17 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 17 00 AC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [15:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:44:16]wFMCommunicate OK [15:44:16]requested_item fd.num is exist - process it [15:44:16]SAM_PROTO_GetFieldsCounters [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 13 00 00 [15:44:16]Write to MH i2c: E2 08 00 AD 2B 80 13 00 00 00 00 00 00 54 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 62 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 62 00 AD 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [15:44: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:16]wFMCommunicate OK [15:44:16]SAM_PROTO_GetFieldsCounters done [15:44:16]requested_item shift.num is exist - process it [15:44:16]requested_item shift.opened is exist - process it [15:44:16]req_shift_opened [15:44:16]FM_GetShiftState [15:44:16]SAM_PROTO_GetShiftState [15:44:16]wFMCommunicate request_size=4 [15:44:16]MH_SAM_APDU [15:44:16]CAPDU: 80 13 01 00 [15:44:16]Write to MH i2c: E2 08 00 AE 2B 80 13 01 00 00 00 00 00 56 [15:44:16]Write i2c OK [15:44:16]MH_I2C_Read... [15:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:16]Read from MH i2c: E2 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 0E 00 [15:44:16]MH_I2C_Read... [15:44:16]Read from MH i2c: E2 0E 00 AE 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 37 [15:44:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:44:16]wFMCommunicate OK [15:44:16]SAM_PROTO_GetShiftState done [15:44:16]FM_GetShiftState done [15:44:16]req_shift_opened done [15:44:16]requested_item shift.open_date is exist - process it [15:44:16]req_shift_open_date [15:44:16]req_shift_open_date done [15:44:16]produce_requested_data done [15:44:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164644,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:44:16]process_action_free close_receipt [15:44:16]json_value_free [15:44:16]json_value_free done [15:44:16]process_json_proto returns [15:44:16]Send response to host [15:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164644,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:44:16]free response buf [15:44:16]execute_script done [15:44:16]execute_script returns [15:44:16]free content buf [15:44:16]Sock 9.Close socket [15:44:16]Sock 9.Thread stoped [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:36]accept exits with 7 [15:50:36]New connection [15:50:36]New thread 3067149668 created [15:50:36]Thread 3067293028 joined [15:50:36]Waiting for new connection... [15:50:36] Sock 7.Parse request [15:50:36]Sock 7.Check first char [15:50:36]Sock 7.First char is OK [15:50:36]request: POST /json_proto HTTP/1.0 [15:50:36]Method: POST [15:50:36]URL: /json_proto [15:50:36]Method is POST - this is cgi request [15:50:36]url: /json_proto [15:50:36]query_string will be loaded in cgi processing [15:50:36]execute_cgi json_proto POST (null) [15:50:36]execute_cgi path=json_proto method=POST [15:50:36]POST find Content-Length [15:50:36]Host: 172.17.56.4:8080 [15:50:36]Content-Length: 677 [15:50:36]Content-Type: application/json [15:50:36] [15:50:36]POST finish read [15:50:36]Found Content-Length = 677 [15:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:36]execute_script... [15:50:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:36]POST & json_proto [15:50:36]process_json_proto [15:50:36]json parsed OK: [15:50:36]protocol is kg_v1.0 [15:50:36]action value=close_receipt [15:50:36]process_action close_receipt [15:50:36]cmd_close_receipt [15:50:36]MH_GetDate [15:50:36]Write to MH i2c: F0 00 00 AF 2B C9 [15:50:36]Write i2c OK [15:50:36]MH_I2C_Read... [15:50:36]Read from MH i2c: F0 [15:50:36]MH_I2C_Read... [15:50:36]Read from MH i2c: F0 09 00 [15:50:36]MH_I2C_Read... [15:50:36]Read from MH i2c: F0 09 00 AF 2B 00 4E A2 92 66 C9 DC B2 64 75 [15:50:36]GetLastDocTimeStamp 1720885455 [15:50:36]current date 1720885838 [15:50:36]FM_GetShiftState [15:50:36]SAM_PROTO_GetShiftState [15:50:36]wFMCommunicate request_size=4 [15:50:36]MH_SAM_APDU [15:50:36]CAPDU: 80 13 01 00 [15:50:36]Write to MH i2c: E2 08 00 B0 2B 80 13 01 00 00 00 00 00 58 [15:50:36]Write i2c OK [15:50:36]MH_I2C_Read... [15:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:36]Read from MH i2c: E2 [15:50:36]MH_I2C_Read... [15:50:36]Read from MH i2c: E2 0E 00 [15:50:36]MH_I2C_Read... [15:50:36]Read from MH i2c: E2 0E 00 B0 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 39 [15:50:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:50:36]wFMCommunicate OK [15:50:36]SAM_PROTO_GetShiftState done [15:50:36]FM_GetShiftState done [15:50:36]opened in 1720831249 [15:50:36]opened+sec_in_day 1720917649 [15:50:36]quantity*price = 20003 [15:50:36]sum+1 = 20004 [15:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 205 13.07.2024 15:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164645 ФПД: 25033663145420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164645&fm=25033663145420&tin=02508201610067®Number=0000000000090829&sum=20000 [15:50:37]StoreToDocumentArchive [15:50:37]shift 446 fd 164645 [15:50:37]save to /storage/0446/doc_00164645 [15:50:37]save last doc name /storage/0446/doc_00164645 to /storage/kkm_last_doc_name [15:50:37]save OK [15:50:37]Clear old archive folders... [15:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:37]tlvbuf is B6FABD90 [15:50:37]SAM_PROTO_ClearQueue [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 09 00 00 [15:50:37]Write to MH i2c: E2 08 00 BD 2B 80 09 00 00 00 00 00 00 5A [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 BD 2B 00 90 00 5C [15:50:37]RAPDU: 90 00 [15:50:37]wFMCommunicate OK [15:50:37]SAM_PROTO_ClearQueue done [15:50:37]KKMCreateOFDPacket [15:50:37]OFDProtocolAddRootSTLVToBuf [15:50:37]FM_MakeSignedData [15:50:37]FM_MakeSignedData [15:50:37]SAM_PROTO_SignData [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 0D 01 02 [15:50:37]Write to MH i2c: E2 08 00 BE 2B 80 0D 01 02 00 00 00 00 62 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 BE 2B 00 90 00 5D [15:50:37]RAPDU: 90 00 [15:50:37]wFMCommunicate OK [15:50:37]wFMCommunicate request_size=255 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 83 02 00 35 04 06 00 16 [15:50:37]Write to MH i2c: E2 02 01 BF 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 83 02 00 35 04 06 00 16 00 00 B0 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 BF 2B 00 90 00 5E [15:50:37]RAPDU: 90 00 [15:50:37]wFMCommunicate OK [15:50:37]wFMCommunicate request_size=10 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 0D 02 02 05 C4 9A 99 65 CC [15:50:37]Write to MH i2c: E2 0D 00 C0 2B 80 0D 02 02 05 00 C4 9A 99 65 CC 00 00 97 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:37]Read from MH i2c: E2 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 [15:50:37]MH_I2C_Read... [15:50:37]Read from MH i2c: E2 03 00 C0 2B 00 90 00 5F [15:50:37]RAPDU: 90 00 [15:50:37]wFMCommunicate OK [15:50:37]wFMCommunicate request_size=4 [15:50:37]MH_SAM_APDU [15:50:37]CAPDU: 80 0D 03 02 [15:50:37]Write to MH i2c: E2 08 00 C1 2B 80 0D 03 02 00 00 00 00 67 [15:50:37]Write i2c OK [15:50:37]MH_I2C_Read... [15:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:38]Read from MH i2c: E2 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 0B 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 0B 00 C1 2B 00 7E 15 3C F5 E3 0E C2 6E 90 00 4D [15:50:38]RAPDU: 7E 15 3C F5 E3 0E C2 6E 90 00 [15:50:38]wFMCommunicate OK [15:50:38]SAM_PROTO_SignData done [15:50:38]FM_MakeSignedData done [15:50:38]CreateOFDProtocolMessage [15:50:38]wFMCommunicate request_size=4 [15:50:38]MH_SAM_APDU [15:50:38]CAPDU: 80 11 00 00 [15:50:38]Write to MH i2c: E2 08 00 C2 2B 80 11 00 00 00 00 00 00 67 [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:38]Read from MH i2c: E2 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 17 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: E2 17 00 C2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [15:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:50:38]wFMCommunicate OK [15:50:38]CreateOFDProtocolMessage done [15:50:38]OFDSenderStorePacket 164645 [15:50:38]StoreOFDPacket docnum=164645 [15:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA DD 07 01 9D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 83 02 00 35 04 06 00 16 C4 9A 99 65 CC 7E 15 3C F5 E3 0E C2 6E [15:50:38]CheckFolder [15:50:38]dirname=/storage/ofd_packets [15:50:38]CheckFolder done [15:50:38]ProducePacketName [15:50:38]name=ofd_packets/00164645 [15:50:38]NVStorageSaveData ofd_packets/00164645 [15:50:38]File name is /storage/ofd_packets/00164645 [15:50:38]Write 301 bytes [15:50:38]NVStorageSaveData done [15:50:38]OFDSenderStorePacket done [15:50:38]KKMCreateOFDPacket done [15:50:38]NVStorageSaveData kkm_last_timestamp [15:50:38]File name is /storage/kkm_last_timestamp [15:50:38]Write 4 bytes [15:50:38]NVStorageSaveData done [15:50:38]ExternCall_PrintAddStr [15:50:38]wPrintStart [15:50:38]Write to MH i2c: 01 00 00 C3 2B EE [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 07 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 07 00 C3 2B 00 00 00 00 00 FF 0F 03 [15:50:38]RasterBufferAndPrint [15:50:38]line Счет N : (1)458738 [15:50:38]line ИНН: 02508201610067 [15:50:38]line Контрольно-Кассовый Чек [15:50:38]line ПРОДАЖА [15:50:38]line ТРК (МРК, ГНК) : 12 [15:50:38]line Товар: 2710124130 [15:50:38]line Аи-92-К-5 [15:50:38]line 3.040 * 65.80 [15:50:38]line = 200.03 [15:50:38]line НДС 12% НСП 1% [15:50:38]line > о реализуемом товаре [15:50:38]line ОКРУГЛЕНИЕ: -0.03 [15:50:38]line ИТОГО: 200.00 [15:50:38]line Внесено: 200.00 [15:50:38]line СДАЧА: 0.00 [15:50:38]line НСП 1% : 1.77 [15:50:38]line НДС 12% : 21.24 [15:50:38]line Наличными: 200.00 [15:50:38]line Безнал.: 0.00 [15:50:38]line Место: АЗС № 72 "Партнер Нефть" [15:50:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:50:38]line СНО: Общий режим [15:50:38]line Чек 205 13.07.2024 15:50 [15:50:38]line Смена: 446 ФФД: 1.0 [15:50:38]line ЗНМ: 0300000160 [15:50:38]line РНМ: 0000000000090829 [15:50:38]line Версия ККМ: 001 [15:50:38]line ФМ: 0000000000874718 [15:50:38]line ФД: 164645 [15:50:38]line ФПД: 25033663145420 [15:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164645&fm=25033663145420&tin=02508201610067®Number=0000000000090829&sum=20000 [15:50:38]written 0, free lines is 4095 [15:50:38]OFD Sender: Processing packet 164645 [packets to send 104, broken 103] [15:50:38]ProducePacketName [15:50:38]name=ofd_packets/00164645 [15:50:38]OFD Sender: To server: pG, [15:50:38]CommunicateWithHost lk.salyk.kg:30040 [15:50:38]ConnectInit lk.salyk.kg [15:50:38]Connected sock=10 [15:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA DD 07 01 9D 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 83 02 00 35 04 06 00 16 C4 9A 99 65 CC 7E 15 3C F5 E3 0E C2 6E [15:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 99 47 00 42 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 34 37 31 38 10 04 04 00 25 83 02 00 F4 03 04 00 DF 48 92 66 B6 04 01 00 00 2E 59 A0 1A B4 C6 91 84 [15:50:38]CommunicateWithHost err = 0 [15:50:38]CheckOFDResponse [15:50:38]1017 (14) - 77093643461234 [15:50:38]1041 (16) - 0000000000874718 [15:50:38]1040 (4) - 164645 [15:50:38]1012 (4) - 13.07.2024 09:29 [15:50:38]1206 (1) - 0 [15:50:38]OFD Sender: Remove packet 164645 [15:50:38]ProducePacketName [15:50:38]name=ofd_packets/00164645 [15:50:38]NVStorageDeleteData [15:50:38]Write to MH i2c: 01 00 00 ED 2B 18 [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 07 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: 01 07 00 ED 2B 00 00 00 00 00 FE 0C 29 [15:50:38]RasterBufferAndPrint [15:50:38]line [15:50:38]line [15:50:38]line [15:50:38]line [15:50:38]line [15:50:38]written 0, free lines is 3335 [15:50:38]MH_Cut [15:50:38]Write to MH i2c: D1 01 00 F4 2B 01 F1 [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: D1 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: D1 01 00 [15:50:38]MH_I2C_Read... [15:50:38]Read from MH i2c: D1 01 00 F4 2B 00 F0 [15:50:38]Write to MH i2c: 01 00 00 F5 2B 20 [15:50:38]Write i2c OK [15:50:38]MH_I2C_Read... [15:50:38]OFD Sender: No OFD packet to send [15:50:39]*** Cut start [15:50:39]*** Partial cut [15:50:39]*** CUTSNS_PIN = 1 [15:50:39]*** CUTSNS_PIN = 0 [15:50:39]*** Brake cut motor [15:50:39]Read from MH i2c: 01 [15:50:39]MH_I2C_Read... [15:50:39]*** Stop cut motor [15:50:39]*** Cut end [15:50:39]Read from MH i2c: 01 07 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: 01 07 00 F5 2B 00 00 00 00 00 FF 0F 35 [15:50:39]process_action close_receipt done [15:50:39]requested_data is exist [15:50:39]produce_requested_data [15:50:39]requested_item fm.sn is exist - process it [15:50:39]wFMCommunicate request_size=4 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 11 00 00 [15:50:39]Write to MH i2c: E2 08 00 F6 2B 80 11 00 00 00 00 00 00 9B [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:39]Read from MH i2c: E2 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 [15:50:39]MH_I2C_Read... [15:50:39]Read from MH i2c: E2 17 00 F6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [15:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:50:39]wFMCommunicate OK [15:50:39]requested_item fd.num is exist - process it [15:50:39]SAM_PROTO_GetFieldsCounters [15:50:39]wFMCommunicate request_size=4 [15:50:39]MH_SAM_APDU [15:50:39]CAPDU: 80 13 00 00 [15:50:39]Write to MH i2c: E2 08 00 F7 2B 80 13 00 00 00 00 00 00 9E [15:50:39]Write i2c OK [15:50:39]MH_I2C_Read... [15:50:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:39]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 62 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 62 00 F7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [15:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:40]wFMCommunicate OK [15:50:40]SAM_PROTO_GetFieldsCounters done [15:50:40]requested_item shift.num is exist - process it [15:50:40]requested_item shift.opened is exist - process it [15:50:40]req_shift_opened [15:50:40]FM_GetShiftState [15:50:40]SAM_PROTO_GetShiftState [15:50:40]wFMCommunicate request_size=4 [15:50:40]MH_SAM_APDU [15:50:40]CAPDU: 80 13 01 00 [15:50:40]Write to MH i2c: E2 08 00 F8 2B 80 13 01 00 00 00 00 00 A0 [15:50:40]Write i2c OK [15:50:40]MH_I2C_Read... [15:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:40]Read from MH i2c: E2 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 0E 00 [15:50:40]MH_I2C_Read... [15:50:40]Read from MH i2c: E2 0E 00 F8 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 81 [15:50:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:50:40]wFMCommunicate OK [15:50:40]SAM_PROTO_GetShiftState done [15:50:40]FM_GetShiftState done [15:50:40]req_shift_opened done [15:50:40]requested_item shift.open_date is exist - process it [15:50:40]req_shift_open_date [15:50:40]req_shift_open_date done [15:50:40]produce_requested_data done [15:50:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164645,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:50:40]process_action_free close_receipt [15:50:40]json_value_free [15:50:40]json_value_free done [15:50:40]process_json_proto returns [15:50:40]Send response to host [15:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164645,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:50:40]free response buf [15:50:40]execute_script done [15:50:40]execute_script returns [15:50:40]free content buf [15:50:40]Sock 7.Close socket [15:50:40]Sock 7.Thread stoped [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:07]accept exits with 9 [15:53:07]New connection [15:53:07]New thread 3067293028 created [15:53:07]Thread 3067149668 joined [15:53:07]Waiting for new connection... [15:53:07] Sock 9.Parse request [15:53:07]Sock 9.Check first char [15:53:07]Sock 9.First char is OK [15:53:07]request: POST /json_proto HTTP/1.0 [15:53:07]Method: POST [15:53:07]URL: /json_proto [15:53:07]Method is POST - this is cgi request [15:53:07]url: /json_proto [15:53:07]query_string will be loaded in cgi processing [15:53:07]execute_cgi json_proto POST (null) [15:53:07]execute_cgi path=json_proto method=POST [15:53:07]POST find Content-Length [15:53:07]Host: 172.17.56.4:8080 [15:53:07]Content-Length: 677 [15:53:07]Content-Type: application/json [15:53:07] [15:53:07]POST finish read [15:53:07]Found Content-Length = 677 [15:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [15:53:07]execute_script... [15:53: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)458739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [15:53:07]POST & json_proto [15:53:07]process_json_proto [15:53:07]json parsed OK: [15:53:07]protocol is kg_v1.0 [15:53:07]action value=close_receipt [15:53:07]process_action close_receipt [15:53:07]cmd_close_receipt [15:53:07]MH_GetDate [15:53:07]Write to MH i2c: F0 00 00 F9 2B 13 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: F0 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: F0 09 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: F0 09 00 F9 2B 00 E6 A2 92 66 C9 DC B2 64 57 [15:53:07]GetLastDocTimeStamp 1720885838 [15:53:07]current date 1720885990 [15:53:07]FM_GetShiftState [15:53:07]SAM_PROTO_GetShiftState [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 13 01 00 [15:53:07]Write to MH i2c: E2 08 00 FA 2B 80 13 01 00 00 00 00 00 A2 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:08]Read from MH i2c: E2 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: E2 0E 00 FA 2B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 83 [15:53:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:53:08]wFMCommunicate OK [15:53:08]SAM_PROTO_GetShiftState done [15:53:08]FM_GetShiftState done [15:53:08]opened in 1720831249 [15:53:08]opened+sec_in_day 1720917649 [15:53:08]quantity*price = 25004 [15:53:08]sum+1 = 25005 [15:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 206 13.07.2024 15:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164646 ФПД: 205093730586826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164646&fm=205093730586826&tin=02508201610067®Number=0000000000090829&sum=25000 [15:53:09]StoreToDocumentArchive [15:53:09]shift 446 fd 164646 [15:53:09]save to /storage/0446/doc_00164646 [15:53:09]save last doc name /storage/0446/doc_00164646 to /storage/kkm_last_doc_name [15:53:09]save OK [15:53:09]Clear old archive folders... [15:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:09]tlvbuf is 014C8C60 [15:53:09]SAM_PROTO_ClearQueue [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 09 00 00 [15:53:09]Write to MH i2c: E2 08 00 07 2C 80 09 00 00 00 00 00 00 A5 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [15:53:09]RAPDU: 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_ClearQueue done [15:53:09]KKMCreateOFDPacket [15:53:09]OFDProtocolAddRootSTLVToBuf [15:53:09]FM_MakeSignedData [15:53:09]FM_MakeSignedData [15:53:09]SAM_PROTO_SignData [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 0D 01 02 [15:53:09]Write to MH i2c: E2 08 00 08 2C 80 0D 01 02 00 00 00 00 AD [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 08 2C 00 90 00 A8 [15:53:09]RAPDU: 90 00 [15:53:09]wFMCommunicate OK [15:53:09]wFMCommunicate request_size=255 [15:53:09]MH_SAM_APDU [15:53: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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 83 02 00 35 04 06 00 BA [15:53:09]Write to MH i2c: E2 02 01 09 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 83 02 00 35 04 06 00 BA 00 00 47 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 09 2C 00 90 00 A9 [15:53:09]RAPDU: 90 00 [15:53:09]wFMCommunicate OK [15:53:09]wFMCommunicate request_size=10 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 0D 02 02 05 88 1A F5 10 CA [15:53:09]Write to MH i2c: E2 0D 00 0A 2C 80 0D 02 02 05 00 88 1A F5 10 CA 00 00 2B [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 03 00 0A 2C 00 90 00 AA [15:53:09]RAPDU: 90 00 [15:53:09]wFMCommunicate OK [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 0D 03 02 [15:53:09]Write to MH i2c: E2 08 00 0B 2C 80 0D 03 02 00 00 00 00 B2 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0B 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0B 00 0B 2C 00 E6 65 6D BA 2F 88 DA D1 90 00 87 [15:53:09]RAPDU: E6 65 6D BA 2F 88 DA D1 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_SignData done [15:53:09]FM_MakeSignedData done [15:53:09]CreateOFDProtocolMessage [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 11 00 00 [15:53:09]Write to MH i2c: E2 08 00 0C 2C 80 11 00 00 00 00 00 00 B2 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 0C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [15:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:53:09]wFMCommunicate OK [15:53:09]CreateOFDProtocolMessage done [15:53:09]OFDSenderStorePacket 164646 [15:53:09]StoreOFDPacket docnum=164646 [15:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 FD 07 01 97 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 83 02 00 35 04 06 00 BA 88 1A F5 10 CA E6 65 6D BA 2F 88 DA D1 [15:53:09]CheckFolder [15:53:09]dirname=/storage/ofd_packets [15:53:09]CheckFolder done [15:53:09]ProducePacketName [15:53:09]name=ofd_packets/00164646 [15:53:09]NVStorageSaveData ofd_packets/00164646 [15:53:09]File name is /storage/ofd_packets/00164646 [15:53:09]Write 301 bytes [15:53:09]NVStorageSaveData done [15:53:09]OFDSenderStorePacket done [15:53:09]KKMCreateOFDPacket done [15:53:09]NVStorageSaveData kkm_last_timestamp [15:53:09]File name is /storage/kkm_last_timestamp [15:53:09]Write 4 bytes [15:53:09]NVStorageSaveData done [15:53:09]ExternCall_PrintAddStr [15:53:09]wPrintStart [15:53:09]Write to MH i2c: 01 00 00 0D 2C 39 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 07 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 07 00 0D 2C 00 00 00 00 00 FF 0F 4E [15:53:09]RasterBufferAndPrint [15:53:09]line Счет N : (1)458739 [15:53:09]line ИНН: 02508201610067 [15:53:09]line Контрольно-Кассовый Чек [15:53:09]line ПРОДАЖА [15:53:09]line ТРК (МРК, ГНК) : 12 [15:53:09]line Товар: 2710124130 [15:53:09]line Аи-92-К-5 [15:53:09]line 3.800 * 65.80 [15:53:09]line = 250.04 [15:53:09]line НДС 12% НСП 1% [15:53:09]line > о реализуемом товаре [15:53:09]line ОКРУГЛЕНИЕ: -0.04 [15:53:09]line ИТОГО: 250.00 [15:53:09]line Внесено: 250.00 [15:53:09]line СДАЧА: 0.00 [15:53:09]line НСП 1% : 2.21 [15:53:09]line НДС 12% : 26.55 [15:53:09]line Наличными: 250.00 [15:53:09]line Безнал.: 0.00 [15:53:09]line Место: АЗС № 72 "Партнер Нефть" [15:53:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:53:09]line СНО: Общий режим [15:53:09]line Чек 206 13.07.2024 15:53 [15:53:09]line Смена: 446 ФФД: 1.0 [15:53:09]line ЗНМ: 0300000160 [15:53:09]line РНМ: 0000000000090829 [15:53:09]line Версия ККМ: 001 [15:53:09]line ФМ: 0000000000874718 [15:53:09]line ФД: 164646 [15:53:09]line ФПД: 205093730586826 [15:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164646&fm=205093730586826&tin=02508201610067®Number=0000000000090829&sum=25000 [15:53:09]written 0, free lines is 4095 [15:53:09]OFD Sender: Processing packet 164646 [packets to send 104, broken 103] [15:53:09]ProducePacketName [15:53:09]name=ofd_packets/00164646 [15:53:09]OFD Sender: To server: pG, [15:53:09]CommunicateWithHost lk.salyk.kg:30040 [15:53:09]ConnectInit lk.salyk.kg [15:53:09]Connected sock=10 [15:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 FD 07 01 97 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 A2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 83 02 00 35 04 06 00 BA 88 1A F5 10 CA E6 65 6D BA 2F 88 DA D1 [15:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF 50 47 00 A2 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 34 37 31 38 10 04 04 00 26 83 02 00 F4 03 04 00 76 49 92 66 B6 04 01 00 00 98 D8 C4 16 D8 0B FB 34 [15:53:10]CommunicateWithHost err = 0 [15:53:10]CheckOFDResponse [15:53:10]1017 (14) - 77093643461234 [15:53:10]1041 (16) - 0000000000874718 [15:53:10]1040 (4) - 164646 [15:53:10]1012 (4) - 13.07.2024 09:31 [15:53:10]1206 (1) - 0 [15:53:10]OFD Sender: Remove packet 164646 [15:53:10]ProducePacketName [15:53:10]name=ofd_packets/00164646 [15:53:10]NVStorageDeleteData [15:53:10]Write to MH i2c: 01 00 00 37 2C 63 [15:53:10]Write i2c OK [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: 01 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: 01 07 00 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: 01 07 00 37 2C 00 00 00 00 00 0F 0D 86 [15:53:10]RasterBufferAndPrint [15:53:10]line [15:53:10]line [15:53:10]line [15:53:10]line [15:53:10]line [15:53:10]written 0, free lines is 3349 [15:53:10]MH_Cut [15:53:10]Write to MH i2c: D1 01 00 3E 2C 01 3C [15:53:10]Write i2c OK [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: D1 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: D1 01 00 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: D1 01 00 3E 2C 00 3B [15:53:10]Write to MH i2c: 01 00 00 3F 2C 6B [15:53:10]Write i2c OK [15:53:10]MH_I2C_Read... [15:53:10]OFD Sender: No OFD packet to send [15:53:10]*** Cut start [15:53:10]*** Partial cut [15:53:10]*** CUTSNS_PIN = 1 [15:53:10]*** CUTSNS_PIN = 0 [15:53:11]*** Brake cut motor [15:53:11]Read from MH i2c: 01 [15:53:11]MH_I2C_Read... [15:53:11]*** Stop cut motor [15:53:11]*** Cut end [15:53:11]Read from MH i2c: 01 07 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 FF 0F 80 [15:53:11]process_action close_receipt done [15:53:11]requested_data is exist [15:53:11]produce_requested_data [15:53:11]requested_item fm.sn is exist - process it [15:53:11]wFMCommunicate request_size=4 [15:53:11]MH_SAM_APDU [15:53:11]CAPDU: 80 11 00 00 [15:53:11]Write to MH i2c: E2 08 00 40 2C 80 11 00 00 00 00 00 00 E6 [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:11]Read from MH i2c: E2 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 17 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 17 00 40 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [15:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:53:11]wFMCommunicate OK [15:53:11]requested_item fd.num is exist - process it [15:53:11]SAM_PROTO_GetFieldsCounters [15:53:11]wFMCommunicate request_size=4 [15:53:11]MH_SAM_APDU [15:53:11]CAPDU: 80 13 00 00 [15:53:11]Write to MH i2c: E2 08 00 41 2C 80 13 00 00 00 00 00 00 E9 [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:11]Read from MH i2c: E2 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 62 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 62 00 41 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:11]wFMCommunicate OK [15:53:11]SAM_PROTO_GetFieldsCounters done [15:53:11]requested_item shift.num is exist - process it [15:53:11]requested_item shift.opened is exist - process it [15:53:11]req_shift_opened [15:53:11]FM_GetShiftState [15:53:11]SAM_PROTO_GetShiftState [15:53:11]wFMCommunicate request_size=4 [15:53:11]MH_SAM_APDU [15:53:11]CAPDU: 80 13 01 00 [15:53:11]Write to MH i2c: E2 08 00 42 2C 80 13 01 00 00 00 00 00 EB [15:53:11]Write i2c OK [15:53:11]MH_I2C_Read... [15:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:11]Read from MH i2c: E2 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 [15:53:11]MH_I2C_Read... [15:53:11]Read from MH i2c: E2 0E 00 42 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CC [15:53:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:53:11]wFMCommunicate OK [15:53:11]SAM_PROTO_GetShiftState done [15:53:11]FM_GetShiftState done [15:53:11]req_shift_opened done [15:53:11]requested_item shift.open_date is exist - process it [15:53:11]req_shift_open_date [15:53:11]req_shift_open_date done [15:53:11]produce_requested_data done [15:53:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164646,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:53:11]process_action_free close_receipt [15:53:11]json_value_free [15:53:11]json_value_free done [15:53:11]process_json_proto returns [15:53:11]Send response to host [15:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164646,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:53:11]free response buf [15:53:11]execute_script done [15:53:11]execute_script returns [15:53:11]free content buf [15:53:11]Sock 9.Close socket [15:53:11]Sock 9.Thread stoped [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:46]accept exits with 7 [15:53:46]New connection [15:53:46]New thread 3067149668 created [15:53:46]Thread 3067293028 joined [15:53:46]Waiting for new connection... [15:53:46] Sock 7.Parse request [15:53:46]Sock 7.Check first char [15:53:46]Sock 7.First char is OK [15:53:46]request: POST /json_proto HTTP/1.0 [15:53:46]Method: POST [15:53:46]URL: /json_proto [15:53:46]Method is POST - this is cgi request [15:53:46]url: /json_proto [15:53:46]query_string will be loaded in cgi processing [15:53:46]execute_cgi json_proto POST (null) [15:53:46]execute_cgi path=json_proto method=POST [15:53:46]POST find Content-Length [15:53:46]Host: 172.17.56.4:8080 [15:53:46]Content-Length: 790 [15:53:46]Content-Type: application/json [15:53:46] [15:53:46]POST finish read [15:53:46]Found Content-Length = 790 [15:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:46]execute_script... [15:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:46]POST & json_proto [15:53:46]process_json_proto [15:53:46]json parsed OK: [15:53:46]protocol is kg_v1.0 [15:53:46]action value=close_receipt [15:53:46]process_action close_receipt [15:53:46]cmd_close_receipt [15:53:46]MH_GetDate [15:53:46]Write to MH i2c: F0 00 00 43 2C 5E [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: F0 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: F0 09 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: F0 09 00 43 2C 00 0C A3 92 66 C9 DC B2 64 C9 [15:53:46]GetLastDocTimeStamp 1720885990 [15:53:46]current date 1720886028 [15:53:46]FM_GetShiftState [15:53:46]SAM_PROTO_GetShiftState [15:53:46]wFMCommunicate request_size=4 [15:53:46]MH_SAM_APDU [15:53:46]CAPDU: 80 13 01 00 [15:53:46]Write to MH i2c: E2 08 00 44 2C 80 13 01 00 00 00 00 00 ED [15:53:46]Write i2c OK [15:53:46]MH_I2C_Read... [15:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:46]Read from MH i2c: E2 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 0E 00 [15:53:46]MH_I2C_Read... [15:53:46]Read from MH i2c: E2 0E 00 44 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CE [15:53:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:53:46]wFMCommunicate OK [15:53:46]SAM_PROTO_GetShiftState done [15:53:46]FM_GetShiftState done [15:53:46]opened in 1720831249 [15:53:46]opened+sec_in_day 1720917649 [15:53:46]quantity*price = 100049 [15:53:46]sum+1 = 100050 [15:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.49 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 207 13.07.2024 15:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164647 ФПД: 241355260475389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155349&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164647&fm=241355260475389&tin=02508201610067®Number=0000000000090829&sum=100049 [15:53:47]StoreToDocumentArchive [15:53:47]shift 446 fd 164647 [15:53:47]save to /storage/0446/doc_00164647 [15:53:47]save last doc name /storage/0446/doc_00164647 to /storage/kkm_last_doc_name [15:53:47]save OK [15:53:47]Clear old archive folders... [15:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:53:47]tlvbuf is B6EFB720 [15:53:47]SAM_PROTO_ClearQueue [15:53:47]wFMCommunicate request_size=4 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 09 00 00 [15:53:47]Write to MH i2c: E2 08 00 51 2C 80 09 00 00 00 00 00 00 EF [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [15:53:47]RAPDU: 90 00 [15:53:47]wFMCommunicate OK [15:53:47]SAM_PROTO_ClearQueue done [15:53:47]KKMCreateOFDPacket [15:53:47]OFDProtocolAddRootSTLVToBuf [15:53:47]FM_MakeSignedData [15:53:47]FM_MakeSignedData [15:53:47]SAM_PROTO_SignData [15:53:47]wFMCommunicate request_size=4 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 0D 01 02 [15:53:47]Write to MH i2c: E2 08 00 52 2C 80 0D 01 02 00 00 00 00 F7 [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [15:53:47]RAPDU: 90 00 [15:53:47]wFMCommunicate OK [15:53:47]wFMCommunicate request_size=255 [15:53:47]MH_SAM_APDU [15:53: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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0D A3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 83 02 00 35 04 06 00 DB 82 E6 90 [15:53:47]Write to MH i2c: E2 02 01 53 2C 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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0D A3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 83 02 00 35 04 06 00 DB 82 E6 90 00 00 38 [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:47]Read from MH i2c: E2 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 [15:53:47]MH_I2C_Read... [15:53:47]Read from MH i2c: E2 03 00 53 2C 00 90 00 F3 [15:53:47]RAPDU: 90 00 [15:53:47]wFMCommunicate OK [15:53:47]wFMCommunicate request_size=7 [15:53:47]MH_SAM_APDU [15:53:47]CAPDU: 80 0D 02 02 02 B7 FD [15:53:47]Write to MH i2c: E2 0A 00 54 2C 80 0D 02 02 02 00 B7 FD 00 00 B2 [15:53:47]Write i2c OK [15:53:47]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 03 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 03 00 54 2C 00 90 00 F4 [15:53:48]RAPDU: 90 00 [15:53:48]wFMCommunicate OK [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 0D 03 02 [15:53:48]Write to MH i2c: E2 08 00 55 2C 80 0D 03 02 00 00 00 00 FC [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0B 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 0B 00 55 2C 00 D6 04 D5 98 14 89 B4 08 90 00 9D [15:53:48]RAPDU: D6 04 D5 98 14 89 B4 08 90 00 [15:53:48]wFMCommunicate OK [15:53:48]SAM_PROTO_SignData done [15:53:48]FM_MakeSignedData done [15:53:48]CreateOFDProtocolMessage [15:53:48]wFMCommunicate request_size=4 [15:53:48]MH_SAM_APDU [15:53:48]CAPDU: 80 11 00 00 [15:53:48]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:48]Read from MH i2c: E2 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 17 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [15:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:53:48]wFMCommunicate OK [15:53:48]CreateOFDProtocolMessage done [15:53:48]OFDSenderStorePacket 164647 [15:53:48]StoreOFDPacket docnum=164647 [15:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A1 EC 04 01 7D D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0D A3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 83 02 00 35 04 06 00 DB 82 E6 90 B7 FD D6 04 D5 98 14 89 B4 08 [15:53:48]CheckFolder [15:53:48]dirname=/storage/ofd_packets [15:53:48]CheckFolder done [15:53:48]ProducePacketName [15:53:48]name=ofd_packets/00164647 [15:53:48]NVStorageSaveData ofd_packets/00164647 [15:53:48]File name is /storage/ofd_packets/00164647 [15:53:48]Write 298 bytes [15:53:48]NVStorageSaveData done [15:53:48]OFDSenderStorePacket done [15:53:48]KKMCreateOFDPacket done [15:53:48]NVStorageSaveData kkm_last_timestamp [15:53:48]File name is /storage/kkm_last_timestamp [15:53:48]Write 4 bytes [15:53:48]NVStorageSaveData done [15:53:48]ExternCall_PrintAddStr [15:53:48]wPrintStart [15:53:48]Write to MH i2c: 01 00 00 57 2C 83 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 FF 0F 98 [15:53:48]RasterBufferAndPrint [15:53:48]line Счет N : (1)458740 [15:53:48]line ИНН: 02508201610067 [15:53:48]line Контрольно-Кассовый Чек [15:53:48]line ПРОДАЖА [15:53:48]line ТРК (МРК, ГНК) : 21 [15:53:48]line Товар: 2710194210 [15:53:48]line ДТ-К-5 [15:53:48]line 14.040 * 71.26 [15:53:48]line = 1000.49 [15:53:48]line НДС 12% НСП 1% [15:53:48]line > о реализуемом товаре [15:53:48]line ИТОГО: 1000.49 [15:53:48]line НСП 1% : 8.85 [15:53:48]line НДС 12% : 106.25 [15:53:48]line Наличными: 0.00 [15:53:48]line Безнал.: 1000.49 [15:53:48]line Место: АЗС № 72 "Партнер Нефть" [15:53:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:53:48]line СНО: Общий режим [15:53:48]line Чек 207 13.07.2024 15:53 [15:53:48]line Смена: 446 ФФД: 1.0 [15:53:48]line ЗНМ: 0300000160 [15:53:48]line РНМ: 0000000000090829 [15:53:48]line Версия ККМ: 001 [15:53:48]line Платежная система: KICB Банк [15:53:48]line ФМ: 0000000000874718 [15:53:48]line ФД: 164647 [15:53:48]line ФПД: 241355260475389 [15:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155349&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164647&fm=241355260475389&tin=02508201610067®Number=0000000000090829&sum=100049 [15:53:48]OFD Sender: Processing packet 164647 [packets to send 104, broken 103] [15:53:48]ProducePacketName [15:53:48]name=ofd_packets/00164647 [15:53:48]OFD Sender: To server: pG, [15:53:48]CommunicateWithHost lk.salyk.kg:30040 [15:53:48]ConnectInit lk.salyk.kg [15:53:48]written 0, free lines is 4095 [15:53:48]Connected sock=10 [15:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A1 EC 04 01 7D D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0D A3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 83 02 00 35 04 06 00 DB 82 E6 90 B7 FD D6 04 D5 98 14 89 B4 08 [15:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8C 57 47 00 D4 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 83 02 00 F4 03 04 00 9D 49 92 66 B6 04 01 00 00 15 D0 BC 9D D3 A4 A0 03 [15:53:48]CommunicateWithHost err = 0 [15:53:48]CheckOFDResponse [15:53:48]1017 (14) - 77093643461234 [15:53:48]1041 (16) - 0000000000874718 [15:53:48]1040 (4) - 164647 [15:53:48]1012 (4) - 13.07.2024 09:32 [15:53:48]1206 (1) - 0 [15:53:48]OFD Sender: Remove packet 164647 [15:53:48]ProducePacketName [15:53:48]name=ofd_packets/00164647 [15:53:48]NVStorageDeleteData [15:53:48]Write to MH i2c: 01 00 00 80 2C AC [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 80 2C 00 00 00 00 00 05 0D C5 [15:53:48]RasterBufferAndPrint [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]line [15:53:48]written 0, free lines is 3340 [15:53:48]MH_Cut [15:53:48]Write to MH i2c: D1 01 00 87 2C 01 85 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 01 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D1 01 00 87 2C 00 84 [15:53:48]Write to MH i2c: 01 00 00 88 2C B4 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:49]OFD Sender: No OFD packet to send [15:53:49]*** Cut start [15:53:49]*** Partial cut [15:53:49]*** CUTSNS_PIN = 1 [15:53:49]*** CUTSNS_PIN = 0 [15:53:49]*** Brake cut motor [15:53:50]Read from MH i2c: 01 [15:53:50]MH_I2C_Read... [15:53:50]*** Stop cut motor [15:53:50]*** Cut end [15:53:50]Read from MH i2c: 01 07 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: 01 07 00 88 2C 00 00 00 00 00 FF 0F C9 [15:53:50]process_action close_receipt done [15:53:50]requested_data is exist [15:53:50]produce_requested_data [15:53:50]requested_item fm.sn is exist - process it [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 11 00 00 [15:53:50]Write to MH i2c: E2 08 00 89 2C 80 11 00 00 00 00 00 00 2F [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 17 00 89 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [15:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:53:50]wFMCommunicate OK [15:53:50]requested_item fd.num is exist - process it [15:53:50]SAM_PROTO_GetFieldsCounters [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 13 00 00 [15:53:50]Write to MH i2c: E2 08 00 8A 2C 80 13 00 00 00 00 00 00 32 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 62 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 62 00 8A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [15:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_GetFieldsCounters done [15:53:50]requested_item shift.num is exist - process it [15:53:50]requested_item shift.opened is exist - process it [15:53:50]req_shift_opened [15:53:50]FM_GetShiftState [15:53:50]SAM_PROTO_GetShiftState [15:53:50]wFMCommunicate request_size=4 [15:53:50]MH_SAM_APDU [15:53:50]CAPDU: 80 13 01 00 [15:53:50]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [15:53:50]Write i2c OK [15:53:50]MH_I2C_Read... [15:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:50]Read from MH i2c: E2 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0E 00 [15:53:50]MH_I2C_Read... [15:53:50]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 15 [15:53:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:53:50]wFMCommunicate OK [15:53:50]SAM_PROTO_GetShiftState done [15:53:50]FM_GetShiftState done [15:53:50]req_shift_opened done [15:53:50]requested_item shift.open_date is exist - process it [15:53:50]req_shift_open_date [15:53:50]req_shift_open_date done [15:53:50]produce_requested_data done [15:53:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164647,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:53:50]process_action_free close_receipt [15:53:50]json_value_free [15:53:50]json_value_free done [15:53:50]process_json_proto returns [15:53:50]Send response to host [15:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164647,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:53:50]free response buf [15:53:50]execute_script done [15:53:50]execute_script returns [15:53:50]free content buf [15:53:50]Sock 7.Close socket [15:53:50]Sock 7.Thread stoped [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:37]accept exits with 9 [15:59:37]New connection [15:59:37]New thread 3067293028 created [15:59:37]Thread 3067149668 joined [15:59:37]Waiting for new connection... [15:59:37] Sock 9.Parse request [15:59:37]Sock 9.Check first char [15:59:37]Sock 9.First char is OK [15:59:37]request: POST /json_proto HTTP/1.0 [15:59:37]Method: POST [15:59:37]URL: /json_proto [15:59:37]Method is POST - this is cgi request [15:59:37]url: /json_proto [15:59:37]query_string will be loaded in cgi processing [15:59:37]execute_cgi json_proto POST (null) [15:59:37]execute_cgi path=json_proto method=POST [15:59:37]POST find Content-Length [15:59:37]Host: 172.17.56.4:8080 [15:59:37]Content-Length: 677 [15:59:37]Content-Type: application/json [15:59:37] [15:59:37]POST finish read [15:59:37]Found Content-Length = 677 [15:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:59:37]execute_script... [15:59: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)458741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:59:37]POST & json_proto [15:59:37]process_json_proto [15:59:37]json parsed OK: [15:59:37]protocol is kg_v1.0 [15:59:37]action value=close_receipt [15:59:37]process_action close_receipt [15:59:37]cmd_close_receipt [15:59:37]MH_GetDate [15:59:37]Write to MH i2c: F0 00 00 8C 2C A7 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: F0 09 00 8C 2C 00 6B A4 92 66 C9 DC B2 64 72 [15:59:37]GetLastDocTimeStamp 1720886029 [15:59:37]current date 1720886379 [15:59:37]FM_GetShiftState [15:59:37]SAM_PROTO_GetShiftState [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 13 01 00 [15:59:37]Write to MH i2c: E2 08 00 8D 2C 80 13 01 00 00 00 00 00 36 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0E 00 8D 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [15:59:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_GetShiftState done [15:59:37]FM_GetShiftState done [15:59:37]opened in 1720831249 [15:59:37]opened+sec_in_day 1720917649 [15:59:37]quantity*price = 50008 [15:59:37]sum+1 = 50009 [15:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 208 13.07.2024 15:59 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164648 ФПД: 84754743206406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155939&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164648&fm=84754743206406&tin=02508201610067®Number=0000000000090829&sum=50000 [15:59:38]StoreToDocumentArchive [15:59:38]shift 446 fd 164648 [15:59:38]save to /storage/0446/doc_00164648 [15:59:38]save last doc name /storage/0446/doc_00164648 to /storage/kkm_last_doc_name [15:59:38]save OK [15:59:38]Clear old archive folders... [15:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:38]tlvbuf is 01426BC0 [15:59:38]SAM_PROTO_ClearQueue [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 09 00 00 [15:59:38]Write to MH i2c: E2 08 00 9A 2C 80 09 00 00 00 00 00 00 38 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]SAM_PROTO_ClearQueue done [15:59:38]KKMCreateOFDPacket [15:59:38]OFDProtocolAddRootSTLVToBuf [15:59:38]FM_MakeSignedData [15:59:38]FM_MakeSignedData [15:59:38]SAM_PROTO_SignData [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 01 02 [15:59:38]Write to MH i2c: E2 08 00 9B 2C 80 0D 01 02 00 00 00 00 40 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=255 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 6B A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 83 02 00 35 04 06 00 4D [15:59:38]Write to MH i2c: E2 02 01 9C 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 6B A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 83 02 00 35 04 06 00 4D 00 00 49 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 9C 2C 00 90 00 3C [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=10 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 02 02 05 15 80 5C A2 06 [15:59:38]Write to MH i2c: E2 0D 00 9D 2C 80 0D 02 02 05 00 15 80 5C A2 06 00 00 E6 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 03 00 9D 2C 00 90 00 3D [15:59:38]RAPDU: 90 00 [15:59:38]wFMCommunicate OK [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 0D 03 02 [15:59:38]Write to MH i2c: E2 08 00 9E 2C 80 0D 03 02 00 00 00 00 45 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0B 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 0B 00 9E 2C 00 20 51 4B 3E 34 EF 16 13 90 00 8C [15:59:38]RAPDU: 20 51 4B 3E 34 EF 16 13 90 00 [15:59:38]wFMCommunicate OK [15:59:38]SAM_PROTO_SignData done [15:59:38]FM_MakeSignedData done [15:59:38]CreateOFDProtocolMessage [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 11 00 00 [15:59:38]Write to MH i2c: E2 08 00 9F 2C 80 11 00 00 00 00 00 00 45 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 9F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [15:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:59:38]wFMCommunicate OK [15:59:38]CreateOFDProtocolMessage done [15:59:38]OFDSenderStorePacket 164648 [15:59:38]StoreOFDPacket docnum=164648 [15:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 A4 07 01 E0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 6B A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 83 02 00 35 04 06 00 4D 15 80 5C A2 06 20 51 4B 3E 34 EF 16 13 [15:59:38]CheckFolder [15:59:38]dirname=/storage/ofd_packets [15:59:38]CheckFolder done [15:59:38]ProducePacketName [15:59:38]name=ofd_packets/00164648 [15:59:38]NVStorageSaveData ofd_packets/00164648 [15:59:38]File name is /storage/ofd_packets/00164648 [15:59:38]Write 301 bytes [15:59:38]NVStorageSaveData done [15:59:38]OFDSenderStorePacket done [15:59:38]KKMCreateOFDPacket done [15:59:38]NVStorageSaveData kkm_last_timestamp [15:59:38]File name is /storage/kkm_last_timestamp [15:59:38]Write 4 bytes [15:59:38]NVStorageSaveData done [15:59:38]OFD Sender: Processing packet 164648 [packets to send 104, broken 103] [15:59:38]ProducePacketName [15:59:38]name=ofd_packets/00164648 [15:59:38]OFD Sender: To server: pG, [15:59:38]CommunicateWithHost lk.salyk.kg:30040 [15:59:38]ConnectInit lk.salyk.kg [15:59:38]ExternCall_PrintAddStr [15:59:38]wPrintStart [15:59:38]Write to MH i2c: 01 00 00 A0 2C CC [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 FF 0F E1 [15:59:38]RasterBufferAndPrint [15:59:38]line Счет N : (1)458741 [15:59:38]line ИНН: 02508201610067 [15:59:38]line Контрольно-Кассовый Чек [15:59:38]line ПРОДАЖА [15:59:38]line ТРК (МРК, ГНК) : 22 [15:59:38]line Товар: 2710124130 [15:59:38]line Аи-92-К-5 [15:59:38]line 7.600 * 65.80 [15:59:38]line = 500.08 [15:59:38]line НДС 12% НСП 1% [15:59:38]line > о реализуемом товаре [15:59:38]line ОКРУГЛЕНИЕ: -0.08 [15:59:38]line ИТОГО: 500.00 [15:59:38]line Внесено: 500.00 [15:59:38]line СДАЧА: 0.00 [15:59:38]line НСП 1% : 4.42 [15:59:38]line НДС 12% : 53.11 [15:59:38]line Наличными: 500.00 [15:59:38]line Безнал.: 0.00 [15:59:38]line Место: АЗС № 72 "Партнер Нефть" [15:59:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:59:38]line СНО: Общий режим [15:59:38]line Чек 208 13.07.2024 15:59 [15:59:38]line Смена: 446 ФФД: 1.0 [15:59:38]line ЗНМ: 0300000160 [15:59:38]line РНМ: 0000000000090829 [15:59:38]line Версия ККМ: 001 [15:59:38]line ФМ: 0000000000874718 [15:59:38]line ФД: 164648 [15:59:38]line ФПД: 84754743206406 [15:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155939&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164648&fm=84754743206406&tin=02508201610067®Number=0000000000090829&sum=50000 [15:59:39]Connected sock=11 [15:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 A4 07 01 E0 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 6B A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 83 02 00 35 04 06 00 4D 15 80 5C A2 06 20 51 4B 3E 34 EF 16 13 [15:59:39]written 0, free lines is 4095 [15:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 F3 47 00 9B 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 83 02 00 F4 03 04 00 FC 4A 92 66 B6 04 01 00 00 B2 54 C4 F2 B9 67 68 D1 [15:59:39]CommunicateWithHost err = 0 [15:59:39]CheckOFDResponse [15:59:39]1017 (14) - 77093643461234 [15:59:39]1041 (16) - 0000000000874718 [15:59:39]1040 (4) - 164648 [15:59:39]1012 (4) - 13.07.2024 09:38 [15:59:39]1206 (1) - 0 [15:59:39]OFD Sender: Remove packet 164648 [15:59:39]ProducePacketName [15:59:39]name=ofd_packets/00164648 [15:59:39]NVStorageDeleteData [15:59:39]Write to MH i2c: 01 00 00 CA 2C F6 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 CA 2C 00 00 00 00 00 F2 0C FB [15:59:39]RasterBufferAndPrint [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]line [15:59:39]written 0, free lines is 3320 [15:59:39]MH_Cut [15:59:39]Write to MH i2c: D1 01 00 D1 2C 01 CF [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 01 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: D1 01 00 D1 2C 00 CE [15:59:39]Write to MH i2c: 01 00 00 D2 2C FE [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:40]OFD Sender: No OFD packet to send [15:59:40]*** Cut start [15:59:40]*** Partial cut [15:59:40]*** CUTSNS_PIN = 1 [15:59:40]*** CUTSNS_PIN = 0 [15:59:40]*** Brake cut motor [15:59:41]Read from MH i2c: 01 [15:59:41]MH_I2C_Read... [15:59:41]*** Stop cut motor [15:59:41]*** Cut end [15:59:41]Read from MH i2c: 01 07 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: 01 07 00 D2 2C 00 00 00 00 00 FF 0F 13 [15:59:41]process_action close_receipt done [15:59:41]requested_data is exist [15:59:41]produce_requested_data [15:59:41]requested_item fm.sn is exist - process it [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 11 00 00 [15:59:41]Write to MH i2c: E2 08 00 D3 2C 80 11 00 00 00 00 00 00 79 [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 17 00 D3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [15:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:59:41]wFMCommunicate OK [15:59:41]requested_item fd.num is exist - process it [15:59:41]SAM_PROTO_GetFieldsCounters [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 00 00 [15:59:41]Write to MH i2c: E2 08 00 D4 2C 80 13 00 00 00 00 00 00 7C [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 62 00 D4 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [15:59: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetFieldsCounters done [15:59:41]requested_item shift.num is exist - process it [15:59:41]requested_item shift.opened is exist - process it [15:59:41]req_shift_opened [15:59:41]FM_GetShiftState [15:59:41]SAM_PROTO_GetShiftState [15:59:41]wFMCommunicate request_size=4 [15:59:41]MH_SAM_APDU [15:59:41]CAPDU: 80 13 01 00 [15:59:41]Write to MH i2c: E2 08 00 D5 2C 80 13 01 00 00 00 00 00 7E [15:59:41]Write i2c OK [15:59:41]MH_I2C_Read... [15:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:41]Read from MH i2c: E2 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 [15:59:41]MH_I2C_Read... [15:59:41]Read from MH i2c: E2 0E 00 D5 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5F [15:59:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [15:59:41]wFMCommunicate OK [15:59:41]SAM_PROTO_GetShiftState done [15:59:41]FM_GetShiftState done [15:59:41]req_shift_opened done [15:59:41]requested_item shift.open_date is exist - process it [15:59:41]req_shift_open_date [15:59:41]req_shift_open_date done [15:59:41]produce_requested_data done [15:59:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164648,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [15:59:41]process_action_free close_receipt [15:59:41]json_value_free [15:59:41]json_value_free done [15:59:41]process_json_proto returns [15:59:41]Send response to host [15:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164648,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [15:59:41]free response buf [15:59:41]execute_script done [15:59:41]execute_script returns [15:59:41]free content buf [15:59:41]Sock 9.Close socket [15:59:41]Sock 9.Thread stoped [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:53]accept exits with 7 [16:01:53]New connection [16:01:53]New thread 3067149668 created [16:01:53]Thread 3067293028 joined [16:01:53]Waiting for new connection... [16:01:53] Sock 7.Parse request [16:01:53]Sock 7.Check first char [16:01:53]Sock 7.First char is OK [16:01:53]request: POST /json_proto HTTP/1.0 [16:01:53]Method: POST [16:01:53]URL: /json_proto [16:01:53]Method is POST - this is cgi request [16:01:53]url: /json_proto [16:01:53]query_string will be loaded in cgi processing [16:01:53]execute_cgi json_proto POST (null) [16:01:53]execute_cgi path=json_proto method=POST [16:01:53]POST find Content-Length [16:01:53]Host: 172.17.56.4:8080 [16:01:53]Content-Length: 674 [16:01:53]Content-Type: application/json [16:01:53] [16:01:53]POST finish read [16:01:53]Found Content-Length = 674 [16:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:53]execute_script... [16:01: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)458742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:53]POST & json_proto [16:01:53]process_json_proto [16:01:53]json parsed OK: [16:01:53]protocol is kg_v1.0 [16:01:53]action value=close_receipt [16:01:53]process_action close_receipt [16:01:53]cmd_close_receipt [16:01:53]MH_GetDate [16:01:53]Write to MH i2c: F0 00 00 D6 2C F1 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 09 00 [16:01:53]MH_I2C_Read... [16:01:53]Read from MH i2c: F0 09 00 D6 2C 00 F4 A4 92 66 C9 DC B2 64 45 [16:01:53]GetLastDocTimeStamp 1720886379 [16:01:53]current date 1720886516 [16:01:53]FM_GetShiftState [16:01:53]SAM_PROTO_GetShiftState [16:01:53]wFMCommunicate request_size=4 [16:01:53]MH_SAM_APDU [16:01:53]CAPDU: 80 13 01 00 [16:01:53]Write to MH i2c: E2 08 00 D7 2C 80 13 01 00 00 00 00 00 80 [16:01:53]Write i2c OK [16:01:53]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 D7 2C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 61 [16:01:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetShiftState done [16:01:54]FM_GetShiftState done [16:01:54]opened in 1720831249 [16:01:54]opened+sec_in_day 1720917649 [16:01:54]quantity*price = 50042 [16:01:54]sum+1 = 50043 [16:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 209 13.07.2024 16:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164649 ФПД: 68975532837318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160156&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164649&fm=68975532837318&tin=02508201610067®Number=0000000000090829&sum=50000 [16:01:55]StoreToDocumentArchive [16:01:55]shift 446 fd 164649 [16:01:55]save to /storage/0446/doc_00164649 [16:01:55]save last doc name /storage/0446/doc_00164649 to /storage/kkm_last_doc_name [16:01:55]save OK [16:01:55]Clear old archive folders... [16:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:55]tlvbuf is B6FAB810 [16:01:55]SAM_PROTO_ClearQueue [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 09 00 00 [16:01:55]Write to MH i2c: E2 08 00 E4 2C 80 09 00 00 00 00 00 00 82 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E4 2C 00 90 00 84 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_ClearQueue done [16:01:55]KKMCreateOFDPacket [16:01:55]OFDProtocolAddRootSTLVToBuf [16:01:55]FM_MakeSignedData [16:01:55]FM_MakeSignedData [16:01:55]SAM_PROTO_SignData [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 01 02 [16:01:55]Write to MH i2c: E2 08 00 E5 2C 80 0D 01 02 00 00 00 00 8A [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]OFD Sender: No OFD packet to send [16:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E5 2C 00 90 00 85 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=255 [16:01:55]MH_SAM_APDU [16:01: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F4 A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 83 02 00 35 04 06 00 3E BB 9E 22 [16:01:55]Write to MH i2c: E2 02 01 E6 2C 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F4 A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 83 02 00 35 04 06 00 3E BB 9E 22 00 00 E6 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E6 2C 00 90 00 86 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=7 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 02 02 02 09 C6 [16:01:55]Write to MH i2c: E2 0A 00 E7 2C 80 0D 02 02 02 00 09 C6 00 00 60 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E7 2C 00 90 00 87 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 03 02 [16:01:55]Write to MH i2c: E2 08 00 E8 2C 80 0D 03 02 00 00 00 00 8F [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 E8 2C 00 40 67 9A E5 D9 6C BD 8B 90 00 43 [16:01:55]RAPDU: 40 67 9A E5 D9 6C BD 8B 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_SignData done [16:01:55]FM_MakeSignedData done [16:01:55]CreateOFDProtocolMessage [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 11 00 00 [16:01:55]Write to MH i2c: E2 08 00 E9 2C 80 11 00 00 00 00 00 00 8F [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 17 00 E9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [16:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:55]wFMCommunicate OK [16:01:55]CreateOFDProtocolMessage done [16:01:55]OFDSenderStorePacket 164649 [16:01:55]StoreOFDPacket docnum=164649 [16:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 31 B9 04 01 60 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F4 A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 83 02 00 35 04 06 00 3E BB 9E 22 09 C6 40 67 9A E5 D9 6C BD 8B [16:01:55]CheckFolder [16:01:55]dirname=/storage/ofd_packets [16:01:55]CheckFolder done [16:01:55]ProducePacketName [16:01:55]name=ofd_packets/00164649 [16:01:55]NVStorageSaveData ofd_packets/00164649 [16:01:55]File name is /storage/ofd_packets/00164649 [16:01:55]Write 298 bytes [16:01:55]NVStorageSaveData done [16:01:55]OFDSenderStorePacket done [16:01:55]KKMCreateOFDPacket done [16:01:55]NVStorageSaveData kkm_last_timestamp [16:01:55]File name is /storage/kkm_last_timestamp [16:01:55]Write 4 bytes [16:01:55]NVStorageSaveData done [16:01:55]ExternCall_PrintAddStr [16:01:55]wPrintStart [16:01:55]Write to MH i2c: 01 00 00 EA 2C 16 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: 01 07 00 EA 2C 00 00 00 00 00 FF 0F 2B [16:01:55]RasterBufferAndPrint [16:01:55]line Счет N : (1)458742 [16:01:55]line ИНН: 02508201610067 [16:01:55]line Контрольно-Кассовый Чек [16:01:55]line ПРОДАЖА [16:01:55]line ТРК (МРК, ГНК) : 11 [16:01:55]line Товар: 2710194210 [16:01:55]line ДТ-К-5 [16:01:55]line 6.960 * 71.90 [16:01:55]line = 500.42 [16:01:55]line НДС 12% НСП 1% [16:01:55]line > о реализуемом товаре [16:01:55]line ОКРУГЛЕНИЕ: -0.42 [16:01:55]line ИТОГО: 500.00 [16:01:55]line Внесено: 500.00 [16:01:55]line СДАЧА: 0.00 [16:01:55]line НСП 1% : 4.43 [16:01:55]line НДС 12% : 53.14 [16:01:55]line Наличными: 500.00 [16:01:55]line Безнал.: 0.00 [16:01:55]line Место: АЗС № 72 "Партнер Нефть" [16:01:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:01:55]line СНО: Общий режим [16:01:55]line Чек 209 13.07.2024 16:01 [16:01:55]line Смена: 446 ФФД: 1.0 [16:01:55]line ЗНМ: 0300000160 [16:01:55]line РНМ: 0000000000090829 [16:01:55]line Версия ККМ: 001 [16:01:55]line ФМ: 0000000000874718 [16:01:55]line ФД: 164649 [16:01:55]line ФПД: 68975532837318 [16:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160156&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164649&fm=68975532837318&tin=02508201610067®Number=0000000000090829&sum=50000 [16:01:55]OFD Sender: Processing packet 164649 [packets to send 104, broken 103] [16:01:55]ProducePacketName [16:01:55]name=ofd_packets/00164649 [16:01:55]OFD Sender: To server: pG, [16:01:55]CommunicateWithHost lk.salyk.kg:30040 [16:01:55]ConnectInit lk.salyk.kg [16:01:55]written 0, free lines is 4095 [16:01:56]Connected sock=10 [16:01:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 31 B9 04 01 60 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F4 A4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 83 02 00 35 04 06 00 3E BB 9E 22 09 C6 40 67 9A E5 D9 6C BD 8B [16:01:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 63 47 00 48 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 34 37 31 38 10 04 04 00 29 83 02 00 F4 03 04 00 85 4B 92 66 B6 04 01 00 00 66 CB 76 C3 DF 33 16 6F [16:01:56]CommunicateWithHost err = 0 [16:01:56]CheckOFDResponse [16:01:56]1017 (14) - 77093643461234 [16:01:56]1041 (16) - 0000000000874718 [16:01:56]1040 (4) - 164649 [16:01:56]1012 (4) - 13.07.2024 09:40 [16:01:56]1206 (1) - 0 [16:01:56]OFD Sender: Remove packet 164649 [16:01:56]ProducePacketName [16:01:56]name=ofd_packets/00164649 [16:01:56]NVStorageDeleteData [16:01:56]Write to MH i2c: 01 00 00 14 2D 41 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 14 2D 00 00 00 00 00 F3 0C 47 [16:01:56]RasterBufferAndPrint [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]written 0, free lines is 3323 [16:01:56]MH_Cut [16:01:56]Write to MH i2c: D1 01 00 1B 2D 01 1A [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 1B 2D 00 19 [16:01:56]Write to MH i2c: 01 00 00 1C 2D 49 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]OFD Sender: No OFD packet to send [16:01:57]*** Cut start [16:01:57]*** Partial cut [16:01:57]*** CUTSNS_PIN = 1 [16:01:57]*** CUTSNS_PIN = 0 [16:01:57]*** Brake cut motor [16:01:57]Read from MH i2c: 01 [16:01:57]MH_I2C_Read... [16:01:57]*** Stop cut motor [16:01:57]*** Cut end [16:01:57]Read from MH i2c: 01 07 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: 01 07 00 1C 2D 00 00 00 00 00 FF 0F 5E [16:01:57]process_action close_receipt done [16:01:57]requested_data is exist [16:01:57]produce_requested_data [16:01:57]requested_item fm.sn is exist - process it [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 11 00 00 [16:01:57]Write to MH i2c: E2 08 00 1D 2D 80 11 00 00 00 00 00 00 C4 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 17 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 17 00 1D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [16:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:57]wFMCommunicate OK [16:01:57]requested_item fd.num is exist - process it [16:01:57]SAM_PROTO_GetFieldsCounters [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 13 00 00 [16:01:57]Write to MH i2c: E2 08 00 1E 2D 80 13 00 00 00 00 00 00 C7 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 62 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 62 00 1E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:01:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:57]wFMCommunicate OK [16:01:57]SAM_PROTO_GetFieldsCounters done [16:01:57]requested_item shift.num is exist - process it [16:01:57]requested_item shift.opened is exist - process it [16:01:57]req_shift_opened [16:01:57]FM_GetShiftState [16:01:57]SAM_PROTO_GetShiftState [16:01:57]wFMCommunicate request_size=4 [16:01:57]MH_SAM_APDU [16:01:57]CAPDU: 80 13 01 00 [16:01:57]Write to MH i2c: E2 08 00 1F 2D 80 13 01 00 00 00 00 00 C9 [16:01:57]Write i2c OK [16:01:57]MH_I2C_Read... [16:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:57]Read from MH i2c: E2 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 0E 00 [16:01:57]MH_I2C_Read... [16:01:57]Read from MH i2c: E2 0E 00 1F 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AA [16:01:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:01:57]wFMCommunicate OK [16:01:57]SAM_PROTO_GetShiftState done [16:01:57]FM_GetShiftState done [16:01:57]req_shift_opened done [16:01:57]requested_item shift.open_date is exist - process it [16:01:57]req_shift_open_date [16:01:57]req_shift_open_date done [16:01:57]produce_requested_data done [16:01:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164649,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:01:57]process_action_free close_receipt [16:01:57]json_value_free [16:01:57]json_value_free done [16:01:57]process_json_proto returns [16:01:57]Send response to host [16:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164649,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:01:57]free response buf [16:01:57]execute_script done [16:01:57]execute_script returns [16:01:57]free content buf [16:01:57]Sock 7.Close socket [16:01:57]Sock 7.Thread stoped [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:50]accept exits with 9 [16:02:50]New connection [16:02:50]New thread 3067293028 created [16:02:50]Thread 3067149668 joined [16:02:50]Waiting for new connection... [16:02:50] Sock 9.Parse request [16:02:50]Sock 9.Check first char [16:02:50]Sock 9.First char is OK [16:02:50]request: POST /json_proto HTTP/1.0 [16:02:50]Method: POST [16:02:50]URL: /json_proto [16:02:50]Method is POST - this is cgi request [16:02:50]url: /json_proto [16:02:50]query_string will be loaded in cgi processing [16:02:50]execute_cgi json_proto POST (null) [16:02:50]execute_cgi path=json_proto method=POST [16:02:50]POST find Content-Length [16:02:50]Host: 172.17.56.4:8080 [16:02:50]Content-Length: 679 [16:02:50]Content-Type: application/json [16:02:50] [16:02:50]POST finish read [16:02:50]Found Content-Length = 679 [16:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:50]execute_script... [16:02: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)458743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:50]POST & json_proto [16:02:50]process_json_proto [16:02:50]json parsed OK: [16:02:50]protocol is kg_v1.0 [16:02:50]action value=close_receipt [16:02:50]process_action close_receipt [16:02:50]cmd_close_receipt [16:02:50]MH_GetDate [16:02:50]Write to MH i2c: F0 00 00 20 2D 3C [16:02:50]Write i2c OK [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: F0 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: F0 09 00 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: F0 09 00 20 2D 00 2D A5 92 66 C9 DC B2 64 CA [16:02:50]GetLastDocTimeStamp 1720886516 [16:02:50]current date 1720886573 [16:02:50]FM_GetShiftState [16:02:50]SAM_PROTO_GetShiftState [16:02:50]wFMCommunicate request_size=4 [16:02:50]MH_SAM_APDU [16:02:50]CAPDU: 80 13 01 00 [16:02:50]Write to MH i2c: E2 08 00 21 2D 80 13 01 00 00 00 00 00 CB [16:02:50]Write i2c OK [16:02:50]MH_I2C_Read... [16:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:50]Read from MH i2c: E2 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 0E 00 [16:02:50]MH_I2C_Read... [16:02:50]Read from MH i2c: E2 0E 00 21 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [16:02:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:02:50]wFMCommunicate OK [16:02:50]SAM_PROTO_GetShiftState done [16:02:50]FM_GetShiftState done [16:02:50]opened in 1720831249 [16:02:50]opened+sec_in_day 1720917649 [16:02:50]quantity*price = 100012 [16:02:50]sum+1 = 100014 [16:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 210 13.07.2024 16:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164650 ФПД: 129998001333678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160253&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164650&fm=129998001333678&tin=02508201610067®Number=0000000000090829&sum=100000 [16:02:52]StoreToDocumentArchive [16:02:52]shift 446 fd 164650 [16:02:52]save to /storage/0446/doc_00164650 [16:02:52]save last doc name /storage/0446/doc_00164650 to /storage/kkm_last_doc_name [16:02:52]save OK [16:02:52]Clear old archive folders... [16:02:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:52]tlvbuf is B6DFB8A0 [16:02:52]SAM_PROTO_ClearQueue [16:02:52]wFMCommunicate request_size=4 [16:02:52]MH_SAM_APDU [16:02:52]CAPDU: 80 09 00 00 [16:02:52]Write to MH i2c: E2 08 00 2E 2D 80 09 00 00 00 00 00 00 CD [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [16:02:52]RAPDU: 90 00 [16:02:52]wFMCommunicate OK [16:02:52]SAM_PROTO_ClearQueue done [16:02:52]KKMCreateOFDPacket [16:02:52]OFDProtocolAddRootSTLVToBuf [16:02:52]FM_MakeSignedData [16:02:52]FM_MakeSignedData [16:02:52]SAM_PROTO_SignData [16:02:52]wFMCommunicate request_size=4 [16:02:52]MH_SAM_APDU [16:02:52]CAPDU: 80 0D 01 02 [16:02:52]Write to MH i2c: E2 08 00 2F 2D 80 0D 01 02 00 00 00 00 D5 [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 2F 2D 00 90 00 D0 [16:02:52]RAPDU: 90 00 [16:02:52]wFMCommunicate OK [16:02:52]wFMCommunicate request_size=255 [16:02:52]MH_SAM_APDU [16:02: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 00 00 00 F4 03 04 00 2D A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 83 02 00 35 04 06 00 76 3B 84 B0 [16:02:52]Write to MH i2c: E2 02 01 30 2D 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 00 00 00 F4 03 04 00 2D A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 83 02 00 35 04 06 00 76 3B 84 B0 00 00 85 [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 30 2D 00 90 00 D1 [16:02:52]RAPDU: 90 00 [16:02:52]wFMCommunicate OK [16:02:52]wFMCommunicate request_size=7 [16:02:52]MH_SAM_APDU [16:02:52]CAPDU: 80 0D 02 02 02 E5 AE [16:02:52]Write to MH i2c: E2 0A 00 31 2D 80 0D 02 02 02 00 E5 AE 00 00 6F [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 03 00 31 2D 00 90 00 D2 [16:02:52]RAPDU: 90 00 [16:02:52]wFMCommunicate OK [16:02:52]wFMCommunicate request_size=4 [16:02:52]MH_SAM_APDU [16:02:52]CAPDU: 80 0D 03 02 [16:02:52]Write to MH i2c: E2 08 00 32 2D 80 0D 03 02 00 00 00 00 DA [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 0B 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 0B 00 32 2D 00 26 B5 1F 9D 2E EF 6D 0D 90 00 09 [16:02:52]RAPDU: 26 B5 1F 9D 2E EF 6D 0D 90 00 [16:02:52]wFMCommunicate OK [16:02:52]SAM_PROTO_SignData done [16:02:52]FM_MakeSignedData done [16:02:52]CreateOFDProtocolMessage [16:02:52]wFMCommunicate request_size=4 [16:02:52]MH_SAM_APDU [16:02:52]CAPDU: 80 11 00 00 [16:02:52]Write to MH i2c: E2 08 00 33 2D 80 11 00 00 00 00 00 00 DA [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:52]Read from MH i2c: E2 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 17 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: E2 17 00 33 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [16:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:52]wFMCommunicate OK [16:02:52]CreateOFDProtocolMessage done [16:02:52]OFDSenderStorePacket 164650 [16:02:52]StoreOFDPacket docnum=164650 [16:02:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 CC 04 01 33 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 00 00 00 F4 03 04 00 2D A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 83 02 00 35 04 06 00 76 3B 84 B0 E5 AE 26 B5 1F 9D 2E EF 6D 0D [16:02:52]CheckFolder [16:02:52]dirname=/storage/ofd_packets [16:02:52]CheckFolder done [16:02:52]ProducePacketName [16:02:52]name=ofd_packets/00164650 [16:02:52]NVStorageSaveData ofd_packets/00164650 [16:02:52]File name is /storage/ofd_packets/00164650 [16:02:52]Write 298 bytes [16:02:52]NVStorageSaveData done [16:02:52]OFDSenderStorePacket done [16:02:52]KKMCreateOFDPacket done [16:02:52]NVStorageSaveData kkm_last_timestamp [16:02:52]File name is /storage/kkm_last_timestamp [16:02:52]Write 4 bytes [16:02:52]NVStorageSaveData done [16:02:52]ExternCall_PrintAddStr [16:02:52]wPrintStart [16:02:52]Write to MH i2c: 01 00 00 34 2D 61 [16:02:52]Write i2c OK [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: 01 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: 01 07 00 [16:02:52]MH_I2C_Read... [16:02:52]Read from MH i2c: 01 07 00 34 2D 00 00 00 00 00 FF 0F 76 [16:02:52]RasterBufferAndPrint [16:02:52]line Счет N : (1)458743 [16:02:52]line ИНН: 02508201610067 [16:02:52]line Контрольно-Кассовый Чек [16:02:52]line ПРОДАЖА [16:02:52]line ТРК (МРК, ГНК) : 11 [16:02:52]line Товар: 2710194210 [16:02:52]line ДТ-К-5 [16:02:52]line 13.910 * 71.90 [16:02:52]line = 1000.13 [16:02:52]line НДС 12% НСП 1% [16:02:52]line > о реализуемом товаре [16:02:52]line ОКРУГЛЕНИЕ: -0.13 [16:02:52]line ИТОГО: 1000.00 [16:02:52]line Внесено: 1000.00 [16:02:52]line СДАЧА: 0.00 [16:02:52]line НСП 1% : 8.85 [16:02:52]line НДС 12% : 106.21 [16:02:52]line Наличными: 1000.00 [16:02:52]line Безнал.: 0.00 [16:02:52]line Место: АЗС № 72 "Партнер Нефть" [16:02:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:02:52]line СНО: Общий режим [16:02:52]line Чек 210 13.07.2024 16:02 [16:02:52]line Смена: 446 ФФД: 1.0 [16:02:52]line ЗНМ: 0300000160 [16:02:52]line РНМ: 0000000000090829 [16:02:52]line Версия ККМ: 001 [16:02:52]line ФМ: 0000000000874718 [16:02:52]line ФД: 164650 [16:02:52]line ФПД: 129998001333678 [16:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160253&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164650&fm=129998001333678&tin=02508201610067®Number=0000000000090829&sum=100000 [16:02:52]OFD Sender: Processing packet 164650 [packets to send 104, broken 103] [16:02:52]ProducePacketName [16:02:52]name=ofd_packets/00164650 [16:02:52]OFD Sender: To server: pG, [16:02:52]CommunicateWithHost lk.salyk.kg:30040 [16:02:52]ConnectInit lk.salyk.kg [16:02:52]written 0, free lines is 4095 [16:02:52]Connected sock=10 [16:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 CC 04 01 33 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 00 00 00 F4 03 04 00 2D A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 83 02 00 35 04 06 00 76 3B 84 B0 E5 AE 26 B5 1F 9D 2E EF 6D 0D [16:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4C CD 47 00 7B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 83 02 00 F4 03 04 00 BE 4B 92 66 B6 04 01 00 00 0F 51 83 11 6F AF 9F D6 [16:02:53]CommunicateWithHost err = 0 [16:02:53]CheckOFDResponse [16:02:53]1017 (14) - 77093643461234 [16:02:53]1041 (16) - 0000000000874718 [16:02:53]1040 (4) - 164650 [16:02:53]1012 (4) - 13.07.2024 09:41 [16:02:53]1206 (1) - 0 [16:02:53]OFD Sender: Remove packet 164650 [16:02:53]ProducePacketName [16:02:53]name=ofd_packets/00164650 [16:02:53]NVStorageDeleteData [16:02:53]Write to MH i2c: 01 00 00 5E 2D 8B [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 5E 2D 00 00 00 00 00 02 0D A1 [16:02:53]RasterBufferAndPrint [16:02:53]line [16:02:53]line [16:02:53]line [16:02:53]line [16:02:53]line [16:02:53]written 0, free lines is 3336 [16:02:53]MH_Cut [16:02:53]Write to MH i2c: D1 01 00 65 2D 01 64 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: D1 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: D1 01 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: D1 01 00 65 2D 00 63 [16:02:53]Write to MH i2c: 01 00 00 66 2D 93 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]OFD Sender: No OFD packet to send [16:02:54]*** Cut start [16:02:54]*** Partial cut [16:02:54]*** CUTSNS_PIN = 1 [16:02:54]*** CUTSNS_PIN = 0 [16:02:54]*** Brake cut motor [16:02:54]Read from MH i2c: 01 [16:02:54]MH_I2C_Read... [16:02:54]*** Stop cut motor [16:02:54]*** Cut end [16:02:54]Read from MH i2c: 01 07 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 07 00 66 2D 00 00 00 00 00 FF 0F A8 [16:02:54]process_action close_receipt done [16:02:54]requested_data is exist [16:02:54]produce_requested_data [16:02:54]requested_item fm.sn is exist - process it [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 11 00 00 [16:02:54]Write to MH i2c: E2 08 00 67 2D 80 11 00 00 00 00 00 00 0E [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 17 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 17 00 67 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [16:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:02:54]wFMCommunicate OK [16:02:54]requested_item fd.num is exist - process it [16:02:54]SAM_PROTO_GetFieldsCounters [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 13 00 00 [16:02:54]Write to MH i2c: E2 08 00 68 2D 80 13 00 00 00 00 00 00 11 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 62 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 62 00 68 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:54]wFMCommunicate OK [16:02:54]SAM_PROTO_GetFieldsCounters done [16:02:54]requested_item shift.num is exist - process it [16:02:54]requested_item shift.opened is exist - process it [16:02:54]req_shift_opened [16:02:54]FM_GetShiftState [16:02:54]SAM_PROTO_GetShiftState [16:02:54]wFMCommunicate request_size=4 [16:02:54]MH_SAM_APDU [16:02:54]CAPDU: 80 13 01 00 [16:02:54]Write to MH i2c: E2 08 00 69 2D 80 13 01 00 00 00 00 00 13 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:54]Read from MH i2c: E2 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 0E 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: E2 0E 00 69 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F4 [16:02:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:02:54]wFMCommunicate OK [16:02:54]SAM_PROTO_GetShiftState done [16:02:54]FM_GetShiftState done [16:02:54]req_shift_opened done [16:02:54]requested_item shift.open_date is exist - process it [16:02:54]req_shift_open_date [16:02:54]req_shift_open_date done [16:02:54]produce_requested_data done [16:02:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164650,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:02:54]process_action_free close_receipt [16:02:54]json_value_free [16:02:54]json_value_free done [16:02:54]process_json_proto returns [16:02:54]Send response to host [16:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164650,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:02:54]free response buf [16:02:54]execute_script done [16:02:54]execute_script returns [16:02:54]free content buf [16:02:54]Sock 9.Close socket [16:02:54]Sock 9.Thread stoped [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]accept exits with 7 [16:04:53]New connection [16:04:53]New thread 3067149668 created [16:04:53]Thread 3067293028 joined [16:04:53]Waiting for new connection... [16:04:53] Sock 7.Parse request [16:04:53]Sock 7.Check first char [16:04:53]Sock 7.First char is OK [16:04:53]request: POST /json_proto HTTP/1.0 [16:04:53]Method: POST [16:04:53]URL: /json_proto [16:04:53]Method is POST - this is cgi request [16:04:53]url: /json_proto [16:04:53]query_string will be loaded in cgi processing [16:04:53]execute_cgi json_proto POST (null) [16:04:53]execute_cgi path=json_proto method=POST [16:04:53]POST find Content-Length [16:04:53]Host: 172.17.56.4:8080 [16:04:53]Content-Length: 637 [16:04:53]Content-Type: application/json [16:04:53] [16:04:53]POST finish read [16:04:53]Found Content-Length = 637 [16:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:53]execute_script... [16: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)458744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:53]POST & json_proto [16:04:53]process_json_proto [16:04:53]json parsed OK: [16:04:53]protocol is kg_v1.0 [16:04:53]action value=close_receipt [16:04:53]process_action close_receipt [16:04:53]cmd_close_receipt [16:04:53]MH_GetDate [16:04:53]Write to MH i2c: F0 00 00 6A 2D 86 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: F0 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: F0 09 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: F0 09 00 6A 2D 00 A7 A5 92 66 C9 DC B2 64 8E [16:04:53]GetLastDocTimeStamp 1720886573 [16:04:53]current date 1720886695 [16:04:53]FM_GetShiftState [16:04:53]SAM_PROTO_GetShiftState [16:04:53]wFMCommunicate request_size=4 [16:04:53]MH_SAM_APDU [16:04:53]CAPDU: 80 13 01 00 [16:04:53]Write to MH i2c: E2 08 00 6B 2D 80 13 01 00 00 00 00 00 15 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:53]Read from MH i2c: E2 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 0E 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 0E 00 6B 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [16:04:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:04:53]wFMCommunicate OK [16:04:53]SAM_PROTO_GetShiftState done [16:04:53]FM_GetShiftState done [16:04:53]opened in 1720831249 [16:04:53]opened+sec_in_day 1720917649 [16:04:53]quantity*price = 71900 [16:04:53]sum+1 = 71901 [16:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 211 13.07.2024 16:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164651 ФПД: 91318446533042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164651&fm=91318446533042&tin=02508201610067®Number=0000000000090829&sum=71900 [16:04:54]StoreToDocumentArchive [16:04:54]shift 446 fd 164651 [16:04:54]save to /storage/0446/doc_00164651 [16:04:54]save last doc name /storage/0446/doc_00164651 to /storage/kkm_last_doc_name [16:04:54]save OK [16:04:54]Clear old archive folders... [16:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:04:54]tlvbuf is 01478F20 [16:04:54]SAM_PROTO_ClearQueue [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 09 00 00 [16:04:54]Write to MH i2c: E2 08 00 78 2D 80 09 00 00 00 00 00 00 17 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [16:04:54]RAPDU: 90 00 [16:04:54]wFMCommunicate OK [16:04:54]SAM_PROTO_ClearQueue done [16:04:54]KKMCreateOFDPacket [16:04:54]OFDProtocolAddRootSTLVToBuf [16:04:54]FM_MakeSignedData [16:04:54]FM_MakeSignedData [16:04:54]SAM_PROTO_SignData [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 0D 01 02 [16:04:54]Write to MH i2c: E2 08 00 79 2D 80 0D 01 02 00 00 00 00 1F [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [16:04:54]RAPDU: 90 00 [16:04:54]wFMCommunicate OK [16:04:54]wFMCommunicate request_size=255 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A7 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 83 02 00 35 04 06 00 53 0D BB 91 [16:04:54]Write to MH i2c: E2 02 01 7A 2D 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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A7 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 83 02 00 35 04 06 00 53 0D BB 91 00 00 6A [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [16:04:54]RAPDU: 90 00 [16:04:54]wFMCommunicate OK [16:04:54]wFMCommunicate request_size=7 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 0D 02 02 02 29 B2 [16:04:54]Write to MH i2c: E2 0A 00 7B 2D 80 0D 02 02 02 00 29 B2 00 00 01 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 03 00 7B 2D 00 90 00 1C [16:04:54]RAPDU: 90 00 [16:04:54]wFMCommunicate OK [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 0D 03 02 [16:04:54]Write to MH i2c: E2 08 00 7C 2D 80 0D 03 02 00 00 00 00 24 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0B 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0B 00 7C 2D 00 9A DD 53 05 CE 48 0F 93 90 00 AC [16:04:54]RAPDU: 9A DD 53 05 CE 48 0F 93 90 00 [16:04:54]wFMCommunicate OK [16:04:54]SAM_PROTO_SignData done [16:04:54]FM_MakeSignedData done [16:04:54]CreateOFDProtocolMessage [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 11 00 00 [16:04:54]Write to MH i2c: E2 08 00 7D 2D 80 11 00 00 00 00 00 00 24 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 17 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 17 00 7D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [16:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:54]wFMCommunicate OK [16:04:54]CreateOFDProtocolMessage done [16:04:54]OFDSenderStorePacket 164651 [16:04:54]StoreOFDPacket docnum=164651 [16:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F9 30 04 01 D8 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A7 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 83 02 00 35 04 06 00 53 0D BB 91 29 B2 9A DD 53 05 CE 48 0F 93 [16:04:54]CheckFolder [16:04:54]dirname=/storage/ofd_packets [16:04:54]CheckFolder done [16:04:54]ProducePacketName [16:04:54]name=ofd_packets/00164651 [16:04:54]NVStorageSaveData ofd_packets/00164651 [16:04:54]File name is /storage/ofd_packets/00164651 [16:04:54]Write 298 bytes [16:04:54]NVStorageSaveData done [16:04:54]OFDSenderStorePacket done [16:04:54]KKMCreateOFDPacket done [16:04:54]NVStorageSaveData kkm_last_timestamp [16:04:54]File name is /storage/kkm_last_timestamp [16:04:54]Write 4 bytes [16:04:54]NVStorageSaveData done [16:04:54]ExternCall_PrintAddStr [16:04:54]wPrintStart [16:04:54]Write to MH i2c: 01 00 00 7E 2D AB [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 7E 2D 00 00 00 00 00 FF 0F C0 [16:04:54]RasterBufferAndPrint [16:04:54]line Счет N : (1)458744 [16:04:54]line ИНН: 02508201610067 [16:04:54]line Контрольно-Кассовый Чек [16:04:54]line ПРОДАЖА [16:04:54]line ТРК (МРК, ГНК) : 21 [16:04:54]line Товар: 2710194210 [16:04:54]line ДТ-К-5 [16:04:54]line 10.000 * 71.90 [16:04:54]line = 719.00 [16:04:54]line НДС 12% НСП 1% [16:04:54]line > о реализуемом товаре [16:04:54]line ИТОГО: 719.00 [16:04:54]line НСП 1% : 6.36 [16:04:54]line НДС 12% : 76.35 [16:04:54]line Наличными: 719.00 [16:04:54]line Безнал.: 0.00 [16:04:54]line Место: АЗС № 72 "Партнер Нефть" [16:04:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:04:54]line СНО: Общий режим [16:04:54]line Чек 211 13.07.2024 16:04 [16:04:54]line Смена: 446 ФФД: 1.0 [16:04:54]line ЗНМ: 0300000160 [16:04:54]line РНМ: 0000000000090829 [16:04:54]line Версия ККМ: 001 [16:04:54]line ФМ: 0000000000874718 [16:04:54]line ФД: 164651 [16:04:54]line ФПД: 91318446533042 [16:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164651&fm=91318446533042&tin=02508201610067®Number=0000000000090829&sum=71900 [16:04:55]OFD Sender: Processing packet 164651 [packets to send 104, broken 103] [16:04:55]ProducePacketName [16:04:55]name=ofd_packets/00164651 [16:04:55]OFD Sender: To server: pG, [16:04:55]CommunicateWithHost lk.salyk.kg:30040 [16:04:55]ConnectInit lk.salyk.kg [16:04:55]written 0, free lines is 4095 [16:04:55]Connected sock=10 [16: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 34 37 31 38 0C 01 00 00 F9 30 04 01 D8 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A7 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 83 02 00 35 04 06 00 53 0D BB 91 29 B2 9A DD 53 05 CE 48 0F 93 [16:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DA 51 47 00 D1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 83 02 00 F4 03 04 00 38 4C 92 66 B6 04 01 00 00 05 A8 EE 74 47 D3 4A BB [16:04:55]CommunicateWithHost err = 0 [16:04:55]CheckOFDResponse [16:04:55]1017 (14) - 77093643461234 [16:04:55]1041 (16) - 0000000000874718 [16:04:55]1040 (4) - 164651 [16:04:55]1012 (4) - 13.07.2024 09:43 [16:04:55]1206 (1) - 0 [16:04:55]OFD Sender: Remove packet 164651 [16:04:55]ProducePacketName [16:04:55]name=ofd_packets/00164651 [16:04:55]NVStorageDeleteData [16:04:55]Write to MH i2c: 01 00 00 A5 2D D2 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 10 0D F6 [16:04:55]RasterBufferAndPrint [16:04:55]line [16:04:55]line [16:04:55]line [16:04:55]line [16:04:55]line [16:04:55]written 0, free lines is 3350 [16:04:55]MH_Cut [16:04:55]Write to MH i2c: D1 01 00 AC 2D 01 AB [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: D1 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: D1 01 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: D1 01 00 AC 2D 00 AA [16:04:55]Write to MH i2c: 01 00 00 AD 2D DA [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]OFD Sender: No OFD packet to send [16:04:56]*** Cut start [16:04:56]*** Partial cut [16:04:56]*** CUTSNS_PIN = 1 [16:04:56]*** CUTSNS_PIN = 0 [16:04:56]*** Brake cut motor [16:04:56]Read from MH i2c: 01 [16:04:56]MH_I2C_Read... [16:04:56]*** Stop cut motor [16:04:56]*** Cut end [16:04:56]Read from MH i2c: 01 07 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [16:04:56]process_action close_receipt done [16:04:56]requested_data is exist [16:04:56]produce_requested_data [16:04:56]requested_item fm.sn is exist - process it [16:04:56]wFMCommunicate request_size=4 [16:04:56]MH_SAM_APDU [16:04:56]CAPDU: 80 11 00 00 [16:04:56]Write to MH i2c: E2 08 00 AE 2D 80 11 00 00 00 00 00 00 55 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 [16:04:56]MH_I2C_Read... [16:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:56]Read from MH i2c: E2 17 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 17 00 AE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [16:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:56]wFMCommunicate OK [16:04:56]requested_item fd.num is exist - process it [16:04:56]SAM_PROTO_GetFieldsCounters [16:04:56]wFMCommunicate request_size=4 [16:04:56]MH_SAM_APDU [16:04:56]CAPDU: 80 13 00 00 [16:04:56]Write to MH i2c: E2 08 00 AF 2D 80 13 00 00 00 00 00 00 58 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:56]Read from MH i2c: E2 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 62 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 62 00 AF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [16:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:56]wFMCommunicate OK [16:04:56]SAM_PROTO_GetFieldsCounters done [16:04:56]requested_item shift.num is exist - process it [16:04:56]requested_item shift.opened is exist - process it [16:04:56]req_shift_opened [16:04:56]FM_GetShiftState [16:04:56]SAM_PROTO_GetShiftState [16:04:56]wFMCommunicate request_size=4 [16:04:56]MH_SAM_APDU [16:04:56]CAPDU: 80 13 01 00 [16:04:56]Write to MH i2c: E2 08 00 B0 2D 80 13 01 00 00 00 00 00 5A [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:56]Read from MH i2c: E2 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 0E 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 0E 00 B0 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3B [16:04:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:04:56]wFMCommunicate OK [16:04:56]SAM_PROTO_GetShiftState done [16:04:56]FM_GetShiftState done [16:04:56]req_shift_opened done [16:04:56]requested_item shift.open_date is exist - process it [16:04:56]req_shift_open_date [16:04:56]req_shift_open_date done [16:04:56]produce_requested_data done [16:04:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164651,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:04:56]process_action_free close_receipt [16:04:56]json_value_free [16:04:56]json_value_free done [16:04:56]process_json_proto returns [16:04:56]Send response to host [16:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164651,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:04:56]free response buf [16:04:56]execute_script done [16:04:56]execute_script returns [16:04:56]free content buf [16:04:56]Sock 7.Close socket [16:04:56]Sock 7.Thread stoped [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:18]accept exits with 9 [16:05:18]New connection [16:05:18]New thread 3067293028 created [16:05:18]Thread 3067149668 joined [16:05:18]Waiting for new connection... [16:05:18] Sock 9.Parse request [16:05:18]Sock 9.Check first char [16:05:18]Sock 9.First char is OK [16:05:18]request: POST /json_proto HTTP/1.0 [16:05:18]Method: POST [16:05:18]URL: /json_proto [16:05:18]Method is POST - this is cgi request [16:05:18]url: /json_proto [16:05:18]query_string will be loaded in cgi processing [16:05:18]execute_cgi json_proto POST (null) [16:05:18]execute_cgi path=json_proto method=POST [16:05:18]POST find Content-Length [16:05:18]Host: 172.17.56.4:8080 [16:05:18]Content-Length: 677 [16:05:18]Content-Type: application/json [16:05:18] [16:05:18]POST finish read [16:05:18]Found Content-Length = 677 [16:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:18]execute_script... [16:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:18]POST & json_proto [16:05:18]process_json_proto [16:05:18]json parsed OK: [16:05:18]protocol is kg_v1.0 [16:05:18]action value=close_receipt [16:05:18]process_action close_receipt [16:05:18]cmd_close_receipt [16:05:18]MH_GetDate [16:05:18]Write to MH i2c: F0 00 00 B1 2D CD [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: F0 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: F0 09 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: F0 09 00 B1 2D 00 C0 A5 92 66 C9 DC B2 64 EE [16:05:18]GetLastDocTimeStamp 1720886695 [16:05:18]current date 1720886720 [16:05:18]FM_GetShiftState [16:05:18]SAM_PROTO_GetShiftState [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 01 00 [16:05:18]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3D [16:05:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetShiftState done [16:05:18]FM_GetShiftState done [16:05:18]opened in 1720831249 [16:05:18]opened+sec_in_day 1720917649 [16:05:18]quantity*price = 50008 [16:05:18]sum+1 = 50009 [16:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 212 13.07.2024 16:05 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164652 ФПД: 180871885478332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164652&fm=180871885478332&tin=02508201610067®Number=0000000000090829&sum=50000 [16:05:19]StoreToDocumentArchive [16:05:19]shift 446 fd 164652 [16:05:19]save to /storage/0446/doc_00164652 [16:05:19]save last doc name /storage/0446/doc_00164652 to /storage/kkm_last_doc_name [16:05:19]save OK [16:05:19]Clear old archive folders... [16:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:19]tlvbuf is 0146DBB0 [16:05:19]SAM_PROTO_ClearQueue [16:05:19]wFMCommunicate request_size=4 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 09 00 00 [16:05:19]Write to MH i2c: E2 08 00 BF 2D 80 09 00 00 00 00 00 00 5E [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [16:05:19]RAPDU: 90 00 [16:05:19]wFMCommunicate OK [16:05:19]SAM_PROTO_ClearQueue done [16:05:19]KKMCreateOFDPacket [16:05:19]OFDProtocolAddRootSTLVToBuf [16:05:19]FM_MakeSignedData [16:05:19]FM_MakeSignedData [16:05:19]SAM_PROTO_SignData [16:05:19]wFMCommunicate request_size=4 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 0D 01 02 [16:05:19]Write to MH i2c: E2 08 00 C0 2D 80 0D 01 02 00 00 00 00 66 [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [16:05:19]RAPDU: 90 00 [16:05:19]wFMCommunicate OK [16:05:19]wFMCommunicate request_size=255 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 C0 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 83 02 00 35 04 06 00 A4 [16:05:19]Write to MH i2c: E2 02 01 C1 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 C0 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 83 02 00 35 04 06 00 A4 00 00 24 [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [16:05:19]RAPDU: 90 00 [16:05:19]wFMCommunicate OK [16:05:19]wFMCommunicate request_size=10 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 0D 02 02 05 80 84 7B D9 BC [16:05:19]Write to MH i2c: E2 0D 00 C2 2D 80 0D 02 02 05 00 80 84 7B D9 BC 00 00 87 [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [16:05:19]RAPDU: 90 00 [16:05:19]wFMCommunicate OK [16:05:19]wFMCommunicate request_size=4 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 0D 03 02 [16:05:19]Write to MH i2c: E2 08 00 C3 2D 80 0D 03 02 00 00 00 00 6B [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 0B 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 0B 00 C3 2D 00 28 B4 03 37 1A 67 38 BA 90 00 F5 [16:05:19]RAPDU: 28 B4 03 37 1A 67 38 BA 90 00 [16:05:19]wFMCommunicate OK [16:05:19]SAM_PROTO_SignData done [16:05:19]FM_MakeSignedData done [16:05:19]CreateOFDProtocolMessage [16:05:19]wFMCommunicate request_size=4 [16:05:19]MH_SAM_APDU [16:05:19]CAPDU: 80 11 00 00 [16:05:19]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:19]Read from MH i2c: E2 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 17 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [16:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:05:19]wFMCommunicate OK [16:05:19]CreateOFDProtocolMessage done [16:05:19]OFDSenderStorePacket 164652 [16:05:19]StoreOFDPacket docnum=164652 [16:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 34 07 01 0C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 C0 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 83 02 00 35 04 06 00 A4 80 84 7B D9 BC 28 B4 03 37 1A 67 38 BA [16:05:19]CheckFolder [16:05:19]dirname=/storage/ofd_packets [16:05:19]CheckFolder done [16:05:19]ProducePacketName [16:05:19]name=ofd_packets/00164652 [16:05:19]NVStorageSaveData ofd_packets/00164652 [16:05:19]File name is /storage/ofd_packets/00164652 [16:05:19]Write 301 bytes [16:05:19]NVStorageSaveData done [16:05:19]OFDSenderStorePacket done [16:05:19]KKMCreateOFDPacket done [16:05:19]NVStorageSaveData kkm_last_timestamp [16:05:19]File name is /storage/kkm_last_timestamp [16:05:19]Write 4 bytes [16:05:19]NVStorageSaveData done [16:05:19]ExternCall_PrintAddStr [16:05:19]wPrintStart [16:05:19]Write to MH i2c: 01 00 00 C5 2D F2 [16:05:19]Write i2c OK [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: 01 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: 01 07 00 [16:05:19]MH_I2C_Read... [16:05:19]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [16:05:19]RasterBufferAndPrint [16:05:19]line Счет N : (1)458745 [16:05:19]line ИНН: 02508201610067 [16:05:19]line Контрольно-Кассовый Чек [16:05:19]line ПРОДАЖА [16:05:19]line ТРК (МРК, ГНК) : 22 [16:05:19]line Товар: 2710124130 [16:05:19]line Аи-92-К-5 [16:05:19]line 7.600 * 65.80 [16:05:19]line = 500.08 [16:05:19]line НДС 12% НСП 1% [16:05:19]line > о реализуемом товаре [16:05:19]line ОКРУГЛЕНИЕ: -0.08 [16:05:19]line ИТОГО: 500.00 [16:05:19]line Внесено: 500.00 [16:05:19]line СДАЧА: 0.00 [16:05:19]line НСП 1% : 4.42 [16:05:19]line НДС 12% : 53.11 [16:05:19]line Наличными: 500.00 [16:05:19]line Безнал.: 0.00 [16:05:19]line Место: АЗС № 72 "Партнер Нефть" [16:05:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:05:19]line СНО: Общий режим [16:05:19]line Чек 212 13.07.2024 16:05 [16:05:19]line Смена: 446 ФФД: 1.0 [16:05:19]line ЗНМ: 0300000160 [16:05:19]line РНМ: 0000000000090829 [16:05:19]line Версия ККМ: 001 [16:05:19]line ФМ: 0000000000874718 [16:05:19]line ФД: 164652 [16:05:19]line ФПД: 180871885478332 [16:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164652&fm=180871885478332&tin=02508201610067®Number=0000000000090829&sum=50000 [16:05:20]OFD Sender: Processing packet 164652 [packets to send 104, broken 103] [16:05:20]ProducePacketName [16:05:20]name=ofd_packets/00164652 [16:05:20]OFD Sender: To server: pG, [16:05:20]CommunicateWithHost lk.salyk.kg:30040 [16:05:20]ConnectInit lk.salyk.kg [16:05:20]written 0, free lines is 4095 [16:05:20]Connected sock=11 [16:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 34 07 01 0C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 C0 A5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 83 02 00 35 04 06 00 A4 80 84 7B D9 BC 28 B4 03 37 1A 67 38 BA [16:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 A1 47 00 3C B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 83 02 00 F4 03 04 00 51 4C 92 66 B6 04 01 00 00 22 F8 88 5F AF CE AD 0F [16:05:20]CommunicateWithHost err = 0 [16:05:20]CheckOFDResponse [16:05:20]1017 (14) - 77093643461234 [16:05:20]1041 (16) - 0000000000874718 [16:05:20]1040 (4) - 164652 [16:05:20]1012 (4) - 13.07.2024 09:43 [16:05:20]1206 (1) - 0 [16:05:20]OFD Sender: Remove packet 164652 [16:05:20]ProducePacketName [16:05:20]name=ofd_packets/00164652 [16:05:20]NVStorageDeleteData [16:05:20]Write to MH i2c: 01 00 00 EF 2D 1C [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: 01 07 00 EF 2D 00 00 00 00 00 FE 0C 2D [16:05:20]RasterBufferAndPrint [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]line [16:05:20]written 0, free lines is 3332 [16:05:20]MH_Cut [16:05:20]Write to MH i2c: D1 01 00 F6 2D 01 F5 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 01 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: D1 01 00 F6 2D 00 F4 [16:05:20]Write to MH i2c: 01 00 00 F7 2D 24 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:21]OFD Sender: No OFD packet to send [16:05:21]*** Cut start [16:05:21]*** Partial cut [16:05:21]*** CUTSNS_PIN = 1 [16:05:21]*** CUTSNS_PIN = 0 [16:05:21]*** Brake cut motor [16:05:22]Read from MH i2c: 01 [16:05:22]MH_I2C_Read... [16:05:22]*** Stop cut motor [16:05:22]Read from MH i2c: 01 07 00 [16:05:22]MH_I2C_Read... [16:05:22]*** Cut end [16:05:22]Read from MH i2c: 01 07 00 F7 2D 00 00 00 00 00 FF 0F 39 [16:05:22]process_action close_receipt done [16:05:22]requested_data is exist [16:05:22]produce_requested_data [16:05:22]requested_item fm.sn is exist - process it [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 11 00 00 [16:05:22]Write to MH i2c: E2 08 00 F8 2D 80 11 00 00 00 00 00 00 9F [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 17 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 17 00 F8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [16:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:05:22]wFMCommunicate OK [16:05:22]requested_item fd.num is exist - process it [16:05:22]SAM_PROTO_GetFieldsCounters [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 13 00 00 [16:05:22]Write to MH i2c: E2 08 00 F9 2D 80 13 00 00 00 00 00 00 A2 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 62 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 62 00 F9 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:22]wFMCommunicate OK [16:05:22]SAM_PROTO_GetFieldsCounters done [16:05:22]requested_item shift.num is exist - process it [16:05:22]requested_item shift.opened is exist - process it [16:05:22]req_shift_opened [16:05:22]FM_GetShiftState [16:05:22]SAM_PROTO_GetShiftState [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 13 01 00 [16:05:22]Write to MH i2c: E2 08 00 FA 2D 80 13 01 00 00 00 00 00 A4 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0E 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0E 00 FA 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 85 [16:05:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:05:22]wFMCommunicate OK [16:05:22]SAM_PROTO_GetShiftState done [16:05:22]FM_GetShiftState done [16:05:22]req_shift_opened done [16:05:22]requested_item shift.open_date is exist - process it [16:05:22]req_shift_open_date [16:05:22]req_shift_open_date done [16:05:22]produce_requested_data done [16:05:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164652,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:05:22]process_action_free close_receipt [16:05:22]json_value_free [16:05:22]json_value_free done [16:05:22]process_json_proto returns [16:05:22]Send response to host [16:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164652,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:05:22]free response buf [16:05:22]execute_script done [16:05:22]execute_script returns [16:05:22]free content buf [16:05:22]Sock 9.Close socket [16:05:22]Sock 9.Thread stoped [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:31]accept exits with 7 [16:06:31]New connection [16:06:31]New thread 3067149668 created [16:06:31]Thread 3067293028 joined [16:06:31]Waiting for new connection... [16:06:31] Sock 7.Parse request [16:06:31]Sock 7.Check first char [16:06:31]Sock 7.First char is OK [16:06:31]request: POST /json_proto HTTP/1.0 [16:06:31]Method: POST [16:06:31]URL: /json_proto [16:06:31]Method is POST - this is cgi request [16:06:31]url: /json_proto [16:06:31]query_string will be loaded in cgi processing [16:06:31]execute_cgi json_proto POST (null) [16:06:31]execute_cgi path=json_proto method=POST [16:06:31]POST find Content-Length [16:06:31]Host: 172.17.56.4:8080 [16:06:31]Content-Length: 677 [16:06:31]Content-Type: application/json [16:06:31] [16:06:31]POST finish read [16:06:31]Found Content-Length = 677 [16:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:31]execute_script... [16:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:31]POST & json_proto [16:06:31]process_json_proto [16:06:31]json parsed OK: [16:06:31]protocol is kg_v1.0 [16:06:31]action value=close_receipt [16:06:31]process_action close_receipt [16:06:31]cmd_close_receipt [16:06:31]MH_GetDate [16:06:31]Write to MH i2c: F0 00 00 FB 2D 17 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: F0 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: F0 09 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: F0 09 00 FB 2D 00 0A A6 92 66 C9 DC B2 64 83 [16:06:31]GetLastDocTimeStamp 1720886720 [16:06:31]current date 1720886794 [16:06:31]FM_GetShiftState [16:06:31]SAM_PROTO_GetShiftState [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 13 01 00 [16:06:31]Write to MH i2c: E2 08 00 FC 2D 80 13 01 00 00 00 00 00 A6 [16:06:32]Write i2c OK [16:06:32]MH_I2C_Read... [16:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:32]Read from MH i2c: E2 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 0E 00 [16:06:32]MH_I2C_Read... [16:06:32]Read from MH i2c: E2 0E 00 FC 2D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 87 [16:06:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:06:32]wFMCommunicate OK [16:06:32]SAM_PROTO_GetShiftState done [16:06:32]FM_GetShiftState done [16:06:32]opened in 1720831249 [16:06:32]opened+sec_in_day 1720917649 [16:06:32]quantity*price = 20003 [16:06:32]sum+1 = 20004 [16:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 213 13.07.2024 16:06 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164653 ФПД: 274143624725735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160634&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164653&fm=274143624725735&tin=02508201610067®Number=0000000000090829&sum=20000 [16:06:33]StoreToDocumentArchive [16:06:33]shift 446 fd 164653 [16:06:33]save to /storage/0446/doc_00164653 [16:06:33]save last doc name /storage/0446/doc_00164653 to /storage/kkm_last_doc_name [16:06:33]save OK [16:06:33]Clear old archive folders... [16:06:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:33]tlvbuf is 01423260 [16:06:33]SAM_PROTO_ClearQueue [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 09 00 00 [16:06:33]Write to MH i2c: E2 08 00 09 2E 80 09 00 00 00 00 00 00 A9 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [16:06:33]RAPDU: 90 00 [16:06:33]wFMCommunicate OK [16:06:33]SAM_PROTO_ClearQueue done [16:06:33]KKMCreateOFDPacket [16:06:33]OFDProtocolAddRootSTLVToBuf [16:06:33]FM_MakeSignedData [16:06:33]FM_MakeSignedData [16:06:33]SAM_PROTO_SignData [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 0D 01 02 [16:06:33]Write to MH i2c: E2 08 00 0A 2E 80 0D 01 02 00 00 00 00 B1 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [16:06:33]RAPDU: 90 00 [16:06:33]wFMCommunicate OK [16:06:33]wFMCommunicate request_size=255 [16:06:33]MH_SAM_APDU [16:06: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0A A6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 83 02 00 35 04 06 00 F9 [16:06:33]Write to MH i2c: E2 02 01 0B 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0A A6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 83 02 00 35 04 06 00 F9 00 00 B2 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [16:06:33]RAPDU: 90 00 [16:06:33]wFMCommunicate OK [16:06:33]wFMCommunicate request_size=10 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 0D 02 02 05 55 09 5E 84 E7 [16:06:33]Write to MH i2c: E2 0D 00 0C 2E 80 0D 02 02 05 00 55 09 5E 84 E7 00 00 E5 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [16:06:33]RAPDU: 90 00 [16:06:33]wFMCommunicate OK [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 0D 03 02 [16:06:33]Write to MH i2c: E2 08 00 0D 2E 80 0D 03 02 00 00 00 00 B6 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 0B 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 0B 00 0D 2E 00 E6 5B 7A 1F 9F E0 37 E3 90 00 2A [16:06:33]RAPDU: E6 5B 7A 1F 9F E0 37 E3 90 00 [16:06:33]wFMCommunicate OK [16:06:33]SAM_PROTO_SignData done [16:06:33]FM_MakeSignedData done [16:06:33]CreateOFDProtocolMessage [16:06:33]wFMCommunicate request_size=4 [16:06:33]MH_SAM_APDU [16:06:33]CAPDU: 80 11 00 00 [16:06:33]Write to MH i2c: E2 08 00 0E 2E 80 11 00 00 00 00 00 00 B6 [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:33]Read from MH i2c: E2 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 17 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: E2 17 00 0E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [16:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:06:33]wFMCommunicate OK [16:06:33]CreateOFDProtocolMessage done [16:06:33]OFDSenderStorePacket 164653 [16:06:33]StoreOFDPacket docnum=164653 [16:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 A1 07 01 10 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0A A6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 83 02 00 35 04 06 00 F9 55 09 5E 84 E7 E6 5B 7A 1F 9F E0 37 E3 [16:06:33]CheckFolder [16:06:33]dirname=/storage/ofd_packets [16:06:33]CheckFolder done [16:06:33]ProducePacketName [16:06:33]name=ofd_packets/00164653 [16:06:33]NVStorageSaveData ofd_packets/00164653 [16:06:33]File name is /storage/ofd_packets/00164653 [16:06:33]Write 301 bytes [16:06:33]NVStorageSaveData done [16:06:33]OFDSenderStorePacket done [16:06:33]KKMCreateOFDPacket done [16:06:33]NVStorageSaveData kkm_last_timestamp [16:06:33]File name is /storage/kkm_last_timestamp [16:06:33]Write 4 bytes [16:06:33]NVStorageSaveData done [16:06:33]ExternCall_PrintAddStr [16:06:33]wPrintStart [16:06:33]Write to MH i2c: 01 00 00 0F 2E 3D [16:06:33]Write i2c OK [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: 01 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: 01 07 00 [16:06:33]MH_I2C_Read... [16:06:33]Read from MH i2c: 01 07 00 0F 2E 00 00 00 00 00 FF 0F 52 [16:06:33]RasterBufferAndPrint [16:06:33]line Счет N : (1)458746 [16:06:33]line ИНН: 02508201610067 [16:06:33]line Контрольно-Кассовый Чек [16:06:33]line ПРОДАЖА [16:06:33]line ТРК (МРК, ГНК) : 12 [16:06:33]line Товар: 2710124130 [16:06:33]line Аи-92-К-5 [16:06:33]line 3.040 * 65.80 [16:06:33]line = 200.03 [16:06:33]line НДС 12% НСП 1% [16:06:33]line > о реализуемом товаре [16:06:33]line ОКРУГЛЕНИЕ: -0.03 [16:06:33]line ИТОГО: 200.00 [16:06:33]line Внесено: 200.00 [16:06:33]line СДАЧА: 0.00 [16:06:33]line НСП 1% : 1.77 [16:06:33]line НДС 12% : 21.24 [16:06:33]line Наличными: 200.00 [16:06:33]line Безнал.: 0.00 [16:06:33]line Место: АЗС № 72 "Партнер Нефть" [16:06:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:06:33]line СНО: Общий режим [16:06:33]line Чек 213 13.07.2024 16:06 [16:06:33]line Смена: 446 ФФД: 1.0 [16:06:33]line ЗНМ: 0300000160 [16:06:33]line РНМ: 0000000000090829 [16:06:33]line Версия ККМ: 001 [16:06:33]line ФМ: 0000000000874718 [16:06:33]line ФД: 164653 [16:06:33]line ФПД: 274143624725735 [16:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160634&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164653&fm=274143624725735&tin=02508201610067®Number=0000000000090829&sum=20000 [16:06:34]OFD Sender: Processing packet 164653 [packets to send 104, broken 103] [16:06:34]ProducePacketName [16:06:34]name=ofd_packets/00164653 [16:06:34]OFD Sender: To server: pG, [16:06:34]CommunicateWithHost lk.salyk.kg:30040 [16:06:34]ConnectInit lk.salyk.kg [16:06:34]written 0, free lines is 4095 [16:06:34]Connected sock=11 [16:06:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 A1 07 01 10 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 0A A6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 83 02 00 35 04 06 00 F9 55 09 5E 84 E7 E6 5B 7A 1F 9F E0 37 E3 [16:06:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C 71 47 00 E6 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 34 37 31 38 10 04 04 00 2D 83 02 00 F4 03 04 00 9B 4C 92 66 B6 04 01 00 00 91 85 98 C8 6E 64 58 90 [16:06:34]CommunicateWithHost err = 0 [16:06:34]CheckOFDResponse [16:06:34]1017 (14) - 77093643461234 [16:06:34]1041 (16) - 0000000000874718 [16:06:34]1040 (4) - 164653 [16:06:34]1012 (4) - 13.07.2024 09:44 [16:06:34]1206 (1) - 0 [16:06:34]OFD Sender: Remove packet 164653 [16:06:34]ProducePacketName [16:06:34]name=ofd_packets/00164653 [16:06:34]NVStorageDeleteData [16:06:34]Write to MH i2c: 01 00 00 39 2E 67 [16:06:34]Write i2c OK [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: 01 [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: 01 07 00 [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: 01 07 00 39 2E 00 00 00 00 00 F2 0C 6C [16:06:34]RasterBufferAndPrint [16:06:34]line [16:06:34]line [16:06:34]line [16:06:34]line [16:06:34]line [16:06:34]written 0, free lines is 3320 [16:06:34]MH_Cut [16:06:34]Write to MH i2c: D1 01 00 40 2E 01 40 [16:06:34]Write i2c OK [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: D1 [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: D1 01 00 [16:06:34]MH_I2C_Read... [16:06:34]Read from MH i2c: D1 01 00 40 2E 00 3F [16:06:34]Write to MH i2c: 01 00 00 41 2E 6F [16:06:34]Write i2c OK [16:06:34]MH_I2C_Read... [16:06:34]OFD Sender: No OFD packet to send [16:06:35]*** Cut start [16:06:35]*** Partial cut [16:06:35]*** CUTSNS_PIN = 1 [16:06:35]*** CUTSNS_PIN = 0 [16:06:35]*** Brake cut motor [16:06:35]Read from MH i2c: 01 [16:06:35]MH_I2C_Read... [16:06:35]*** Stop cut motor [16:06:35]*** Cut end [16:06:35]Read from MH i2c: 01 07 00 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: 01 07 00 41 2E 00 00 00 00 00 FF 0F 84 [16:06:35]process_action close_receipt done [16:06:35]requested_data is exist [16:06:35]produce_requested_data [16:06:35]requested_item fm.sn is exist - process it [16:06:35]wFMCommunicate request_size=4 [16:06:35]MH_SAM_APDU [16:06:35]CAPDU: 80 11 00 00 [16:06:35]Write to MH i2c: E2 08 00 42 2E 80 11 00 00 00 00 00 00 EA [16:06:35]Write i2c OK [16:06:35]MH_I2C_Read... [16:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:35]Read from MH i2c: E2 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 17 00 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 17 00 42 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [16:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:06:35]wFMCommunicate OK [16:06:35]requested_item fd.num is exist - process it [16:06:35]SAM_PROTO_GetFieldsCounters [16:06:35]wFMCommunicate request_size=4 [16:06:35]MH_SAM_APDU [16:06:35]CAPDU: 80 13 00 00 [16:06:35]Write to MH i2c: E2 08 00 43 2E 80 13 00 00 00 00 00 00 ED [16:06:35]Write i2c OK [16:06:35]MH_I2C_Read... [16:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:35]Read from MH i2c: E2 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 62 00 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 62 00 43 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:06: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:35]wFMCommunicate OK [16:06:35]SAM_PROTO_GetFieldsCounters done [16:06:35]requested_item shift.num is exist - process it [16:06:35]requested_item shift.opened is exist - process it [16:06:35]req_shift_opened [16:06:35]FM_GetShiftState [16:06:35]SAM_PROTO_GetShiftState [16:06:35]wFMCommunicate request_size=4 [16:06:35]MH_SAM_APDU [16:06:35]CAPDU: 80 13 01 00 [16:06:35]Write to MH i2c: E2 08 00 44 2E 80 13 01 00 00 00 00 00 EF [16:06:35]Write i2c OK [16:06:35]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 44 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D0 [16:06:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_GetShiftState done [16:06:36]FM_GetShiftState done [16:06:36]req_shift_opened done [16:06:36]requested_item shift.open_date is exist - process it [16:06:36]req_shift_open_date [16:06:36]req_shift_open_date done [16:06:36]produce_requested_data done [16:06:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164653,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:06:36]process_action_free close_receipt [16:06:36]json_value_free [16:06:36]json_value_free done [16:06:36]process_json_proto returns [16:06:36]Send response to host [16:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164653,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:06:36]free response buf [16:06:36]execute_script done [16:06:36]execute_script returns [16:06:36]free content buf [16:06:36]Sock 7.Close socket [16:06:36]Sock 7.Thread stoped [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:32]accept exits with 9 [16:11:32]New connection [16:11:32]New thread 3067293028 created [16:11:32]Thread 3067149668 joined [16:11:32]Waiting for new connection... [16:11:32] Sock 9.Parse request [16:11:32]Sock 9.Check first char [16:11:32]Sock 9.First char is OK [16:11:32]request: POST /json_proto HTTP/1.0 [16:11:32]Method: POST [16:11:32]URL: /json_proto [16:11:32]Method is POST - this is cgi request [16:11:32]url: /json_proto [16:11:32]query_string will be loaded in cgi processing [16:11:32]execute_cgi json_proto POST (null) [16:11:32]execute_cgi path=json_proto method=POST [16:11:32]POST find Content-Length [16:11:32]Host: 172.17.56.4:8080 [16:11:32]Content-Length: 677 [16:11:32]Content-Type: application/json [16:11:32] [16:11:32]POST finish read [16:11:32]Found Content-Length = 677 [16:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:32]execute_script... [16:11: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)458747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:32]POST & json_proto [16:11:32]process_json_proto [16:11:32]json parsed OK: [16:11:32]protocol is kg_v1.0 [16:11:32]action value=close_receipt [16:11:32]process_action close_receipt [16:11:32]cmd_close_receipt [16:11:32]MH_GetDate [16:11:32]Write to MH i2c: F0 00 00 45 2E 62 [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 45 2E 00 37 A7 92 66 C9 DC B2 64 FC [16:11:32]GetLastDocTimeStamp 1720886794 [16:11:32]current date 1720887095 [16:11:32]FM_GetShiftState [16:11:32]SAM_PROTO_GetShiftState [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 01 00 [16:11:32]Write to MH i2c: E2 08 00 46 2E 80 13 01 00 00 00 00 00 F1 [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 46 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D2 [16:11:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetShiftState done [16:11:32]FM_GetShiftState done [16:11:32]opened in 1720831249 [16:11:32]opened+sec_in_day 1720917649 [16:11:32]quantity*price = 50008 [16:11:32]sum+1 = 50009 [16:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 214 13.07.2024 16:11 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164654 ФПД: 47214080886608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164654&fm=47214080886608&tin=02508201610067®Number=0000000000090829&sum=50000 [16:11:33]StoreToDocumentArchive [16:11:33]shift 446 fd 164654 [16:11:33]save to /storage/0446/doc_00164654 [16:11:33]save last doc name /storage/0446/doc_00164654 to /storage/kkm_last_doc_name [16:11:33]save OK [16:11:33]Clear old archive folders... [16:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:33]tlvbuf is 01411F20 [16:11:33]SAM_PROTO_ClearQueue [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 09 00 00 [16:11:33]Write to MH i2c: E2 08 00 53 2E 80 09 00 00 00 00 00 00 F3 [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]SAM_PROTO_ClearQueue done [16:11:33]KKMCreateOFDPacket [16:11:33]OFDProtocolAddRootSTLVToBuf [16:11:33]FM_MakeSignedData [16:11:33]FM_MakeSignedData [16:11:33]SAM_PROTO_SignData [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 0D 01 02 [16:11:33]Write to MH i2c: E2 08 00 54 2E 80 0D 01 02 00 00 00 00 FB [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 54 2E 00 90 00 F6 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]wFMCommunicate request_size=255 [16:11:33]MH_SAM_APDU [16:11: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D6 00 00 00 F4 03 04 00 37 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 83 02 00 35 04 06 00 2A [16:11:33]Write to MH i2c: E2 02 01 55 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D6 00 00 00 F4 03 04 00 37 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 83 02 00 35 04 06 00 2A 00 00 BC [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 55 2E 00 90 00 F7 [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]wFMCommunicate request_size=10 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 0D 02 02 05 F0 E2 85 07 50 [16:11:34]Write to MH i2c: E2 0D 00 56 2E 80 0D 02 02 05 00 F0 E2 85 07 50 00 00 B6 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 03 00 56 2E 00 90 00 F8 [16:11:34]RAPDU: 90 00 [16:11:34]wFMCommunicate OK [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 0D 03 02 [16:11:34]Write to MH i2c: E2 08 00 57 2E 80 0D 03 02 00 00 00 00 00 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0B 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0B 00 57 2E 00 DB D7 B6 4C B1 33 FC BF 90 00 54 [16:11:34]RAPDU: DB D7 B6 4C B1 33 FC BF 90 00 [16:11:34]wFMCommunicate OK [16:11:34]SAM_PROTO_SignData done [16:11:34]FM_MakeSignedData done [16:11:34]CreateOFDProtocolMessage [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 11 00 00 [16:11:34]Write to MH i2c: E2 08 00 58 2E 80 11 00 00 00 00 00 00 00 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 17 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 17 00 58 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [16:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:11:34]wFMCommunicate OK [16:11:34]CreateOFDProtocolMessage done [16:11:34]OFDSenderStorePacket 164654 [16:11:34]StoreOFDPacket docnum=164654 [16:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 57 07 01 76 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D6 00 00 00 F4 03 04 00 37 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 83 02 00 35 04 06 00 2A F0 E2 85 07 50 DB D7 B6 4C B1 33 FC BF [16:11:34]CheckFolder [16:11:34]dirname=/storage/ofd_packets [16:11:34]CheckFolder done [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00164654 [16:11:34]NVStorageSaveData ofd_packets/00164654 [16:11:34]File name is /storage/ofd_packets/00164654 [16:11:34]Write 301 bytes [16:11:34]NVStorageSaveData done [16:11:34]OFDSenderStorePacket done [16:11:34]KKMCreateOFDPacket done [16:11:34]NVStorageSaveData kkm_last_timestamp [16:11:34]File name is /storage/kkm_last_timestamp [16:11:34]Write 4 bytes [16:11:34]NVStorageSaveData done [16:11:34]ExternCall_PrintAddStr [16:11:34]wPrintStart [16:11:34]Write to MH i2c: 01 00 00 59 2E 87 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 59 2E 00 00 00 00 00 FF 0F 9C [16:11:34]RasterBufferAndPrint [16:11:34]line Счет N : (1)458747 [16:11:34]line ИНН: 02508201610067 [16:11:34]line Контрольно-Кассовый Чек [16:11:34]line ПРОДАЖА [16:11:34]line ТРК (МРК, ГНК) : 12 [16:11:34]line Товар: 2710124130 [16:11:34]line Аи-92-К-5 [16:11:34]line 7.600 * 65.80 [16:11:34]line = 500.08 [16:11:34]line НДС 12% НСП 1% [16:11:34]line > о реализуемом товаре [16:11:34]line ОКРУГЛЕНИЕ: -0.08 [16:11:34]line ИТОГО: 500.00 [16:11:34]line Внесено: 500.00 [16:11:34]line СДАЧА: 0.00 [16:11:34]line НСП 1% : 4.42 [16:11:34]line НДС 12% : 53.11 [16:11:34]line Наличными: 500.00 [16:11:34]line Безнал.: 0.00 [16:11:34]line Место: АЗС № 72 "Партнер Нефть" [16:11:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:11:34]line СНО: Общий режим [16:11:34]line Чек 214 13.07.2024 16:11 [16:11:34]line Смена: 446 ФФД: 1.0 [16:11:34]line ЗНМ: 0300000160 [16:11:34]line РНМ: 0000000000090829 [16:11:34]line Версия ККМ: 001 [16:11:34]line ФМ: 0000000000874718 [16:11:34]line ФД: 164654 [16:11:34]line ФПД: 47214080886608 [16:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164654&fm=47214080886608&tin=02508201610067®Number=0000000000090829&sum=50000 [16:11:34]OFD Sender: Processing packet 164654 [packets to send 104, broken 103] [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00164654 [16:11:34]OFD Sender: To server: pG, [16:11:34]CommunicateWithHost lk.salyk.kg:30040 [16:11:34]ConnectInit lk.salyk.kg [16:11:34]written 0, free lines is 4095 [16:11:34]Connected sock=11 [16:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 57 07 01 76 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D6 00 00 00 F4 03 04 00 37 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 83 02 00 35 04 06 00 2A F0 E2 85 07 50 DB D7 B6 4C B1 33 FC BF [16:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 D5 47 00 F5 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 83 02 00 F4 03 04 00 C7 4D 92 66 B6 04 01 00 00 17 C5 E8 DD 56 50 7A 56 [16:11:34]CommunicateWithHost err = 0 [16:11:34]CheckOFDResponse [16:11:34]1017 (14) - 77093643461234 [16:11:34]1041 (16) - 0000000000874718 [16:11:34]1040 (4) - 164654 [16:11:34]1012 (4) - 13.07.2024 09:49 [16:11:34]1206 (1) - 0 [16:11:34]OFD Sender: Remove packet 164654 [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00164654 [16:11:34]NVStorageDeleteData [16:11:34]Write to MH i2c: 01 00 00 83 2E B1 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 83 2E 00 00 00 00 00 FB 0C BF [16:11:34]RasterBufferAndPrint [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]written 0, free lines is 3329 [16:11:34]MH_Cut [16:11:34]Write to MH i2c: D1 01 00 8A 2E 01 8A [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 01 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 01 00 8A 2E 00 89 [16:11:34]Write to MH i2c: 01 00 00 8B 2E B9 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:35]OFD Sender: No OFD packet to send [16:11:35]*** Cut start [16:11:35]*** Partial cut [16:11:35]*** CUTSNS_PIN = 1 [16:11:35]*** CUTSNS_PIN = 0 [16:11:35]*** Brake cut motor [16:11:36]Read from MH i2c: 01 [16:11:36]MH_I2C_Read... [16:11:36]*** Stop cut motor [16:11:36]*** Cut end [16:11:36]Read from MH i2c: 01 07 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 07 00 8B 2E 00 00 00 00 00 FF 0F CE [16:11:36]process_action close_receipt done [16:11:36]requested_data is exist [16:11:36]produce_requested_data [16:11:36]requested_item fm.sn is exist - process it [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 11 00 00 [16:11:36]Write to MH i2c: E2 08 00 8C 2E 80 11 00 00 00 00 00 00 34 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 8C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [16:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:11:36]wFMCommunicate OK [16:11:36]requested_item fd.num is exist - process it [16:11:36]SAM_PROTO_GetFieldsCounters [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 13 00 00 [16:11:36]Write to MH i2c: E2 08 00 8D 2E 80 13 00 00 00 00 00 00 37 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 62 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 62 00 8D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_GetFieldsCounters done [16:11:36]requested_item shift.num is exist - process it [16:11:36]requested_item shift.opened is exist - process it [16:11:36]req_shift_opened [16:11:36]FM_GetShiftState [16:11:36]SAM_PROTO_GetShiftState [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 13 01 00 [16:11:36]Write to MH i2c: E2 08 00 8E 2E 80 13 01 00 00 00 00 00 39 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0E 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0E 00 8E 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1A [16:11:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_GetShiftState done [16:11:36]FM_GetShiftState done [16:11:36]req_shift_opened done [16:11:36]requested_item shift.open_date is exist - process it [16:11:36]req_shift_open_date [16:11:36]req_shift_open_date done [16:11:36]produce_requested_data done [16:11:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164654,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:11:36]process_action_free close_receipt [16:11:36]json_value_free [16:11:36]json_value_free done [16:11:36]process_json_proto returns [16:11:36]Send response to host [16:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164654,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:11:36]free response buf [16:11:36]execute_script done [16:11:36]execute_script returns [16:11:36]free content buf [16:11:36]Sock 9.Close socket [16:11:36]Sock 9.Thread stoped [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]accept exits with 7 [16:13:00]New connection [16:13:00]New thread 3067149668 created [16:13:00]Thread 3067293028 joined [16:13:00]Waiting for new connection... [16:13:00] Sock 7.Parse request [16:13:00]Sock 7.Check first char [16:13:00]Sock 7.First char is OK [16:13:00]request: POST /json_proto HTTP/1.0 [16:13:00]Method: POST [16:13:00]URL: /json_proto [16:13:00]Method is POST - this is cgi request [16:13:00]url: /json_proto [16:13:00]query_string will be loaded in cgi processing [16:13:00]execute_cgi json_proto POST (null) [16:13:00]execute_cgi path=json_proto method=POST [16:13:00]POST find Content-Length [16:13:00]Host: 172.17.56.4:8080 [16:13:00]Content-Length: 790 [16:13:00]Content-Type: application/json [16:13:00] [16:13:00]POST finish read [16:13:00]Found Content-Length = 790 [16:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 8.130, "sum" : 530.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 530.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:00]execute_script... [16:13: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)458749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 8.130, "sum" : 530.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 530.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:00]POST & json_proto [16:13:00]process_json_proto [16:13:00]json parsed OK: [16:13:00]protocol is kg_v1.0 [16:13:00]action value=close_receipt [16:13:00]process_action close_receipt [16:13:00]cmd_close_receipt [16:13:00]MH_GetDate [16:13:00]Write to MH i2c: F0 00 00 8F 2E AC [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: F0 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: F0 09 00 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: F0 09 00 8F 2E 00 8E A7 92 66 C9 DC B2 64 9D [16:13:00]GetLastDocTimeStamp 1720887095 [16:13:00]current date 1720887182 [16:13:00]FM_GetShiftState [16:13:00]SAM_PROTO_GetShiftState [16:13:00]wFMCommunicate request_size=4 [16:13:00]MH_SAM_APDU [16:13:00]CAPDU: 80 13 01 00 [16:13:00]Write to MH i2c: E2 08 00 90 2E 80 13 01 00 00 00 00 00 3B [16:13:00]Write i2c OK [16:13:00]MH_I2C_Read... [16:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:00]Read from MH i2c: E2 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 0E 00 [16:13:00]MH_I2C_Read... [16:13:00]Read from MH i2c: E2 0E 00 90 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1C [16:13:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:13:00]wFMCommunicate OK [16:13:00]SAM_PROTO_GetShiftState done [16:13:00]FM_GetShiftState done [16:13:00]opened in 1720831249 [16:13:00]opened+sec_in_day 1720917649 [16:13:00]quantity*price = 53023 [16:13:00]sum+1 = 53025 [16:13:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 530.24 НСП 1% : 4.69 НДС 12% : 56.31 Наличными: 0.00 Безнал.: 530.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 215 13.07.2024 16:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164655 ФПД: 264640772374753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164655&fm=264640772374753&tin=02508201610067®Number=0000000000090829&sum=53024 [16:13:01]StoreToDocumentArchive [16:13:01]shift 446 fd 164655 [16:13:01]save to /storage/0446/doc_00164655 [16:13:01]save last doc name /storage/0446/doc_00164655 to /storage/kkm_last_doc_name [16:13:01]save OK [16:13:01]Clear old archive folders... [16:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:01]tlvbuf is B6DFBBB0 [16:13:01]SAM_PROTO_ClearQueue [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 09 00 00 [16:13:01]Write to MH i2c: E2 08 00 9D 2E 80 09 00 00 00 00 00 00 3D [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [16:13:01]RAPDU: 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_ClearQueue done [16:13:01]KKMCreateOFDPacket [16:13:01]OFDProtocolAddRootSTLVToBuf [16:13:01]FM_MakeSignedData [16:13:01]FM_MakeSignedData [16:13:01]SAM_PROTO_SignData [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 0D 01 02 [16:13:01]Write to MH i2c: E2 08 00 9E 2E 80 0D 01 02 00 00 00 00 45 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 9E 2E 00 90 00 40 [16:13:01]RAPDU: 90 00 [16:13:01]wFMCommunicate OK [16:13:01]wFMCommunicate request_size=255 [16:13:01]MH_SAM_APDU [16:13: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 C2 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8E A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 83 02 00 35 04 06 00 F0 [16:13:01]Write to MH i2c: E2 02 01 9F 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8E A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 83 02 00 35 04 06 00 F0 00 00 E7 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [16:13:01]RAPDU: 90 00 [16:13:01]wFMCommunicate OK [16:13:01]wFMCommunicate request_size=10 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 0D 02 02 05 B0 7B 3B 00 E1 [16:13:01]Write to MH i2c: E2 0D 00 A0 2E 80 0D 02 02 05 00 B0 7B 3B 00 E1 00 00 99 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 03 00 A0 2E 00 90 00 42 [16:13:01]RAPDU: 90 00 [16:13:01]wFMCommunicate OK [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 0D 03 02 [16:13:01]Write to MH i2c: E2 08 00 A1 2E 80 0D 03 02 00 00 00 00 4A [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0B 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 0B 00 A1 2E 00 A4 27 37 64 9D 0B 88 07 90 00 E8 [16:13:01]RAPDU: A4 27 37 64 9D 0B 88 07 90 00 [16:13:01]wFMCommunicate OK [16:13:01]SAM_PROTO_SignData done [16:13:01]FM_MakeSignedData done [16:13:01]CreateOFDProtocolMessage [16:13:01]wFMCommunicate request_size=4 [16:13:01]MH_SAM_APDU [16:13:01]CAPDU: 80 11 00 00 [16:13:01]Write to MH i2c: E2 08 00 A2 2E 80 11 00 00 00 00 00 00 4A [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:01]Read from MH i2c: E2 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: E2 17 00 A2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [16:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:01]wFMCommunicate OK [16:13:01]CreateOFDProtocolMessage done [16:13:01]OFDSenderStorePacket 164655 [16:13:01]StoreOFDPacket docnum=164655 [16:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 9F 07 01 47 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8E A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 83 02 00 35 04 06 00 F0 B0 7B 3B 00 E1 A4 27 37 64 9D 0B 88 07 [16:13:01]CheckFolder [16:13:01]dirname=/storage/ofd_packets [16:13:01]CheckFolder done [16:13:01]ProducePacketName [16:13:01]name=ofd_packets/00164655 [16:13:01]NVStorageSaveData ofd_packets/00164655 [16:13:01]File name is /storage/ofd_packets/00164655 [16:13:01]Write 301 bytes [16:13:01]NVStorageSaveData done [16:13:01]OFDSenderStorePacket done [16:13:01]KKMCreateOFDPacket done [16:13:01]NVStorageSaveData kkm_last_timestamp [16:13:01]File name is /storage/kkm_last_timestamp [16:13:01]Write 4 bytes [16:13:01]NVStorageSaveData done [16:13:01]ExternCall_PrintAddStr [16:13:01]wPrintStart [16:13:01]Write to MH i2c: 01 00 00 A3 2E D1 [16:13:01]Write i2c OK [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 [16:13:01]MH_I2C_Read... [16:13:01]Read from MH i2c: 01 07 00 A3 2E 00 00 00 00 00 FF 0F E6 [16:13:01]RasterBufferAndPrint [16:13:01]line Счет N : (1)458749 [16:13:01]line ИНН: 02508201610067 [16:13:01]line Контрольно-Кассовый Чек [16:13:01]line ПРОДАЖА [16:13:01]line ТРК (МРК, ГНК) : 22 [16:13:01]line Товар: 2710124130 [16:13:01]line Аи-92-К-5 [16:13:01]line 8.130 * 65.22 [16:13:01]line = 530.24 [16:13:01]line НДС 12% НСП 1% [16:13:01]line > о реализуемом товаре [16:13:01]line ИТОГО: 530.24 [16:13:01]line НСП 1% : 4.69 [16:13:01]line НДС 12% : 56.31 [16:13:01]line Наличными: 0.00 [16:13:01]line Безнал.: 530.24 [16:13:01]line Место: АЗС № 72 "Партнер Нефть" [16:13:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:13:01]line СНО: Общий режим [16:13:01]line Чек 215 13.07.2024 16:13 [16:13:01]line Смена: 446 ФФД: 1.0 [16:13:01]line ЗНМ: 0300000160 [16:13:01]line РНМ: 0000000000090829 [16:13:01]line Версия ККМ: 001 [16:13:01]line Платежная система: KICB Банк [16:13:01]line ФМ: 0000000000874718 [16:13:01]line ФД: 164655 [16:13:01]line ФПД: 264640772374753 [16:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164655&fm=264640772374753&tin=02508201610067®Number=0000000000090829&sum=53024 [16:13:01]written 0, free lines is 4095 [16:13:01]OFD Sender: Processing packet 164655 [packets to send 104, broken 103] [16:13:01]ProducePacketName [16:13:01]name=ofd_packets/00164655 [16:13:01]OFD Sender: To server: pG, [16:13:02]CommunicateWithHost lk.salyk.kg:30040 [16:13:02]ConnectInit lk.salyk.kg [16:13:02]Write to MH i2c: 01 00 00 CC 2E FA [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: 01 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: 01 07 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: 01 07 00 CC 2E 00 00 00 00 00 FC 0C 09 [16:13:02]RasterBufferAndPrint [16:13:02]line [16:13:02]line [16:13:02]line [16:13:02]line [16:13:02]line [16:13:02]written 0, free lines is 3330 [16:13:02]MH_Cut [16:13:02]Write to MH i2c: D1 01 00 D3 2E 01 D3 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: D1 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: D1 01 00 [16:13:02]MH_I2C_Read... [16:13:02]Read from MH i2c: D1 01 00 D3 2E 00 D2 [16:13:02]Write to MH i2c: 01 00 00 D4 2E 02 [16:13:02]Write i2c OK [16:13:02]MH_I2C_Read... [16:13:02]Connected sock=10 [16:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 9F 07 01 47 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 20 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 CF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 8E A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 83 02 00 35 04 06 00 F0 B0 7B 3B 00 E1 A4 27 37 64 9D 0B 88 07 [16:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 23 AE 47 00 DF AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 83 02 00 F4 03 04 00 1F 4E 92 66 B6 04 01 00 00 BE 48 D4 41 39 A4 8F F5 [16:13:02]CommunicateWithHost err = 0 [16:13:02]CheckOFDResponse [16:13:02]1017 (14) - 77093643461234 [16:13:02]1041 (16) - 0000000000874718 [16:13:02]1040 (4) - 164655 [16:13:02]1012 (4) - 13.07.2024 09:51 [16:13:02]1206 (1) - 0 [16:13:02]OFD Sender: Remove packet 164655 [16:13:02]ProducePacketName [16:13:02]name=ofd_packets/00164655 [16:13:02]NVStorageDeleteData [16:13:02]*** Cut start [16:13:02]*** Partial cut [16:13:02]*** CUTSNS_PIN = 1 [16:13:02]*** CUTSNS_PIN = 0 [16:13:03]OFD Sender: No OFD packet to send [16:13:03]*** Brake cut motor [16:13:03]Read from MH i2c: 01 [16:13:03]MH_I2C_Read... [16:13:03]*** Stop cut motor [16:13:03]*** Cut end [16:13:03]Read from MH i2c: 01 07 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: 01 07 00 D4 2E 00 00 00 00 00 FF 0F 17 [16:13:03]process_action close_receipt done [16:13:03]requested_data is exist [16:13:03]produce_requested_data [16:13:03]requested_item fm.sn is exist - process it [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 11 00 00 [16:13:03]Write to MH i2c: E2 08 00 D5 2E 80 11 00 00 00 00 00 00 7D [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 17 00 D5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [16:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:03]wFMCommunicate OK [16:13:03]requested_item fd.num is exist - process it [16:13:03]SAM_PROTO_GetFieldsCounters [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 13 00 00 [16:13:03]Write to MH i2c: E2 08 00 D6 2E 80 13 00 00 00 00 00 00 80 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 62 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 62 00 D6 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetFieldsCounters done [16:13:03]requested_item shift.num is exist - process it [16:13:03]requested_item shift.opened is exist - process it [16:13:03]req_shift_opened [16:13:03]FM_GetShiftState [16:13:03]SAM_PROTO_GetShiftState [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 13 01 00 [16:13:03]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 63 [16:13:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetShiftState done [16:13:03]FM_GetShiftState done [16:13:03]req_shift_opened done [16:13:03]requested_item shift.open_date is exist - process it [16:13:03]req_shift_open_date [16:13:03]req_shift_open_date done [16:13:03]produce_requested_data done [16:13:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164655,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:13:03]process_action_free close_receipt [16:13:03]json_value_free [16:13:03]json_value_free done [16:13:03]process_json_proto returns [16:13:03]Send response to host [16:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164655,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:13:03]free response buf [16:13:03]execute_script done [16:13:03]execute_script returns [16:13:03]free content buf [16:13:03]Sock 7.Close socket [16:13:03]Sock 7.Thread stoped [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:41]accept exits with 9 [16:13:41]New connection [16:13:41]New thread 3067293028 created [16:13:41]Thread 3067149668 joined [16:13:41]Waiting for new connection... [16:13:41] Sock 9.Parse request [16:13:41]Sock 9.Check first char [16:13:41]Sock 9.First char is OK [16:13:41]request: POST /json_proto HTTP/1.0 [16:13:41]Method: POST [16:13:41]URL: /json_proto [16:13:41]Method is POST - this is cgi request [16:13:41]url: /json_proto [16:13:41]query_string will be loaded in cgi processing [16:13:41]execute_cgi json_proto POST (null) [16:13:41]execute_cgi path=json_proto method=POST [16:13:41]POST find Content-Length [16:13:41]Host: 172.17.56.4:8080 [16:13:41]Content-Length: 677 [16:13:41]Content-Type: application/json [16:13:41] [16:13:41]POST finish read [16:13:41]Found Content-Length = 677 [16:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:41]execute_script... [16:13: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)458750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:41]POST & json_proto [16:13:41]process_json_proto [16:13:41]json parsed OK: [16:13:41]protocol is kg_v1.0 [16:13:41]action value=close_receipt [16:13:41]process_action close_receipt [16:13:41]cmd_close_receipt [16:13:41]MH_GetDate [16:13:41]Write to MH i2c: F0 00 00 D8 2E F5 [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: F0 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: F0 09 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: F0 09 00 D8 2E 00 B7 A7 92 66 C9 DC B2 64 0F [16:13:41]GetLastDocTimeStamp 1720887182 [16:13:41]current date 1720887223 [16:13:41]FM_GetShiftState [16:13:41]SAM_PROTO_GetShiftState [16:13:41]wFMCommunicate request_size=4 [16:13:41]MH_SAM_APDU [16:13:41]CAPDU: 80 13 01 00 [16:13:41]Write to MH i2c: E2 08 00 D9 2E 80 13 01 00 00 00 00 00 84 [16:13:41]Write i2c OK [16:13:41]MH_I2C_Read... [16:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:41]Read from MH i2c: E2 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: E2 0E 00 [16:13:41]MH_I2C_Read... [16:13:41]Read from MH i2c: E2 0E 00 D9 2E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 65 [16:13:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:13:41]wFMCommunicate OK [16:13:41]SAM_PROTO_GetShiftState done [16:13:41]FM_GetShiftState done [16:13:41]opened in 1720831249 [16:13:41]opened+sec_in_day 1720917649 [16:13:41]quantity*price = 50008 [16:13:41]sum+1 = 50009 [16:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 216 13.07.2024 16:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164656 ФПД: 120917743064432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161343&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164656&fm=120917743064432&tin=02508201610067®Number=0000000000090829&sum=50000 [16:13:42]StoreToDocumentArchive [16:13:42]shift 446 fd 164656 [16:13:42]save to /storage/0446/doc_00164656 [16:13:42]save last doc name /storage/0446/doc_00164656 to /storage/kkm_last_doc_name [16:13:42]save OK [16:13:42]Clear old archive folders... [16:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:42]tlvbuf is 01557070 [16:13:42]SAM_PROTO_ClearQueue [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 09 00 00 [16:13:42]Write to MH i2c: E2 08 00 E6 2E 80 09 00 00 00 00 00 00 86 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [16:13:42]RAPDU: 90 00 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_ClearQueue done [16:13:42]KKMCreateOFDPacket [16:13:42]OFDProtocolAddRootSTLVToBuf [16:13:42]FM_MakeSignedData [16:13:42]FM_MakeSignedData [16:13:42]SAM_PROTO_SignData [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 0D 01 02 [16:13:42]Write to MH i2c: E2 08 00 E7 2E 80 0D 01 02 00 00 00 00 8E [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [16:13:42]RAPDU: 90 00 [16:13:42]wFMCommunicate OK [16:13:42]wFMCommunicate request_size=255 [16:13:42]MH_SAM_APDU [16:13: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 B7 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 83 02 00 35 04 06 00 6D [16:13:42]Write to MH i2c: E2 02 01 E8 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 B7 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 83 02 00 35 04 06 00 6D 00 00 16 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [16:13:42]RAPDU: 90 00 [16:13:42]wFMCommunicate OK [16:13:42]wFMCommunicate request_size=10 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 0D 02 02 05 F9 5B 1F 55 70 [16:13:42]Write to MH i2c: E2 0D 00 E9 2E 80 0D 02 02 05 00 F9 5B 1F 55 70 00 00 D3 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [16:13:42]RAPDU: 90 00 [16:13:42]wFMCommunicate OK [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 0D 03 02 [16:13:42]Write to MH i2c: E2 08 00 EA 2E 80 0D 03 02 00 00 00 00 93 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0B 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0B 00 EA 2E 00 AF 89 D3 28 D7 75 BE F1 90 00 C2 [16:13:42]RAPDU: AF 89 D3 28 D7 75 BE F1 90 00 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_SignData done [16:13:42]FM_MakeSignedData done [16:13:42]CreateOFDProtocolMessage [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 11 00 00 [16:13:42]Write to MH i2c: E2 08 00 EB 2E 80 11 00 00 00 00 00 00 93 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 17 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 17 00 EB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [16:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:42]wFMCommunicate OK [16:13:42]CreateOFDProtocolMessage done [16:13:42]OFDSenderStorePacket 164656 [16:13:42]StoreOFDPacket docnum=164656 [16:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 20 07 01 FC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 B7 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 83 02 00 35 04 06 00 6D F9 5B 1F 55 70 AF 89 D3 28 D7 75 BE F1 [16:13:42]CheckFolder [16:13:42]dirname=/storage/ofd_packets [16:13:42]CheckFolder done [16:13:42]ProducePacketName [16:13:42]name=ofd_packets/00164656 [16:13:42]NVStorageSaveData ofd_packets/00164656 [16:13:42]File name is /storage/ofd_packets/00164656 [16:13:42]Write 301 bytes [16:13:42]NVStorageSaveData done [16:13:42]OFDSenderStorePacket done [16:13:42]KKMCreateOFDPacket done [16:13:42]NVStorageSaveData kkm_last_timestamp [16:13:42]File name is /storage/kkm_last_timestamp [16:13:42]Write 4 bytes [16:13:42]NVStorageSaveData done [16:13:42]ExternCall_PrintAddStr [16:13:42]wPrintStart [16:13:42]Write to MH i2c: 01 00 00 EC 2E 1A [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: 01 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: 01 07 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 FF 0F 2F [16:13:42]RasterBufferAndPrint [16:13:42]line Счет N : (1)458750 [16:13:42]line ИНН: 02508201610067 [16:13:42]line Контрольно-Кассовый Чек [16:13:42]line ПРОДАЖА [16:13:42]line ТРК (МРК, ГНК) : 12 [16:13:42]line Товар: 2710124130 [16:13:42]line Аи-92-К-5 [16:13:42]line 7.600 * 65.80 [16:13:42]line = 500.08 [16:13:42]line НДС 12% НСП 1% [16:13:42]line > о реализуемом товаре [16:13:42]line ОКРУГЛЕНИЕ: -0.08 [16:13:42]line ИТОГО: 500.00 [16:13:42]line Внесено: 500.00 [16:13:42]line СДАЧА: 0.00 [16:13:42]line НСП 1% : 4.42 [16:13:42]line НДС 12% : 53.11 [16:13:42]line Наличными: 500.00 [16:13:42]line Безнал.: 0.00 [16:13:42]line Место: АЗС № 72 "Партнер Нефть" [16:13:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:13:42]line СНО: Общий режим [16:13:42]line Чек 216 13.07.2024 16:13 [16:13:42]line Смена: 446 ФФД: 1.0 [16:13:42]line ЗНМ: 0300000160 [16:13:42]line РНМ: 0000000000090829 [16:13:42]line Версия ККМ: 001 [16:13:42]line ФМ: 0000000000874718 [16:13:42]line ФД: 164656 [16:13:42]line ФПД: 120917743064432 [16:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161343&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164656&fm=120917743064432&tin=02508201610067®Number=0000000000090829&sum=50000 [16:13:43]OFD Sender: Processing packet 164656 [packets to send 104, broken 103] [16:13:43]ProducePacketName [16:13:43]name=ofd_packets/00164656 [16:13:43]OFD Sender: To server: pG, [16:13:43]CommunicateWithHost lk.salyk.kg:30040 [16:13:43]ConnectInit lk.salyk.kg [16:13:43]written 0, free lines is 4095 [16:13:43]Connected sock=7 [16:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 20 07 01 FC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D8 00 00 00 F4 03 04 00 B7 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 83 02 00 35 04 06 00 6D F9 5B 1F 55 70 AF 89 D3 28 D7 75 BE F1 [16:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 5D 47 00 64 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 34 37 31 38 10 04 04 00 30 83 02 00 F4 03 04 00 48 4E 92 66 B6 04 01 00 00 89 3C 1E 76 C8 9F 1B 4C [16:13:43]CommunicateWithHost err = 0 [16:13:43]CheckOFDResponse [16:13:43]1017 (14) - 77093643461234 [16:13:43]1041 (16) - 0000000000874718 [16:13:43]1040 (4) - 164656 [16:13:43]1012 (4) - 13.07.2024 09:52 [16:13:43]1206 (1) - 0 [16:13:43]OFD Sender: Remove packet 164656 [16:13:43]ProducePacketName [16:13:43]name=ofd_packets/00164656 [16:13:43]NVStorageDeleteData [16:13:43]Write to MH i2c: 01 00 00 16 2F 45 [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: 01 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: 01 07 00 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: 01 07 00 16 2F 00 00 00 00 00 F3 0C 4B [16:13:43]RasterBufferAndPrint [16:13:43]line [16:13:43]line [16:13:43]line [16:13:43]line [16:13:43]line [16:13:43]written 0, free lines is 3321 [16:13:43]MH_Cut [16:13:43]Write to MH i2c: D1 01 00 1D 2F 01 1E [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: D1 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: D1 01 00 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: D1 01 00 1D 2F 00 1D [16:13:43]Write to MH i2c: 01 00 00 1E 2F 4D [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:44]OFD Sender: No OFD packet to send [16:13:44]*** Cut start [16:13:44]*** Partial cut [16:13:44]*** CUTSNS_PIN = 1 [16:13:44]*** CUTSNS_PIN = 0 [16:13:44]*** Brake cut motor [16:13:44]Read from MH i2c: 01 [16:13:44]MH_I2C_Read... [16:13:44]*** Stop cut motor [16:13:44]*** Cut end [16:13:44]Read from MH i2c: 01 07 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 07 00 1E 2F 00 00 00 00 00 FF 0F 62 [16:13:44]process_action close_receipt done [16:13:44]requested_data is exist [16:13:44]produce_requested_data [16:13:44]requested_item fm.sn is exist - process it [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 11 00 00 [16:13:44]Write to MH i2c: E2 08 00 1F 2F 80 11 00 00 00 00 00 00 C8 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 17 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 17 00 1F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [16:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:45]wFMCommunicate OK [16:13:45]requested_item fd.num is exist - process it [16:13:45]SAM_PROTO_GetFieldsCounters [16:13:45]wFMCommunicate request_size=4 [16:13:45]MH_SAM_APDU [16:13:45]CAPDU: 80 13 00 00 [16:13:45]Write to MH i2c: E2 08 00 20 2F 80 13 00 00 00 00 00 00 CB [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 62 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 62 00 20 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:45]wFMCommunicate OK [16:13:45]SAM_PROTO_GetFieldsCounters done [16:13:45]requested_item shift.num is exist - process it [16:13:45]requested_item shift.opened is exist - process it [16:13:45]req_shift_opened [16:13:45]FM_GetShiftState [16:13:45]SAM_PROTO_GetShiftState [16:13:45]wFMCommunicate request_size=4 [16:13:45]MH_SAM_APDU [16:13:45]CAPDU: 80 13 01 00 [16:13:45]Write to MH i2c: E2 08 00 21 2F 80 13 01 00 00 00 00 00 CD [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:45]Read from MH i2c: E2 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: E2 0E 00 21 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AE [16:13:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:13:45]wFMCommunicate OK [16:13:45]SAM_PROTO_GetShiftState done [16:13:45]FM_GetShiftState done [16:13:45]req_shift_opened done [16:13:45]requested_item shift.open_date is exist - process it [16:13:45]req_shift_open_date [16:13:45]req_shift_open_date done [16:13:45]produce_requested_data done [16:13:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164656,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:13:45]process_action_free close_receipt [16:13:45]json_value_free [16:13:45]json_value_free done [16:13:45]process_json_proto returns [16:13:45]Send response to host [16:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164656,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:13:45]free response buf [16:13:45]execute_script done [16:13:45]execute_script returns [16:13:45]free content buf [16:13:45]Sock 9.Close socket [16:13:45]Sock 9.Thread stoped [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:13:59]accept exits with 10 [16:13:59]New connection [16:13:59]New thread 3067149668 created [16:13:59]Thread 3067293028 joined [16:13:59]Waiting for new connection... [16:13:59] Sock 10.Parse request [16:13:59]Sock 10.Check first char [16:13:59]Sock 10.First char is OK [16:13:59]request: POST /json_proto HTTP/1.0 [16:13:59]Method: POST [16:13:59]URL: /json_proto [16:13:59]Method is POST - this is cgi request [16:13:59]url: /json_proto [16:13:59]query_string will be loaded in cgi processing [16:13:59]execute_cgi json_proto POST (null) [16:13:59]execute_cgi path=json_proto method=POST [16:13:59]POST find Content-Length [16:13:59]Host: 172.17.56.4:8080 [16:13:59]Content-Length: 677 [16:13:59]Content-Type: application/json [16:13:59] [16:13:59]POST finish read [16:13:59]Found Content-Length = 677 [16:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:59]execute_script... [16:13: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)458751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:59]POST & json_proto [16:13:59]process_json_proto [16:13:59]json parsed OK: [16:13:59]protocol is kg_v1.0 [16:13:59]action value=close_receipt [16:13:59]process_action close_receipt [16:13:59]cmd_close_receipt [16:13:59]MH_GetDate [16:13:59]Write to MH i2c: F0 00 00 22 2F 40 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: F0 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: F0 09 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: F0 09 00 22 2F 00 CA A7 92 66 C9 DC B2 64 6D [16:13:59]GetLastDocTimeStamp 1720887223 [16:13:59]current date 1720887242 [16:13:59]FM_GetShiftState [16:13:59]SAM_PROTO_GetShiftState [16:13:59]wFMCommunicate request_size=4 [16:13:59]MH_SAM_APDU [16:13:59]CAPDU: 80 13 01 00 [16:13:59]Write to MH i2c: E2 08 00 23 2F 80 13 01 00 00 00 00 00 CF [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:59]Read from MH i2c: E2 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 23 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B0 [16:13:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:13:59]wFMCommunicate OK [16:13:59]SAM_PROTO_GetShiftState done [16:13:59]FM_GetShiftState done [16:13:59]opened in 1720831249 [16:13:59]opened+sec_in_day 1720917649 [16:13:59]quantity*price = 50008 [16:13:59]sum+1 = 50009 [16:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 217 13.07.2024 16:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164657 ФПД: 123229121690427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164657&fm=123229121690427&tin=02508201610067®Number=0000000000090829&sum=50000 [16:14:00]StoreToDocumentArchive [16:14:00]shift 446 fd 164657 [16:14:00]save to /storage/0446/doc_00164657 [16:14:00]save last doc name /storage/0446/doc_00164657 to /storage/kkm_last_doc_name [16:14:00]save OK [16:14:00]Clear old archive folders... [16:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:00]tlvbuf is 015537E0 [16:14:00]SAM_PROTO_ClearQueue [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 09 00 00 [16:14:00]Write to MH i2c: E2 08 00 30 2F 80 09 00 00 00 00 00 00 D1 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]SAM_PROTO_ClearQueue done [16:14:00]KKMCreateOFDPacket [16:14:00]OFDProtocolAddRootSTLVToBuf [16:14:00]FM_MakeSignedData [16:14:00]FM_MakeSignedData [16:14:00]SAM_PROTO_SignData [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 01 02 [16:14:00]Write to MH i2c: E2 08 00 31 2F 80 0D 01 02 00 00 00 00 D9 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]wFMCommunicate request_size=255 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D9 00 00 00 F4 03 04 00 CA A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 83 02 00 35 04 06 00 70 [16:14:00]Write to MH i2c: E2 02 01 32 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D9 00 00 00 F4 03 04 00 CA A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 83 02 00 35 04 06 00 70 00 00 79 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 03 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [16:14:01]RAPDU: 90 00 [16:14:01]wFMCommunicate OK [16:14:01]wFMCommunicate request_size=10 [16:14:01]MH_SAM_APDU [16:14:01]CAPDU: 80 0D 02 02 05 13 84 06 3B 3B [16:14:01]Write to MH i2c: E2 0D 00 33 2F 80 0D 02 02 05 00 13 84 06 3B 3B 00 00 F9 [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 03 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 03 00 33 2F 00 90 00 D6 [16:14:01]RAPDU: 90 00 [16:14:01]wFMCommunicate OK [16:14:01]wFMCommunicate request_size=4 [16:14:01]MH_SAM_APDU [16:14:01]CAPDU: 80 0D 03 02 [16:14:01]Write to MH i2c: E2 08 00 34 2F 80 0D 03 02 00 00 00 00 DE [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 0B 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 0B 00 34 2F 00 2A 8E 0C AA 81 6A BF A7 90 00 9E [16:14:01]RAPDU: 2A 8E 0C AA 81 6A BF A7 90 00 [16:14:01]wFMCommunicate OK [16:14:01]SAM_PROTO_SignData done [16:14:01]FM_MakeSignedData done [16:14:01]CreateOFDProtocolMessage [16:14:01]wFMCommunicate request_size=4 [16:14:01]MH_SAM_APDU [16:14:01]CAPDU: 80 11 00 00 [16:14:01]Write to MH i2c: E2 08 00 35 2F 80 11 00 00 00 00 00 00 DE [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 17 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 17 00 35 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [16:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:01]wFMCommunicate OK [16:14:01]CreateOFDProtocolMessage done [16:14:01]OFDSenderStorePacket 164657 [16:14:01]StoreOFDPacket docnum=164657 [16:14:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 BE 07 01 39 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D9 00 00 00 F4 03 04 00 CA A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 83 02 00 35 04 06 00 70 13 84 06 3B 3B 2A 8E 0C AA 81 6A BF A7 [16:14:01]CheckFolder [16:14:01]dirname=/storage/ofd_packets [16:14:01]CheckFolder done [16:14:01]ProducePacketName [16:14:01]name=ofd_packets/00164657 [16:14:01]NVStorageSaveData ofd_packets/00164657 [16:14:01]File name is /storage/ofd_packets/00164657 [16:14:01]Write 301 bytes [16:14:01]NVStorageSaveData done [16:14:01]OFDSenderStorePacket done [16:14:01]KKMCreateOFDPacket done [16:14:01]NVStorageSaveData kkm_last_timestamp [16:14:01]File name is /storage/kkm_last_timestamp [16:14:01]Write 4 bytes [16:14:01]NVStorageSaveData done [16:14:01]ExternCall_PrintAddStr [16:14:01]wPrintStart [16:14:01]Write to MH i2c: 01 00 00 36 2F 65 [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 07 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 07 00 36 2F 00 00 00 00 00 FF 0F 7A [16:14:01]RasterBufferAndPrint [16:14:01]line Счет N : (1)458751 [16:14:01]line ИНН: 02508201610067 [16:14:01]line Контрольно-Кассовый Чек [16:14:01]line ПРОДАЖА [16:14:01]line ТРК (МРК, ГНК) : 22 [16:14:01]line Товар: 2710124130 [16:14:01]line Аи-92-К-5 [16:14:01]line 7.600 * 65.80 [16:14:01]line = 500.08 [16:14:01]line НДС 12% НСП 1% [16:14:01]line > о реализуемом товаре [16:14:01]line ОКРУГЛЕНИЕ: -0.08 [16:14:01]line ИТОГО: 500.00 [16:14:01]line Внесено: 500.00 [16:14:01]line СДАЧА: 0.00 [16:14:01]line НСП 1% : 4.42 [16:14:01]line НДС 12% : 53.11 [16:14:01]line Наличными: 500.00 [16:14:01]line Безнал.: 0.00 [16:14:01]line Место: АЗС № 72 "Партнер Нефть" [16:14:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:14:01]line СНО: Общий режим [16:14:01]line Чек 217 13.07.2024 16:14 [16:14:01]line Смена: 446 ФФД: 1.0 [16:14:01]line ЗНМ: 0300000160 [16:14:01]line РНМ: 0000000000090829 [16:14:01]line Версия ККМ: 001 [16:14:01]line ФМ: 0000000000874718 [16:14:01]line ФД: 164657 [16:14:01]line ФПД: 123229121690427 [16:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164657&fm=123229121690427&tin=02508201610067®Number=0000000000090829&sum=50000 [16:14:01]OFD Sender: Processing packet 164657 [packets to send 104, broken 103] [16:14:01]ProducePacketName [16:14:01]name=ofd_packets/00164657 [16:14:01]OFD Sender: To server: pG, [16:14:01]CommunicateWithHost lk.salyk.kg:30040 [16:14:01]ConnectInit lk.salyk.kg [16:14:01]written 0, free lines is 4095 [16:14:01]Connected sock=9 [16:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 BE 07 01 39 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D9 00 00 00 F4 03 04 00 CA A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 83 02 00 35 04 06 00 70 13 84 06 3B 3B 2A 8E 0C AA 81 6A BF A7 [16:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 1B 47 00 1C 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 83 02 00 F4 03 04 00 5A 4E 92 66 B6 04 01 00 00 B1 7C FA B9 50 08 6E 6C [16:14:02]CommunicateWithHost err = 0 [16:14:02]CheckOFDResponse [16:14:02]1017 (14) - 77093643461234 [16:14:02]1041 (16) - 0000000000874718 [16:14:02]1040 (4) - 164657 [16:14:02]1012 (4) - 13.07.2024 09:52 [16:14:02]1206 (1) - 0 [16:14:02]OFD Sender: Remove packet 164657 [16:14:02]ProducePacketName [16:14:02]name=ofd_packets/00164657 [16:14:02]NVStorageDeleteData [16:14:02]Write to MH i2c: 01 00 00 60 2F 8F [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 07 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 F6 0C 98 [16:14:02]RasterBufferAndPrint [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]written 0, free lines is 3324 [16:14:02]MH_Cut [16:14:02]Write to MH i2c: D1 01 00 67 2F 01 68 [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 01 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 01 00 67 2F 00 67 [16:14:02]Write to MH i2c: 01 00 00 68 2F 97 [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]OFD Sender: No OFD packet to send [16:14:02]*** Cut start [16:14:02]*** Partial cut [16:14:02]*** CUTSNS_PIN = 1 [16:14:02]*** CUTSNS_PIN = 0 [16:14:03]*** Brake cut motor [16:14:03]Read from MH i2c: 01 [16:14:03]MH_I2C_Read... [16:14:03]*** Stop cut motor [16:14:03]*** Cut end [16:14:03]Read from MH i2c: 01 07 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: 01 07 00 68 2F 00 00 00 00 00 FF 0F AC [16:14:03]process_action close_receipt done [16:14:03]requested_data is exist [16:14:03]produce_requested_data [16:14:03]requested_item fm.sn is exist - process it [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 11 00 00 [16:14:03]Write to MH i2c: E2 08 00 69 2F 80 11 00 00 00 00 00 00 12 [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 17 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 17 00 69 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [16:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:03]wFMCommunicate OK [16:14:03]requested_item fd.num is exist - process it [16:14:03]SAM_PROTO_GetFieldsCounters [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 13 00 00 [16:14:03]Write to MH i2c: E2 08 00 6A 2F 80 13 00 00 00 00 00 00 15 [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 62 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 62 00 6A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:03]wFMCommunicate OK [16:14:03]SAM_PROTO_GetFieldsCounters done [16:14:03]requested_item shift.num is exist - process it [16:14:03]requested_item shift.opened is exist - process it [16:14:03]req_shift_opened [16:14:03]FM_GetShiftState [16:14:03]SAM_PROTO_GetShiftState [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 13 01 00 [16:14:03]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 0E 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F8 [16:14:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:14:03]wFMCommunicate OK [16:14:03]SAM_PROTO_GetShiftState done [16:14:03]FM_GetShiftState done [16:14:03]req_shift_opened done [16:14:03]requested_item shift.open_date is exist - process it [16:14:03]req_shift_open_date [16:14:03]req_shift_open_date done [16:14:03]produce_requested_data done [16:14:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164657,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:14:03]process_action_free close_receipt [16:14:03]json_value_free [16:14:03]json_value_free done [16:14:03]process_json_proto returns [16:14:03]Send response to host [16:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164657,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:14:03]free response buf [16:14:03]execute_script done [16:14:03]execute_script returns [16:14:03]free content buf [16:14:03]Sock 10.Close socket [16:14:03]Sock 10.Thread stoped [16:14:07]OFD Sender: No OFD packet to send [16:14:10]accept exits with 7 [16:14:10]New connection [16:14:10]New thread 3067293028 created [16:14:10]Thread 3067149668 joined [16:14:10]Waiting for new connection... [16:14:10] Sock 7.Parse request [16:14:10]Sock 7.Check first char [16:14:10]Sock 7.First char is OK [16:14:10]request: POST /json_proto HTTP/1.0 [16:14:10]Method: POST [16:14:10]URL: /json_proto [16:14:10]Method is POST - this is cgi request [16:14:10]url: /json_proto [16:14:10]query_string will be loaded in cgi processing [16:14:10]execute_cgi json_proto POST (null) [16:14:10]execute_cgi path=json_proto method=POST [16:14:10]POST find Content-Length [16:14:10]Host: 172.17.56.4:8080 [16:14:10]Content-Length: 788 [16:14:10]Content-Type: application/json [16:14:10] [16:14:10]POST finish read [16:14:10]Found Content-Length = 788 [16:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.000, "sum" : 712.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 712.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:10]execute_script... [16:14: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)458748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.000, "sum" : 712.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 712.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:10]POST & json_proto [16:14:10]process_json_proto [16:14:10]json parsed OK: [16:14:10]protocol is kg_v1.0 [16:14:10]action value=close_receipt [16:14:10]process_action close_receipt [16:14:10]cmd_close_receipt [16:14:10]MH_GetDate [16:14:10]Write to MH i2c: F0 00 00 6C 2F 8A [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: F0 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: F0 09 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: F0 09 00 6C 2F 00 D5 A7 92 66 C9 DC B2 64 C2 [16:14:10]GetLastDocTimeStamp 1720887242 [16:14:10]current date 1720887253 [16:14:10]FM_GetShiftState [16:14:10]SAM_PROTO_GetShiftState [16:14:10]wFMCommunicate request_size=4 [16:14:10]MH_SAM_APDU [16:14:10]CAPDU: 80 13 01 00 [16:14:10]Write to MH i2c: E2 08 00 6D 2F 80 13 01 00 00 00 00 00 19 [16:14:10]Write i2c OK [16:14:10]MH_I2C_Read... [16:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:10]Read from MH i2c: E2 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 0E 00 [16:14:10]MH_I2C_Read... [16:14:10]Read from MH i2c: E2 0E 00 6D 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FA [16:14:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:14:10]wFMCommunicate OK [16:14:10]SAM_PROTO_GetShiftState done [16:14:10]FM_GetShiftState done [16:14:10]opened in 1720831249 [16:14:10]opened+sec_in_day 1720917649 [16:14:10]quantity*price = 71260 [16:14:10]sum+1 = 71261 [16:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 712.60 НСП 1% : 6.31 НДС 12% : 75.67 Наличными: 0.00 Безнал.: 712.60 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 218 13.07.2024 16:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164658 ФПД: 143825085164314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164658&fm=143825085164314&tin=02508201610067®Number=0000000000090829&sum=71260 [16:14:11]StoreToDocumentArchive [16:14:11]shift 446 fd 164658 [16:14:11]save to /storage/0446/doc_00164658 [16:14:11]save last doc name /storage/0446/doc_00164658 to /storage/kkm_last_doc_name [16:14:11]save OK [16:14:11]Clear old archive folders... [16:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:11]tlvbuf is 014C0F10 [16:14:11]SAM_PROTO_ClearQueue [16:14:11]wFMCommunicate request_size=4 [16:14:11]MH_SAM_APDU [16:14:11]CAPDU: 80 09 00 00 [16:14:11]Write to MH i2c: E2 08 00 7A 2F 80 09 00 00 00 00 00 00 1B [16:14:11]Write i2c OK [16:14:11]MH_I2C_Read... [16:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:11]Read from MH i2c: E2 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 03 00 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [16:14:11]RAPDU: 90 00 [16:14:11]wFMCommunicate OK [16:14:11]SAM_PROTO_ClearQueue done [16:14:11]KKMCreateOFDPacket [16:14:11]OFDProtocolAddRootSTLVToBuf [16:14:11]FM_MakeSignedData [16:14:11]FM_MakeSignedData [16:14:11]SAM_PROTO_SignData [16:14:11]wFMCommunicate request_size=4 [16:14:11]MH_SAM_APDU [16:14:11]CAPDU: 80 0D 01 02 [16:14:11]Write to MH i2c: E2 08 00 7B 2F 80 0D 01 02 00 00 00 00 23 [16:14:11]Write i2c OK [16:14:11]MH_I2C_Read... [16:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:11]Read from MH i2c: E2 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 03 00 [16:14:11]MH_I2C_Read... [16:14:11]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [16:14:11]RAPDU: 90 00 [16:14:11]wFMCommunicate OK [16:14:11]wFMCommunicate request_size=255 [16:14:11]MH_SAM_APDU [16:14:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 83 02 00 35 04 06 00 82 CE E3 1C [16:14:11]Write to MH i2c: E2 02 01 7C 2F 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 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 83 02 00 35 04 06 00 82 CE E3 1C 00 00 3F [16:14:11]Write i2c OK [16:14:11]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 03 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [16:14:12]RAPDU: 90 00 [16:14:12]wFMCommunicate OK [16:14:12]wFMCommunicate request_size=7 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 0D 02 02 02 6B 1A [16:14:12]Write to MH i2c: E2 0A 00 7D 2F 80 0D 02 02 02 00 6B 1A 00 00 AF [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 03 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [16:14:12]RAPDU: 90 00 [16:14:12]wFMCommunicate OK [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 0D 03 02 [16:14:12]Write to MH i2c: E2 08 00 7E 2F 80 0D 03 02 00 00 00 00 28 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0B 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0B 00 7E 2F 00 87 90 6A 35 0F 68 31 56 90 00 DD [16:14:12]RAPDU: 87 90 6A 35 0F 68 31 56 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_SignData done [16:14:12]FM_MakeSignedData done [16:14:12]CreateOFDProtocolMessage [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 11 00 00 [16:14:12]Write to MH i2c: E2 08 00 7F 2F 80 11 00 00 00 00 00 00 28 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 7F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [16:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:12]wFMCommunicate OK [16:14:12]CreateOFDProtocolMessage done [16:14:12]OFDSenderStorePacket 164658 [16:14:12]StoreOFDPacket docnum=164658 [16:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D8 06 04 01 22 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 83 02 00 35 04 06 00 82 CE E3 1C 6B 1A 87 90 6A 35 0F 68 31 56 [16:14:12]CheckFolder [16:14:12]dirname=/storage/ofd_packets [16:14:12]CheckFolder done [16:14:12]ProducePacketName [16:14:12]name=ofd_packets/00164658 [16:14:12]NVStorageSaveData ofd_packets/00164658 [16:14:12]File name is /storage/ofd_packets/00164658 [16:14:12]Write 298 bytes [16:14:12]NVStorageSaveData done [16:14:12]OFDSenderStorePacket done [16:14:12]KKMCreateOFDPacket done [16:14:12]NVStorageSaveData kkm_last_timestamp [16:14:12]File name is /storage/kkm_last_timestamp [16:14:12]Write 4 bytes [16:14:12]NVStorageSaveData done [16:14:12]ExternCall_PrintAddStr [16:14:12]wPrintStart [16:14:12]Write to MH i2c: 01 00 00 80 2F AF [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 80 2F 00 00 00 00 00 FF 0F C4 [16:14:12]RasterBufferAndPrint [16:14:12]line Счет N : (1)458748 [16:14:12]line ИНН: 02508201610067 [16:14:12]line Контрольно-Кассовый Чек [16:14:12]line ПРОДАЖА [16:14:12]line ТРК (МРК, ГНК) : 11 [16:14:12]line Товар: 2710194210 [16:14:12]line ДТ-К-5 [16:14:12]line 10.000 * 71.26 [16:14:12]line = 712.60 [16:14:12]line НДС 12% НСП 1% [16:14:12]line > о реализуемом товаре [16:14:12]line ИТОГО: 712.60 [16:14:12]line НСП 1% : 6.31 [16:14:12]line НДС 12% : 75.67 [16:14:12]line Наличными: 0.00 [16:14:12]line Безнал.: 712.60 [16:14:12]line Место: АЗС № 72 "Партнер Нефть" [16:14:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:14:12]line СНО: Общий режим [16:14:12]line Чек 218 13.07.2024 16:14 [16:14:12]line Смена: 446 ФФД: 1.0 [16:14:12]line ЗНМ: 0300000160 [16:14:12]line РНМ: 0000000000090829 [16:14:12]line Версия ККМ: 001 [16:14:12]line Платежная система: KICB Банк [16:14:12]line ФМ: 0000000000874718 [16:14:12]line ФД: 164658 [16:14:12]line ФПД: 143825085164314 [16:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164658&fm=143825085164314&tin=02508201610067®Number=0000000000090829&sum=71260 [16:14:12]written 0, free lines is 4095 [16:14:12]OFD Sender: Processing packet 164658 [packets to send 104, broken 103] [16:14:12]ProducePacketName [16:14:12]name=ofd_packets/00164658 [16:14:12]OFD Sender: To server: pG, [16:14:12]CommunicateWithHost lk.salyk.kg:30040 [16:14:12]ConnectInit lk.salyk.kg [16:14:12]Connected sock=10 [16:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D8 06 04 01 22 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 D5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 83 02 00 35 04 06 00 82 CE E3 1C 6B 1A 87 90 6A 35 0F 68 31 56 [16:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 12 47 00 CF 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 34 37 31 38 10 04 04 00 32 83 02 00 F4 03 04 00 65 4E 92 66 B6 04 01 00 00 43 68 F1 2D 18 01 AC D5 [16:14:12]CommunicateWithHost err = 0 [16:14:12]CheckOFDResponse [16:14:12]1017 (14) - 77093643461234 [16:14:12]1041 (16) - 0000000000874718 [16:14:12]1040 (4) - 164658 [16:14:12]1012 (4) - 13.07.2024 09:52 [16:14:12]1206 (1) - 0 [16:14:12]OFD Sender: Remove packet 164658 [16:14:12]ProducePacketName [16:14:12]name=ofd_packets/00164658 [16:14:12]NVStorageDeleteData [16:14:12]Write to MH i2c: 01 00 00 A9 2F D8 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 0C 0D F8 [16:14:12]RasterBufferAndPrint [16:14:12]line [16:14:12]line [16:14:12]line [16:14:12]line [16:14:12]line [16:14:12]written 0, free lines is 3346 [16:14:12]MH_Cut [16:14:12]Write to MH i2c: D1 01 00 B0 2F 01 B1 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: D1 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: D1 01 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: D1 01 00 B0 2F 00 B0 [16:14:12]Write to MH i2c: 01 00 00 B1 2F E0 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:13]OFD Sender: No OFD packet to send [16:14:13]*** Cut start [16:14:13]*** Partial cut [16:14:13]*** CUTSNS_PIN = 1 [16:14:13]*** CUTSNS_PIN = 0 [16:14:13]*** Brake cut motor [16:14:14]Read from MH i2c: 01 [16:14:14]MH_I2C_Read... [16:14:14]*** Stop cut motor [16:14:14]*** Cut end [16:14:14]Read from MH i2c: 01 07 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [16:14:14]process_action close_receipt done [16:14:14]requested_data is exist [16:14:14]produce_requested_data [16:14:14]requested_item fm.sn is exist - process it [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 11 00 00 [16:14:14]Write to MH i2c: E2 08 00 B2 2F 80 11 00 00 00 00 00 00 5B [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 17 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 17 00 B2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [16:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:14]wFMCommunicate OK [16:14:14]requested_item fd.num is exist - process it [16:14:14]SAM_PROTO_GetFieldsCounters [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 13 00 00 [16:14:14]Write to MH i2c: E2 08 00 B3 2F 80 13 00 00 00 00 00 00 5E [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 62 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 62 00 B3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [16:14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:14]wFMCommunicate OK [16:14:14]SAM_PROTO_GetFieldsCounters done [16:14:14]requested_item shift.num is exist - process it [16:14:14]requested_item shift.opened is exist - process it [16:14:14]req_shift_opened [16:14:14]FM_GetShiftState [16:14:14]SAM_PROTO_GetShiftState [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 13 01 00 [16:14:14]Write to MH i2c: E2 08 00 B4 2F 80 13 01 00 00 00 00 00 60 [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 0E 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 0E 00 B4 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 41 [16:14:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:14:14]wFMCommunicate OK [16:14:14]SAM_PROTO_GetShiftState done [16:14:14]FM_GetShiftState done [16:14:14]req_shift_opened done [16:14:14]requested_item shift.open_date is exist - process it [16:14:14]req_shift_open_date [16:14:14]req_shift_open_date done [16:14:14]produce_requested_data done [16:14:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164658,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:14:14]process_action_free close_receipt [16:14:14]json_value_free [16:14:14]json_value_free done [16:14:14]process_json_proto returns [16:14:14]Send response to host [16:14:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164658,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:14:14]free response buf [16:14:14]execute_script done [16:14:14]execute_script returns [16:14:14]free content buf [16:14:14]Sock 7.Close socket [16:14:14]Sock 7.Thread stoped [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:26]accept exits with 9 [16:14:26]New connection [16:14:26]New thread 3067149668 created [16:14:26]Thread 3067293028 joined [16:14:26]Waiting for new connection... [16:14:26] Sock 9.Parse request [16:14:26]Sock 9.Check first char [16:14:26]Sock 9.First char is OK [16:14:26]request: POST /json_proto HTTP/1.0 [16:14:26]Method: POST [16:14:26]URL: /json_proto [16:14:26]Method is POST - this is cgi request [16:14:26]url: /json_proto [16:14:26]query_string will be loaded in cgi processing [16:14:26]execute_cgi json_proto POST (null) [16:14:26]execute_cgi path=json_proto method=POST [16:14:26]POST find Content-Length [16:14:26]Host: 172.17.56.4:8080 [16:14:26]Content-Length: 790 [16:14:26]Content-Type: application/json [16:14:26] [16:14:26]POST finish read [16:14:26]Found Content-Length = 790 [16:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:26]execute_script... [16:14: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)458752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:26]POST & json_proto [16:14:26]process_json_proto [16:14:26]json parsed OK: [16:14:26]protocol is kg_v1.0 [16:14:26]action value=close_receipt [16:14:26]process_action close_receipt [16:14:26]cmd_close_receipt [16:14:26]MH_GetDate [16:14:26]Write to MH i2c: F0 00 00 B5 2F D3 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: F0 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: F0 09 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: F0 09 00 B5 2F 00 E4 A7 92 66 C9 DC B2 64 1A [16:14:26]GetLastDocTimeStamp 1720887253 [16:14:26]current date 1720887268 [16:14:26]FM_GetShiftState [16:14:26]SAM_PROTO_GetShiftState [16:14:26]wFMCommunicate request_size=4 [16:14:26]MH_SAM_APDU [16:14:26]CAPDU: 80 13 01 00 [16:14:26]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [16:14:26]Write i2c OK [16:14:26]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0E 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 43 [16:14:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:14:26]wFMCommunicate OK [16:14:26]SAM_PROTO_GetShiftState done [16:14:26]FM_GetShiftState done [16:14:26]opened in 1720831249 [16:14:26]opened+sec_in_day 1720917649 [16:14:26]quantity*price = 20022 [16:14:26]sum+1 = 20024 [16:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 219 13.07.2024 16:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164659 ФПД: 39058380167515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164659&fm=39058380167515&tin=02508201610067®Number=0000000000090829&sum=20023 [16:14:27]StoreToDocumentArchive [16:14:27]shift 446 fd 164659 [16:14:27]save to /storage/0446/doc_00164659 [16:14:27]save last doc name /storage/0446/doc_00164659 to /storage/kkm_last_doc_name [16:14:27]save OK [16:14:27]Clear old archive folders... [16:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:27]tlvbuf is B6F14170 [16:14:27]SAM_PROTO_ClearQueue [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 09 00 00 [16:14:27]Write to MH i2c: E2 08 00 C3 2F 80 09 00 00 00 00 00 00 64 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 C3 2F 00 90 00 66 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]SAM_PROTO_ClearQueue done [16:14:27]KKMCreateOFDPacket [16:14:27]OFDProtocolAddRootSTLVToBuf [16:14:27]FM_MakeSignedData [16:14:27]FM_MakeSignedData [16:14:27]SAM_PROTO_SignData [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 01 02 [16:14:27]Write to MH i2c: E2 08 00 C4 2F 80 0D 01 02 00 00 00 00 6C [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 C4 2F 00 90 00 67 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=255 [16:14:27]MH_SAM_APDU [16:14: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 83 02 00 35 04 06 00 23 [16:14:27]Write to MH i2c: E2 02 01 C5 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 83 02 00 35 04 06 00 23 00 00 A7 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=10 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 02 02 05 85 FC E0 19 5B [16:14:27]Write to MH i2c: E2 0D 00 C6 2F 80 0D 02 02 05 00 85 FC E0 19 5B 00 00 4E [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 03 02 [16:14:27]Write to MH i2c: E2 08 00 C7 2F 80 0D 03 02 00 00 00 00 71 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0B 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0B 00 C7 2F 00 BD C5 28 D4 89 F3 DB 05 90 00 4C [16:14:28]RAPDU: BD C5 28 D4 89 F3 DB 05 90 00 [16:14:28]wFMCommunicate OK [16:14:28]SAM_PROTO_SignData done [16:14:28]FM_MakeSignedData done [16:14:28]CreateOFDProtocolMessage [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 11 00 00 [16:14:28]Write to MH i2c: E2 08 00 C8 2F 80 11 00 00 00 00 00 00 71 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 C8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [16:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:28]wFMCommunicate OK [16:14:28]CreateOFDProtocolMessage done [16:14:28]OFDSenderStorePacket 164659 [16:14:28]StoreOFDPacket docnum=164659 [16:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 61 07 01 56 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 83 02 00 35 04 06 00 23 85 FC E0 19 5B BD C5 28 D4 89 F3 DB 05 [16:14:28]CheckFolder [16:14:28]dirname=/storage/ofd_packets [16:14:28]CheckFolder done [16:14:28]ProducePacketName [16:14:28]name=ofd_packets/00164659 [16:14:28]NVStorageSaveData ofd_packets/00164659 [16:14:28]File name is /storage/ofd_packets/00164659 [16:14:28]Write 301 bytes [16:14:28]NVStorageSaveData done [16:14:28]OFDSenderStorePacket done [16:14:28]KKMCreateOFDPacket done [16:14:28]NVStorageSaveData kkm_last_timestamp [16:14:28]File name is /storage/kkm_last_timestamp [16:14:28]Write 4 bytes [16:14:28]NVStorageSaveData done [16:14:28]ExternCall_PrintAddStr [16:14:28]wPrintStart [16:14:28]Write to MH i2c: 01 00 00 C9 2F F8 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 C9 2F 00 00 00 00 00 FF 0F 0D [16:14:28]RasterBufferAndPrint [16:14:28]line Счет N : (1)458752 [16:14:28]line ИНН: 02508201610067 [16:14:28]line Контрольно-Кассовый Чек [16:14:28]line ПРОДАЖА [16:14:28]line ТРК (МРК, ГНК) : 22 [16:14:28]line Товар: 2710124130 [16:14:28]line Аи-92-К-5 [16:14:28]line 3.070 * 65.22 [16:14:28]line = 200.23 [16:14:28]line НДС 12% НСП 1% [16:14:28]line > о реализуемом товаре [16:14:28]line ИТОГО: 200.23 [16:14:28]line НСП 1% : 1.77 [16:14:28]line НДС 12% : 21.26 [16:14:28]line Наличными: 0.00 [16:14:28]line Безнал.: 200.23 [16:14:28]line Место: АЗС № 72 "Партнер Нефть" [16:14:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:14:28]line СНО: Общий режим [16:14:28]line Чек 219 13.07.2024 16:14 [16:14:28]line Смена: 446 ФФД: 1.0 [16:14:28]line ЗНМ: 0300000160 [16:14:28]line РНМ: 0000000000090829 [16:14:28]line Версия ККМ: 001 [16:14:28]line Платежная система: KICB Банк [16:14:28]line ФМ: 0000000000874718 [16:14:28]line ФД: 164659 [16:14:28]line ФПД: 39058380167515 [16:14:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164659&fm=39058380167515&tin=02508201610067®Number=0000000000090829&sum=20023 [16:14:28]written 0, free lines is 4095 [16:14:28]OFD Sender: Processing packet 164659 [packets to send 104, broken 103] [16:14:28]ProducePacketName [16:14:28]name=ofd_packets/00164659 [16:14:28]OFD Sender: To server: pG, [16:14:28]CommunicateWithHost lk.salyk.kg:30040 [16:14:28]ConnectInit lk.salyk.kg [16:14:28]Connected sock=10 [16:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 61 07 01 56 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E5 A7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 83 02 00 35 04 06 00 23 85 FC E0 19 5B BD C5 28 D4 89 F3 DB 05 [16:14:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 85 54 47 00 1B 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 83 02 00 F4 03 04 00 75 4E 92 66 B6 04 01 00 00 97 8C A5 C0 91 C1 D3 80 [16:14:28]CommunicateWithHost err = 0 [16:14:28]CheckOFDResponse [16:14:28]1017 (14) - 77093643461234 [16:14:28]1041 (16) - 0000000000874718 [16:14:28]1040 (4) - 164659 [16:14:28]1012 (4) - 13.07.2024 09:52 [16:14:28]1206 (1) - 0 [16:14:28]OFD Sender: Remove packet 164659 [16:14:28]ProducePacketName [16:14:28]name=ofd_packets/00164659 [16:14:28]NVStorageDeleteData [16:14:28]Write to MH i2c: 01 00 00 F2 2F 21 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 19 0D 4E [16:14:28]RasterBufferAndPrint [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]written 0, free lines is 3359 [16:14:28]MH_Cut [16:14:28]Write to MH i2c: D1 01 00 F9 2F 01 FA [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: D1 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: D1 01 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: D1 01 00 F9 2F 00 F9 [16:14:28]Write to MH i2c: 01 00 00 FA 2F 29 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]OFD Sender: No OFD packet to send [16:14:29]*** Cut start [16:14:29]*** Partial cut [16:14:29]*** CUTSNS_PIN = 1 [16:14:29]*** CUTSNS_PIN = 0 [16:14:29]*** Brake cut motor [16:14:29]Read from MH i2c: 01 [16:14:29]MH_I2C_Read... [16:14:29]*** Stop cut motor [16:14:29]*** Cut end [16:14:29]Read from MH i2c: 01 07 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: 01 07 00 FA 2F 00 00 00 00 00 FF 0F 3E [16:14:29]process_action close_receipt done [16:14:29]requested_data is exist [16:14:29]produce_requested_data [16:14:29]requested_item fm.sn is exist - process it [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 11 00 00 [16:14:29]Write to MH i2c: E2 08 00 FB 2F 80 11 00 00 00 00 00 00 A4 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 17 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 17 00 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [16:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:14:29]wFMCommunicate OK [16:14:29]requested_item fd.num is exist - process it [16:14:29]SAM_PROTO_GetFieldsCounters [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 13 00 00 [16:14:29]Write to MH i2c: E2 08 00 FC 2F 80 13 00 00 00 00 00 00 A7 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:29]Read from MH i2c: E2 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 62 00 [16:14:29]MH_I2C_Read... [16:14:29]Read from MH i2c: E2 62 00 FC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:29]wFMCommunicate OK [16:14:29]SAM_PROTO_GetFieldsCounters done [16:14:29]requested_item shift.num is exist - process it [16:14:29]requested_item shift.opened is exist - process it [16:14:29]req_shift_opened [16:14:29]FM_GetShiftState [16:14:29]SAM_PROTO_GetShiftState [16:14:29]wFMCommunicate request_size=4 [16:14:29]MH_SAM_APDU [16:14:29]CAPDU: 80 13 01 00 [16:14:29]Write to MH i2c: E2 08 00 FD 2F 80 13 01 00 00 00 00 00 A9 [16:14:29]Write i2c OK [16:14:29]MH_I2C_Read... [16:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:30]Read from MH i2c: E2 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: E2 0E 00 [16:14:30]MH_I2C_Read... [16:14:30]Read from MH i2c: E2 0E 00 FD 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8A [16:14:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:14:30]wFMCommunicate OK [16:14:30]SAM_PROTO_GetShiftState done [16:14:30]FM_GetShiftState done [16:14:30]req_shift_opened done [16:14:30]requested_item shift.open_date is exist - process it [16:14:30]req_shift_open_date [16:14:30]req_shift_open_date done [16:14:30]produce_requested_data done [16:14:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164659,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:14:30]process_action_free close_receipt [16:14:30]json_value_free [16:14:30]json_value_free done [16:14:30]process_json_proto returns [16:14:30]Send response to host [16:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164659,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:14:30]free response buf [16:14:30]execute_script done [16:14:30]execute_script returns [16:14:30]free content buf [16:14:30]Sock 9.Close socket [16:14:30]Sock 9.Thread stoped [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:00]accept exits with 7 [16:21:00]New connection [16:21:00]New thread 3067293028 created [16:21:00]Thread 3067149668 joined [16:21:00]Waiting for new connection... [16:21:00] Sock 7.Parse request [16:21:00]Sock 7.Check first char [16:21:00]Sock 7.First char is OK [16:21:00]request: POST /json_proto HTTP/1.0 [16:21:00]Method: POST [16:21:00]URL: /json_proto [16:21:00]Method is POST - this is cgi request [16:21:00]url: /json_proto [16:21:00]query_string will be loaded in cgi processing [16:21:00]execute_cgi json_proto POST (null) [16:21:00]execute_cgi path=json_proto method=POST [16:21:00]POST find Content-Length [16:21:00]Host: 172.17.56.4:8080 [16:21:00]Content-Length: 790 [16:21:00]Content-Type: application/json [16:21:00] [16:21:00]POST finish read [16:21:00]Found Content-Length = 790 [16:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:00]execute_script... [16: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)458753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:00]POST & json_proto [16:21:00]process_json_proto [16:21:00]json parsed OK: [16:21:00]protocol is kg_v1.0 [16:21:00]action value=close_receipt [16:21:00]process_action close_receipt [16:21:00]cmd_close_receipt [16:21:00]MH_GetDate [16:21:00]Write to MH i2c: F0 00 00 FE 2F 1C [16:21:00]Write i2c OK [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 09 00 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: F0 09 00 FE 2F 00 6E A9 92 66 C9 DC B2 64 EF [16:21:00]GetLastDocTimeStamp 1720887269 [16:21:00]current date 1720887662 [16:21:00]FM_GetShiftState [16:21:00]SAM_PROTO_GetShiftState [16:21:00]wFMCommunicate request_size=4 [16:21:00]MH_SAM_APDU [16:21:00]CAPDU: 80 13 01 00 [16:21:00]Write to MH i2c: E2 08 00 FF 2F 80 13 01 00 00 00 00 00 AB [16:21:00]Write i2c OK [16:21:00]MH_I2C_Read... [16:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:00]Read from MH i2c: E2 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 FF 2F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8C [16:21:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:21:00]wFMCommunicate OK [16:21:00]SAM_PROTO_GetShiftState done [16:21:00]FM_GetShiftState done [16:21:00]opened in 1720831249 [16:21:00]opened+sec_in_day 1720917649 [16:21:00]quantity*price = 50023 [16:21:00]sum+1 = 50025 [16:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 220 13.07.2024 16:21 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164660 ФПД: 214732122225556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164660&fm=214732122225556&tin=02508201610067®Number=0000000000090829&sum=50024 [16:21:01]StoreToDocumentArchive [16:21:01]shift 446 fd 164660 [16:21:01]save to /storage/0446/doc_00164660 [16:21:01]save last doc name /storage/0446/doc_00164660 to /storage/kkm_last_doc_name [16:21:01]save OK [16:21:01]Clear old archive folders... [16:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:01]tlvbuf is 01478730 [16:21:01]SAM_PROTO_ClearQueue [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 09 00 00 [16:21:01]Write to MH i2c: E2 08 00 0C 30 80 09 00 00 00 00 00 00 AE [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 0C 30 00 90 00 B0 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_ClearQueue done [16:21:01]KKMCreateOFDPacket [16:21:01]OFDProtocolAddRootSTLVToBuf [16:21:01]FM_MakeSignedData [16:21:01]FM_MakeSignedData [16:21:01]SAM_PROTO_SignData [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 01 02 [16:21:01]Write to MH i2c: E2 08 00 0D 30 80 0D 01 02 00 00 00 00 B6 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 0D 30 00 90 00 B1 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=255 [16:21:01]MH_SAM_APDU [16:21: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 6E A9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 83 02 00 35 04 06 00 C3 [16:21:01]Write to MH i2c: E2 02 01 0E 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 6E A9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 83 02 00 35 04 06 00 C3 00 00 A3 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 0E 30 00 90 00 B2 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=10 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 02 02 05 4C 37 DD FB 94 [16:21:01]Write to MH i2c: E2 0D 00 0F 30 80 0D 02 02 05 00 4C 37 DD FB 94 00 00 B2 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 03 02 [16:21:01]Write to MH i2c: E2 08 00 10 30 80 0D 03 02 00 00 00 00 BB [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0B 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0B 00 10 30 00 66 C2 DD 52 15 BB C1 3D 90 00 E1 [16:21:01]RAPDU: 66 C2 DD 52 15 BB C1 3D 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_SignData done [16:21:01]FM_MakeSignedData done [16:21:01]CreateOFDProtocolMessage [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 11 00 00 [16:21:01]Write to MH i2c: E2 08 00 11 30 80 11 00 00 00 00 00 00 BB [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 11 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [16:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:01]wFMCommunicate OK [16:21:01]CreateOFDProtocolMessage done [16:21:01]OFDSenderStorePacket 164660 [16:21:01]StoreOFDPacket docnum=164660 [16:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 C9 07 01 0B 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 6E A9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 83 02 00 35 04 06 00 C3 4C 37 DD FB 94 66 C2 DD 52 15 BB C1 3D [16:21:01]CheckFolder [16:21:01]dirname=/storage/ofd_packets [16:21:01]CheckFolder done [16:21:01]ProducePacketName [16:21:01]name=ofd_packets/00164660 [16:21:01]NVStorageSaveData ofd_packets/00164660 [16:21:01]File name is /storage/ofd_packets/00164660 [16:21:01]Write 301 bytes [16:21:01]NVStorageSaveData done [16:21:01]OFDSenderStorePacket done [16:21:01]KKMCreateOFDPacket done [16:21:01]NVStorageSaveData kkm_last_timestamp [16:21:01]File name is /storage/kkm_last_timestamp [16:21:01]Write 4 bytes [16:21:01]NVStorageSaveData done [16:21:01]ExternCall_PrintAddStr [16:21:01]wPrintStart [16:21:01]Write to MH i2c: 01 00 00 12 30 42 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 07 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 07 00 12 30 00 00 00 00 00 FF 0F 57 [16:21:01]RasterBufferAndPrint [16:21:01]line Счет N : (1)458753 [16:21:01]line ИНН: 02508201610067 [16:21:01]line Контрольно-Кассовый Чек [16:21:01]line ПРОДАЖА [16:21:01]line ТРК (МРК, ГНК) : 22 [16:21:01]line Товар: 2710124130 [16:21:01]line Аи-92-К-5 [16:21:01]line 7.670 * 65.22 [16:21:01]line = 500.24 [16:21:01]line НДС 12% НСП 1% [16:21:01]line > о реализуемом товаре [16:21:01]line ИТОГО: 500.24 [16:21:01]line НСП 1% : 4.43 [16:21:01]line НДС 12% : 53.12 [16:21:01]line Наличными: 0.00 [16:21:01]line Безнал.: 500.24 [16:21:01]line Место: АЗС № 72 "Партнер Нефть" [16:21:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:21:01]line СНО: Общий режим [16:21:01]line Чек 220 13.07.2024 16:21 [16:21:01]line Смена: 446 ФФД: 1.0 [16:21:01]line ЗНМ: 0300000160 [16:21:01]line РНМ: 0000000000090829 [16:21:01]line Версия ККМ: 001 [16:21:01]line Платежная система: KICB Банк [16:21:01]line ФМ: 0000000000874718 [16:21:01]line ФД: 164660 [16:21:01]line ФПД: 214732122225556 [16:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162102&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164660&fm=214732122225556&tin=02508201610067®Number=0000000000090829&sum=50024 [16:21:01]written 0, free lines is 4095 [16:21:01]OFD Sender: Processing packet 164660 [packets to send 104, broken 103] [16:21:01]ProducePacketName [16:21:01]name=ofd_packets/00164660 [16:21:01]OFD Sender: To server: pG, [16:21:02]CommunicateWithHost lk.salyk.kg:30040 [16:21:02]ConnectInit lk.salyk.kg [16:21:02]Connected sock=10 [16: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 34 37 31 38 0F 01 00 00 06 C9 07 01 0B 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 6E A9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 83 02 00 35 04 06 00 C3 4C 37 DD FB 94 66 C2 DD 52 15 BB C1 3D [16:21:02]Write to MH i2c: 01 00 00 3B 30 6B [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 3B 30 00 00 00 00 00 0C 0D 8B [16:21:02]RasterBufferAndPrint [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]written 0, free lines is 3346 [16:21:02]MH_Cut [16:21:02]Write to MH i2c: D1 01 00 42 30 01 44 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 42 30 00 43 [16:21:02]Write to MH i2c: 01 00 00 43 30 73 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD B7 47 00 AC 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 83 02 00 F4 03 04 00 FF 4F 92 66 B6 04 01 00 00 D2 09 69 28 E1 28 8A 93 [16:21:02]CommunicateWithHost err = 0 [16:21:02]CheckOFDResponse [16:21:02]1017 (14) - 77093643461234 [16:21:02]1041 (16) - 0000000000874718 [16:21:02]1040 (4) - 164660 [16:21:02]1012 (4) - 13.07.2024 09:59 [16:21:02]1206 (1) - 0 [16:21:02]OFD Sender: Remove packet 164660 [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00164660 [16:21:02]NVStorageDeleteData [16:21:02]*** Cut start [16:21:02]*** Partial cut [16:21:02]*** CUTSNS_PIN = 1 [16:21:02]*** CUTSNS_PIN = 0 [16:21:02]OFD Sender: No OFD packet to send [16:21:03]*** Brake cut motor [16:21:03]Read from MH i2c: 01 [16:21:03]MH_I2C_Read... [16:21:03]*** Stop cut motor [16:21:03]*** Cut end [16:21:03]Read from MH i2c: 01 07 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: 01 07 00 43 30 00 00 00 00 00 FF 0F 88 [16:21:03]process_action close_receipt done [16:21:03]requested_data is exist [16:21:03]produce_requested_data [16:21:03]requested_item fm.sn is exist - process it [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 11 00 00 [16:21:03]Write to MH i2c: E2 08 00 44 30 80 11 00 00 00 00 00 00 EE [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 44 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [16:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:03]wFMCommunicate OK [16:21:03]requested_item fd.num is exist - process it [16:21:03]SAM_PROTO_GetFieldsCounters [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 00 00 [16:21:03]Write to MH i2c: E2 08 00 45 30 80 13 00 00 00 00 00 00 F1 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 62 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 62 00 45 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:03]wFMCommunicate OK [16:21:03]SAM_PROTO_GetFieldsCounters done [16:21:03]requested_item shift.num is exist - process it [16:21:03]requested_item shift.opened is exist - process it [16:21:03]req_shift_opened [16:21:03]FM_GetShiftState [16:21:03]SAM_PROTO_GetShiftState [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 01 00 [16:21:03]Write to MH i2c: E2 08 00 46 30 80 13 01 00 00 00 00 00 F3 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 46 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D4 [16:21:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:21:03]wFMCommunicate OK [16:21:03]SAM_PROTO_GetShiftState done [16:21:03]FM_GetShiftState done [16:21:03]req_shift_opened done [16:21:03]requested_item shift.open_date is exist - process it [16:21:03]req_shift_open_date [16:21:03]req_shift_open_date done [16:21:03]produce_requested_data done [16:21:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164660,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:21:03]process_action_free close_receipt [16:21:03]json_value_free [16:21:03]json_value_free done [16:21:03]process_json_proto returns [16:21:03]Send response to host [16:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164660,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:21:03]free response buf [16:21:03]execute_script done [16:21:03]execute_script returns [16:21:03]free content buf [16:21:03]Sock 7.Close socket [16:21:03]Sock 7.Thread stoped [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:10]accept exits with 9 [16:24:10]New connection [16:24:10]New thread 3067149668 created [16:24:10]Thread 3067293028 joined [16:24:10]Waiting for new connection... [16:24:10] Sock 9.Parse request [16:24:10]Sock 9.Check first char [16:24:10]Sock 9.First char is OK [16:24:10]request: POST /json_proto HTTP/1.0 [16:24:10]Method: POST [16:24:10]URL: /json_proto [16:24:10]Method is POST - this is cgi request [16:24:10]url: /json_proto [16:24:10]query_string will be loaded in cgi processing [16:24:10]execute_cgi json_proto POST (null) [16:24:10]execute_cgi path=json_proto method=POST [16:24:10]POST find Content-Length [16:24:10]Host: 172.17.56.4:8080 [16:24:10]Content-Length: 642 [16:24:10]Content-Type: application/json [16:24:10] [16:24:10]POST finish read [16:24:10]Found Content-Length = 642 [16:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:10]execute_script... [16:24: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)458755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:10]POST & json_proto [16:24:10]process_json_proto [16:24:10]json parsed OK: [16:24:10]protocol is kg_v1.0 [16:24:10]action value=close_receipt [16:24:10]process_action close_receipt [16:24:10]cmd_close_receipt [16:24:10]MH_GetDate [16:24:10]Write to MH i2c: F0 00 00 47 30 66 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: F0 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: F0 09 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: F0 09 00 47 30 00 2D AA 92 66 C9 DC B2 64 F9 [16:24:10]GetLastDocTimeStamp 1720887662 [16:24:10]current date 1720887853 [16:24:10]FM_GetShiftState [16:24:10]SAM_PROTO_GetShiftState [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 13 01 00 [16:24:10]Write to MH i2c: E2 08 00 48 30 80 13 01 00 00 00 00 00 F5 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0E 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0E 00 48 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D6 [16:24:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_GetShiftState done [16:24:10]FM_GetShiftState done [16:24:10]opened in 1720831249 [16:24:10]opened+sec_in_day 1720917649 [16:24:10]quantity*price = 131600 [16:24:10]sum+1 = 131601 [16:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1316.00 НСП 1% : 11.65 НДС 12% : 139.75 Наличными: 1316.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 221 13.07.2024 16:24 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164661 ФПД: 123424928823964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164661&fm=123424928823964&tin=02508201610067®Number=0000000000090829&sum=131600 [16:24:12]StoreToDocumentArchive [16:24:12]shift 446 fd 164661 [16:24:12]save to /storage/0446/doc_00164661 [16:24:12]save last doc name /storage/0446/doc_00164661 to /storage/kkm_last_doc_name [16:24:12]save OK [16:24:12]Clear old archive folders... [16:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:12]tlvbuf is 0155E560 [16:24:12]SAM_PROTO_ClearQueue [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 09 00 00 [16:24:12]Write to MH i2c: E2 08 00 55 30 80 09 00 00 00 00 00 00 F7 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 55 30 00 90 00 F9 [16:24:12]RAPDU: 90 00 [16:24:12]wFMCommunicate OK [16:24:12]SAM_PROTO_ClearQueue done [16:24:12]KKMCreateOFDPacket [16:24:12]OFDProtocolAddRootSTLVToBuf [16:24:12]FM_MakeSignedData [16:24:12]FM_MakeSignedData [16:24:12]SAM_PROTO_SignData [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 0D 01 02 [16:24:12]Write to MH i2c: E2 08 00 56 30 80 0D 01 02 00 00 00 00 FF [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 56 30 00 90 00 FA [16:24:12]RAPDU: 90 00 [16:24:12]wFMCommunicate OK [16:24:12]wFMCommunicate request_size=255 [16:24:12]MH_SAM_APDU [16:24: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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 2D AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 83 02 00 35 04 06 00 70 [16:24:12]Write to MH i2c: E2 02 01 57 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 2D AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 83 02 00 35 04 06 00 70 00 00 79 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 57 30 00 90 00 FB [16:24:12]RAPDU: 90 00 [16:24:12]wFMCommunicate OK [16:24:12]wFMCommunicate request_size=10 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 0D 02 02 05 41 1B 09 FA 9C [16:24:12]Write to MH i2c: E2 0D 00 58 30 80 0D 02 02 05 00 41 1B 09 FA 9C 00 00 07 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 03 00 58 30 00 90 00 FC [16:24:12]RAPDU: 90 00 [16:24:12]wFMCommunicate OK [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 0D 03 02 [16:24:12]Write to MH i2c: E2 08 00 59 30 80 0D 03 02 00 00 00 00 04 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 0B 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 0B 00 59 30 00 A4 5F DA 37 A2 D5 D2 05 90 00 67 [16:24:12]RAPDU: A4 5F DA 37 A2 D5 D2 05 90 00 [16:24:12]wFMCommunicate OK [16:24:12]SAM_PROTO_SignData done [16:24:12]FM_MakeSignedData done [16:24:12]CreateOFDProtocolMessage [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 11 00 00 [16:24:12]Write to MH i2c: E2 08 00 5A 30 80 11 00 00 00 00 00 00 04 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 17 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 17 00 5A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [16:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:12]wFMCommunicate OK [16:24:12]CreateOFDProtocolMessage done [16:24:12]OFDSenderStorePacket 164661 [16:24:12]StoreOFDPacket docnum=164661 [16:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6C 35 07 01 B0 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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 2D AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 83 02 00 35 04 06 00 70 41 1B 09 FA 9C A4 5F DA 37 A2 D5 D2 05 [16:24:12]CheckFolder [16:24:12]dirname=/storage/ofd_packets [16:24:12]CheckFolder done [16:24:12]ProducePacketName [16:24:12]name=ofd_packets/00164661 [16:24:12]NVStorageSaveData ofd_packets/00164661 [16:24:12]File name is /storage/ofd_packets/00164661 [16:24:12]Write 301 bytes [16:24:12]NVStorageSaveData done [16:24:12]OFDSenderStorePacket done [16:24:12]KKMCreateOFDPacket done [16:24:12]NVStorageSaveData kkm_last_timestamp [16:24:12]File name is /storage/kkm_last_timestamp [16:24:12]Write 4 bytes [16:24:12]NVStorageSaveData done [16:24:12]ExternCall_PrintAddStr [16:24:12]wPrintStart [16:24:12]Write to MH i2c: 01 00 00 5B 30 8B [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 5B 30 00 00 00 00 00 FF 0F A0 [16:24:12]RasterBufferAndPrint [16:24:12]line Счет N : (1)458755 [16:24:12]line ИНН: 02508201610067 [16:24:12]line Контрольно-Кассовый Чек [16:24:12]line ПРОДАЖА [16:24:12]line ТРК (МРК, ГНК) : 22 [16:24:12]line Товар: 2710124130 [16:24:12]line Аи-92-К-5 [16:24:12]line 20.000 * 65.80 [16:24:12]line = 1316.00 [16:24:12]line НДС 12% НСП 1% [16:24:12]line > о реализуемом товаре [16:24:12]line ИТОГО: 1316.00 [16:24:12]line НСП 1% : 11.65 [16:24:12]line НДС 12% : 139.75 [16:24:12]line Наличными: 1316.00 [16:24:12]line Безнал.: 0.00 [16:24:12]line Место: АЗС № 72 "Партнер Нефть" [16:24:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:12]line СНО: Общий режим [16:24:12]line Чек 221 13.07.2024 16:24 [16:24:12]line Смена: 446 ФФД: 1.0 [16:24:12]line ЗНМ: 0300000160 [16:24:12]line РНМ: 0000000000090829 [16:24:12]line Версия ККМ: 001 [16:24:12]line ФМ: 0000000000874718 [16:24:12]line ФД: 164661 [16:24:12]line ФПД: 123424928823964 [16:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164661&fm=123424928823964&tin=02508201610067®Number=0000000000090829&sum=131600 [16:24:12]written 0, free lines is 4095 [16:24:12]OFD Sender: Processing packet 164661 [packets to send 104, broken 103] [16:24:12]ProducePacketName [16:24:12]name=ofd_packets/00164661 [16:24:12]OFD Sender: To server: pG, [16:24:12]CommunicateWithHost lk.salyk.kg:30040 [16:24:12]ConnectInit lk.salyk.kg [16:24:13]Connected sock=10 [16:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6C 35 07 01 B0 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 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 2D AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 83 02 00 35 04 06 00 70 41 1B 09 FA 9C A4 5F DA 37 A2 D5 D2 05 [16:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 02 BF 47 00 24 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 34 37 31 38 10 04 04 00 35 83 02 00 F4 03 04 00 BE 50 92 66 B6 04 01 00 00 A4 8E 5B 8B EA 95 E6 24 [16:24:13]CommunicateWithHost err = 0 [16:24:13]CheckOFDResponse [16:24:13]1017 (14) - 77093643461234 [16:24:13]1041 (16) - 0000000000874718 [16:24:13]1040 (4) - 164661 [16:24:13]1012 (4) - 13.07.2024 10:02 [16:24:13]1206 (1) - 0 [16:24:13]OFD Sender: Remove packet 164661 [16:24:13]ProducePacketName [16:24:13]name=ofd_packets/00164661 [16:24:13]NVStorageDeleteData [16:24:13]Write to MH i2c: 01 00 00 82 30 B2 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 07 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 07 00 82 30 00 00 00 00 00 2D 0D F3 [16:24:13]RasterBufferAndPrint [16:24:13]line [16:24:13]line [16:24:13]line [16:24:13]line [16:24:13]line [16:24:13]written 0, free lines is 3379 [16:24:13]MH_Cut [16:24:13]Write to MH i2c: D1 01 00 89 30 01 8B [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: D1 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: D1 01 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: D1 01 00 89 30 00 8A [16:24:13]Write to MH i2c: 01 00 00 8A 30 BA [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]OFD Sender: No OFD packet to send [16:24:14]*** Cut start [16:24:14]*** Partial cut [16:24:14]*** CUTSNS_PIN = 1 [16:24:14]*** CUTSNS_PIN = 0 [16:24:14]*** Brake cut motor [16:24:14]Read from MH i2c: 01 [16:24:14]MH_I2C_Read... [16:24:14]*** Stop cut motor [16:24:14]*** Cut end [16:24:14]Read from MH i2c: 01 07 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: 01 07 00 8A 30 00 00 00 00 00 FF 0F CF [16:24:14]process_action close_receipt done [16:24:14]requested_data is exist [16:24:14]produce_requested_data [16:24:14]requested_item fm.sn is exist - process it [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 11 00 00 [16:24:14]Write to MH i2c: E2 08 00 8B 30 80 11 00 00 00 00 00 00 35 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 17 00 8B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [16:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:14]wFMCommunicate OK [16:24:14]requested_item fd.num is exist - process it [16:24:14]SAM_PROTO_GetFieldsCounters [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 13 00 00 [16:24:14]Write to MH i2c: E2 08 00 8C 30 80 13 00 00 00 00 00 00 38 [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 62 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 62 00 8C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_GetFieldsCounters done [16:24:14]requested_item shift.num is exist - process it [16:24:14]requested_item shift.opened is exist - process it [16:24:14]req_shift_opened [16:24:14]FM_GetShiftState [16:24:14]SAM_PROTO_GetShiftState [16:24:14]wFMCommunicate request_size=4 [16:24:14]MH_SAM_APDU [16:24:14]CAPDU: 80 13 01 00 [16:24:14]Write to MH i2c: E2 08 00 8D 30 80 13 01 00 00 00 00 00 3A [16:24:14]Write i2c OK [16:24:14]MH_I2C_Read... [16:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:14]Read from MH i2c: E2 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0E 00 [16:24:14]MH_I2C_Read... [16:24:14]Read from MH i2c: E2 0E 00 8D 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1B [16:24:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:24:14]wFMCommunicate OK [16:24:14]SAM_PROTO_GetShiftState done [16:24:14]FM_GetShiftState done [16:24:14]req_shift_opened done [16:24:14]requested_item shift.open_date is exist - process it [16:24:14]req_shift_open_date [16:24:14]req_shift_open_date done [16:24:14]produce_requested_data done [16:24:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164661,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:24:14]process_action_free close_receipt [16:24:14]json_value_free [16:24:14]json_value_free done [16:24:14]process_json_proto returns [16:24:14]Send response to host [16:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164661,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:24:14]free response buf [16:24:14]execute_script done [16:24:14]execute_script returns [16:24:14]free content buf [16:24:14]Sock 9.Close socket [16:24:14]Sock 9.Thread stoped [16:24:15]accept exits with 7 [16:24:15]New connection [16:24:15]New thread 3067293028 created [16:24:15]Thread 3067149668 joined [16:24:15]Waiting for new connection... [16:24:15] Sock 7.Parse request [16:24:15]Sock 7.Check first char [16:24:15]Sock 7.First char is OK [16:24:15]request: POST /json_proto HTTP/1.0 [16:24:15]Method: POST [16:24:15]URL: /json_proto [16:24:15]Method is POST - this is cgi request [16:24:15]url: /json_proto [16:24:15]query_string will be loaded in cgi processing [16:24:15]execute_cgi json_proto POST (null) [16:24:15]execute_cgi path=json_proto method=POST [16:24:15]POST find Content-Length [16:24:15]Host: 172.17.56.4:8080 [16:24:15]Content-Length: 1205 [16:24:15]Content-Type: application/json [16:24:15] [16:24:15]POST finish read [16:24:15]Found Content-Length = 1205 [16:24:15]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458754\u000A13.07.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114466;4114465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:15]execute_script... [16:24:15]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)458754\u000A13.07.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114466;4114465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:15]POST & json_proto [16:24:15]process_json_proto [16:24:15]json parsed OK: [16:24:15]protocol is kg_v1.0 [16:24:15]action value=print_text [16:24:15]process_action print_text [16:24:15]cmd_print_text [16:24:15]ExternCall_PrintAddStr [16:24:15]wPrintStart [16:24:15]Write to MH i2c: 01 00 00 8E 30 BE [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 8E 30 00 00 00 00 00 FF 0F D3 [16:24:15]RasterBufferAndPrint [16:24:15]line *****ТОВАРНЫЙ ЧЕК***** [16:24:15]line АЗС 72 [16:24:15]line Партнер нефть [16:24:15]line 02508201610067 [16:24:15]line Кассир : Женишбеков Т. [16:24:15]line Счет N : (1)458754 [16:24:15]line 13.07.2024 15:49 [16:24:15]line ПРОДАЖА [16:24:15]line ТРК (МРК, ГНК): 12 [16:24:15]line Вид ГСМ : 2710124130 [16:24:15]line Аи-92-К-5 [16:24:15]line 20.000 x 65.80 [16:24:15]line ИТОГ: 1316.00 [16:24:15]line Тип оплаты: Талоны: Партнер нефть [16:24:15]line 4114466;4114465 [16:24:15]line ______________________ [16:24:15]line (подпись) [16:24:15]written 0, free lines is 4095 [16:24:15]Write to MH i2c: 01 00 00 A3 30 D3 [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 F8 0D DF [16:24:15]RasterBufferAndPrint [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]line [16:24:15]written 0, free lines is 3580 [16:24:15]MH_Cut [16:24:15]Write to MH i2c: D1 01 00 AA 30 01 AC [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 01 00 [16:24:15]MH_I2C_Read... [16:24:15]Read from MH i2c: D1 01 00 AA 30 00 AB [16:24:15]Write to MH i2c: 01 00 00 AB 30 DB [16:24:15]Write i2c OK [16:24:15]MH_I2C_Read... [16:24:15]*** Cut start [16:24:15]*** Partial cut [16:24:15]*** CUTSNS_PIN = 1 [16:24:15]*** CUTSNS_PIN = 0 [16:24:16]*** Brake cut motor [16:24:16]Read from MH i2c: 01 [16:24:16]MH_I2C_Read... [16:24:16]*** Stop cut motor [16:24:16]*** Cut end [16:24:16]Read from MH i2c: 01 07 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: 01 07 00 AB 30 00 00 00 00 00 FF 0F F0 [16:24:16]process_action print_text done [16:24:16]requested_data is exist [16:24:16]produce_requested_data [16:24:16]requested_item fm.sn is exist - process it [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 11 00 00 [16:24:16]Write to MH i2c: E2 08 00 AC 30 80 11 00 00 00 00 00 00 56 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 17 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 17 00 AC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [16:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:16]wFMCommunicate OK [16:24:16]requested_item fd.num is exist - process it [16:24:16]SAM_PROTO_GetFieldsCounters [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 13 00 00 [16:24:16]Write to MH i2c: E2 08 00 AD 30 80 13 00 00 00 00 00 00 59 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 62 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 62 00 AD 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:16]wFMCommunicate OK [16:24:16]SAM_PROTO_GetFieldsCounters done [16:24:16]requested_item shift.num is exist - process it [16:24:16]requested_item shift.opened is exist - process it [16:24:16]req_shift_opened [16:24:16]FM_GetShiftState [16:24:16]SAM_PROTO_GetShiftState [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 13 01 00 [16:24:16]Write to MH i2c: E2 08 00 AE 30 80 13 01 00 00 00 00 00 5B [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 AE 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3C [16:24:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:24:16]wFMCommunicate OK [16:24:16]SAM_PROTO_GetShiftState done [16:24:16]FM_GetShiftState done [16:24:16]req_shift_opened done [16:24:16]requested_item shift.open_date is exist - process it [16:24:16]req_shift_open_date [16:24:16]req_shift_open_date done [16:24:16]produce_requested_data done [16:24:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164661,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:24:16]process_action_free print_text [16:24:16]json_value_free [16:24:16]json_value_free done [16:24:16]process_json_proto returns [16:24:16]Send response to host [16:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164661,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:24:16]free response buf [16:24:16]execute_script done [16:24:16]execute_script returns [16:24:16]free content buf [16:24:16]Sock 7.Close socket [16:24:16]Sock 7.Thread stoped [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:41]accept exits with 9 [16:24:41]New connection [16:24:41]New thread 3067149668 created [16:24:41]Thread 3067293028 joined [16:24:41]Waiting for new connection... [16:24:41] Sock 9.Parse request [16:24:41]Sock 9.Check first char [16:24:41]Sock 9.First char is OK [16:24:41]request: POST /json_proto HTTP/1.0 [16:24:41]Method: POST [16:24:41]URL: /json_proto [16:24:41]Method is POST - this is cgi request [16:24:41]url: /json_proto [16:24:41]query_string will be loaded in cgi processing [16:24:41]execute_cgi json_proto POST (null) [16:24:41]execute_cgi path=json_proto method=POST [16:24:41]POST find Content-Length [16:24:41]Host: 172.17.56.4:8080 [16:24:41]Content-Length: 699 [16:24:41]Content-Type: application/json [16:24:41] [16:24:41]POST finish read [16:24:41]Found Content-Length = 699 [16:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 164661, "base_FM": "0000000000874718", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:41]execute_script... [16:24:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 164661, "base_FM": "0000000000874718", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.000, "sum" : 1316.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:41]POST & json_proto [16:24:41]process_json_proto [16:24:41]json parsed OK: [16:24:41]protocol is kg_v1.0 [16:24:41]action value=close_receipt [16:24:41]process_action close_receipt [16:24:41]cmd_close_receipt [16:24:41]MH_GetDate [16:24:41]Write to MH i2c: F0 00 00 AF 30 CE [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: F0 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: F0 09 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: F0 09 00 AF 30 00 4C AA 92 66 C9 DC B2 64 80 [16:24:41]GetLastDocTimeStamp 1720887853 [16:24:41]current date 1720887884 [16:24:41]FM_GetShiftState [16:24:41]SAM_PROTO_GetShiftState [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 13 01 00 [16:24:41]Write to MH i2c: E2 08 00 B0 30 80 13 01 00 00 00 00 00 5D [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 B0 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3E [16:24:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:24:41]wFMCommunicate OK [16:24:41]SAM_PROTO_GetShiftState done [16:24:41]FM_GetShiftState done [16:24:41]opened in 1720831249 [16:24:41]opened+sec_in_day 1720917649 [16:24:41]quantity*price = 131600 [16:24:41]sum+1 = 131601 [16:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1316.00 НСП 1% : 11.65 НДС 12% : 139.75 Наличными: 1316.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 222 13.07.2024 16:24 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФД осн.: 164661 ФМ осн.: 0000000000874718 ФМ: 0000000000874718 ФД: 164662 ФПД: 260250752297001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162444&type=2&operation_type=1&fn_number=0000000000874718&fd_number=164662&fm=260250752297001&tin=02508201610067®Number=0000000000090829&sum=131600 [16:24:42]StoreToDocumentArchive [16:24:42]shift 446 fd 164662 [16:24:42]save to /storage/0446/doc_00164662 [16:24:42]save last doc name /storage/0446/doc_00164662 to /storage/kkm_last_doc_name [16:24:42]save OK [16:24:42]Clear old archive folders... [16:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:24:42]tlvbuf is 0153B490 [16:24:42]SAM_PROTO_ClearQueue [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 09 00 00 [16:24:42]Write to MH i2c: E2 08 00 BF 30 80 09 00 00 00 00 00 00 61 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 03 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 03 00 BF 30 00 90 00 63 [16:24:42]RAPDU: 90 00 [16:24:42]wFMCommunicate OK [16:24:42]SAM_PROTO_ClearQueue done [16:24:42]KKMCreateOFDPacket [16:24:42]OFDProtocolAddRootSTLVToBuf [16:24:42]FM_MakeSignedData [16:24:42]FM_MakeSignedData [16:24:42]SAM_PROTO_SignData [16:24:42]wFMCommunicate request_size=4 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 0D 01 02 [16:24:42]Write to MH i2c: E2 08 00 C0 30 80 0D 01 02 00 00 00 00 69 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:42]Read from MH i2c: E2 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 03 00 [16:24:42]MH_I2C_Read... [16:24:42]Read from MH i2c: E2 03 00 C0 30 00 90 00 64 [16:24:42]RAPDU: 90 00 [16:24:42]wFMCommunicate OK [16:24:42]wFMCommunicate request_size=255 [16:24:42]MH_SAM_APDU [16:24:42]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4C AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 35 83 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 [16:24:42]Write to MH i2c: E2 02 01 C1 30 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4C AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 35 83 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 00 00 F5 [16:24:42]Write i2c OK [16:24:42]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:43]Read from MH i2c: E2 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 03 00 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 03 00 C1 30 00 90 00 65 [16:24:43]RAPDU: 90 00 [16:24:43]wFMCommunicate OK [16:24:43]wFMCommunicate request_size=38 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 83 02 00 35 04 06 00 EC B2 59 A4 A8 29 [16:24:43]Write to MH i2c: E2 29 00 C2 30 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 83 02 00 35 04 06 00 EC B2 59 A4 A8 29 00 00 1F [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:43]Read from MH i2c: E2 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 03 00 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 03 00 C2 30 00 90 00 66 [16:24:43]RAPDU: 90 00 [16:24:43]wFMCommunicate OK [16:24:43]wFMCommunicate request_size=4 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 0D 03 02 [16:24:43]Write to MH i2c: E2 08 00 C3 30 80 0D 03 02 00 00 00 00 6E [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:43]Read from MH i2c: E2 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 0B 00 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 0B 00 C3 30 00 65 D1 CE D6 A4 E8 AE F5 90 00 78 [16:24:43]RAPDU: 65 D1 CE D6 A4 E8 AE F5 90 00 [16:24:43]wFMCommunicate OK [16:24:43]SAM_PROTO_SignData done [16:24:43]FM_MakeSignedData done [16:24:43]CreateOFDProtocolMessage [16:24:43]wFMCommunicate request_size=4 [16:24:43]MH_SAM_APDU [16:24:43]CAPDU: 80 11 00 00 [16:24:43]Write to MH i2c: E2 08 00 C4 30 80 11 00 00 00 00 00 00 6E [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:43]Read from MH i2c: E2 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 17 00 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: E2 17 00 C4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [16:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:43]wFMCommunicate OK [16:24:43]CreateOFDProtocolMessage done [16:24:43]OFDSenderStorePacket 164662 [16:24:43]StoreOFDPacket docnum=164662 [16:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 2B 01 00 00 D5 FB 23 01 F4 04 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4C AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 35 83 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 83 02 00 35 04 06 00 EC B2 59 A4 A8 29 65 D1 CE D6 A4 E8 AE F5 [16:24:43]CheckFolder [16:24:43]dirname=/storage/ofd_packets [16:24:43]CheckFolder done [16:24:43]ProducePacketName [16:24:43]name=ofd_packets/00164662 [16:24:43]NVStorageSaveData ofd_packets/00164662 [16:24:43]File name is /storage/ofd_packets/00164662 [16:24:43]Write 329 bytes [16:24:43]NVStorageSaveData done [16:24:43]OFDSenderStorePacket done [16:24:43]KKMCreateOFDPacket done [16:24:43]NVStorageSaveData kkm_last_timestamp [16:24:43]File name is /storage/kkm_last_timestamp [16:24:43]Write 4 bytes [16:24:43]NVStorageSaveData done [16:24:43]ExternCall_PrintAddStr [16:24:43]wPrintStart [16:24:43]Write to MH i2c: 01 00 00 C5 30 F5 [16:24:43]Write i2c OK [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: 01 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: 01 07 00 [16:24:43]MH_I2C_Read... [16:24:43]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 FF 0F 0A [16:24:43]RasterBufferAndPrint [16:24:43]line Счет N : (1)458755 [16:24:43]line ИНН: 02508201610067 [16:24:43]line Контрольно-Кассовый Чек [16:24:43]line ВОЗВРАТ ПРОДАЖИ [16:24:43]line ТРК (МРК, ГНК) : 22 [16:24:43]line Товар: 2710124130 [16:24:43]line Аи-92-К-5 [16:24:43]line 20.000 * 65.80 [16:24:43]line = 1316.00 [16:24:43]line НДС 12% НСП 1% [16:24:43]line > о реализуемом товаре [16:24:43]line ИТОГО: 1316.00 [16:24:43]line НСП 1% : 11.65 [16:24:43]line НДС 12% : 139.75 [16:24:43]line Наличными: 1316.00 [16:24:43]line Безнал.: 0.00 [16:24:43]line Место: АЗС № 72 "Партнер Нефть" [16:24:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:43]line СНО: Общий режим [16:24:43]line Чек 222 13.07.2024 16:24 [16:24:43]line Смена: 446 ФФД: 1.0 [16:24:43]line ЗНМ: 0300000160 [16:24:43]line РНМ: 0000000000090829 [16:24:43]line Версия ККМ: 001 [16:24:43]line ФД осн.: 164661 [16:24:43]line ФМ осн.: 0000000000874718 [16:24:43]line ФМ: 0000000000874718 [16:24:43]line ФД: 164662 [16:24:43]line ФПД: 260250752297001 [16:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162444&type=2&operation_type=1&fn_number=0000000000874718&fd_number=164662&fm=260250752297001&tin=02508201610067®Number=0000000000090829&sum=131600 [16:24:43]OFD Sender: Processing packet 164662 [packets to send 104, broken 103] [16:24:43]ProducePacketName [16:24:43]name=ofd_packets/00164662 [16:24:43]OFD Sender: To server: pG, [16:24:43]CommunicateWithHost lk.salyk.kg:30040 [16:24:43]ConnectInit lk.salyk.kg [16:24:43]written 0, free lines is 4095 [16:24:43]Connected sock=10 [16: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 34 37 31 38 2B 01 00 00 D5 FB 23 01 F4 04 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 10 02 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 02 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 36 00 00 00 00 07 04 06 00 10 02 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 4C AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 27 04 04 00 35 83 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 83 02 00 35 04 06 00 EC B2 59 A4 A8 29 65 D1 CE D6 A4 E8 AE F5 [16:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F1 43 47 00 24 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 83 02 00 F4 03 04 00 DC 50 92 66 B6 04 01 00 00 B1 41 3F 2D D8 80 3D B2 [16:24:44]CommunicateWithHost err = 0 [16:24:44]CheckOFDResponse [16:24:44]1017 (14) - 77093643461234 [16:24:44]1041 (16) - 0000000000874718 [16:24:44]1040 (4) - 164662 [16:24:44]1012 (4) - 13.07.2024 10:03 [16:24:44]1206 (1) - 0 [16:24:44]OFD Sender: Remove packet 164662 [16:24:44]ProducePacketName [16:24:44]name=ofd_packets/00164662 [16:24:44]NVStorageDeleteData [16:24:44]Write to MH i2c: 01 00 00 EE 30 1E [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: 01 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: 01 07 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 11 0D 43 [16:24:44]RasterBufferAndPrint [16:24:44]line [16:24:44]line [16:24:44]line [16:24:44]line [16:24:44]line [16:24:44]written 0, free lines is 3354 [16:24:44]MH_Cut [16:24:44]Write to MH i2c: D1 01 00 F5 30 01 F7 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: D1 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: D1 01 00 [16:24:44]MH_I2C_Read... [16:24:44]Read from MH i2c: D1 01 00 F5 30 00 F6 [16:24:44]Write to MH i2c: 01 00 00 F6 30 26 [16:24:44]Write i2c OK [16:24:44]MH_I2C_Read... [16:24:44]OFD Sender: No OFD packet to send [16:24:44]*** Cut start [16:24:44]*** Partial cut [16:24:44]*** CUTSNS_PIN = 1 [16:24:44]*** CUTSNS_PIN = 0 [16:24:45]*** Brake cut motor [16:24:45]Read from MH i2c: 01 [16:24:45]MH_I2C_Read... [16:24:45]*** Stop cut motor [16:24:45]*** Cut end [16:24:45]Read from MH i2c: 01 07 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: 01 07 00 F6 30 00 00 00 00 00 FF 0F 3B [16:24:45]process_action close_receipt done [16:24:45]requested_data is exist [16:24:45]produce_requested_data [16:24:45]requested_item fm.sn is exist - process it [16:24:45]wFMCommunicate request_size=4 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 11 00 00 [16:24:45]Write to MH i2c: E2 08 00 F7 30 80 11 00 00 00 00 00 00 A1 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 17 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 17 00 F7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [16:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:45]wFMCommunicate OK [16:24:45]requested_item fd.num is exist - process it [16:24:45]SAM_PROTO_GetFieldsCounters [16:24:45]wFMCommunicate request_size=4 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 13 00 00 [16:24:45]Write to MH i2c: E2 08 00 F8 30 80 13 00 00 00 00 00 00 A4 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 62 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 62 00 F8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:45]wFMCommunicate OK [16:24:45]SAM_PROTO_GetFieldsCounters done [16:24:45]requested_item shift.num is exist - process it [16:24:45]requested_item shift.opened is exist - process it [16:24:45]req_shift_opened [16:24:45]FM_GetShiftState [16:24:45]SAM_PROTO_GetShiftState [16:24:45]wFMCommunicate request_size=4 [16:24:45]MH_SAM_APDU [16:24:45]CAPDU: 80 13 01 00 [16:24:45]Write to MH i2c: E2 08 00 F9 30 80 13 01 00 00 00 00 00 A6 [16:24:45]Write i2c OK [16:24:45]MH_I2C_Read... [16:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:45]Read from MH i2c: E2 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 0E 00 [16:24:45]MH_I2C_Read... [16:24:45]Read from MH i2c: E2 0E 00 F9 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 87 [16:24:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:24:45]wFMCommunicate OK [16:24:45]SAM_PROTO_GetShiftState done [16:24:45]FM_GetShiftState done [16:24:45]req_shift_opened done [16:24:45]requested_item shift.open_date is exist - process it [16:24:45]req_shift_open_date [16:24:45]req_shift_open_date done [16:24:45]produce_requested_data done [16:24:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164662,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:24:45]process_action_free close_receipt [16:24:45]json_value_free [16:24:45]json_value_free done [16:24:45]process_json_proto returns [16:24:45]Send response to host [16:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164662,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:24:45]free response buf [16:24:45]execute_script done [16:24:45]execute_script returns [16:24:45]free content buf [16:24:45]Sock 9.Close socket [16:24:45]Sock 9.Thread stoped [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:58]accept exits with 7 [16:26:58]New connection [16:26:58]New thread 3067293028 created [16:26:58]Thread 3067149668 joined [16:26:58]Waiting for new connection... [16:26:58] Sock 7.Parse request [16:26:58]Sock 7.Check first char [16:26:58]Sock 7.First char is OK [16:26:58]request: POST /json_proto HTTP/1.0 [16:26:58]Method: POST [16:26:58]URL: /json_proto [16:26:58]Method is POST - this is cgi request [16:26:58]url: /json_proto [16:26:58]query_string will be loaded in cgi processing [16:26:58]execute_cgi json_proto POST (null) [16:26:58]execute_cgi path=json_proto method=POST [16:26:58]POST find Content-Length [16:26:58]Host: 172.17.56.4:8080 [16:26:58]Content-Length: 639 [16:26:58]Content-Type: application/json [16:26:58] [16:26:58]POST finish read [16:26:58]Found Content-Length = 639 [16:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:58]execute_script... [16:26: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)458756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:58]POST & json_proto [16:26:58]process_json_proto [16:26:58]json parsed OK: [16:26:58]protocol is kg_v1.0 [16:26:58]action value=close_receipt [16:26:58]process_action close_receipt [16:26:58]cmd_close_receipt [16:26:58]MH_GetDate [16:26:58]Write to MH i2c: F0 00 00 FA 30 19 [16:26:58]Write i2c OK [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 09 00 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: F0 09 00 FA 30 00 D5 AA 92 66 C9 DC B2 64 54 [16:26:58]GetLastDocTimeStamp 1720887884 [16:26:58]current date 1720888021 [16:26:58]FM_GetShiftState [16:26:58]SAM_PROTO_GetShiftState [16:26:58]wFMCommunicate request_size=4 [16:26:58]MH_SAM_APDU [16:26:58]CAPDU: 80 13 01 00 [16:26:58]Write to MH i2c: E2 08 00 FB 30 80 13 01 00 00 00 00 00 A8 [16:26:58]Write i2c OK [16:26:58]MH_I2C_Read... [16:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:58]Read from MH i2c: E2 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: E2 0E 00 [16:26:58]MH_I2C_Read... [16:26:58]Read from MH i2c: E2 0E 00 FB 30 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 89 [16:26:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:26:58]wFMCommunicate OK [16:26:58]SAM_PROTO_GetShiftState done [16:26:58]FM_GetShiftState done [16:26:58]opened in 1720831249 [16:26:58]opened+sec_in_day 1720917649 [16:26:58]quantity*price = 143800 [16:26:58]sum+1 = 143801 [16:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 223 13.07.2024 16:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164663 ФПД: 12595900463806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162701&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164663&fm=12595900463806&tin=02508201610067®Number=0000000000090829&sum=143800 [16:26:59]StoreToDocumentArchive [16:26:59]shift 446 fd 164663 [16:26:59]save to /storage/0446/doc_00164663 [16:26:59]save last doc name /storage/0446/doc_00164663 to /storage/kkm_last_doc_name [16:26:59]save OK [16:26:59]Clear old archive folders... [16:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:59]tlvbuf is 01479070 [16:26:59]SAM_PROTO_ClearQueue [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 09 00 00 [16:26:59]Write to MH i2c: E2 08 00 08 31 80 09 00 00 00 00 00 00 AB [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 08 31 00 90 00 AD [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]SAM_PROTO_ClearQueue done [16:26:59]KKMCreateOFDPacket [16:26:59]OFDProtocolAddRootSTLVToBuf [16:26:59]FM_MakeSignedData [16:26:59]FM_MakeSignedData [16:26:59]SAM_PROTO_SignData [16:26:59]wFMCommunicate request_size=4 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 0D 01 02 [16:26:59]Write to MH i2c: E2 08 00 09 31 80 0D 01 02 00 00 00 00 B3 [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:59]OFD Sender: No OFD packet to send [16:26:59]Read from MH i2c: E2 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 [16:26:59]MH_I2C_Read... [16:26:59]Read from MH i2c: E2 03 00 09 31 00 90 00 AE [16:26:59]RAPDU: 90 00 [16:26:59]wFMCommunicate OK [16:26:59]wFMCommunicate request_size=255 [16:26:59]MH_SAM_APDU [16:26:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 83 02 00 35 04 06 00 0B 74 B6 2C [16:26:59]Write to MH i2c: E2 02 01 0A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 83 02 00 35 04 06 00 0B 74 B6 2C 00 00 88 [16:26:59]Write i2c OK [16:26:59]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 03 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 03 00 0A 31 00 90 00 AF [16:27:00]RAPDU: 90 00 [16:27:00]wFMCommunicate OK [16:27:00]wFMCommunicate request_size=7 [16:27:00]MH_SAM_APDU [16:27:00]CAPDU: 80 0D 02 02 02 3A BE [16:27:00]Write to MH i2c: E2 0A 00 0B 31 80 0D 02 02 02 00 3A BE 00 00 B2 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 03 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 03 00 0B 31 00 90 00 B0 [16:27:00]RAPDU: 90 00 [16:27:00]wFMCommunicate OK [16:27:00]wFMCommunicate request_size=4 [16:27:00]MH_SAM_APDU [16:27:00]CAPDU: 80 0D 03 02 [16:27:00]Write to MH i2c: E2 08 00 0C 31 80 0D 03 02 00 00 00 00 B8 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 0B 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 0B 00 0C 31 00 E3 F4 04 36 28 F4 C6 7A 90 00 26 [16:27:00]RAPDU: E3 F4 04 36 28 F4 C6 7A 90 00 [16:27:00]wFMCommunicate OK [16:27:00]SAM_PROTO_SignData done [16:27:00]FM_MakeSignedData done [16:27:00]CreateOFDProtocolMessage [16:27:00]wFMCommunicate request_size=4 [16:27:00]MH_SAM_APDU [16:27:00]CAPDU: 80 11 00 00 [16:27:00]Write to MH i2c: E2 08 00 0D 31 80 11 00 00 00 00 00 00 B8 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:00]Read from MH i2c: E2 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 17 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: E2 17 00 0D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [16:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:00]wFMCommunicate OK [16:27:00]CreateOFDProtocolMessage done [16:27:00]OFDSenderStorePacket 164663 [16:27:00]StoreOFDPacket docnum=164663 [16:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 79 04 01 5F 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 83 02 00 35 04 06 00 0B 74 B6 2C 3A BE E3 F4 04 36 28 F4 C6 7A [16:27:00]CheckFolder [16:27:00]dirname=/storage/ofd_packets [16:27:00]CheckFolder done [16:27:00]ProducePacketName [16:27:00]name=ofd_packets/00164663 [16:27:00]NVStorageSaveData ofd_packets/00164663 [16:27:00]File name is /storage/ofd_packets/00164663 [16:27:00]Write 298 bytes [16:27:00]NVStorageSaveData done [16:27:00]OFDSenderStorePacket done [16:27:00]KKMCreateOFDPacket done [16:27:00]NVStorageSaveData kkm_last_timestamp [16:27:00]File name is /storage/kkm_last_timestamp [16:27:00]Write 4 bytes [16:27:00]NVStorageSaveData done [16:27:00]ExternCall_PrintAddStr [16:27:00]wPrintStart [16:27:00]Write to MH i2c: 01 00 00 0E 31 3F [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 FF 0F 54 [16:27:00]RasterBufferAndPrint [16:27:00]line Счет N : (1)458756 [16:27:00]line ИНН: 02508201610067 [16:27:00]line Контрольно-Кассовый Чек [16:27:00]line ПРОДАЖА [16:27:00]line ТРК (МРК, ГНК) : 21 [16:27:00]line Товар: 2710194210 [16:27:00]line ДТ-К-5 [16:27:00]line 20.000 * 71.90 [16:27:00]line = 1438.00 [16:27:00]line НДС 12% НСП 1% [16:27:00]line > о реализуемом товаре [16:27:00]line ИТОГО: 1438.00 [16:27:00]line НСП 1% : 12.73 [16:27:00]line НДС 12% : 152.71 [16:27:00]line Наличными: 1438.00 [16:27:00]line Безнал.: 0.00 [16:27:00]line Место: АЗС № 72 "Партнер Нефть" [16:27:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:27:00]line СНО: Общий режим [16:27:00]line Чек 223 13.07.2024 16:27 [16:27:00]line Смена: 446 ФФД: 1.0 [16:27:00]line ЗНМ: 0300000160 [16:27:00]line РНМ: 0000000000090829 [16:27:00]line Версия ККМ: 001 [16:27:00]line ФМ: 0000000000874718 [16:27:00]line ФД: 164663 [16:27:00]line ФПД: 12595900463806 [16:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162701&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164663&fm=12595900463806&tin=02508201610067®Number=0000000000090829&sum=143800 [16:27:00]OFD Sender: Processing packet 164663 [packets to send 104, broken 103] [16:27:00]ProducePacketName [16:27:00]name=ofd_packets/00164663 [16:27:00]OFD Sender: To server: pG, [16:27:00]CommunicateWithHost lk.salyk.kg:30040 [16:27:00]ConnectInit lk.salyk.kg [16:27:00]written 0, free lines is 4095 [16:27:00]Connected sock=10 [16:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 79 04 01 5F 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 D5 AA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 83 02 00 35 04 06 00 0B 74 B6 2C 3A BE E3 F4 04 36 28 F4 C6 7A [16:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 8F 47 00 57 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 83 02 00 F4 03 04 00 65 51 92 66 B6 04 01 00 00 56 87 AE BF 46 0E 18 57 [16:27:00]CommunicateWithHost err = 0 [16:27:00]CheckOFDResponse [16:27:00]1017 (14) - 77093643461234 [16:27:00]1041 (16) - 0000000000874718 [16:27:00]1040 (4) - 164663 [16:27:00]1012 (4) - 13.07.2024 10:05 [16:27:00]1206 (1) - 0 [16:27:00]OFD Sender: Remove packet 164663 [16:27:00]ProducePacketName [16:27:00]name=ofd_packets/00164663 [16:27:00]NVStorageDeleteData [16:27:00]Write to MH i2c: 01 00 00 35 31 66 [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: 01 07 00 35 31 00 00 00 00 00 21 0D 9B [16:27:00]RasterBufferAndPrint [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]line [16:27:00]written 0, free lines is 3367 [16:27:00]MH_Cut [16:27:00]Write to MH i2c: D1 01 00 3C 31 01 3F [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 01 00 [16:27:00]MH_I2C_Read... [16:27:00]Read from MH i2c: D1 01 00 3C 31 00 3E [16:27:00]Write to MH i2c: 01 00 00 3D 31 6E [16:27:00]Write i2c OK [16:27:00]MH_I2C_Read... [16:27:01]OFD Sender: No OFD packet to send [16:27:01]*** Cut start [16:27:01]*** Partial cut [16:27:01]*** CUTSNS_PIN = 1 [16:27:01]*** CUTSNS_PIN = 0 [16:27:01]*** Brake cut motor [16:27:02]Read from MH i2c: 01 [16:27:02]MH_I2C_Read... [16:27:02]*** Stop cut motor [16:27:02]*** Cut end [16:27:02]Read from MH i2c: 01 07 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: 01 07 00 3D 31 00 00 00 00 00 FF 0F 83 [16:27:02]process_action close_receipt done [16:27:02]requested_data is exist [16:27:02]produce_requested_data [16:27:02]requested_item fm.sn is exist - process it [16:27:02]wFMCommunicate request_size=4 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 11 00 00 [16:27:02]Write to MH i2c: E2 08 00 3E 31 80 11 00 00 00 00 00 00 E9 [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 17 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 17 00 3E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [16:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:02]wFMCommunicate OK [16:27:02]requested_item fd.num is exist - process it [16:27:02]SAM_PROTO_GetFieldsCounters [16:27:02]wFMCommunicate request_size=4 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 13 00 00 [16:27:02]Write to MH i2c: E2 08 00 3F 31 80 13 00 00 00 00 00 00 EC [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 62 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 62 00 3F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:02]wFMCommunicate OK [16:27:02]SAM_PROTO_GetFieldsCounters done [16:27:02]requested_item shift.num is exist - process it [16:27:02]requested_item shift.opened is exist - process it [16:27:02]req_shift_opened [16:27:02]FM_GetShiftState [16:27:02]SAM_PROTO_GetShiftState [16:27:02]wFMCommunicate request_size=4 [16:27:02]MH_SAM_APDU [16:27:02]CAPDU: 80 13 01 00 [16:27:02]Write to MH i2c: E2 08 00 40 31 80 13 01 00 00 00 00 00 EE [16:27:02]Write i2c OK [16:27:02]MH_I2C_Read... [16:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:02]Read from MH i2c: E2 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 0E 00 [16:27:02]MH_I2C_Read... [16:27:02]Read from MH i2c: E2 0E 00 40 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CF [16:27:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:27:02]wFMCommunicate OK [16:27:02]SAM_PROTO_GetShiftState done [16:27:02]FM_GetShiftState done [16:27:02]req_shift_opened done [16:27:02]requested_item shift.open_date is exist - process it [16:27:02]req_shift_open_date [16:27:02]req_shift_open_date done [16:27:02]produce_requested_data done [16:27:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164663,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:27:02]process_action_free close_receipt [16:27:02]json_value_free [16:27:02]json_value_free done [16:27:02]process_json_proto returns [16:27:02]Send response to host [16:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164663,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:27:02]free response buf [16:27:02]execute_script done [16:27:02]execute_script returns [16:27:02]free content buf [16:27:02]Sock 7.Close socket [16:27:02]Sock 7.Thread stoped [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:47]accept exits with 9 [16:27:47]New connection [16:27:47]New thread 3067149668 created [16:27:47]Thread 3067293028 joined [16:27:47]Waiting for new connection... [16:27:47] Sock 9.Parse request [16:27:47]Sock 9.Check first char [16:27:47]Sock 9.First char is OK [16:27:47]request: POST /json_proto HTTP/1.0 [16:27:47]Method: POST [16:27:47]URL: /json_proto [16:27:47]Method is POST - this is cgi request [16:27:47]url: /json_proto [16:27:47]query_string will be loaded in cgi processing [16:27:47]execute_cgi json_proto POST (null) [16:27:47]execute_cgi path=json_proto method=POST [16:27:47]POST find Content-Length [16:27:47]Host: 172.17.56.4:8080 [16:27:47]Content-Length: 637 [16:27:47]Content-Type: application/json [16:27:47] [16:27:47]POST finish read [16:27:47]Found Content-Length = 637 [16:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:47]execute_script... [16:27: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)458757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:47]POST & json_proto [16:27:47]process_json_proto [16:27:47]json parsed OK: [16:27:47]protocol is kg_v1.0 [16:27:47]action value=close_receipt [16:27:47]process_action close_receipt [16:27:47]cmd_close_receipt [16:27:47]MH_GetDate [16:27:47]Write to MH i2c: F0 00 00 41 31 61 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: F0 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: F0 09 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: F0 09 00 41 31 00 06 AB 92 66 C9 DC B2 64 CE [16:27:47]GetLastDocTimeStamp 1720888021 [16:27:47]current date 1720888070 [16:27:47]FM_GetShiftState [16:27:47]SAM_PROTO_GetShiftState [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 13 01 00 [16:27:47]Write to MH i2c: E2 08 00 42 31 80 13 01 00 00 00 00 00 F0 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 0E 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 0E 00 42 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D1 [16:27:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:27:47]wFMCommunicate OK [16:27:47]SAM_PROTO_GetShiftState done [16:27:47]FM_GetShiftState done [16:27:47]opened in 1720831249 [16:27:47]opened+sec_in_day 1720917649 [16:27:47]quantity*price = 71900 [16:27:47]sum+1 = 71901 [16:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 224 13.07.2024 16:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164664 ФПД: 105217753933599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164664&fm=105217753933599&tin=02508201610067®Number=0000000000090829&sum=71900 [16:27:48]StoreToDocumentArchive [16:27:48]shift 446 fd 164664 [16:27:48]save to /storage/0446/doc_00164664 [16:27:48]save last doc name /storage/0446/doc_00164664 to /storage/kkm_last_doc_name [16:27:48]save OK [16:27:48]Clear old archive folders... [16:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:27:48]tlvbuf is B6F2D7A0 [16:27:48]SAM_PROTO_ClearQueue [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 09 00 00 [16:27:48]Write to MH i2c: E2 08 00 4F 31 80 09 00 00 00 00 00 00 F2 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 4F 31 00 90 00 F4 [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]SAM_PROTO_ClearQueue done [16:27:48]KKMCreateOFDPacket [16:27:48]OFDProtocolAddRootSTLVToBuf [16:27:48]FM_MakeSignedData [16:27:48]FM_MakeSignedData [16:27:48]SAM_PROTO_SignData [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 01 02 [16:27:48]Write to MH i2c: E2 08 00 50 31 80 0D 01 02 00 00 00 00 FA [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 50 31 00 90 00 F5 [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]wFMCommunicate request_size=255 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 06 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 83 02 00 35 04 06 00 5F B1 EA D8 [16:27:48]Write to MH i2c: E2 02 01 51 31 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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 06 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 83 02 00 35 04 06 00 5F B1 EA D8 00 00 EA [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]wFMCommunicate request_size=7 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 02 02 02 E7 1F [16:27:48]Write to MH i2c: E2 0A 00 52 31 80 0D 02 02 02 00 E7 1F 00 00 07 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 52 31 00 90 00 F7 [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 03 02 [16:27:48]Write to MH i2c: E2 08 00 53 31 80 0D 03 02 00 00 00 00 FF [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 0B 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 0B 00 53 31 00 C3 35 FF B5 D2 F8 94 E1 90 00 EB [16:27:49]RAPDU: C3 35 FF B5 D2 F8 94 E1 90 00 [16:27:49]wFMCommunicate OK [16:27:49]SAM_PROTO_SignData done [16:27:49]FM_MakeSignedData done [16:27:49]CreateOFDProtocolMessage [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 11 00 00 [16:27:49]Write to MH i2c: E2 08 00 54 31 80 11 00 00 00 00 00 00 FF [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 17 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 17 00 54 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [16:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:49]wFMCommunicate OK [16:27:49]CreateOFDProtocolMessage done [16:27:49]OFDSenderStorePacket 164664 [16:27:49]StoreOFDPacket docnum=164664 [16:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E2 E7 04 01 96 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 06 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 83 02 00 35 04 06 00 5F B1 EA D8 E7 1F C3 35 FF B5 D2 F8 94 E1 [16:27:49]CheckFolder [16:27:49]dirname=/storage/ofd_packets [16:27:49]CheckFolder done [16:27:49]ProducePacketName [16:27:49]name=ofd_packets/00164664 [16:27:49]NVStorageSaveData ofd_packets/00164664 [16:27:49]File name is /storage/ofd_packets/00164664 [16:27:49]Write 298 bytes [16:27:49]NVStorageSaveData done [16:27:49]OFDSenderStorePacket done [16:27:49]KKMCreateOFDPacket done [16:27:49]NVStorageSaveData kkm_last_timestamp [16:27:49]File name is /storage/kkm_last_timestamp [16:27:49]Write 4 bytes [16:27:49]NVStorageSaveData done [16:27:49]ExternCall_PrintAddStr [16:27:49]wPrintStart [16:27:49]Write to MH i2c: 01 00 00 55 31 86 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 07 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 07 00 55 31 00 00 00 00 00 FF 0F 9B [16:27:49]RasterBufferAndPrint [16:27:49]line Счет N : (1)458757 [16:27:49]line ИНН: 02508201610067 [16:27:49]line Контрольно-Кассовый Чек [16:27:49]line ПРОДАЖА [16:27:49]line ТРК (МРК, ГНК) : 21 [16:27:49]line Товар: 2710194210 [16:27:49]line ДТ-К-5 [16:27:49]line 10.000 * 71.90 [16:27:49]line = 719.00 [16:27:49]line НДС 12% НСП 1% [16:27:49]line > о реализуемом товаре [16:27:49]line ИТОГО: 719.00 [16:27:49]line НСП 1% : 6.36 [16:27:49]line НДС 12% : 76.35 [16:27:49]line Наличными: 719.00 [16:27:49]line Безнал.: 0.00 [16:27:49]line Место: АЗС № 72 "Партнер Нефть" [16:27:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:27:49]line СНО: Общий режим [16:27:49]line Чек 224 13.07.2024 16:27 [16:27:49]line Смена: 446 ФФД: 1.0 [16:27:49]line ЗНМ: 0300000160 [16:27:49]line РНМ: 0000000000090829 [16:27:49]line Версия ККМ: 001 [16:27:49]line ФМ: 0000000000874718 [16:27:49]line ФД: 164664 [16:27:49]line ФПД: 105217753933599 [16:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164664&fm=105217753933599&tin=02508201610067®Number=0000000000090829&sum=71900 [16:27:49]OFD Sender: Processing packet 164664 [packets to send 104, broken 103] [16:27:49]ProducePacketName [16:27:49]name=ofd_packets/00164664 [16:27:49]OFD Sender: To server: pG, [16:27:49]CommunicateWithHost lk.salyk.kg:30040 [16:27:49]ConnectInit lk.salyk.kg [16:27:49]written 0, free lines is 4095 [16:27:49]Connected sock=10 [16:27:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E2 E7 04 01 96 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 06 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 83 02 00 35 04 06 00 5F B1 EA D8 E7 1F C3 35 FF B5 D2 F8 94 E1 [16:27:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B9 91 47 00 1D 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 34 37 31 38 10 04 04 00 38 83 02 00 F4 03 04 00 96 51 92 66 B6 04 01 00 00 B3 AC C8 3E 76 A6 5B B8 [16:27:49]CommunicateWithHost err = 0 [16:27:49]CheckOFDResponse [16:27:49]1017 (14) - 77093643461234 [16:27:49]1041 (16) - 0000000000874718 [16:27:49]1040 (4) - 164664 [16:27:49]1012 (4) - 13.07.2024 10:06 [16:27:49]1206 (1) - 0 [16:27:49]OFD Sender: Remove packet 164664 [16:27:49]ProducePacketName [16:27:49]name=ofd_packets/00164664 [16:27:49]NVStorageDeleteData [16:27:49]Write to MH i2c: 01 00 00 7C 31 AD [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 07 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: 01 07 00 7C 31 00 00 00 00 00 21 0D E2 [16:27:49]RasterBufferAndPrint [16:27:49]line [16:27:49]line [16:27:49]line [16:27:49]line [16:27:49]line [16:27:49]written 0, free lines is 3367 [16:27:49]MH_Cut [16:27:49]Write to MH i2c: D1 01 00 83 31 01 86 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: D1 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: D1 01 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: D1 01 00 83 31 00 85 [16:27:49]Write to MH i2c: 01 00 00 84 31 B5 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:50]OFD Sender: No OFD packet to send [16:27:50]*** Cut start [16:27:50]*** Partial cut [16:27:50]*** CUTSNS_PIN = 1 [16:27:50]*** CUTSNS_PIN = 0 [16:27:50]*** Brake cut motor [16:27:51]Read from MH i2c: 01 [16:27:51]MH_I2C_Read... [16:27:51]*** Stop cut motor [16:27:51]*** Cut end [16:27:51]Read from MH i2c: 01 07 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: 01 07 00 84 31 00 00 00 00 00 FF 0F CA [16:27:51]process_action close_receipt done [16:27:51]requested_data is exist [16:27:51]produce_requested_data [16:27:51]requested_item fm.sn is exist - process it [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 11 00 00 [16:27:51]Write to MH i2c: E2 08 00 85 31 80 11 00 00 00 00 00 00 30 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 17 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 17 00 85 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [16:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:51]wFMCommunicate OK [16:27:51]requested_item fd.num is exist - process it [16:27:51]SAM_PROTO_GetFieldsCounters [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 13 00 00 [16:27:51]Write to MH i2c: E2 08 00 86 31 80 13 00 00 00 00 00 00 33 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 62 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 62 00 86 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:51]wFMCommunicate OK [16:27:51]SAM_PROTO_GetFieldsCounters done [16:27:51]requested_item shift.num is exist - process it [16:27:51]requested_item shift.opened is exist - process it [16:27:51]req_shift_opened [16:27:51]FM_GetShiftState [16:27:51]SAM_PROTO_GetShiftState [16:27:51]wFMCommunicate request_size=4 [16:27:51]MH_SAM_APDU [16:27:51]CAPDU: 80 13 01 00 [16:27:51]Write to MH i2c: E2 08 00 87 31 80 13 01 00 00 00 00 00 35 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:51]Read from MH i2c: E2 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 0E 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: E2 0E 00 87 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 16 [16:27:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:27:51]wFMCommunicate OK [16:27:51]SAM_PROTO_GetShiftState done [16:27:51]FM_GetShiftState done [16:27:51]req_shift_opened done [16:27:51]requested_item shift.open_date is exist - process it [16:27:51]req_shift_open_date [16:27:51]req_shift_open_date done [16:27:51]produce_requested_data done [16:27:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164664,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:27:51]process_action_free close_receipt [16:27:51]json_value_free [16:27:51]json_value_free done [16:27:51]process_json_proto returns [16:27:51]Send response to host [16:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164664,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:27:51]free response buf [16:27:51]execute_script done [16:27:51]execute_script returns [16:27:51]free content buf [16:27:51]Sock 9.Close socket [16:27:51]Sock 9.Thread stoped [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:41]accept exits with 7 [16:28:41]New connection [16:28:41]New thread 3067293028 created [16:28:41]Thread 3067149668 joined [16:28:41]Waiting for new connection... [16:28:41] Sock 7.Parse request [16:28:41]Sock 7.Check first char [16:28:41]Sock 7.First char is OK [16:28:41]request: POST /json_proto HTTP/1.0 [16:28:41]Method: POST [16:28:41]URL: /json_proto [16:28:41]Method is POST - this is cgi request [16:28:41]url: /json_proto [16:28:41]query_string will be loaded in cgi processing [16:28:41]execute_cgi json_proto POST (null) [16:28:41]execute_cgi path=json_proto method=POST [16:28:41]POST find Content-Length [16:28:41]Host: 172.17.56.4:8080 [16:28:41]Content-Length: 674 [16:28:41]Content-Type: application/json [16:28:41] [16:28:41]POST finish read [16:28:41]Found Content-Length = 674 [16:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.010, "sum" : 360.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:41]execute_script... [16:28: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)458758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.010, "sum" : 360.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:41]POST & json_proto [16:28:41]process_json_proto [16:28:41]json parsed OK: [16:28:41]protocol is kg_v1.0 [16:28:41]action value=close_receipt [16:28:41]process_action close_receipt [16:28:41]cmd_close_receipt [16:28:41]MH_GetDate [16:28:41]Write to MH i2c: F0 00 00 88 31 A8 [16:28:41]Write i2c OK [16:28:41]MH_I2C_Read... [16:28:41]Read from MH i2c: F0 [16:28:41]MH_I2C_Read... [16:28:41]Read from MH i2c: F0 09 00 [16:28:41]MH_I2C_Read... [16:28:41]Read from MH i2c: F0 09 00 88 31 00 3C AB 92 66 C9 DC B2 64 4B [16:28:41]GetLastDocTimeStamp 1720888070 [16:28:41]current date 1720888124 [16:28:41]FM_GetShiftState [16:28:41]SAM_PROTO_GetShiftState [16:28:41]wFMCommunicate request_size=4 [16:28:41]MH_SAM_APDU [16:28:41]CAPDU: 80 13 01 00 [16:28:41]Write to MH i2c: E2 08 00 89 31 80 13 01 00 00 00 00 00 37 [16:28:41]Write i2c OK [16:28:41]MH_I2C_Read... [16:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:41]Read from MH i2c: E2 [16:28:41]MH_I2C_Read... [16:28:41]Read from MH i2c: E2 0E 00 [16:28:41]MH_I2C_Read... [16:28:41]Read from MH i2c: E2 0E 00 89 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 18 [16:28:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:28:41]wFMCommunicate OK [16:28:41]SAM_PROTO_GetShiftState done [16:28:41]FM_GetShiftState done [16:28:41]opened in 1720831249 [16:28:41]opened+sec_in_day 1720917649 [16:28:41]quantity*price = 36021 [16:28:41]sum+1 = 36023 [16:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.25 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 225 13.07.2024 16:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164665 ФПД: 86459483695182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164665&fm=86459483695182&tin=02508201610067®Number=0000000000090829&sum=36000 [16:28:42]StoreToDocumentArchive [16:28:42]shift 446 fd 164665 [16:28:42]save to /storage/0446/doc_00164665 [16:28:42]save last doc name /storage/0446/doc_00164665 to /storage/kkm_last_doc_name [16:28:42]save OK [16:28:42]Clear old archive folders... [16:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:28:42]tlvbuf is 01487300 [16:28:42]SAM_PROTO_ClearQueue [16:28:42]wFMCommunicate request_size=4 [16:28:42]MH_SAM_APDU [16:28:42]CAPDU: 80 09 00 00 [16:28:42]Write to MH i2c: E2 08 00 96 31 80 09 00 00 00 00 00 00 39 [16:28:42]Write i2c OK [16:28:42]MH_I2C_Read... [16:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:42]Read from MH i2c: E2 [16:28:42]MH_I2C_Read... [16:28:42]Read from MH i2c: E2 03 00 [16:28:42]MH_I2C_Read... [16:28:42]Read from MH i2c: E2 03 00 96 31 00 90 00 3B [16:28:43]RAPDU: 90 00 [16:28:43]wFMCommunicate OK [16:28:43]SAM_PROTO_ClearQueue done [16:28:43]KKMCreateOFDPacket [16:28:43]OFDProtocolAddRootSTLVToBuf [16:28:43]FM_MakeSignedData [16:28:43]FM_MakeSignedData [16:28:43]SAM_PROTO_SignData [16:28:43]wFMCommunicate request_size=4 [16:28:43]MH_SAM_APDU [16:28:43]CAPDU: 80 0D 01 02 [16:28:43]Write to MH i2c: E2 08 00 97 31 80 0D 01 02 00 00 00 00 41 [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:43]Read from MH i2c: E2 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 97 31 00 90 00 3C [16:28:43]RAPDU: 90 00 [16:28:43]wFMCommunicate OK [16:28:43]wFMCommunicate request_size=255 [16:28:43]MH_SAM_APDU [16:28: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 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3C AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 83 02 00 35 04 06 00 4E A2 6A D0 [16:28:43]Write to MH i2c: E2 02 01 98 31 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 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3C AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 83 02 00 35 04 06 00 4E A2 6A D0 00 00 BB [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:43]Read from MH i2c: E2 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 98 31 00 90 00 3D [16:28:43]RAPDU: 90 00 [16:28:43]wFMCommunicate OK [16:28:43]wFMCommunicate request_size=7 [16:28:43]MH_SAM_APDU [16:28:43]CAPDU: 80 0D 02 02 02 28 4E [16:28:43]Write to MH i2c: E2 0A 00 99 31 80 0D 02 02 02 00 28 4E 00 00 BE [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:43]Read from MH i2c: E2 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 03 00 99 31 00 90 00 3E [16:28:43]RAPDU: 90 00 [16:28:43]wFMCommunicate OK [16:28:43]wFMCommunicate request_size=4 [16:28:43]MH_SAM_APDU [16:28:43]CAPDU: 80 0D 03 02 [16:28:43]Write to MH i2c: E2 08 00 9A 31 80 0D 03 02 00 00 00 00 46 [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:43]Read from MH i2c: E2 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 0B 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 0B 00 9A 31 00 15 30 8D A6 78 5A BA 56 90 00 A1 [16:28:43]RAPDU: 15 30 8D A6 78 5A BA 56 90 00 [16:28:43]wFMCommunicate OK [16:28:43]SAM_PROTO_SignData done [16:28:43]FM_MakeSignedData done [16:28:43]CreateOFDProtocolMessage [16:28:43]wFMCommunicate request_size=4 [16:28:43]MH_SAM_APDU [16:28:43]CAPDU: 80 11 00 00 [16:28:43]Write to MH i2c: E2 08 00 9B 31 80 11 00 00 00 00 00 00 46 [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:43]Read from MH i2c: E2 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 17 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: E2 17 00 9B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [16:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:28:43]wFMCommunicate OK [16:28:43]CreateOFDProtocolMessage done [16:28:43]OFDSenderStorePacket 164665 [16:28:43]StoreOFDPacket docnum=164665 [16:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BD 95 04 01 61 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3C AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 83 02 00 35 04 06 00 4E A2 6A D0 28 4E 15 30 8D A6 78 5A BA 56 [16:28:43]CheckFolder [16:28:43]dirname=/storage/ofd_packets [16:28:43]CheckFolder done [16:28:43]ProducePacketName [16:28:43]name=ofd_packets/00164665 [16:28:43]NVStorageSaveData ofd_packets/00164665 [16:28:43]File name is /storage/ofd_packets/00164665 [16:28:43]Write 298 bytes [16:28:43]NVStorageSaveData done [16:28:43]OFDSenderStorePacket done [16:28:43]KKMCreateOFDPacket done [16:28:43]NVStorageSaveData kkm_last_timestamp [16:28:43]File name is /storage/kkm_last_timestamp [16:28:43]Write 4 bytes [16:28:43]NVStorageSaveData done [16:28:43]ExternCall_PrintAddStr [16:28:43]wPrintStart [16:28:43]Write to MH i2c: 01 00 00 9C 31 CD [16:28:43]Write i2c OK [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: 01 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: 01 07 00 [16:28:43]MH_I2C_Read... [16:28:43]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 FF 0F E2 [16:28:43]RasterBufferAndPrint [16:28:43]line Счет N : (1)458758 [16:28:43]line ИНН: 02508201610067 [16:28:43]line Контрольно-Кассовый Чек [16:28:43]line ПРОДАЖА [16:28:43]line ТРК (МРК, ГНК) : 11 [16:28:43]line Товар: 2710194210 [16:28:43]line ДТ-К-5 [16:28:43]line 5.010 * 71.90 [16:28:43]line = 360.22 [16:28:43]line НДС 12% НСП 1% [16:28:43]line > о реализуемом товаре [16:28:43]line ОКРУГЛЕНИЕ: -0.22 [16:28:43]line ИТОГО: 360.00 [16:28:43]line Внесено: 360.00 [16:28:43]line СДАЧА: 0.00 [16:28:43]line НСП 1% : 3.19 [16:28:43]line НДС 12% : 38.25 [16:28:43]line Наличными: 360.00 [16:28:43]line Безнал.: 0.00 [16:28:43]line Место: АЗС № 72 "Партнер Нефть" [16:28:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:28:43]line СНО: Общий режим [16:28:43]line Чек 225 13.07.2024 16:28 [16:28:43]line Смена: 446 ФФД: 1.0 [16:28:43]line ЗНМ: 0300000160 [16:28:43]line РНМ: 0000000000090829 [16:28:43]line Версия ККМ: 001 [16:28:43]line ФМ: 0000000000874718 [16:28:43]line ФД: 164665 [16:28:43]line ФПД: 86459483695182 [16:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T162844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164665&fm=86459483695182&tin=02508201610067®Number=0000000000090829&sum=36000 [16:28:43]OFD Sender: Processing packet 164665 [packets to send 104, broken 103] [16:28:43]ProducePacketName [16:28:43]name=ofd_packets/00164665 [16:28:43]OFD Sender: To server: pG, [16:28:43]CommunicateWithHost lk.salyk.kg:30040 [16:28:43]ConnectInit lk.salyk.kg [16:28:43]written 0, free lines is 4095 [16:28:43]Connected sock=10 [16:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BD 95 04 01 61 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B6 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 3C AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 83 02 00 35 04 06 00 4E A2 6A D0 28 4E 15 30 8D A6 78 5A BA 56 [16:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 36 8D 47 00 1D E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 83 02 00 F4 03 04 00 CD 51 92 66 B6 04 01 00 00 B7 5B 9F F9 A9 83 29 3F [16:28:44]CommunicateWithHost err = 0 [16:28:44]CheckOFDResponse [16:28:44]1017 (14) - 77093643461234 [16:28:44]1041 (16) - 0000000000874718 [16:28:44]1040 (4) - 164665 [16:28:44]1012 (4) - 13.07.2024 10:07 [16:28:44]1206 (1) - 0 [16:28:44]OFD Sender: Remove packet 164665 [16:28:44]ProducePacketName [16:28:44]name=ofd_packets/00164665 [16:28:44]NVStorageDeleteData [16:28:44]Write to MH i2c: 01 00 00 C6 31 F7 [16:28:44]Write i2c OK [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: 01 [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: 01 07 00 [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: 01 07 00 C6 31 00 00 00 00 00 EF 0C F9 [16:28:44]RasterBufferAndPrint [16:28:44]line [16:28:44]line [16:28:44]line [16:28:44]line [16:28:44]line [16:28:44]written 0, free lines is 3317 [16:28:44]MH_Cut [16:28:44]Write to MH i2c: D1 01 00 CD 31 01 D0 [16:28:44]Write i2c OK [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: D1 [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: D1 01 00 [16:28:44]MH_I2C_Read... [16:28:44]Read from MH i2c: D1 01 00 CD 31 00 CF [16:28:44]Write to MH i2c: 01 00 00 CE 31 FF [16:28:44]Write i2c OK [16:28:44]MH_I2C_Read... [16:28:44]OFD Sender: No OFD packet to send [16:28:44]*** Cut start [16:28:44]*** Partial cut [16:28:44]*** CUTSNS_PIN = 1 [16:28:44]*** CUTSNS_PIN = 0 [16:28:45]*** Brake cut motor [16:28:45]Read from MH i2c: 01 [16:28:45]MH_I2C_Read... [16:28:45]*** Stop cut motor [16:28:45]*** Cut end [16:28:45]Read from MH i2c: 01 07 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: 01 07 00 CE 31 00 00 00 00 00 FF 0F 14 [16:28:45]process_action close_receipt done [16:28:45]requested_data is exist [16:28:45]produce_requested_data [16:28:45]requested_item fm.sn is exist - process it [16:28:45]wFMCommunicate request_size=4 [16:28:45]MH_SAM_APDU [16:28:45]CAPDU: 80 11 00 00 [16:28:45]Write to MH i2c: E2 08 00 CF 31 80 11 00 00 00 00 00 00 7A [16:28:45]Write i2c OK [16:28:45]MH_I2C_Read... [16:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:45]Read from MH i2c: E2 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 17 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 17 00 CF 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [16:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:28:45]wFMCommunicate OK [16:28:45]requested_item fd.num is exist - process it [16:28:45]SAM_PROTO_GetFieldsCounters [16:28:45]wFMCommunicate request_size=4 [16:28:45]MH_SAM_APDU [16:28:45]CAPDU: 80 13 00 00 [16:28:45]Write to MH i2c: E2 08 00 D0 31 80 13 00 00 00 00 00 00 7D [16:28:45]Write i2c OK [16:28:45]MH_I2C_Read... [16:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:45]Read from MH i2c: E2 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 62 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 62 00 D0 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:45]wFMCommunicate OK [16:28:45]SAM_PROTO_GetFieldsCounters done [16:28:45]requested_item shift.num is exist - process it [16:28:45]requested_item shift.opened is exist - process it [16:28:45]req_shift_opened [16:28:45]FM_GetShiftState [16:28:45]SAM_PROTO_GetShiftState [16:28:45]wFMCommunicate request_size=4 [16:28:45]MH_SAM_APDU [16:28:45]CAPDU: 80 13 01 00 [16:28:45]Write to MH i2c: E2 08 00 D1 31 80 13 01 00 00 00 00 00 7F [16:28:45]Write i2c OK [16:28:45]MH_I2C_Read... [16:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:45]Read from MH i2c: E2 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 0E 00 [16:28:45]MH_I2C_Read... [16:28:45]Read from MH i2c: E2 0E 00 D1 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 60 [16:28:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:28:45]wFMCommunicate OK [16:28:45]SAM_PROTO_GetShiftState done [16:28:45]FM_GetShiftState done [16:28:45]req_shift_opened done [16:28:45]requested_item shift.open_date is exist - process it [16:28:45]req_shift_open_date [16:28:45]req_shift_open_date done [16:28:45]produce_requested_data done [16:28:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164665,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:28:45]process_action_free close_receipt [16:28:45]json_value_free [16:28:45]json_value_free done [16:28:45]process_json_proto returns [16:28:45]Send response to host [16:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164665,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:28:45]free response buf [16:28:45]execute_script done [16:28:45]execute_script returns [16:28:45]free content buf [16:28:45]Sock 7.Close socket [16:28:45]Sock 7.Thread stoped [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:18]accept exits with 9 [16:31:18]New connection [16:31:18]New thread 3067149668 created [16:31:18]Thread 3067293028 joined [16:31:18]Waiting for new connection... [16:31:18] Sock 9.Parse request [16:31:18]Sock 9.Check first char [16:31:18]Sock 9.First char is OK [16:31:18]request: POST /json_proto HTTP/1.0 [16:31:18]Method: POST [16:31:18]URL: /json_proto [16:31:18]Method is POST - this is cgi request [16:31:18]url: /json_proto [16:31:18]query_string will be loaded in cgi processing [16:31:18]execute_cgi json_proto POST (null) [16:31:18]execute_cgi path=json_proto method=POST [16:31:18]POST find Content-Length [16:31:18]Host: 172.17.56.4:8080 [16:31:18]Content-Length: 790 [16:31:18]Content-Type: application/json [16:31:18] [16:31:18]POST finish read [16:31:18]Found Content-Length = 790 [16:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:18]execute_script... [16:31:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:18]POST & json_proto [16:31:18]process_json_proto [16:31:18]json parsed OK: [16:31:18]protocol is kg_v1.0 [16:31:18]action value=close_receipt [16:31:18]process_action close_receipt [16:31:18]cmd_close_receipt [16:31:18]MH_GetDate [16:31:18]Write to MH i2c: F0 00 00 D2 31 F2 [16:31:18]Write i2c OK [16:31:18]MH_I2C_Read... [16:31:18]Read from MH i2c: F0 [16:31:18]MH_I2C_Read... [16:31:18]Read from MH i2c: F0 09 00 [16:31:18]MH_I2C_Read... [16:31:18]Read from MH i2c: F0 09 00 D2 31 00 D9 AB 92 66 C9 DC B2 64 32 [16:31:18]GetLastDocTimeStamp 1720888124 [16:31:18]current date 1720888281 [16:31:18]FM_GetShiftState [16:31:18]SAM_PROTO_GetShiftState [16:31:18]wFMCommunicate request_size=4 [16:31:18]MH_SAM_APDU [16:31:18]CAPDU: 80 13 01 00 [16:31:18]Write to MH i2c: E2 08 00 D3 31 80 13 01 00 00 00 00 00 81 [16:31:18]Write i2c OK [16:31:18]MH_I2C_Read... [16:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:18]Read from MH i2c: E2 [16:31:18]MH_I2C_Read... [16:31:18]Read from MH i2c: E2 0E 00 [16:31:18]MH_I2C_Read... [16:31:18]Read from MH i2c: E2 0E 00 D3 31 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 62 [16:31:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:31:18]wFMCommunicate OK [16:31:18]SAM_PROTO_GetShiftState done [16:31:18]FM_GetShiftState done [16:31:18]opened in 1720831249 [16:31:18]opened+sec_in_day 1720917649 [16:31:18]quantity*price = 200026 [16:31:18]sum+1 = 200028 [16:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 226 13.07.2024 16:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164666 ФПД: 244316644231444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164666&fm=244316644231444&tin=02508201610067®Number=0000000000090829&sum=200027 [16:31:20]StoreToDocumentArchive [16:31:20]shift 446 fd 164666 [16:31:20]save to /storage/0446/doc_00164666 [16:31:20]save last doc name /storage/0446/doc_00164666 to /storage/kkm_last_doc_name [16:31:20]save OK [16:31:20]Clear old archive folders... [16:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:20]tlvbuf is 01557B00 [16:31:20]SAM_PROTO_ClearQueue [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 09 00 00 [16:31:20]Write to MH i2c: E2 08 00 E0 31 80 09 00 00 00 00 00 00 83 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 E0 31 00 90 00 85 [16:31:20]RAPDU: 90 00 [16:31:20]wFMCommunicate OK [16:31:20]SAM_PROTO_ClearQueue done [16:31:20]KKMCreateOFDPacket [16:31:20]OFDProtocolAddRootSTLVToBuf [16:31:20]FM_MakeSignedData [16:31:20]FM_MakeSignedData [16:31:20]SAM_PROTO_SignData [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 0D 01 02 [16:31:20]Write to MH i2c: E2 08 00 E1 31 80 0D 01 02 00 00 00 00 8B [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 E1 31 00 90 00 86 [16:31:20]RAPDU: 90 00 [16:31:20]wFMCommunicate OK [16:31:20]wFMCommunicate request_size=255 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D9 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 83 02 00 35 04 06 00 DE 34 66 CA [16:31:20]Write to MH i2c: E2 02 01 E2 31 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 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D9 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 83 02 00 35 04 06 00 DE 34 66 CA 00 00 8D [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 E2 31 00 90 00 87 [16:31:20]RAPDU: 90 00 [16:31:20]wFMCommunicate OK [16:31:20]wFMCommunicate request_size=7 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 0D 02 02 02 C9 14 [16:31:20]Write to MH i2c: E2 0A 00 E3 31 80 0D 02 02 02 00 C9 14 00 00 6F [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [16:31:20]RAPDU: 90 00 [16:31:20]wFMCommunicate OK [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 0D 03 02 [16:31:20]Write to MH i2c: E2 08 00 E4 31 80 0D 03 02 00 00 00 00 90 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0B 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0B 00 E4 31 00 B8 8E D9 CA 95 6A F0 65 90 00 CE [16:31:20]RAPDU: B8 8E D9 CA 95 6A F0 65 90 00 [16:31:20]wFMCommunicate OK [16:31:20]SAM_PROTO_SignData done [16:31:20]FM_MakeSignedData done [16:31:20]CreateOFDProtocolMessage [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 11 00 00 [16:31:20]Write to MH i2c: E2 08 00 E5 31 80 11 00 00 00 00 00 00 90 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 17 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 17 00 E5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [16:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:31:20]wFMCommunicate OK [16:31:20]CreateOFDProtocolMessage done [16:31:20]OFDSenderStorePacket 164666 [16:31:20]StoreOFDPacket docnum=164666 [16:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 76 EF 04 01 5B A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D9 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 83 02 00 35 04 06 00 DE 34 66 CA C9 14 B8 8E D9 CA 95 6A F0 65 [16:31:20]CheckFolder [16:31:20]dirname=/storage/ofd_packets [16:31:20]CheckFolder done [16:31:20]ProducePacketName [16:31:20]name=ofd_packets/00164666 [16:31:20]NVStorageSaveData ofd_packets/00164666 [16:31:20]File name is /storage/ofd_packets/00164666 [16:31:20]Write 298 bytes [16:31:20]NVStorageSaveData done [16:31:20]OFDSenderStorePacket done [16:31:20]KKMCreateOFDPacket done [16:31:20]NVStorageSaveData kkm_last_timestamp [16:31:20]File name is /storage/kkm_last_timestamp [16:31:20]Write 4 bytes [16:31:20]NVStorageSaveData done [16:31:20]ExternCall_PrintAddStr [16:31:20]wPrintStart [16:31:20]Write to MH i2c: 01 00 00 E6 31 17 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: 01 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: 01 07 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: 01 07 00 E6 31 00 00 00 00 00 FF 0F 2C [16:31:20]RasterBufferAndPrint [16:31:20]line Счет N : (1)458759 [16:31:20]line ИНН: 02508201610067 [16:31:20]line Контрольно-Кассовый Чек [16:31:20]line ПРОДАЖА [16:31:20]line ТРК (МРК, ГНК) : 21 [16:31:20]line Товар: 2710194210 [16:31:20]line ДТ-К-5 [16:31:20]line 28.070 * 71.26 [16:31:20]line = 2000.27 [16:31:20]line НДС 12% НСП 1% [16:31:20]line > о реализуемом товаре [16:31:20]line ИТОГО: 2000.27 [16:31:20]line НСП 1% : 17.70 [16:31:20]line НДС 12% : 212.42 [16:31:20]line Наличными: 0.00 [16:31:20]line Безнал.: 2000.27 [16:31:20]line Место: АЗС № 72 "Партнер Нефть" [16:31:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:31:20]line СНО: Общий режим [16:31:20]line Чек 226 13.07.2024 16:31 [16:31:20]line Смена: 446 ФФД: 1.0 [16:31:20]line ЗНМ: 0300000160 [16:31:20]line РНМ: 0000000000090829 [16:31:20]line Версия ККМ: 001 [16:31:20]line Платежная система: KICB Банк [16:31:20]line ФМ: 0000000000874718 [16:31:20]line ФД: 164666 [16:31:20]line ФПД: 244316644231444 [16:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164666&fm=244316644231444&tin=02508201610067®Number=0000000000090829&sum=200027 [16:31:20]OFD Sender: Processing packet 164666 [packets to send 104, broken 103] [16:31:20]ProducePacketName [16:31:20]name=ofd_packets/00164666 [16:31:20]OFD Sender: To server: pG, [16:31:20]CommunicateWithHost lk.salyk.kg:30040 [16:31:20]ConnectInit lk.salyk.kg [16:31:20]written 0, free lines is 4095 [16:31:21]Write to MH i2c: 01 00 00 0F 32 41 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 0F 32 00 00 00 00 00 09 0D 5E [16:31:21]RasterBufferAndPrint [16:31:21]line [16:31:21]line [16:31:21]line [16:31:21]line [16:31:21]line [16:31:21]written 0, free lines is 3340 [16:31:21]MH_Cut [16:31:21]Write to MH i2c: D1 01 00 16 32 01 1A [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: D1 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: D1 01 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: D1 01 00 16 32 00 19 [16:31:21]Write to MH i2c: 01 00 00 17 32 49 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** Cut start [16:31:21]*** Partial cut [16:31:21]*** CUTSNS_PIN = 1 [16:31:22]*** CUTSNS_PIN = 0 [16:31:22]*** Brake cut motor [16:31:22]Read from MH i2c: 01 [16:31:22]MH_I2C_Read... [16:31:22]*** Stop cut motor [16:31:22]*** Cut end [16:31:22]Read from MH i2c: 01 07 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 07 00 17 32 00 00 00 00 00 FF 0F 5E [16:31:22]process_action close_receipt done [16:31:22]requested_data is exist [16:31:22]produce_requested_data [16:31:22]requested_item fm.sn is exist - process it [16:31:22]wFMCommunicate request_size=4 [16:31:22]MH_SAM_APDU [16:31:22]CAPDU: 80 11 00 00 [16:31:22]Write to MH i2c: E2 08 00 18 32 80 11 00 00 00 00 00 00 C4 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:22]Read from MH i2c: E2 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 17 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 17 00 18 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [16:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:31:22]wFMCommunicate OK [16:31:22]requested_item fd.num is exist - process it [16:31:22]SAM_PROTO_GetFieldsCounters [16:31:22]wFMCommunicate request_size=4 [16:31:22]MH_SAM_APDU [16:31:22]CAPDU: 80 13 00 00 [16:31:22]Write to MH i2c: E2 08 00 19 32 80 13 00 00 00 00 00 00 C7 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:22]Read from MH i2c: E2 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 62 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 62 00 19 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:22]wFMCommunicate OK [16:31:22]SAM_PROTO_GetFieldsCounters done [16:31:22]requested_item shift.num is exist - process it [16:31:22]requested_item shift.opened is exist - process it [16:31:22]req_shift_opened [16:31:22]FM_GetShiftState [16:31:22]SAM_PROTO_GetShiftState [16:31:22]wFMCommunicate request_size=4 [16:31:22]MH_SAM_APDU [16:31:22]CAPDU: 80 13 01 00 [16:31:22]Write to MH i2c: E2 08 00 1A 32 80 13 01 00 00 00 00 00 C9 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:22]Read from MH i2c: E2 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 0E 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 0E 00 1A 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AA [16:31:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:31:22]wFMCommunicate OK [16:31:22]SAM_PROTO_GetShiftState done [16:31:22]FM_GetShiftState done [16:31:22]req_shift_opened done [16:31:22]requested_item shift.open_date is exist - process it [16:31:22]req_shift_open_date [16:31:22]req_shift_open_date done [16:31:22]produce_requested_data done [16:31:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164666,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:31:22]process_action_free close_receipt [16:31:22]json_value_free [16:31:22]json_value_free done [16:31:22]process_json_proto returns [16:31:22]Send response to host [16:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164666,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:31:22]free response buf [16:31:22]execute_script done [16:31:22]execute_script returns [16:31:22]free content buf [16:31:22]Sock 9.Close socket [16:31:22]Sock 9.Thread stoped [16:33:32]ConnectInit Can't connect to host [16:33:32]CommunicateWithHost connect error [16:33:32]CommunicateWithHost err = -1 [16:33:32]OFD Sender: Server communicate error [16:33:37]OFD Sender: Processing packet 164666 [packets to send 104, broken 103] [16:33:37]ProducePacketName [16:33:37]name=ofd_packets/00164666 [16:33:37]OFD Sender: To server: pG, [16:33:37]CommunicateWithHost lk.salyk.kg:30040 [16:33:37]ConnectInit lk.salyk.kg [16:33:37]Connected sock=9 [16:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 76 EF 04 01 5B A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D9 AB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 83 02 00 35 04 06 00 DE 34 66 CA C9 14 B8 8E D9 CA 95 6A F0 65 [16:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F4 83 47 00 78 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 34 37 31 38 10 04 04 00 3A 83 02 00 F4 03 04 00 F2 52 92 66 B6 04 01 00 00 1C D7 59 C2 FD 92 9D 98 [16:33:37]CommunicateWithHost err = 0 [16:33:37]CheckOFDResponse [16:33:37]1017 (14) - 77093643461234 [16:33:37]1041 (16) - 0000000000874718 [16:33:37]1040 (4) - 164666 [16:33:37]1012 (4) - 13.07.2024 10:12 [16:33:37]1206 (1) - 0 [16:33:37]OFD Sender: Remove packet 164666 [16:33:37]ProducePacketName [16:33:37]name=ofd_packets/00164666 [16:33:37]NVStorageDeleteData [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:33:59]accept exits with 7 [16:33:59]New connection [16:33:59]New thread 3067293028 created [16:33:59]Thread 3067149668 joined [16:33:59]Waiting for new connection... [16:33:59] Sock 7.Parse request [16:33:59]Sock 7.Check first char [16:33:59]Sock 7.First char is OK [16:33:59]request: POST /json_proto HTTP/1.0 [16:33:59]Method: POST [16:33:59]URL: /json_proto [16:33:59]Method is POST - this is cgi request [16:33:59]url: /json_proto [16:33:59]query_string will be loaded in cgi processing [16:33:59]execute_cgi json_proto POST (null) [16:33:59]execute_cgi path=json_proto method=POST [16:33:59]POST find Content-Length [16:33:59]Host: 172.17.56.4:8080 [16:33:59]Content-Length: 677 [16:33:59]Content-Type: application/json [16:33:59] [16:33:59]POST finish read [16:33:59]Found Content-Length = 677 [16:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:59]execute_script... [16:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:59]POST & json_proto [16:33:59]process_json_proto [16:33:59]json parsed OK: [16:33:59]protocol is kg_v1.0 [16:33:59]action value=close_receipt [16:33:59]process_action close_receipt [16:33:59]cmd_close_receipt [16:33:59]MH_GetDate [16:33:59]Write to MH i2c: F0 00 00 1B 32 3C [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: F0 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: F0 09 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: F0 09 00 1B 32 00 7A AC 92 66 C9 DC B2 64 1E [16:33:59]GetLastDocTimeStamp 1720888281 [16:33:59]current date 1720888442 [16:33:59]FM_GetShiftState [16:33:59]SAM_PROTO_GetShiftState [16:33:59]wFMCommunicate request_size=4 [16:33:59]MH_SAM_APDU [16:33:59]CAPDU: 80 13 01 00 [16:33:59]Write to MH i2c: E2 08 00 1C 32 80 13 01 00 00 00 00 00 CB [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:59]Read from MH i2c: E2 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0E 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: E2 0E 00 1C 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [16:33:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:33:59]wFMCommunicate OK [16:33:59]SAM_PROTO_GetShiftState done [16:33:59]FM_GetShiftState done [16:33:59]opened in 1720831249 [16:33:59]opened+sec_in_day 1720917649 [16:33:59]quantity*price = 40006 [16:33:59]sum+1 = 40007 [16:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 227 13.07.2024 16:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164667 ФПД: 128133933375411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164667&fm=128133933375411&tin=02508201610067®Number=0000000000090829&sum=40000 [16:34:01]StoreToDocumentArchive [16:34:01]shift 446 fd 164667 [16:34:01]save to /storage/0446/doc_00164667 [16:34:01]save last doc name /storage/0446/doc_00164667 to /storage/kkm_last_doc_name [16:34:01]save OK [16:34:01]Clear old archive folders... [16:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:01]tlvbuf is 01517510 [16:34:01]SAM_PROTO_ClearQueue [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 09 00 00 [16:34:01]Write to MH i2c: E2 08 00 29 32 80 09 00 00 00 00 00 00 CD [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 29 32 00 90 00 CF [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_ClearQueue done [16:34:01]KKMCreateOFDPacket [16:34:01]OFDProtocolAddRootSTLVToBuf [16:34:01]FM_MakeSignedData [16:34:01]FM_MakeSignedData [16:34:01]SAM_PROTO_SignData [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 01 02 [16:34:01]Write to MH i2c: E2 08 00 2A 32 80 0D 01 02 00 00 00 00 D5 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 2A 32 00 90 00 D0 [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]wFMCommunicate request_size=255 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A AC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 83 02 00 35 04 06 00 74 [16:34:01]Write to MH i2c: E2 02 01 2B 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A AC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 83 02 00 35 04 06 00 74 00 00 22 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 2B 32 00 90 00 D1 [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]wFMCommunicate request_size=10 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 02 02 05 89 81 95 1F B3 [16:34:01]Write to MH i2c: E2 0D 00 2C 32 80 0D 02 02 05 00 89 81 95 1F B3 00 00 53 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 03 00 2C 32 00 90 00 D2 [16:34:01]RAPDU: 90 00 [16:34:01]wFMCommunicate OK [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 0D 03 02 [16:34:01]Write to MH i2c: E2 08 00 2D 32 80 0D 03 02 00 00 00 00 DA [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0B 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 0B 00 2D 32 00 CD 68 82 4D 62 E4 F9 10 90 00 2E [16:34:01]RAPDU: CD 68 82 4D 62 E4 F9 10 90 00 [16:34:01]wFMCommunicate OK [16:34:01]SAM_PROTO_SignData done [16:34:01]FM_MakeSignedData done [16:34:01]CreateOFDProtocolMessage [16:34:01]wFMCommunicate request_size=4 [16:34:01]MH_SAM_APDU [16:34:01]CAPDU: 80 11 00 00 [16:34:01]Write to MH i2c: E2 08 00 2E 32 80 11 00 00 00 00 00 00 DA [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:01]Read from MH i2c: E2 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 17 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: E2 17 00 2E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [16:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:01]wFMCommunicate OK [16:34:01]CreateOFDProtocolMessage done [16:34:01]OFDSenderStorePacket 164667 [16:34:01]StoreOFDPacket docnum=164667 [16:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 2E 07 01 05 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A AC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 83 02 00 35 04 06 00 74 89 81 95 1F B3 CD 68 82 4D 62 E4 F9 10 [16:34:01]CheckFolder [16:34:01]dirname=/storage/ofd_packets [16:34:01]CheckFolder done [16:34:01]ProducePacketName [16:34:01]name=ofd_packets/00164667 [16:34:01]NVStorageSaveData ofd_packets/00164667 [16:34:01]File name is /storage/ofd_packets/00164667 [16:34:01]Write 301 bytes [16:34:01]NVStorageSaveData done [16:34:01]OFDSenderStorePacket done [16:34:01]KKMCreateOFDPacket done [16:34:01]NVStorageSaveData kkm_last_timestamp [16:34:01]File name is /storage/kkm_last_timestamp [16:34:01]Write 4 bytes [16:34:01]NVStorageSaveData done [16:34:01]ExternCall_PrintAddStr [16:34:01]wPrintStart [16:34:01]Write to MH i2c: 01 00 00 2F 32 61 [16:34:01]Write i2c OK [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: 01 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: 01 07 00 [16:34:01]MH_I2C_Read... [16:34:01]Read from MH i2c: 01 07 00 2F 32 00 00 00 00 00 FF 0F 76 [16:34:01]RasterBufferAndPrint [16:34:01]line Счет N : (1)458760 [16:34:01]line ИНН: 02508201610067 [16:34:01]line Контрольно-Кассовый Чек [16:34:01]line ПРОДАЖА [16:34:01]line ТРК (МРК, ГНК) : 12 [16:34:01]line Товар: 2710124130 [16:34:01]line Аи-92-К-5 [16:34:01]line 6.080 * 65.80 [16:34:01]line = 400.06 [16:34:01]line НДС 12% НСП 1% [16:34:01]line > о реализуемом товаре [16:34:01]line ОКРУГЛЕНИЕ: -0.06 [16:34:01]line ИТОГО: 400.00 [16:34:01]line Внесено: 400.00 [16:34:01]line СДАЧА: 0.00 [16:34:01]line НСП 1% : 3.54 [16:34:01]line НДС 12% : 42.48 [16:34:01]line Наличными: 400.00 [16:34:01]line Безнал.: 0.00 [16:34:01]line Место: АЗС № 72 "Партнер Нефть" [16:34:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:34:01]line СНО: Общий режим [16:34:01]line Чек 227 13.07.2024 16:34 [16:34:01]line Смена: 446 ФФД: 1.0 [16:34:01]line ЗНМ: 0300000160 [16:34:01]line РНМ: 0000000000090829 [16:34:01]line Версия ККМ: 001 [16:34:01]line ФМ: 0000000000874718 [16:34:01]line ФД: 164667 [16:34:01]line ФПД: 128133933375411 [16:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164667&fm=128133933375411&tin=02508201610067®Number=0000000000090829&sum=40000 [16:34:01]written 0, free lines is 4095 [16:34:01]OFD Sender: Processing packet 164667 [packets to send 104, broken 103] [16:34:01]ProducePacketName [16:34:01]name=ofd_packets/00164667 [16:34:01]OFD Sender: To server: pG, [16:34:01]CommunicateWithHost lk.salyk.kg:30040 [16:34:01]ConnectInit lk.salyk.kg [16:34:02]Connected sock=10 [16:34:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 2E 07 01 05 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A AC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 83 02 00 35 04 06 00 74 89 81 95 1F B3 CD 68 82 4D 62 E4 F9 10 [16:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 3B 47 00 71 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 83 02 00 F4 03 04 00 0B 53 92 66 B6 04 01 00 00 8D 27 71 E3 E2 E7 64 6A [16:34:02]CommunicateWithHost err = 0 [16:34:02]CheckOFDResponse [16:34:02]1017 (14) - 77093643461234 [16:34:02]1041 (16) - 0000000000874718 [16:34:02]1040 (4) - 164667 [16:34:02]1012 (4) - 13.07.2024 10:12 [16:34:02]1206 (1) - 0 [16:34:02]OFD Sender: Remove packet 164667 [16:34:02]ProducePacketName [16:34:02]name=ofd_packets/00164667 [16:34:02]NVStorageDeleteData [16:34:02]Write to MH i2c: 01 00 00 59 32 8B [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 F1 0C 8F [16:34:02]RasterBufferAndPrint [16:34:02]line [16:34:02]line [16:34:02]line [16:34:02]line [16:34:02]line [16:34:02]written 0, free lines is 3322 [16:34:02]MH_Cut [16:34:02]Write to MH i2c: D1 01 00 60 32 01 64 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: D1 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: D1 01 00 [16:34:02]MH_I2C_Read... [16:34:02]Read from MH i2c: D1 01 00 60 32 00 63 [16:34:02]Write to MH i2c: 01 00 00 61 32 93 [16:34:02]Write i2c OK [16:34:02]MH_I2C_Read... [16:34:02]OFD Sender: No OFD packet to send [16:34:03]*** Cut start [16:34:03]*** Partial cut [16:34:03]*** CUTSNS_PIN = 1 [16:34:03]*** CUTSNS_PIN = 0 [16:34:03]*** Brake cut motor [16:34:03]Read from MH i2c: 01 [16:34:03]MH_I2C_Read... [16:34:03]*** Stop cut motor [16:34:03]*** Cut end [16:34:03]Read from MH i2c: 01 07 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: 01 07 00 61 32 00 00 00 00 00 FF 0F A8 [16:34:03]process_action close_receipt done [16:34:03]requested_data is exist [16:34:03]produce_requested_data [16:34:03]requested_item fm.sn is exist - process it [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 11 00 00 [16:34:03]Write to MH i2c: E2 08 00 62 32 80 11 00 00 00 00 00 00 0E [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 17 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 17 00 62 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [16:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:03]wFMCommunicate OK [16:34:03]requested_item fd.num is exist - process it [16:34:03]SAM_PROTO_GetFieldsCounters [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 13 00 00 [16:34:03]Write to MH i2c: E2 08 00 63 32 80 13 00 00 00 00 00 00 11 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 62 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 62 00 63 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:03]wFMCommunicate OK [16:34:03]SAM_PROTO_GetFieldsCounters done [16:34:03]requested_item shift.num is exist - process it [16:34:03]requested_item shift.opened is exist - process it [16:34:03]req_shift_opened [16:34:03]FM_GetShiftState [16:34:03]SAM_PROTO_GetShiftState [16:34:03]wFMCommunicate request_size=4 [16:34:03]MH_SAM_APDU [16:34:03]CAPDU: 80 13 01 00 [16:34:03]Write to MH i2c: E2 08 00 64 32 80 13 01 00 00 00 00 00 13 [16:34:03]Write i2c OK [16:34:03]MH_I2C_Read... [16:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:03]Read from MH i2c: E2 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 0E 00 [16:34:03]MH_I2C_Read... [16:34:03]Read from MH i2c: E2 0E 00 64 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F4 [16:34:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:34:03]wFMCommunicate OK [16:34:03]SAM_PROTO_GetShiftState done [16:34:03]FM_GetShiftState done [16:34:03]req_shift_opened done [16:34:03]requested_item shift.open_date is exist - process it [16:34:03]req_shift_open_date [16:34:03]req_shift_open_date done [16:34:03]produce_requested_data done [16:34:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164667,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:34:03]process_action_free close_receipt [16:34:03]json_value_free [16:34:03]json_value_free done [16:34:03]process_json_proto returns [16:34:03]Send response to host [16:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164667,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:34:03]free response buf [16:34:03]execute_script done [16:34:03]execute_script returns [16:34:03]free content buf [16:34:03]Sock 7.Close socket [16:34:03]Sock 7.Thread stoped [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:40]accept exits with 9 [16:41:40]New connection [16:41:40]New thread 3067149668 created [16:41:40]Thread 3067293028 joined [16:41:40]Waiting for new connection... [16:41:40] Sock 9.Parse request [16:41:40]Sock 9.Check first char [16:41:40]Sock 9.First char is OK [16:41:40]request: POST /json_proto HTTP/1.0 [16:41:40]Method: POST [16:41:40]URL: /json_proto [16:41:40]Method is POST - this is cgi request [16:41:40]url: /json_proto [16:41:40]query_string will be loaded in cgi processing [16:41:40]execute_cgi json_proto POST (null) [16:41:40]execute_cgi path=json_proto method=POST [16:41:40]POST find Content-Length [16:41:40]Host: 172.17.56.4:8080 [16:41:40]Content-Length: 790 [16:41:40]Content-Type: application/json [16:41:40] [16:41:40]POST finish read [16:41:40]Found Content-Length = 790 [16:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:40]execute_script... [16:41: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)458761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:40]POST & json_proto [16:41:40]process_json_proto [16:41:40]json parsed OK: [16:41:40]protocol is kg_v1.0 [16:41:40]action value=close_receipt [16:41:40]process_action close_receipt [16:41:40]cmd_close_receipt [16:41:40]MH_GetDate [16:41:40]Write to MH i2c: F0 00 00 65 32 86 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 09 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: F0 09 00 65 32 00 47 AE 92 66 C9 DC B2 64 37 [16:41:40]GetLastDocTimeStamp 1720888442 [16:41:40]current date 1720888903 [16:41:40]FM_GetShiftState [16:41:40]SAM_PROTO_GetShiftState [16:41:40]wFMCommunicate request_size=4 [16:41:40]MH_SAM_APDU [16:41:40]CAPDU: 80 13 01 00 [16:41:40]Write to MH i2c: E2 08 00 66 32 80 13 01 00 00 00 00 00 15 [16:41:40]Write i2c OK [16:41:40]MH_I2C_Read... [16:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:40]Read from MH i2c: E2 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 0E 00 [16:41:40]MH_I2C_Read... [16:41:40]Read from MH i2c: E2 0E 00 66 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [16:41:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:41:40]wFMCommunicate OK [16:41:40]SAM_PROTO_GetShiftState done [16:41:40]FM_GetShiftState done [16:41:40]opened in 1720831249 [16:41:40]opened+sec_in_day 1720917649 [16:41:40]quantity*price = 50023 [16:41:40]sum+1 = 50025 [16:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 228 13.07.2024 16:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164668 ФПД: 212195677336968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164143&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164668&fm=212195677336968&tin=02508201610067®Number=0000000000090829&sum=50024 [16:41:41]StoreToDocumentArchive [16:41:41]shift 446 fd 164668 [16:41:41]save to /storage/0446/doc_00164668 [16:41:41]save last doc name /storage/0446/doc_00164668 to /storage/kkm_last_doc_name [16:41:41]save OK [16:41:41]Clear old archive folders... [16:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:41]tlvbuf is 01427570 [16:41:41]SAM_PROTO_ClearQueue [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 09 00 00 [16:41:41]Write to MH i2c: E2 08 00 73 32 80 09 00 00 00 00 00 00 17 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_ClearQueue done [16:41:41]KKMCreateOFDPacket [16:41:41]OFDProtocolAddRootSTLVToBuf [16:41:41]FM_MakeSignedData [16:41:41]FM_MakeSignedData [16:41:41]SAM_PROTO_SignData [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 0D 01 02 [16:41:41]Write to MH i2c: E2 08 00 74 32 80 0D 01 02 00 00 00 00 1F [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]wFMCommunicate request_size=255 [16:41:41]MH_SAM_APDU [16:41: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 47 AE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 83 02 00 35 04 06 00 C0 [16:41:41]Write to MH i2c: E2 02 01 75 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 47 AE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 83 02 00 35 04 06 00 C0 00 00 F7 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [16:41:41]RAPDU: 90 00 [16:41:41]wFMCommunicate OK [16:41:41]wFMCommunicate request_size=10 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 0D 02 02 05 FD A7 F8 75 88 [16:41:41]Write to MH i2c: E2 0D 00 76 32 80 0D 02 02 05 00 FD A7 F8 75 88 00 00 C5 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 03 00 76 32 00 90 00 1C [16:41:42]RAPDU: 90 00 [16:41:42]wFMCommunicate OK [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 0D 03 02 [16:41:42]Write to MH i2c: E2 08 00 77 32 80 0D 03 02 00 00 00 00 24 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0B 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 0B 00 77 32 00 E0 D3 D1 44 25 72 51 B5 90 00 8A [16:41:42]RAPDU: E0 D3 D1 44 25 72 51 B5 90 00 [16:41:42]wFMCommunicate OK [16:41:42]SAM_PROTO_SignData done [16:41:42]FM_MakeSignedData done [16:41:42]CreateOFDProtocolMessage [16:41:42]wFMCommunicate request_size=4 [16:41:42]MH_SAM_APDU [16:41:42]CAPDU: 80 11 00 00 [16:41:42]Write to MH i2c: E2 08 00 78 32 80 11 00 00 00 00 00 00 24 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:42]Read from MH i2c: E2 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: E2 17 00 78 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [16:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:41:42]wFMCommunicate OK [16:41:42]CreateOFDProtocolMessage done [16:41:42]OFDSenderStorePacket 164668 [16:41:42]StoreOFDPacket docnum=164668 [16:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA C1 07 01 A5 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 47 AE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 83 02 00 35 04 06 00 C0 FD A7 F8 75 88 E0 D3 D1 44 25 72 51 B5 [16:41:42]CheckFolder [16:41:42]dirname=/storage/ofd_packets [16:41:42]CheckFolder done [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00164668 [16:41:42]NVStorageSaveData ofd_packets/00164668 [16:41:42]File name is /storage/ofd_packets/00164668 [16:41:42]Write 301 bytes [16:41:42]NVStorageSaveData done [16:41:42]OFDSenderStorePacket done [16:41:42]KKMCreateOFDPacket done [16:41:42]NVStorageSaveData kkm_last_timestamp [16:41:42]File name is /storage/kkm_last_timestamp [16:41:42]Write 4 bytes [16:41:42]NVStorageSaveData done [16:41:42]ExternCall_PrintAddStr [16:41:42]wPrintStart [16:41:42]Write to MH i2c: 01 00 00 79 32 AB [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 79 32 00 00 00 00 00 FF 0F C0 [16:41:42]RasterBufferAndPrint [16:41:42]line Счет N : (1)458761 [16:41:42]line ИНН: 02508201610067 [16:41:42]line Контрольно-Кассовый Чек [16:41:42]line ПРОДАЖА [16:41:42]line ТРК (МРК, ГНК) : 12 [16:41:42]line Товар: 2710124130 [16:41:42]line Аи-92-К-5 [16:41:42]line 7.670 * 65.22 [16:41:42]line = 500.24 [16:41:42]line НДС 12% НСП 1% [16:41:42]line > о реализуемом товаре [16:41:42]line ИТОГО: 500.24 [16:41:42]line НСП 1% : 4.43 [16:41:42]line НДС 12% : 53.12 [16:41:42]line Наличными: 0.00 [16:41:42]line Безнал.: 500.24 [16:41:42]line Место: АЗС № 72 "Партнер Нефть" [16:41:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:41:42]line СНО: Общий режим [16:41:42]line Чек 228 13.07.2024 16:41 [16:41:42]line Смена: 446 ФФД: 1.0 [16:41:42]line ЗНМ: 0300000160 [16:41:42]line РНМ: 0000000000090829 [16:41:42]line Версия ККМ: 001 [16:41:42]line Платежная система: KICB Банк [16:41:42]line ФМ: 0000000000874718 [16:41:42]line ФД: 164668 [16:41:42]line ФПД: 212195677336968 [16:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164143&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164668&fm=212195677336968&tin=02508201610067®Number=0000000000090829&sum=50024 [16:41:42]written 0, free lines is 4095 [16:41:42]OFD Sender: Processing packet 164668 [packets to send 104, broken 103] [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00164668 [16:41:42]OFD Sender: To server: pG, [16:41:42]CommunicateWithHost lk.salyk.kg:30040 [16:41:42]ConnectInit lk.salyk.kg [16:41:42]Connected sock=10 [16:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA C1 07 01 A5 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 47 AE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 83 02 00 35 04 06 00 C0 FD A7 F8 75 88 E0 D3 D1 44 25 72 51 B5 [16:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 C3 47 00 06 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 34 37 31 38 10 04 04 00 3C 83 02 00 F4 03 04 00 D7 54 92 66 B6 04 01 00 00 0C 35 AF 67 84 C3 89 9D [16:41:42]CommunicateWithHost err = 0 [16:41:42]CheckOFDResponse [16:41:42]1017 (14) - 77093643461234 [16:41:42]1041 (16) - 0000000000874718 [16:41:42]1040 (4) - 164668 [16:41:42]1012 (4) - 13.07.2024 10:20 [16:41:42]1206 (1) - 0 [16:41:42]OFD Sender: Remove packet 164668 [16:41:42]ProducePacketName [16:41:42]name=ofd_packets/00164668 [16:41:42]NVStorageDeleteData [16:41:42]Write to MH i2c: 01 00 00 A2 32 D4 [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: 01 07 00 A2 32 00 00 00 00 00 10 0D F8 [16:41:42]RasterBufferAndPrint [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]line [16:41:42]written 0, free lines is 3350 [16:41:42]MH_Cut [16:41:42]Write to MH i2c: D1 01 00 A9 32 01 AD [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 01 00 [16:41:42]MH_I2C_Read... [16:41:42]Read from MH i2c: D1 01 00 A9 32 00 AC [16:41:42]Write to MH i2c: 01 00 00 AA 32 DC [16:41:42]Write i2c OK [16:41:42]MH_I2C_Read... [16:41:42]OFD Sender: No OFD packet to send [16:41:43]*** Cut start [16:41:43]*** Partial cut [16:41:43]*** CUTSNS_PIN = 1 [16:41:43]*** CUTSNS_PIN = 0 [16:41:43]*** Brake cut motor [16:41:43]Read from MH i2c: 01 [16:41:43]MH_I2C_Read... [16:41:43]*** Stop cut motor [16:41:43]*** Cut end [16:41:43]Read from MH i2c: 01 07 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: 01 07 00 AA 32 00 00 00 00 00 FF 0F F1 [16:41:43]process_action close_receipt done [16:41:43]requested_data is exist [16:41:43]produce_requested_data [16:41:43]requested_item fm.sn is exist - process it [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 11 00 00 [16:41:43]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 [16:41:43]MH_I2C_Read... [16:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:43]Read from MH i2c: E2 17 00 [16:41:43]MH_I2C_Read... [16:41:43]Read from MH i2c: E2 17 00 AB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [16:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:41:43]wFMCommunicate OK [16:41:43]requested_item fd.num is exist - process it [16:41:43]SAM_PROTO_GetFieldsCounters [16:41:43]wFMCommunicate request_size=4 [16:41:43]MH_SAM_APDU [16:41:43]CAPDU: 80 13 00 00 [16:41:43]Write to MH i2c: E2 08 00 AC 32 80 13 00 00 00 00 00 00 5A [16:41:43]Write i2c OK [16:41:43]MH_I2C_Read... [16:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:44]Read from MH i2c: E2 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 62 00 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 62 00 AC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [16:41: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:44]wFMCommunicate OK [16:41:44]SAM_PROTO_GetFieldsCounters done [16:41:44]requested_item shift.num is exist - process it [16:41:44]requested_item shift.opened is exist - process it [16:41:44]req_shift_opened [16:41:44]FM_GetShiftState [16:41:44]SAM_PROTO_GetShiftState [16:41:44]wFMCommunicate request_size=4 [16:41:44]MH_SAM_APDU [16:41:44]CAPDU: 80 13 01 00 [16:41:44]Write to MH i2c: E2 08 00 AD 32 80 13 01 00 00 00 00 00 5C [16:41:44]Write i2c OK [16:41:44]MH_I2C_Read... [16:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:44]Read from MH i2c: E2 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 0E 00 [16:41:44]MH_I2C_Read... [16:41:44]Read from MH i2c: E2 0E 00 AD 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3D [16:41:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:41:44]wFMCommunicate OK [16:41:44]SAM_PROTO_GetShiftState done [16:41:44]FM_GetShiftState done [16:41:44]req_shift_opened done [16:41:44]requested_item shift.open_date is exist - process it [16:41:44]req_shift_open_date [16:41:44]req_shift_open_date done [16:41:44]produce_requested_data done [16:41:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164668,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:41:44]process_action_free close_receipt [16:41:44]json_value_free [16:41:44]json_value_free done [16:41:44]process_json_proto returns [16:41:44]Send response to host [16:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164668,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:41:44]free response buf [16:41:44]execute_script done [16:41:44]execute_script returns [16:41:44]free content buf [16:41:44]Sock 9.Close socket [16:41:44]Sock 9.Thread stoped [16:41:47]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:56]accept exits with 7 [16:46:56]New connection [16:46:56]New thread 3067293028 created [16:46:56]Thread 3067149668 joined [16:46:56]Waiting for new connection... [16:46:56] Sock 7.Parse request [16:46:56]Sock 7.Check first char [16:46:56]Sock 7.First char is OK [16:46:56]request: POST /json_proto HTTP/1.0 [16:46:56]Method: POST [16:46:56]URL: /json_proto [16:46:56]Method is POST - this is cgi request [16:46:56]url: /json_proto [16:46:56]query_string will be loaded in cgi processing [16:46:56]execute_cgi json_proto POST (null) [16:46:56]execute_cgi path=json_proto method=POST [16:46:56]POST find Content-Length [16:46:56]Host: 172.17.56.4:8080 [16:46:56]Content-Length: 674 [16:46:56]Content-Type: application/json [16:46:56] [16:46:56]POST finish read [16:46:56]Found Content-Length = 674 [16:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.650, "sum" : 550.04, "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" ] } } [16:46:56]execute_script... [16:46: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)458763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.650, "sum" : 550.04, "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" ] } } [16:46:56]POST & json_proto [16:46:56]process_json_proto [16:46:56]json parsed OK: [16:46:56]protocol is kg_v1.0 [16:46:56]action value=close_receipt [16:46:56]process_action close_receipt [16:46:56]cmd_close_receipt [16:46:56]MH_GetDate [16:46:56]Write to MH i2c: F0 00 00 AE 32 CF [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 AE 32 00 83 AF 92 66 C9 DC B2 64 BD [16:46:56]GetLastDocTimeStamp 1720888903 [16:46:56]current date 1720889219 [16:46:56]FM_GetShiftState [16:46:56]SAM_PROTO_GetShiftState [16:46:56]wFMCommunicate request_size=4 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 13 01 00 [16:46:56]Write to MH i2c: E2 08 00 AF 32 80 13 01 00 00 00 00 00 5E [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 AF 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3F [16:46:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:46:56]wFMCommunicate OK [16:46:56]SAM_PROTO_GetShiftState done [16:46:56]FM_GetShiftState done [16:46:56]opened in 1720831249 [16:46:56]opened+sec_in_day 1720917649 [16:46:56]quantity*price = 55003 [16:46:56]sum+1 = 55005 [16:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 229 13.07.2024 16:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164669 ФПД: 58850125661245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164659&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164669&fm=58850125661245&tin=02508201610067®Number=0000000000090829&sum=55000 [16:46:57]StoreToDocumentArchive [16:46:57]shift 446 fd 164669 [16:46:57]save to /storage/0446/doc_00164669 [16:46:57]save last doc name /storage/0446/doc_00164669 to /storage/kkm_last_doc_name [16:46:57]save OK [16:46:57]Clear old archive folders... [16:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:57]tlvbuf is 014122F0 [16:46:57]SAM_PROTO_ClearQueue [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 09 00 00 [16:46:57]Write to MH i2c: E2 08 00 BC 32 80 09 00 00 00 00 00 00 60 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:57]Read from MH i2c: E2 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [16:46:57]RAPDU: 90 00 [16:46:57]wFMCommunicate OK [16:46:57]SAM_PROTO_ClearQueue done [16:46:57]KKMCreateOFDPacket [16:46:57]OFDProtocolAddRootSTLVToBuf [16:46:57]FM_MakeSignedData [16:46:57]FM_MakeSignedData [16:46:57]SAM_PROTO_SignData [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 0D 01 02 [16:46:57]Write to MH i2c: E2 08 00 BD 32 80 0D 01 02 00 00 00 00 68 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:57]Read from MH i2c: E2 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 03 00 BD 32 00 90 00 63 [16:46:57]RAPDU: 90 00 [16:46:57]wFMCommunicate OK [16:46:57]wFMCommunicate request_size=255 [16:46:57]MH_SAM_APDU [16:46: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 E2 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC D6 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 D1 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 E5 00 00 00 F4 03 04 00 83 AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 83 02 00 35 04 06 00 35 86 1C D5 [16:46:57]Write to MH i2c: E2 02 01 BE 32 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 E2 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC D6 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 D1 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 E5 00 00 00 F4 03 04 00 83 AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 83 02 00 35 04 06 00 35 86 1C D5 00 00 15 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=7 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 02 02 02 C4 3D [16:46:58]Write to MH i2c: E2 0A 00 BF 32 80 0D 02 02 02 00 C4 3D 00 00 70 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 BF 32 00 90 00 65 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 03 02 [16:46:58]Write to MH i2c: E2 08 00 C0 32 80 0D 03 02 00 00 00 00 6D [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 C0 32 00 EF 81 2D B6 FE 44 28 64 90 00 8F [16:46:58]RAPDU: EF 81 2D B6 FE 44 28 64 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_SignData done [16:46:58]FM_MakeSignedData done [16:46:58]CreateOFDProtocolMessage [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 11 00 00 [16:46:58]Write to MH i2c: E2 08 00 C1 32 80 11 00 00 00 00 00 00 6D [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]OFD Sender: No OFD packet to send [16:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 C1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [16:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:58]wFMCommunicate OK [16:46:58]CreateOFDProtocolMessage done [16:46:58]OFDSenderStorePacket 164669 [16:46:58]StoreOFDPacket docnum=164669 [16:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 96 8E 04 01 D8 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC D6 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 D1 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 E5 00 00 00 F4 03 04 00 83 AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 83 02 00 35 04 06 00 35 86 1C D5 C4 3D EF 81 2D B6 FE 44 28 64 [16:46:58]CheckFolder [16:46:58]dirname=/storage/ofd_packets [16:46:58]CheckFolder done [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00164669 [16:46:58]NVStorageSaveData ofd_packets/00164669 [16:46:58]File name is /storage/ofd_packets/00164669 [16:46:58]Write 298 bytes [16:46:58]NVStorageSaveData done [16:46:58]OFDSenderStorePacket done [16:46:58]KKMCreateOFDPacket done [16:46:58]NVStorageSaveData kkm_last_timestamp [16:46:58]File name is /storage/kkm_last_timestamp [16:46:58]Write 4 bytes [16:46:58]NVStorageSaveData done [16:46:58]ExternCall_PrintAddStr [16:46:58]wPrintStart [16:46:58]Write to MH i2c: 01 00 00 C2 32 F4 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 FF 0F 09 [16:46:58]RasterBufferAndPrint [16:46:58]line Счет N : (1)458763 [16:46:58]line ИНН: 02508201610067 [16:46:58]line Контрольно-Кассовый Чек [16:46:58]line ПРОДАЖА [16:46:58]line ТРК (МРК, ГНК) : 11 [16:46:58]line Товар: 2710194210 [16:46:58]line ДТ-К-5 [16:46:58]line 7.650 * 71.90 [16:46:58]line = 550.04 [16:46:58]line НДС 12% НСП 1% [16:46:58]line > о реализуемом товаре [16:46:58]line ОКРУГЛЕНИЕ: -0.04 [16:46:58]line ИТОГО: 550.00 [16:46:58]line Внесено: 550.00 [16:46:58]line СДАЧА: 0.00 [16:46:58]line НСП 1% : 4.87 [16:46:58]line НДС 12% : 58.41 [16:46:58]line Наличными: 550.00 [16:46:58]line Безнал.: 0.00 [16:46:58]line Место: АЗС № 72 "Партнер Нефть" [16:46:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:58]line СНО: Общий режим [16:46:58]line Чек 229 13.07.2024 16:46 [16:46:58]line Смена: 446 ФФД: 1.0 [16:46:58]line ЗНМ: 0300000160 [16:46:58]line РНМ: 0000000000090829 [16:46:58]line Версия ККМ: 001 [16:46:58]line ФМ: 0000000000874718 [16:46:58]line ФД: 164669 [16:46:58]line ФПД: 58850125661245 [16:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164659&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164669&fm=58850125661245&tin=02508201610067®Number=0000000000090829&sum=55000 [16:46:58]OFD Sender: Processing packet 164669 [packets to send 104, broken 103] [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00164669 [16:46:58]OFD Sender: To server: pG, [16:46:58]CommunicateWithHost lk.salyk.kg:30040 [16:46:58]ConnectInit lk.salyk.kg [16:46:58]written 0, free lines is 4095 [16:46:58]Connected sock=10 [16:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 96 8E 04 01 D8 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC D6 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 D1 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 E5 00 00 00 F4 03 04 00 83 AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 83 02 00 35 04 06 00 35 86 1C D5 C4 3D EF 81 2D B6 FE 44 28 64 [16:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 D3 47 00 74 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 83 02 00 F4 03 04 00 13 56 92 66 B6 04 01 00 00 41 14 95 0B 2C 2D 13 CC [16:46:59]CommunicateWithHost err = 0 [16:46:59]CheckOFDResponse [16:46:59]1017 (14) - 77093643461234 [16:46:59]1041 (16) - 0000000000874718 [16:46:59]1040 (4) - 164669 [16:46:59]1012 (4) - 13.07.2024 10:25 [16:46:59]1206 (1) - 0 [16:46:59]OFD Sender: Remove packet 164669 [16:46:59]ProducePacketName [16:46:59]name=ofd_packets/00164669 [16:46:59]NVStorageDeleteData [16:46:59]Write to MH i2c: 01 00 00 EC 32 1E [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 EC 32 00 00 00 00 00 F3 0C 24 [16:46:59]RasterBufferAndPrint [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]written 0, free lines is 3323 [16:46:59]MH_Cut [16:46:59]Write to MH i2c: D1 01 00 F3 32 01 F7 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 F3 32 00 F6 [16:46:59]Write to MH i2c: 01 00 00 F4 32 26 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]OFD Sender: No OFD packet to send [16:46:59]*** Cut start [16:46:59]*** Partial cut [16:46:59]*** CUTSNS_PIN = 1 [16:46:59]*** CUTSNS_PIN = 0 [16:47:00]*** Brake cut motor [16:47:00]Read from MH i2c: 01 [16:47:00]MH_I2C_Read... [16:47:00]*** Stop cut motor [16:47:00]*** Cut end [16:47:00]Read from MH i2c: 01 07 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 F4 32 00 00 00 00 00 FF 0F 3B [16:47:00]process_action close_receipt done [16:47:00]requested_data is exist [16:47:00]produce_requested_data [16:47:00]requested_item fm.sn is exist - process it [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 11 00 00 [16:47:00]Write to MH i2c: E2 08 00 F5 32 80 11 00 00 00 00 00 00 A1 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 F5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [16:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:00]wFMCommunicate OK [16:47:00]requested_item fd.num is exist - process it [16:47:00]SAM_PROTO_GetFieldsCounters [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 00 00 [16:47:00]Write to MH i2c: E2 08 00 F6 32 80 13 00 00 00 00 00 00 A4 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 F6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetFieldsCounters done [16:47:00]requested_item shift.num is exist - process it [16:47:00]requested_item shift.opened is exist - process it [16:47:00]req_shift_opened [16:47:00]FM_GetShiftState [16:47:00]SAM_PROTO_GetShiftState [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 01 00 [16:47:00]Write to MH i2c: E2 08 00 F7 32 80 13 01 00 00 00 00 00 A6 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 F7 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 87 [16:47:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetShiftState done [16:47:00]FM_GetShiftState done [16:47:00]req_shift_opened done [16:47:00]requested_item shift.open_date is exist - process it [16:47:00]req_shift_open_date [16:47:00]req_shift_open_date done [16:47:00]produce_requested_data done [16:47:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164669,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:47:00]process_action_free close_receipt [16:47:00]json_value_free [16:47:00]json_value_free done [16:47:00]process_json_proto returns [16:47:00]Send response to host [16:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164669,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:47:00]free response buf [16:47:00]execute_script done [16:47:00]execute_script returns [16:47:00]free content buf [16:47:00]Sock 7.Close socket [16:47:00]Sock 7.Thread stoped [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:51]accept exits with 9 [16:47:51]New connection [16:47:51]New thread 3067149668 created [16:47:51]Thread 3067293028 joined [16:47:51]Waiting for new connection... [16:47:51] Sock 9.Parse request [16:47:51]Sock 9.Check first char [16:47:51]Sock 9.First char is OK [16:47:51]request: POST /json_proto HTTP/1.0 [16:47:51]Method: POST [16:47:51]URL: /json_proto [16:47:51]Method is POST - this is cgi request [16:47:51]url: /json_proto [16:47:51]query_string will be loaded in cgi processing [16:47:51]execute_cgi json_proto POST (null) [16:47:51]execute_cgi path=json_proto method=POST [16:47:51]POST find Content-Length [16:47:51]Host: 172.17.56.4:8080 [16:47:51]Content-Length: 677 [16:47:51]Content-Type: application/json [16:47:51] [16:47:51]POST finish read [16:47:51]Found Content-Length = 677 [16:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:51]execute_script... [16:47: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)458764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:51]POST & json_proto [16:47:51]process_json_proto [16:47:51]json parsed OK: [16:47:51]protocol is kg_v1.0 [16:47:51]action value=close_receipt [16:47:51]process_action close_receipt [16:47:51]cmd_close_receipt [16:47:51]MH_GetDate [16:47:51]Write to MH i2c: F0 00 00 F8 32 19 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: F0 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: F0 09 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: F0 09 00 F8 32 00 BA AF 92 66 C9 DC B2 64 3E [16:47:51]GetLastDocTimeStamp 1720889219 [16:47:51]current date 1720889274 [16:47:51]FM_GetShiftState [16:47:51]SAM_PROTO_GetShiftState [16:47:51]wFMCommunicate request_size=4 [16:47:51]MH_SAM_APDU [16:47:51]CAPDU: 80 13 01 00 [16:47:51]Write to MH i2c: E2 08 00 F9 32 80 13 01 00 00 00 00 00 A8 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:51]Read from MH i2c: E2 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 0E 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: E2 0E 00 F9 32 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 89 [16:47:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:47:51]wFMCommunicate OK [16:47:51]SAM_PROTO_GetShiftState done [16:47:51]FM_GetShiftState done [16:47:51]opened in 1720831249 [16:47:51]opened+sec_in_day 1720917649 [16:47:51]quantity*price = 50008 [16:47:51]sum+1 = 50009 [16:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 230 13.07.2024 16:47 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164670 ФПД: 216692277032950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164754&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164670&fm=216692277032950&tin=02508201610067®Number=0000000000090829&sum=50000 [16:47:52]StoreToDocumentArchive [16:47:52]shift 446 fd 164670 [16:47:52]save to /storage/0446/doc_00164670 [16:47:52]save last doc name /storage/0446/doc_00164670 to /storage/kkm_last_doc_name [16:47:52]save OK [16:47:52]Clear old archive folders... [16:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:52]tlvbuf is 01517540 [16:47:52]SAM_PROTO_ClearQueue [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 09 00 00 [16:47:52]Write to MH i2c: E2 08 00 06 33 80 09 00 00 00 00 00 00 AB [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 06 33 00 90 00 AD [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]SAM_PROTO_ClearQueue done [16:47:52]KKMCreateOFDPacket [16:47:52]OFDProtocolAddRootSTLVToBuf [16:47:52]FM_MakeSignedData [16:47:52]FM_MakeSignedData [16:47:52]SAM_PROTO_SignData [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 0D 01 02 [16:47:52]Write to MH i2c: E2 08 00 07 33 80 0D 01 02 00 00 00 00 B3 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 03 00 07 33 00 90 00 AE [16:47:52]RAPDU: 90 00 [16:47:52]wFMCommunicate OK [16:47:52]wFMCommunicate request_size=255 [16:47:52]MH_SAM_APDU [16:47: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E6 00 00 00 F4 03 04 00 BA AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 83 02 00 35 04 06 00 C5 [16:47:52]Write to MH i2c: E2 02 01 08 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E6 00 00 00 F4 03 04 00 BA AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 83 02 00 35 04 06 00 C5 00 00 BA [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 08 33 00 90 00 AF [16:47:53]RAPDU: 90 00 [16:47:53]wFMCommunicate OK [16:47:53]wFMCommunicate request_size=10 [16:47:53]MH_SAM_APDU [16:47:53]CAPDU: 80 0D 02 02 05 14 9A 32 B7 F6 [16:47:53]Write to MH i2c: E2 0D 00 09 33 80 0D 02 02 05 00 14 9A 32 B7 F6 00 00 4D [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 03 00 09 33 00 90 00 B0 [16:47:53]RAPDU: 90 00 [16:47:53]wFMCommunicate OK [16:47:53]wFMCommunicate request_size=4 [16:47:53]MH_SAM_APDU [16:47:53]CAPDU: 80 0D 03 02 [16:47:53]Write to MH i2c: E2 08 00 0A 33 80 0D 03 02 00 00 00 00 B8 [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 0B 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 0B 00 0A 33 00 B0 14 F0 0B 45 54 16 C3 90 00 EA [16:47:53]RAPDU: B0 14 F0 0B 45 54 16 C3 90 00 [16:47:53]wFMCommunicate OK [16:47:53]SAM_PROTO_SignData done [16:47:53]FM_MakeSignedData done [16:47:53]CreateOFDProtocolMessage [16:47:53]wFMCommunicate request_size=4 [16:47:53]MH_SAM_APDU [16:47:53]CAPDU: 80 11 00 00 [16:47:53]Write to MH i2c: E2 08 00 0B 33 80 11 00 00 00 00 00 00 B8 [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:53]Read from MH i2c: E2 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 17 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: E2 17 00 0B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [16:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:53]wFMCommunicate OK [16:47:53]CreateOFDProtocolMessage done [16:47:53]OFDSenderStorePacket 164670 [16:47:53]StoreOFDPacket docnum=164670 [16:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B B4 07 01 57 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E6 00 00 00 F4 03 04 00 BA AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 83 02 00 35 04 06 00 C5 14 9A 32 B7 F6 B0 14 F0 0B 45 54 16 C3 [16:47:53]CheckFolder [16:47:53]dirname=/storage/ofd_packets [16:47:53]CheckFolder done [16:47:53]ProducePacketName [16:47:53]name=ofd_packets/00164670 [16:47:53]NVStorageSaveData ofd_packets/00164670 [16:47:53]File name is /storage/ofd_packets/00164670 [16:47:53]Write 301 bytes [16:47:53]NVStorageSaveData done [16:47:53]OFDSenderStorePacket done [16:47:53]KKMCreateOFDPacket done [16:47:53]NVStorageSaveData kkm_last_timestamp [16:47:53]File name is /storage/kkm_last_timestamp [16:47:53]Write 4 bytes [16:47:53]NVStorageSaveData done [16:47:53]ExternCall_PrintAddStr [16:47:53]wPrintStart [16:47:53]Write to MH i2c: 01 00 00 0C 33 3F [16:47:53]Write i2c OK [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: 01 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: 01 07 00 [16:47:53]MH_I2C_Read... [16:47:53]Read from MH i2c: 01 07 00 0C 33 00 00 00 00 00 FF 0F 54 [16:47:53]RasterBufferAndPrint [16:47:53]line Счет N : (1)458764 [16:47:53]line ИНН: 02508201610067 [16:47:53]line Контрольно-Кассовый Чек [16:47:53]line ПРОДАЖА [16:47:53]line ТРК (МРК, ГНК) : 12 [16:47:53]line Товар: 2710124130 [16:47:53]line Аи-92-К-5 [16:47:53]line 7.600 * 65.80 [16:47:53]line = 500.08 [16:47:53]line НДС 12% НСП 1% [16:47:53]line > о реализуемом товаре [16:47:53]line ОКРУГЛЕНИЕ: -0.08 [16:47:53]line ИТОГО: 500.00 [16:47:53]line Внесено: 500.00 [16:47:53]line СДАЧА: 0.00 [16:47:53]line НСП 1% : 4.42 [16:47:53]line НДС 12% : 53.11 [16:47:53]line Наличными: 500.00 [16:47:53]line Безнал.: 0.00 [16:47:53]line Место: АЗС № 72 "Партнер Нефть" [16:47:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:47:53]line СНО: Общий режим [16:47:53]line Чек 230 13.07.2024 16:47 [16:47:53]line Смена: 446 ФФД: 1.0 [16:47:53]line ЗНМ: 0300000160 [16:47:53]line РНМ: 0000000000090829 [16:47:53]line Версия ККМ: 001 [16:47:53]line ФМ: 0000000000874718 [16:47:53]line ФД: 164670 [16:47:53]line ФПД: 216692277032950 [16:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T164754&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164670&fm=216692277032950&tin=02508201610067®Number=0000000000090829&sum=50000 [16:47:53]written 0, free lines is 4095 [16:47:53]OFD Sender: Processing packet 164670 [packets to send 104, broken 103] [16:47:53]ProducePacketName [16:47:53]name=ofd_packets/00164670 [16:47:53]OFD Sender: To server: pG, [16:47:53]CommunicateWithHost lk.salyk.kg:30040 [16:47:53]ConnectInit lk.salyk.kg [16:47:53]Connected sock=10 [16:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B B4 07 01 57 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 E6 00 00 00 F4 03 04 00 BA AF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 83 02 00 35 04 06 00 C5 14 9A 32 B7 F6 B0 14 F0 0B 45 54 16 C3 [16:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 28 47 00 32 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 34 37 31 38 10 04 04 00 3E 83 02 00 F4 03 04 00 4B 56 92 66 B6 04 01 00 00 D4 00 FC 98 20 1C 83 70 [16:47:54]CommunicateWithHost err = 0 [16:47:54]CheckOFDResponse [16:47:54]1017 (14) - 77093643461234 [16:47:54]1041 (16) - 0000000000874718 [16:47:54]1040 (4) - 164670 [16:47:54]1012 (4) - 13.07.2024 10:26 [16:47:54]1206 (1) - 0 [16:47:54]OFD Sender: Remove packet 164670 [16:47:54]ProducePacketName [16:47:54]name=ofd_packets/00164670 [16:47:54]NVStorageDeleteData [16:47:54]Write to MH i2c: 01 00 00 36 33 69 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 07 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: 01 07 00 36 33 00 00 00 00 00 F4 0C 70 [16:47:54]RasterBufferAndPrint [16:47:54]line [16:47:54]line [16:47:54]line [16:47:54]line [16:47:54]line [16:47:54]written 0, free lines is 3323 [16:47:54]MH_Cut [16:47:54]Write to MH i2c: D1 01 00 3D 33 01 42 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: D1 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: D1 01 00 [16:47:54]MH_I2C_Read... [16:47:54]Read from MH i2c: D1 01 00 3D 33 00 41 [16:47:54]Write to MH i2c: 01 00 00 3E 33 71 [16:47:54]Write i2c OK [16:47:54]MH_I2C_Read... [16:47:54]OFD Sender: No OFD packet to send [16:47:54]*** Cut start [16:47:54]*** Partial cut [16:47:54]*** CUTSNS_PIN = 1 [16:47:54]*** CUTSNS_PIN = 0 [16:47:55]*** Brake cut motor [16:47:55]Read from MH i2c: 01 [16:47:55]MH_I2C_Read... [16:47:55]*** Stop cut motor [16:47:55]*** Cut end [16:47:55]Read from MH i2c: 01 07 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: 01 07 00 3E 33 00 00 00 00 00 FF 0F 86 [16:47:55]process_action close_receipt done [16:47:55]requested_data is exist [16:47:55]produce_requested_data [16:47:55]requested_item fm.sn is exist - process it [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 11 00 00 [16:47:55]Write to MH i2c: E2 08 00 3F 33 80 11 00 00 00 00 00 00 EC [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 17 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 17 00 3F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [16:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:55]wFMCommunicate OK [16:47:55]requested_item fd.num is exist - process it [16:47:55]SAM_PROTO_GetFieldsCounters [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 13 00 00 [16:47:55]Write to MH i2c: E2 08 00 40 33 80 13 00 00 00 00 00 00 EF [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 62 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 62 00 40 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [16:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:55]wFMCommunicate OK [16:47:55]SAM_PROTO_GetFieldsCounters done [16:47:55]requested_item shift.num is exist - process it [16:47:55]requested_item shift.opened is exist - process it [16:47:55]req_shift_opened [16:47:55]FM_GetShiftState [16:47:55]SAM_PROTO_GetShiftState [16:47:55]wFMCommunicate request_size=4 [16:47:55]MH_SAM_APDU [16:47:55]CAPDU: 80 13 01 00 [16:47:55]Write to MH i2c: E2 08 00 41 33 80 13 01 00 00 00 00 00 F1 [16:47:55]Write i2c OK [16:47:55]MH_I2C_Read... [16:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:55]Read from MH i2c: E2 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 0E 00 [16:47:55]MH_I2C_Read... [16:47:55]Read from MH i2c: E2 0E 00 41 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D2 [16:47:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:47:55]wFMCommunicate OK [16:47:55]SAM_PROTO_GetShiftState done [16:47:55]FM_GetShiftState done [16:47:55]req_shift_opened done [16:47:55]requested_item shift.open_date is exist - process it [16:47:55]req_shift_open_date [16:47:55]req_shift_open_date done [16:47:55]produce_requested_data done [16:47:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164670,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:47:55]process_action_free close_receipt [16:47:55]json_value_free [16:47:55]json_value_free done [16:47:55]process_json_proto returns [16:47:55]Send response to host [16:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164670,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:47:55]free response buf [16:47:55]execute_script done [16:47:55]execute_script returns [16:47:55]free content buf [16:47:55]Sock 9.Close socket [16:47:55]Sock 9.Thread stoped [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:26]accept exits with 7 [16:50:26]New connection [16:50:26]New thread 3067293028 created [16:50:26]Thread 3067149668 joined [16:50:26]Waiting for new connection... [16:50:26] Sock 7.Parse request [16:50:26]Sock 7.Check first char [16:50:26]Sock 7.First char is OK [16:50:26]request: POST /json_proto HTTP/1.0 [16:50:26]Method: POST [16:50:26]URL: /json_proto [16:50:26]Method is POST - this is cgi request [16:50:26]url: /json_proto [16:50:26]query_string will be loaded in cgi processing [16:50:26]execute_cgi json_proto POST (null) [16:50:26]execute_cgi path=json_proto method=POST [16:50:26]POST find Content-Length [16:50:26]Host: 172.17.56.4:8080 [16:50:26]Content-Length: 679 [16:50:26]Content-Type: application/json [16:50:26] [16:50:26]POST finish read [16:50:26]Found Content-Length = 679 [16:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "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" ] } } [16:50:26]execute_script... [16:50:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "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" ] } } [16:50:26]POST & json_proto [16:50:26]process_json_proto [16:50:26]json parsed OK: [16:50:26]protocol is kg_v1.0 [16:50:26]action value=close_receipt [16:50:26]process_action close_receipt [16:50:26]cmd_close_receipt [16:50:26]MH_GetDate [16:50:26]Write to MH i2c: F0 00 00 42 33 64 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 09 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 09 00 42 33 00 55 B0 92 66 C9 DC B2 64 25 [16:50:26]GetLastDocTimeStamp 1720889274 [16:50:26]current date 1720889429 [16:50:26]FM_GetShiftState [16:50:26]SAM_PROTO_GetShiftState [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 13 01 00 [16:50:26]Write to MH i2c: E2 08 00 43 33 80 13 01 00 00 00 00 00 F3 [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 43 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D4 [16:50:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:50:26]wFMCommunicate OK [16:50:26]SAM_PROTO_GetShiftState done [16:50:26]FM_GetShiftState done [16:50:26]opened in 1720831249 [16:50:26]opened+sec_in_day 1720917649 [16:50:26]quantity*price = 250068 [16:50:26]sum+1 = 250069 [16:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 231 13.07.2024 16:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164671 ФПД: 236934337517726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164671&fm=236934337517726&tin=02508201610067®Number=0000000000090829&sum=250000 [16:50:28]StoreToDocumentArchive [16:50:28]shift 446 fd 164671 [16:50:28]save to /storage/0446/doc_00164671 [16:50:28]save last doc name /storage/0446/doc_00164671 to /storage/kkm_last_doc_name [16:50:28]save OK [16:50:28]Clear old archive folders... [16:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:50:28]tlvbuf is 01516C80 [16:50:28]SAM_PROTO_ClearQueue [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 09 00 00 [16:50:28]Write to MH i2c: E2 08 00 50 33 80 09 00 00 00 00 00 00 F5 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 50 33 00 90 00 F7 [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_ClearQueue done [16:50:28]KKMCreateOFDPacket [16:50:28]OFDProtocolAddRootSTLVToBuf [16:50:28]FM_MakeSignedData [16:50:28]FM_MakeSignedData [16:50:28]SAM_PROTO_SignData [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 01 02 [16:50:28]Write to MH i2c: E2 08 00 51 33 80 0D 01 02 00 00 00 00 FD [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 51 33 00 90 00 F8 [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]wFMCommunicate request_size=255 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 BC 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 E7 00 00 00 F4 03 04 00 55 B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 83 02 00 35 04 06 00 D7 7D 93 05 [16:50:28]Write to MH i2c: E2 02 01 52 33 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 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 BC 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 E7 00 00 00 F4 03 04 00 55 B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 83 02 00 35 04 06 00 D7 7D 93 05 00 00 85 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 52 33 00 90 00 F9 [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]wFMCommunicate request_size=7 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 02 02 02 D8 9E [16:50:28]Write to MH i2c: E2 0A 00 53 33 80 0D 02 02 02 00 D8 9E 00 00 7A [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 53 33 00 90 00 FA [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 03 02 [16:50:28]Write to MH i2c: E2 08 00 54 33 80 0D 03 02 00 00 00 00 02 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0B 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0B 00 54 33 00 9E FC 76 72 9C 58 28 11 90 00 B2 [16:50:28]RAPDU: 9E FC 76 72 9C 58 28 11 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_SignData done [16:50:28]FM_MakeSignedData done [16:50:28]CreateOFDProtocolMessage [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 11 00 00 [16:50:28]Write to MH i2c: E2 08 00 55 33 80 11 00 00 00 00 00 00 02 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 55 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [16:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:50:28]wFMCommunicate OK [16:50:28]CreateOFDProtocolMessage done [16:50:28]OFDSenderStorePacket 164671 [16:50:28]StoreOFDPacket docnum=164671 [16:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D1 66 04 01 19 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 BC 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 E7 00 00 00 F4 03 04 00 55 B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 83 02 00 35 04 06 00 D7 7D 93 05 D8 9E 9E FC 76 72 9C 58 28 11 [16:50:28]CheckFolder [16:50:28]dirname=/storage/ofd_packets [16:50:28]CheckFolder done [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00164671 [16:50:28]NVStorageSaveData ofd_packets/00164671 [16:50:28]File name is /storage/ofd_packets/00164671 [16:50:28]Write 298 bytes [16:50:28]NVStorageSaveData done [16:50:28]OFDSenderStorePacket done [16:50:28]KKMCreateOFDPacket done [16:50:28]NVStorageSaveData kkm_last_timestamp [16:50:28]File name is /storage/kkm_last_timestamp [16:50:28]Write 4 bytes [16:50:28]NVStorageSaveData done [16:50:28]ExternCall_PrintAddStr [16:50:28]wPrintStart [16:50:28]Write to MH i2c: 01 00 00 56 33 89 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 56 33 00 00 00 00 00 FF 0F 9E [16:50:28]RasterBufferAndPrint [16:50:28]line Счет N : (1)458765 [16:50:28]line ИНН: 02508201610067 [16:50:28]line Контрольно-Кассовый Чек [16:50:28]line ПРОДАЖА [16:50:28]line ТРК (МРК, ГНК) : 21 [16:50:28]line Товар: 2710194210 [16:50:28]line ДТ-К-5 [16:50:28]line 34.780 * 71.90 [16:50:28]line = 2500.68 [16:50:28]line НДС 12% НСП 1% [16:50:28]line > о реализуемом товаре [16:50:28]line ОКРУГЛЕНИЕ: -0.68 [16:50:28]line ИТОГО: 2500.00 [16:50:28]line Внесено: 2500.00 [16:50:28]line СДАЧА: 0.00 [16:50:28]line НСП 1% : 22.13 [16:50:28]line НДС 12% : 265.56 [16:50:28]line Наличными: 2500.00 [16:50:28]line Безнал.: 0.00 [16:50:28]line Место: АЗС № 72 "Партнер Нефть" [16:50:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:50:28]line СНО: Общий режим [16:50:28]line Чек 231 13.07.2024 16:50 [16:50:28]line Смена: 446 ФФД: 1.0 [16:50:28]line ЗНМ: 0300000160 [16:50:28]line РНМ: 0000000000090829 [16:50:28]line Версия ККМ: 001 [16:50:28]line ФМ: 0000000000874718 [16:50:28]line ФД: 164671 [16:50:28]line ФПД: 236934337517726 [16:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164671&fm=236934337517726&tin=02508201610067®Number=0000000000090829&sum=250000 [16:50:28]OFD Sender: Processing packet 164671 [packets to send 104, broken 103] [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00164671 [16:50:28]OFD Sender: To server: pG, [16:50:28]CommunicateWithHost lk.salyk.kg:30040 [16:50:28]ConnectInit lk.salyk.kg [16:50:28]written 0, free lines is 4095 [16:50:29]Connected sock=10 [16:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D1 66 04 01 19 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 BC 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 E7 00 00 00 F4 03 04 00 55 B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 83 02 00 35 04 06 00 D7 7D 93 05 D8 9E 9E FC 76 72 9C 58 28 11 [16:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 56 93 47 00 38 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 83 02 00 F4 03 04 00 E6 56 92 66 B6 04 01 00 00 4B EF 34 EE 20 D0 79 6F [16:50:29]CommunicateWithHost err = 0 [16:50:29]CheckOFDResponse [16:50:29]1017 (14) - 77093643461234 [16:50:29]1041 (16) - 0000000000874718 [16:50:29]1040 (4) - 164671 [16:50:29]1012 (4) - 13.07.2024 10:28 [16:50:29]1206 (1) - 0 [16:50:29]OFD Sender: Remove packet 164671 [16:50:29]ProducePacketName [16:50:29]name=ofd_packets/00164671 [16:50:29]NVStorageDeleteData [16:50:29]Write to MH i2c: 01 00 00 80 33 B3 [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 07 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 07 00 80 33 00 00 00 00 00 FB 0C C1 [16:50:29]RasterBufferAndPrint [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]written 0, free lines is 3329 [16:50:29]MH_Cut [16:50:29]Write to MH i2c: D1 01 00 87 33 01 8C [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 01 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 01 00 87 33 00 8B [16:50:29]Write to MH i2c: 01 00 00 88 33 BB [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]OFD Sender: No OFD packet to send [16:50:30]*** Cut start [16:50:30]*** Partial cut [16:50:30]*** CUTSNS_PIN = 1 [16:50:30]*** CUTSNS_PIN = 0 [16:50:30]*** Brake cut motor [16:50:30]Read from MH i2c: 01 [16:50:30]MH_I2C_Read... [16:50:30]*** Stop cut motor [16:50:30]*** Cut end [16:50:30]Read from MH i2c: 01 07 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: 01 07 00 88 33 00 00 00 00 00 FF 0F D0 [16:50:30]process_action close_receipt done [16:50:30]requested_data is exist [16:50:30]produce_requested_data [16:50:30]requested_item fm.sn is exist - process it [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 11 00 00 [16:50:30]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 17 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [16:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:50:30]wFMCommunicate OK [16:50:30]requested_item fd.num is exist - process it [16:50:30]SAM_PROTO_GetFieldsCounters [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 13 00 00 [16:50:30]Write to MH i2c: E2 08 00 8A 33 80 13 00 00 00 00 00 00 39 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 8A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetFieldsCounters done [16:50:30]requested_item shift.num is exist - process it [16:50:30]requested_item shift.opened is exist - process it [16:50:30]req_shift_opened [16:50:30]FM_GetShiftState [16:50:30]SAM_PROTO_GetShiftState [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 13 01 00 [16:50:30]Write to MH i2c: E2 08 00 8B 33 80 13 01 00 00 00 00 00 3B [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 8B 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1C [16:50:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetShiftState done [16:50:30]FM_GetShiftState done [16:50:30]req_shift_opened done [16:50:30]requested_item shift.open_date is exist - process it [16:50:30]req_shift_open_date [16:50:30]req_shift_open_date done [16:50:30]produce_requested_data done [16:50:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164671,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:50:30]process_action_free close_receipt [16:50:30]json_value_free [16:50:30]json_value_free done [16:50:30]process_json_proto returns [16:50:30]Send response to host [16:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164671,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:50:30]free response buf [16:50:30]execute_script done [16:50:30]execute_script returns [16:50:30]free content buf [16:50:30]Sock 7.Close socket [16:50:30]Sock 7.Thread stoped [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:00]accept exits with 9 [16:53:00]New connection [16:53:00]New thread 3067149668 created [16:53:00]Thread 3067293028 joined [16:53:00]Waiting for new connection... [16:53:00] Sock 9.Parse request [16:53:00]Sock 9.Check first char [16:53:00]Sock 9.First char is OK [16:53:00]request: POST /json_proto HTTP/1.0 [16:53:00]Method: POST [16:53:00]URL: /json_proto [16:53:00]Method is POST - this is cgi request [16:53:00]url: /json_proto [16:53:00]query_string will be loaded in cgi processing [16:53:00]execute_cgi json_proto POST (null) [16:53:00]execute_cgi path=json_proto method=POST [16:53:00]POST find Content-Length [16:53:00]Host: 172.17.56.4:8080 [16:53:00]Content-Length: 674 [16:53:00]Content-Type: application/json [16:53:00] [16:53:00]POST finish read [16:53:00]Found Content-Length = 674 [16:53:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.460, "sum" : 320.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:00]execute_script... [16:53: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)458766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.460, "sum" : 320.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:00]POST & json_proto [16:53:00]process_json_proto [16:53:00]json parsed OK: [16:53:00]protocol is kg_v1.0 [16:53:00]action value=close_receipt [16:53:00]process_action close_receipt [16:53:00]cmd_close_receipt [16:53:00]MH_GetDate [16:53:00]Write to MH i2c: F0 00 00 8C 33 AE [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 09 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: F0 09 00 8C 33 00 EE B0 92 66 C9 DC B2 64 08 [16:53:00]GetLastDocTimeStamp 1720889429 [16:53:00]current date 1720889582 [16:53:00]FM_GetShiftState [16:53:00]SAM_PROTO_GetShiftState [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 13 01 00 [16:53:00]Write to MH i2c: E2 08 00 8D 33 80 13 01 00 00 00 00 00 3D [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0E 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0E 00 8D 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1E [16:53:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:53:00]wFMCommunicate OK [16:53:00]SAM_PROTO_GetShiftState done [16:53:00]FM_GetShiftState done [16:53:00]opened in 1720831249 [16:53:00]opened+sec_in_day 1720917649 [16:53:00]quantity*price = 32067 [16:53:00]sum+1 = 32068 [16:53:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.05 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 232 13.07.2024 16:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164672 ФПД: 73856033162431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164672&fm=73856033162431&tin=02508201610067®Number=0000000000090829&sum=32000 [16:53:01]StoreToDocumentArchive [16:53:01]shift 446 fd 164672 [16:53:01]save to /storage/0446/doc_00164672 [16:53:01]save last doc name /storage/0446/doc_00164672 to /storage/kkm_last_doc_name [16:53:01]save OK [16:53:01]Clear old archive folders... [16:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:53:01]tlvbuf is 014120C0 [16:53:01]SAM_PROTO_ClearQueue [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 09 00 00 [16:53:01]Write to MH i2c: E2 08 00 9A 33 80 09 00 00 00 00 00 00 3F [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 9A 33 00 90 00 41 [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]SAM_PROTO_ClearQueue done [16:53:01]KKMCreateOFDPacket [16:53:01]OFDProtocolAddRootSTLVToBuf [16:53:01]FM_MakeSignedData [16:53:01]FM_MakeSignedData [16:53:01]SAM_PROTO_SignData [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 01 02 [16:53:01]Write to MH i2c: E2 08 00 9B 33 80 0D 01 02 00 00 00 00 47 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 9B 33 00 90 00 42 [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=255 [16:53:01]MH_SAM_APDU [16:53: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 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 83 02 00 35 04 06 00 43 2B F2 9F [16:53:01]Write to MH i2c: E2 02 01 9C 33 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 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 83 02 00 35 04 06 00 43 2B F2 9F 00 00 8B [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 9C 33 00 90 00 43 [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=7 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 02 02 02 04 BF [16:53:01]Write to MH i2c: E2 0A 00 9D 33 80 0D 02 02 02 00 04 BF 00 00 11 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 03 00 9D 33 00 90 00 44 [16:53:01]RAPDU: 90 00 [16:53:01]wFMCommunicate OK [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 0D 03 02 [16:53:01]Write to MH i2c: E2 08 00 9E 33 80 0D 03 02 00 00 00 00 4C [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 0B 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 0B 00 9E 33 00 2D 44 99 1F 3C 1A 5B 10 90 00 37 [16:53:01]RAPDU: 2D 44 99 1F 3C 1A 5B 10 90 00 [16:53:01]wFMCommunicate OK [16:53:01]SAM_PROTO_SignData done [16:53:01]FM_MakeSignedData done [16:53:01]CreateOFDProtocolMessage [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 11 00 00 [16:53:01]Write to MH i2c: E2 08 00 9F 33 80 11 00 00 00 00 00 00 4C [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 17 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 17 00 9F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [16:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:53:01]wFMCommunicate OK [16:53:01]CreateOFDProtocolMessage done [16:53:01]OFDSenderStorePacket 164672 [16:53:01]StoreOFDPacket docnum=164672 [16:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6B D6 04 01 5D C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 83 02 00 35 04 06 00 43 2B F2 9F 04 BF 2D 44 99 1F 3C 1A 5B 10 [16:53:01]CheckFolder [16:53:01]dirname=/storage/ofd_packets [16:53:01]CheckFolder done [16:53:01]ProducePacketName [16:53:01]name=ofd_packets/00164672 [16:53:01]NVStorageSaveData ofd_packets/00164672 [16:53:01]File name is /storage/ofd_packets/00164672 [16:53:01]Write 298 bytes [16:53:01]NVStorageSaveData done [16:53:01]OFDSenderStorePacket done [16:53:01]KKMCreateOFDPacket done [16:53:01]NVStorageSaveData kkm_last_timestamp [16:53:01]File name is /storage/kkm_last_timestamp [16:53:01]Write 4 bytes [16:53:01]NVStorageSaveData done [16:53:01]ExternCall_PrintAddStr [16:53:01]wPrintStart [16:53:01]Write to MH i2c: 01 00 00 A0 33 D3 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 07 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 07 00 A0 33 00 00 00 00 00 FF 0F E8 [16:53:01]RasterBufferAndPrint [16:53:01]line Счет N : (1)458766 [16:53:01]line ИНН: 02508201610067 [16:53:01]line Контрольно-Кассовый Чек [16:53:01]line ПРОДАЖА [16:53:01]line ТРК (МРК, ГНК) : 21 [16:53:01]line Товар: 2710194210 [16:53:01]line ДТ-К-5 [16:53:01]line 4.460 * 71.90 [16:53:01]line = 320.67 [16:53:01]line НДС 12% НСП 1% [16:53:01]line > о реализуемом товаре [16:53:01]line ОКРУГЛЕНИЕ: -0.67 [16:53:01]line ИТОГО: 320.00 [16:53:01]line Внесено: 320.00 [16:53:01]line СДАЧА: 0.00 [16:53:01]line НСП 1% : 2.84 [16:53:01]line НДС 12% : 34.05 [16:53:01]line Наличными: 320.00 [16:53:01]line Безнал.: 0.00 [16:53:01]line Место: АЗС № 72 "Партнер Нефть" [16:53:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:53:01]line СНО: Общий режим [16:53:01]line Чек 232 13.07.2024 16:53 [16:53:01]line Смена: 446 ФФД: 1.0 [16:53:01]line ЗНМ: 0300000160 [16:53:01]line РНМ: 0000000000090829 [16:53:01]line Версия ККМ: 001 [16:53:01]line ФМ: 0000000000874718 [16:53:01]line ФД: 164672 [16:53:01]line ФПД: 73856033162431 [16:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164672&fm=73856033162431&tin=02508201610067®Number=0000000000090829&sum=32000 [16:53:02]OFD Sender: Processing packet 164672 [packets to send 104, broken 103] [16:53:02]ProducePacketName [16:53:02]name=ofd_packets/00164672 [16:53:02]OFD Sender: To server: pG, [16:53:02]CommunicateWithHost lk.salyk.kg:30040 [16:53:02]ConnectInit lk.salyk.kg [16:53:02]written 0, free lines is 4095 [16:53:02]Connected sock=10 [16:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6B D6 04 01 5D C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 83 02 00 35 04 06 00 43 2B F2 9F 04 BF 2D 44 99 1F 3C 1A 5B 10 [16:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 3E 47 00 50 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 83 02 00 F4 03 04 00 7F 57 92 66 B6 04 01 00 00 FE 8A 69 00 D4 EC EE C8 [16:53:02]CommunicateWithHost err = 0 [16:53:02]CheckOFDResponse [16:53:02]1017 (14) - 77093643461234 [16:53:02]1041 (16) - 0000000000874718 [16:53:02]1040 (4) - 164672 [16:53:02]1012 (4) - 13.07.2024 10:31 [16:53:02]1206 (1) - 0 [16:53:02]OFD Sender: Remove packet 164672 [16:53:02]ProducePacketName [16:53:02]name=ofd_packets/00164672 [16:53:02]NVStorageDeleteData [16:53:02]Write to MH i2c: 01 00 00 CA 33 FD [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 F3 0C 03 [16:53:02]RasterBufferAndPrint [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]line [16:53:02]written 0, free lines is 3322 [16:53:02]MH_Cut [16:53:02]Write to MH i2c: D1 01 00 D1 33 01 D6 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: D1 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: D1 01 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: D1 01 00 D1 33 00 D5 [16:53:02]Write to MH i2c: 01 00 00 D2 33 05 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]OFD Sender: No OFD packet to send [16:53:03]*** Cut start [16:53:03]*** Partial cut [16:53:03]*** CUTSNS_PIN = 1 [16:53:03]*** CUTSNS_PIN = 0 [16:53:03]*** Brake cut motor [16:53:03]Read from MH i2c: 01 [16:53:03]MH_I2C_Read... [16:53:03]*** Stop cut motor [16:53:03]*** Cut end [16:53:03]Read from MH i2c: 01 07 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 D2 33 00 00 00 00 00 FF 0F 1A [16:53:03]process_action close_receipt done [16:53:03]requested_data is exist [16:53:03]produce_requested_data [16:53:03]requested_item fm.sn is exist - process it [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 11 00 00 [16:53:03]Write to MH i2c: E2 08 00 D3 33 80 11 00 00 00 00 00 00 80 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 D3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [16:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:53:03]wFMCommunicate OK [16:53:03]requested_item fd.num is exist - process it [16:53:03]SAM_PROTO_GetFieldsCounters [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 13 00 00 [16:53:03]Write to MH i2c: E2 08 00 D4 33 80 13 00 00 00 00 00 00 83 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 62 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 62 00 D4 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [16:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:04]wFMCommunicate OK [16:53:04]SAM_PROTO_GetFieldsCounters done [16:53:04]requested_item shift.num is exist - process it [16:53:04]requested_item shift.opened is exist - process it [16:53:04]req_shift_opened [16:53:04]FM_GetShiftState [16:53:04]SAM_PROTO_GetShiftState [16:53:04]wFMCommunicate request_size=4 [16:53:04]MH_SAM_APDU [16:53:04]CAPDU: 80 13 01 00 [16:53:04]Write to MH i2c: E2 08 00 D5 33 80 13 01 00 00 00 00 00 85 [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 0E 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 0E 00 D5 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 66 [16:53:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:53:04]wFMCommunicate OK [16:53:04]SAM_PROTO_GetShiftState done [16:53:04]FM_GetShiftState done [16:53:04]req_shift_opened done [16:53:04]requested_item shift.open_date is exist - process it [16:53:04]req_shift_open_date [16:53:04]req_shift_open_date done [16:53:04]produce_requested_data done [16:53:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164672,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:53:04]process_action_free close_receipt [16:53:04]json_value_free [16:53:04]json_value_free done [16:53:04]process_json_proto returns [16:53:04]Send response to host [16:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164672,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:53:04]free response buf [16:53:04]execute_script done [16:53:04]execute_script returns [16:53:04]free content buf [16:53:04]Sock 9.Close socket [16:53:04]Sock 9.Thread stoped [16:53:07]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:23]accept exits with 7 [16:53:23]New connection [16:53:23]New thread 3067293028 created [16:53:23]Thread 3067149668 joined [16:53:23]Waiting for new connection... [16:53:23] Sock 7.Parse request [16:53:23]Sock 7.Check first char [16:53:23]Sock 7.First char is OK [16:53:23]request: POST /json_proto HTTP/1.0 [16:53:23]Method: POST [16:53:23]URL: /json_proto [16:53:23]Method is POST - this is cgi request [16:53:23]url: /json_proto [16:53:23]query_string will be loaded in cgi processing [16:53:23]execute_cgi json_proto POST (null) [16:53:23]execute_cgi path=json_proto method=POST [16:53:23]POST find Content-Length [16:53:23]Host: 172.17.56.4:8080 [16:53:23]Content-Length: 674 [16:53:23]Content-Type: application/json [16:53:23] [16:53:23]POST finish read [16:53:23]Found Content-Length = 674 [16:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 0.200, "sum" : 13.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 13.00, "payments": [ { "type": 0, "sum" : 13.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]execute_script... [16:53: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)458767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 0.200, "sum" : 13.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 13.00, "payments": [ { "type": 0, "sum" : 13.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:23]POST & json_proto [16:53:23]process_json_proto [16:53:23]json parsed OK: [16:53:23]protocol is kg_v1.0 [16:53:23]action value=close_receipt [16:53:23]process_action close_receipt [16:53:23]cmd_close_receipt [16:53:23]MH_GetDate [16:53:23]Write to MH i2c: F0 00 00 D6 33 F8 [16:53:23]Write i2c OK [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: F0 09 00 D6 33 00 05 B1 92 66 C9 DC B2 64 6A [16:53:23]GetLastDocTimeStamp 1720889582 [16:53:23]current date 1720889605 [16:53:23]FM_GetShiftState [16:53:23]SAM_PROTO_GetShiftState [16:53:23]wFMCommunicate request_size=4 [16:53:23]MH_SAM_APDU [16:53:23]CAPDU: 80 13 01 00 [16:53:23]Write to MH i2c: E2 08 00 D7 33 80 13 01 00 00 00 00 00 87 [16:53:23]Write i2c OK [16:53:23]MH_I2C_Read... [16:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:23]Read from MH i2c: E2 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: E2 0E 00 [16:53:23]MH_I2C_Read... [16:53:23]Read from MH i2c: E2 0E 00 D7 33 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 68 [16:53:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:53:23]wFMCommunicate OK [16:53:23]SAM_PROTO_GetShiftState done [16:53:23]FM_GetShiftState done [16:53:23]opened in 1720831249 [16:53:23]opened+sec_in_day 1720917649 [16:53:23]quantity*price = 1316 [16:53:23]sum+1 = 1317 [16:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 13.00 Внесено: 340.00 СДАЧА: 327.00 НСП 1% : 0.12 НДС 12% : 1.40 Наличными: 13.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 233 13.07.2024 16:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164673 ФПД: 43757476295339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164673&fm=43757476295339&tin=02508201610067®Number=0000000000090829&sum=1300 [16:53:24]StoreToDocumentArchive [16:53:24]shift 446 fd 164673 [16:53:24]save to /storage/0446/doc_00164673 [16:53:24]save last doc name /storage/0446/doc_00164673 to /storage/kkm_last_doc_name [16:53:24]save OK [16:53:24]Clear old archive folders... [16:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:24]tlvbuf is 0146DF50 [16:53:24]SAM_PROTO_ClearQueue [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 09 00 00 [16:53:24]Write to MH i2c: E2 08 00 E4 33 80 09 00 00 00 00 00 00 89 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 E4 33 00 90 00 8B [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]SAM_PROTO_ClearQueue done [16:53:24]KKMCreateOFDPacket [16:53:24]OFDProtocolAddRootSTLVToBuf [16:53:24]FM_MakeSignedData [16:53:24]FM_MakeSignedData [16:53:24]SAM_PROTO_SignData [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 0D 01 02 [16:53:24]Write to MH i2c: E2 08 00 E5 33 80 0D 01 02 00 00 00 00 91 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 E5 33 00 90 00 8C [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]wFMCommunicate request_size=255 [16:53:24]MH_SAM_APDU [16:53: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 C8 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 24 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 00 00 00 00 00 07 04 06 00 14 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 05 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 83 02 00 35 04 06 00 27 [16:53:24]Write to MH i2c: E2 02 01 E6 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 24 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 00 00 00 00 00 07 04 06 00 14 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 05 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 83 02 00 35 04 06 00 27 00 00 6C [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 E6 33 00 90 00 8D [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]wFMCommunicate request_size=10 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 0D 02 02 05 CC 14 D4 B2 AB [16:53:24]Write to MH i2c: E2 0D 00 E7 33 80 0D 02 02 05 00 CC 14 D4 B2 AB 00 00 AF [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 03 00 E7 33 00 90 00 8E [16:53:24]RAPDU: 90 00 [16:53:24]wFMCommunicate OK [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 0D 03 02 [16:53:24]Write to MH i2c: E2 08 00 E8 33 80 0D 03 02 00 00 00 00 96 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 0B 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 0B 00 E8 33 00 45 D3 57 82 99 9D C0 AD 90 00 2B [16:53:24]RAPDU: 45 D3 57 82 99 9D C0 AD 90 00 [16:53:24]wFMCommunicate OK [16:53:24]SAM_PROTO_SignData done [16:53:24]FM_MakeSignedData done [16:53:24]CreateOFDProtocolMessage [16:53:24]wFMCommunicate request_size=4 [16:53:24]MH_SAM_APDU [16:53:24]CAPDU: 80 11 00 00 [16:53:24]Write to MH i2c: E2 08 00 E9 33 80 11 00 00 00 00 00 00 96 [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:24]Read from MH i2c: E2 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 17 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: E2 17 00 E9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [16:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:53:24]wFMCommunicate OK [16:53:24]CreateOFDProtocolMessage done [16:53:24]OFDSenderStorePacket 164673 [16:53:24]StoreOFDPacket docnum=164673 [16:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 EB 07 01 C5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 24 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 00 00 00 00 00 07 04 06 00 14 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 05 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 83 02 00 35 04 06 00 27 CC 14 D4 B2 AB 45 D3 57 82 99 9D C0 AD [16:53:24]CheckFolder [16:53:24]dirname=/storage/ofd_packets [16:53:24]CheckFolder done [16:53:24]ProducePacketName [16:53:24]name=ofd_packets/00164673 [16:53:24]NVStorageSaveData ofd_packets/00164673 [16:53:24]File name is /storage/ofd_packets/00164673 [16:53:24]Write 301 bytes [16:53:24]NVStorageSaveData done [16:53:24]OFDSenderStorePacket done [16:53:24]KKMCreateOFDPacket done [16:53:24]NVStorageSaveData kkm_last_timestamp [16:53:24]File name is /storage/kkm_last_timestamp [16:53:24]Write 4 bytes [16:53:24]NVStorageSaveData done [16:53:24]OFD Sender: Processing packet 164673 [packets to send 104, broken 103] [16:53:24]ProducePacketName [16:53:24]name=ofd_packets/00164673 [16:53:24]OFD Sender: To server: pG, [16:53:24]CommunicateWithHost lk.salyk.kg:30040 [16:53:24]ConnectInit lk.salyk.kg [16:53:24]ExternCall_PrintAddStr [16:53:24]wPrintStart [16:53:24]Write to MH i2c: 01 00 00 EA 33 1D [16:53:24]Write i2c OK [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: 01 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: 01 07 00 [16:53:24]MH_I2C_Read... [16:53:24]Read from MH i2c: 01 07 00 EA 33 00 00 00 00 00 FF 0F 32 [16:53:24]RasterBufferAndPrint [16:53:24]line Счет N : (1)458767 [16:53:24]line ИНН: 02508201610067 [16:53:24]line Контрольно-Кассовый Чек [16:53:24]line ПРОДАЖА [16:53:24]line ТРК (МРК, ГНК) : 12 [16:53:24]line Товар: 2710124130 [16:53:24]line Аи-92-К-5 [16:53:24]line 0.200 * 65.80 [16:53:24]line = 13.16 [16:53:24]line НДС 12% НСП 1% [16:53:24]line > о реализуемом товаре [16:53:24]line ОКРУГЛЕНИЕ: -0.16 [16:53:24]line ИТОГО: 13.00 [16:53:24]line Внесено: 340.00 [16:53:24]line СДАЧА: 327.00 [16:53:24]line НСП 1% : 0.12 [16:53:24]line НДС 12% : 1.40 [16:53:24]line Наличными: 13.00 [16:53:24]line Безнал.: 0.00 [16:53:24]line Место: АЗС № 72 "Партнер Нефть" [16:53:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:53:24]line СНО: Общий режим [16:53:24]line Чек 233 13.07.2024 16:53 [16:53:24]line Смена: 446 ФФД: 1.0 [16:53:24]line ЗНМ: 0300000160 [16:53:24]line РНМ: 0000000000090829 [16:53:24]line Версия ККМ: 001 [16:53:24]line ФМ: 0000000000874718 [16:53:24]line ФД: 164673 [16:53:24]line ФПД: 43757476295339 [16:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165325&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164673&fm=43757476295339&tin=02508201610067®Number=0000000000090829&sum=1300 [16:53:25]Connected sock=11 [16:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 EB 07 01 C5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 24 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 00 00 00 00 00 07 04 06 00 14 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 05 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 83 02 00 35 04 06 00 27 CC 14 D4 B2 AB 45 D3 57 82 99 9D C0 AD [16:53:25]written 0, free lines is 4095 [16:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 06 47 00 89 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 83 02 00 F4 03 04 00 96 57 92 66 B6 04 01 00 00 89 54 F9 6A 8C 2F 0F 85 [16:53:25]CommunicateWithHost err = 0 [16:53:25]CheckOFDResponse [16:53:25]1017 (14) - 77093643461234 [16:53:25]1041 (16) - 0000000000874718 [16:53:25]1040 (4) - 164673 [16:53:25]1012 (4) - 13.07.2024 10:31 [16:53:25]1206 (1) - 0 [16:53:25]OFD Sender: Remove packet 164673 [16:53:25]ProducePacketName [16:53:25]name=ofd_packets/00164673 [16:53:25]NVStorageDeleteData [16:53:25]Write to MH i2c: 01 00 00 14 34 48 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 07 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: 01 07 00 14 34 00 00 00 00 00 FB 0C 56 [16:53:25]RasterBufferAndPrint [16:53:25]line [16:53:25]line [16:53:25]line [16:53:25]line [16:53:25]line [16:53:25]written 0, free lines is 3332 [16:53:25]MH_Cut [16:53:25]Write to MH i2c: D1 01 00 1B 34 01 21 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: D1 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: D1 01 00 [16:53:25]MH_I2C_Read... [16:53:25]Read from MH i2c: D1 01 00 1B 34 00 20 [16:53:25]Write to MH i2c: 01 00 00 1C 34 50 [16:53:25]Write i2c OK [16:53:25]MH_I2C_Read... [16:53:25]OFD Sender: No OFD packet to send [16:53:26]*** Cut start [16:53:26]*** Partial cut [16:53:26]*** CUTSNS_PIN = 1 [16:53:26]*** CUTSNS_PIN = 0 [16:53:26]*** Brake cut motor [16:53:26]Read from MH i2c: 01 [16:53:26]MH_I2C_Read... [16:53:26]*** Stop cut motor [16:53:26]*** Cut end [16:53:26]Read from MH i2c: 01 07 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: 01 07 00 1C 34 00 00 00 00 00 FF 0F 65 [16:53:26]process_action close_receipt done [16:53:26]requested_data is exist [16:53:26]produce_requested_data [16:53:26]requested_item fm.sn is exist - process it [16:53:26]wFMCommunicate request_size=4 [16:53:26]MH_SAM_APDU [16:53:26]CAPDU: 80 11 00 00 [16:53:26]Write to MH i2c: E2 08 00 1D 34 80 11 00 00 00 00 00 00 CB [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:26]Read from MH i2c: E2 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: E2 17 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: E2 17 00 1D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [16:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:53:26]wFMCommunicate OK [16:53:26]requested_item fd.num is exist - process it [16:53:26]SAM_PROTO_GetFieldsCounters [16:53:26]wFMCommunicate request_size=4 [16:53:26]MH_SAM_APDU [16:53:26]CAPDU: 80 13 00 00 [16:53:26]Write to MH i2c: E2 08 00 1E 34 80 13 00 00 00 00 00 00 CE [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:27]Read from MH i2c: E2 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 62 00 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 62 00 1E 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:27]wFMCommunicate OK [16:53:27]SAM_PROTO_GetFieldsCounters done [16:53:27]requested_item shift.num is exist - process it [16:53:27]requested_item shift.opened is exist - process it [16:53:27]req_shift_opened [16:53:27]FM_GetShiftState [16:53:27]SAM_PROTO_GetShiftState [16:53:27]wFMCommunicate request_size=4 [16:53:27]MH_SAM_APDU [16:53:27]CAPDU: 80 13 01 00 [16:53:27]Write to MH i2c: E2 08 00 1F 34 80 13 01 00 00 00 00 00 D0 [16:53:27]Write i2c OK [16:53:27]MH_I2C_Read... [16:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:27]Read from MH i2c: E2 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 0E 00 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 0E 00 1F 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B1 [16:53:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:53:27]wFMCommunicate OK [16:53:27]SAM_PROTO_GetShiftState done [16:53:27]FM_GetShiftState done [16:53:27]req_shift_opened done [16:53:27]requested_item shift.open_date is exist - process it [16:53:27]req_shift_open_date [16:53:27]req_shift_open_date done [16:53:27]produce_requested_data done [16:53:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164673,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:53:27]process_action_free close_receipt [16:53:27]json_value_free [16:53:27]json_value_free done [16:53:27]process_json_proto returns [16:53:27]Send response to host [16:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164673,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:53:27]free response buf [16:53:27]execute_script done [16:53:27]execute_script returns [16:53:27]free content buf [16:53:27]Sock 7.Close socket [16:53:27]Sock 7.Thread stoped [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]accept exits with 10 [16:54:10]New connection [16:54:10]New thread 3067149668 created [16:54:10]Thread 3067293028 joined [16:54:10]Waiting for new connection... [16:54:10] Sock 10.Parse request [16:54:10]Sock 10.Check first char [16:54:10]Sock 10.First char is OK [16:54:10]request: POST /json_proto HTTP/1.0 [16:54:10]Method: POST [16:54:10]URL: /json_proto [16:54:10]Method is POST - this is cgi request [16:54:10]url: /json_proto [16:54:10]query_string will be loaded in cgi processing [16:54:10]execute_cgi json_proto POST (null) [16:54:10]execute_cgi path=json_proto method=POST [16:54:10]POST find Content-Length [16:54:10]Host: 172.17.56.4:8080 [16:54:10]Content-Length: 677 [16:54:10]Content-Type: application/json [16:54:10] [16:54:10]POST finish read [16:54:10]Found Content-Length = 677 [16:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.970, "sum" : 327.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 327.00, "total" : 327.00, "payments": [ { "type": 0, "sum" : 327.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:10]execute_script... [16:54:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.970, "sum" : 327.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 327.00, "total" : 327.00, "payments": [ { "type": 0, "sum" : 327.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:10]POST & json_proto [16:54:10]process_json_proto [16:54:10]json parsed OK: [16:54:10]protocol is kg_v1.0 [16:54:10]action value=close_receipt [16:54:10]process_action close_receipt [16:54:10]cmd_close_receipt [16:54:10]MH_GetDate [16:54:10]Write to MH i2c: F0 00 00 20 34 43 [16:54:10]Write i2c OK [16:54:10]MH_I2C_Read... [16:54:10]Read from MH i2c: F0 [16:54:10]MH_I2C_Read... [16:54:10]Read from MH i2c: F0 09 00 [16:54:10]MH_I2C_Read... [16:54:10]Read from MH i2c: F0 09 00 20 34 00 34 B1 92 66 C9 DC B2 64 E4 [16:54:10]GetLastDocTimeStamp 1720889605 [16:54:10]current date 1720889652 [16:54:10]FM_GetShiftState [16:54:10]SAM_PROTO_GetShiftState [16:54:10]wFMCommunicate request_size=4 [16:54:10]MH_SAM_APDU [16:54:10]CAPDU: 80 13 01 00 [16:54:10]Write to MH i2c: E2 08 00 21 34 80 13 01 00 00 00 00 00 D2 [16:54:10]Write i2c OK [16:54:10]MH_I2C_Read... [16:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:10]Read from MH i2c: E2 [16:54:10]MH_I2C_Read... [16:54:10]Read from MH i2c: E2 0E 00 [16:54:10]MH_I2C_Read... [16:54:10]Read from MH i2c: E2 0E 00 21 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B3 [16:54:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:54:10]wFMCommunicate OK [16:54:10]SAM_PROTO_GetShiftState done [16:54:10]FM_GetShiftState done [16:54:10]opened in 1720831249 [16:54:10]opened+sec_in_day 1720917649 [16:54:10]quantity*price = 32702 [16:54:10]sum+1 = 32704 [16:54:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 327.00 Внесено: 327.00 СДАЧА: 0.00 НСП 1% : 2.89 НДС 12% : 34.73 Наличными: 327.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 234 13.07.2024 16:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164674 ФПД: 176590695909947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165412&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164674&fm=176590695909947&tin=02508201610067®Number=0000000000090829&sum=32700 [16:54:11]StoreToDocumentArchive [16:54:11]shift 446 fd 164674 [16:54:11]save to /storage/0446/doc_00164674 [16:54:11]save last doc name /storage/0446/doc_00164674 to /storage/kkm_last_doc_name [16:54:11]save OK [16:54:11]Clear old archive folders... [16:54:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:11]tlvbuf is 01411DB0 [16:54:11]SAM_PROTO_ClearQueue [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 09 00 00 [16:54:11]Write to MH i2c: E2 08 00 2E 34 80 09 00 00 00 00 00 00 D4 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 2E 34 00 90 00 D6 [16:54:11]RAPDU: 90 00 [16:54:11]wFMCommunicate OK [16:54:11]SAM_PROTO_ClearQueue done [16:54:11]KKMCreateOFDPacket [16:54:11]OFDProtocolAddRootSTLVToBuf [16:54:11]FM_MakeSignedData [16:54:11]FM_MakeSignedData [16:54:11]SAM_PROTO_SignData [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 0D 01 02 [16:54:11]Write to MH i2c: E2 08 00 2F 34 80 0D 01 02 00 00 00 00 DC [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 2F 34 00 90 00 D7 [16:54:11]RAPDU: 90 00 [16:54:11]wFMCommunicate OK [16:54:11]wFMCommunicate request_size=255 [16:54:11]MH_SAM_APDU [16:54: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 6A 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 BC 7F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 34 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 83 02 00 35 04 06 00 A0 [16:54:11]Write to MH i2c: E2 02 01 30 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 BC 7F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 34 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 83 02 00 35 04 06 00 A0 00 00 97 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 30 34 00 90 00 D8 [16:54:11]RAPDU: 90 00 [16:54:11]wFMCommunicate OK [16:54:11]wFMCommunicate request_size=10 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 0D 02 02 05 9B B9 B3 4A 3B [16:54:11]Write to MH i2c: E2 0D 00 31 34 80 0D 02 02 05 00 9B B9 B3 4A 3B 00 00 75 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 03 00 31 34 00 90 00 D9 [16:54:11]RAPDU: 90 00 [16:54:11]wFMCommunicate OK [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 0D 03 02 [16:54:11]Write to MH i2c: E2 08 00 32 34 80 0D 03 02 00 00 00 00 E1 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 0B 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 0B 00 32 34 00 1C 59 79 72 10 D4 4B 7C 90 00 ED [16:54:11]RAPDU: 1C 59 79 72 10 D4 4B 7C 90 00 [16:54:11]wFMCommunicate OK [16:54:11]SAM_PROTO_SignData done [16:54:11]FM_MakeSignedData done [16:54:11]CreateOFDProtocolMessage [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 11 00 00 [16:54:11]Write to MH i2c: E2 08 00 33 34 80 11 00 00 00 00 00 00 E1 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 17 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 17 00 33 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [16:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:54:11]wFMCommunicate OK [16:54:11]CreateOFDProtocolMessage done [16:54:11]OFDSenderStorePacket 164674 [16:54:11]StoreOFDPacket docnum=164674 [16:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 60 07 01 21 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 BC 7F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 34 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 83 02 00 35 04 06 00 A0 9B B9 B3 4A 3B 1C 59 79 72 10 D4 4B 7C [16:54:11]CheckFolder [16:54:11]dirname=/storage/ofd_packets [16:54:11]CheckFolder done [16:54:11]ProducePacketName [16:54:11]name=ofd_packets/00164674 [16:54:11]NVStorageSaveData ofd_packets/00164674 [16:54:11]File name is /storage/ofd_packets/00164674 [16:54:11]Write 301 bytes [16:54:11]NVStorageSaveData done [16:54:11]OFDSenderStorePacket done [16:54:11]KKMCreateOFDPacket done [16:54:11]NVStorageSaveData kkm_last_timestamp [16:54:11]File name is /storage/kkm_last_timestamp [16:54:11]Write 4 bytes [16:54:11]NVStorageSaveData done [16:54:11]ExternCall_PrintAddStr [16:54:11]wPrintStart [16:54:11]Write to MH i2c: 01 00 00 34 34 68 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: 01 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: 01 07 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: 01 07 00 34 34 00 00 00 00 00 FF 0F 7D [16:54:11]RasterBufferAndPrint [16:54:11]line Счет N : (1)458768 [16:54:11]line ИНН: 02508201610067 [16:54:11]line Контрольно-Кассовый Чек [16:54:11]line ПРОДАЖА [16:54:11]line ТРК (МРК, ГНК) : 12 [16:54:11]line Товар: 2710124130 [16:54:11]line Аи-92-К-5 [16:54:11]line 4.970 * 65.80 [16:54:11]line = 327.03 [16:54:11]line НДС 12% НСП 1% [16:54:11]line > о реализуемом товаре [16:54:11]line ОКРУГЛЕНИЕ: -0.03 [16:54:11]line ИТОГО: 327.00 [16:54:11]line Внесено: 327.00 [16:54:11]line СДАЧА: 0.00 [16:54:11]line НСП 1% : 2.89 [16:54:11]line НДС 12% : 34.73 [16:54:11]line Наличными: 327.00 [16:54:11]line Безнал.: 0.00 [16:54:11]line Место: АЗС № 72 "Партнер Нефть" [16:54:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:54:11]line СНО: Общий режим [16:54:11]line Чек 234 13.07.2024 16:54 [16:54:11]line Смена: 446 ФФД: 1.0 [16:54:11]line ЗНМ: 0300000160 [16:54:11]line РНМ: 0000000000090829 [16:54:11]line Версия ККМ: 001 [16:54:11]line ФМ: 0000000000874718 [16:54:11]line ФД: 164674 [16:54:11]line ФПД: 176590695909947 [16:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165412&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164674&fm=176590695909947&tin=02508201610067®Number=0000000000090829&sum=32700 [16:54:12]OFD Sender: Processing packet 164674 [packets to send 104, broken 103] [16:54:12]ProducePacketName [16:54:12]name=ofd_packets/00164674 [16:54:12]OFD Sender: To server: pG, [16:54:12]CommunicateWithHost lk.salyk.kg:30040 [16:54:12]ConnectInit lk.salyk.kg [16:54:12]written 0, free lines is 4095 [16:54:12]Connected sock=9 [16:54:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 60 07 01 21 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 BC 7F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 34 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 83 02 00 35 04 06 00 A0 9B B9 B3 4A 3B 1C 59 79 72 10 D4 4B 7C [16:54:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E 48 47 00 7B 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 83 02 00 F4 03 04 00 C5 57 92 66 B6 04 01 00 00 77 61 9A 7C DC 58 08 27 [16:54:12]CommunicateWithHost err = 0 [16:54:12]CheckOFDResponse [16:54:12]1017 (14) - 77093643461234 [16:54:12]1041 (16) - 0000000000874718 [16:54:12]1040 (4) - 164674 [16:54:12]1012 (4) - 13.07.2024 10:32 [16:54:12]1206 (1) - 0 [16:54:12]OFD Sender: Remove packet 164674 [16:54:12]ProducePacketName [16:54:12]name=ofd_packets/00164674 [16:54:12]NVStorageDeleteData [16:54:12]Write to MH i2c: 01 00 00 5E 34 92 [16:54:12]Write i2c OK [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: 01 [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: 01 07 00 [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: 01 07 00 5E 34 00 00 00 00 00 F7 0C 9C [16:54:12]RasterBufferAndPrint [16:54:12]line [16:54:12]line [16:54:12]line [16:54:12]line [16:54:12]line [16:54:12]written 0, free lines is 3326 [16:54:12]MH_Cut [16:54:12]Write to MH i2c: D1 01 00 65 34 01 6B [16:54:12]Write i2c OK [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: D1 [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: D1 01 00 [16:54:12]MH_I2C_Read... [16:54:12]Read from MH i2c: D1 01 00 65 34 00 6A [16:54:12]Write to MH i2c: 01 00 00 66 34 9A [16:54:12]Write i2c OK [16:54:12]MH_I2C_Read... [16:54:12]OFD Sender: No OFD packet to send [16:54:13]*** Cut start [16:54:13]*** Partial cut [16:54:13]*** CUTSNS_PIN = 1 [16:54:13]*** CUTSNS_PIN = 0 [16:54:13]*** Brake cut motor [16:54:13]Read from MH i2c: 01 [16:54:13]MH_I2C_Read... [16:54:13]*** Stop cut motor [16:54:13]*** Cut end [16:54:13]Read from MH i2c: 01 07 00 [16:54:13]MH_I2C_Read... [16:54:13]Read from MH i2c: 01 07 00 66 34 00 00 00 00 00 FF 0F AF [16:54:13]process_action close_receipt done [16:54:13]requested_data is exist [16:54:13]produce_requested_data [16:54:13]requested_item fm.sn is exist - process it [16:54:13]wFMCommunicate request_size=4 [16:54:13]MH_SAM_APDU [16:54:13]CAPDU: 80 11 00 00 [16:54:13]Write to MH i2c: E2 08 00 67 34 80 11 00 00 00 00 00 00 15 [16:54:13]Write i2c OK [16:54:13]MH_I2C_Read... [16:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:13]Read from MH i2c: E2 [16:54:13]MH_I2C_Read... [16:54:13]Read from MH i2c: E2 17 00 [16:54:13]MH_I2C_Read... [16:54:13]Read from MH i2c: E2 17 00 67 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [16:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:54:13]wFMCommunicate OK [16:54:13]requested_item fd.num is exist - process it [16:54:13]SAM_PROTO_GetFieldsCounters [16:54:13]wFMCommunicate request_size=4 [16:54:13]MH_SAM_APDU [16:54:13]CAPDU: 80 13 00 00 [16:54:13]Write to MH i2c: E2 08 00 68 34 80 13 00 00 00 00 00 00 18 [16:54:13]Write i2c OK [16:54:13]MH_I2C_Read... [16:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:14]Read from MH i2c: E2 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 62 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 62 00 68 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:14]wFMCommunicate OK [16:54:14]SAM_PROTO_GetFieldsCounters done [16:54:14]requested_item shift.num is exist - process it [16:54:14]requested_item shift.opened is exist - process it [16:54:14]req_shift_opened [16:54:14]FM_GetShiftState [16:54:14]SAM_PROTO_GetShiftState [16:54:14]wFMCommunicate request_size=4 [16:54:14]MH_SAM_APDU [16:54:14]CAPDU: 80 13 01 00 [16:54:14]Write to MH i2c: E2 08 00 69 34 80 13 01 00 00 00 00 00 1A [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:14]Read from MH i2c: E2 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 69 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FB [16:54:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:54:14]wFMCommunicate OK [16:54:14]SAM_PROTO_GetShiftState done [16:54:14]FM_GetShiftState done [16:54:14]req_shift_opened done [16:54:14]requested_item shift.open_date is exist - process it [16:54:14]req_shift_open_date [16:54:14]req_shift_open_date done [16:54:14]produce_requested_data done [16:54:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164674,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:54:14]process_action_free close_receipt [16:54:14]json_value_free [16:54:14]json_value_free done [16:54:14]process_json_proto returns [16:54:14]Send response to host [16:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164674,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:54:14]free response buf [16:54:14]execute_script done [16:54:14]execute_script returns [16:54:14]free content buf [16:54:14]Sock 10.Close socket [16:54:14]Sock 10.Thread stoped [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:43]accept exits with 7 [16:54:43]New connection [16:54:43]New thread 3067293028 created [16:54:43]Thread 3067149668 joined [16:54:43]Waiting for new connection... [16:54:43] Sock 7.Parse request [16:54:43]Sock 7.Check first char [16:54:43]Sock 7.First char is OK [16:54:43]request: POST /json_proto HTTP/1.0 [16:54:43]Method: POST [16:54:43]URL: /json_proto [16:54:43]Method is POST - this is cgi request [16:54:43]url: /json_proto [16:54:43]query_string will be loaded in cgi processing [16:54:43]execute_cgi json_proto POST (null) [16:54:43]execute_cgi path=json_proto method=POST [16:54:43]POST find Content-Length [16:54:43]Host: 172.17.56.4:8080 [16:54:43]Content-Length: 679 [16:54:43]Content-Type: application/json [16:54:43] [16:54:43]POST finish read [16:54:43]Found Content-Length = 679 [16:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:43]execute_script... [16:54: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)458769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:43]POST & json_proto [16:54:43]process_json_proto [16:54:43]json parsed OK: [16:54:43]protocol is kg_v1.0 [16:54:43]action value=close_receipt [16:54:43]process_action close_receipt [16:54:43]cmd_close_receipt [16:54:43]MH_GetDate [16:54:43]Write to MH i2c: F0 00 00 6A 34 8D [16:54:43]Write i2c OK [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: F0 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: F0 09 00 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: F0 09 00 6A 34 00 56 B1 92 66 C9 DC B2 64 50 [16:54:43]GetLastDocTimeStamp 1720889652 [16:54:43]current date 1720889686 [16:54:43]FM_GetShiftState [16:54:43]SAM_PROTO_GetShiftState [16:54:43]wFMCommunicate request_size=4 [16:54:43]MH_SAM_APDU [16:54:43]CAPDU: 80 13 01 00 [16:54:43]Write to MH i2c: E2 08 00 6B 34 80 13 01 00 00 00 00 00 1C [16:54:43]Write i2c OK [16:54:43]MH_I2C_Read... [16:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:43]Read from MH i2c: E2 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: E2 0E 00 [16:54:43]MH_I2C_Read... [16:54:43]Read from MH i2c: E2 0E 00 6B 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FD [16:54:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:54:43]wFMCommunicate OK [16:54:43]SAM_PROTO_GetShiftState done [16:54:43]FM_GetShiftState done [16:54:43]opened in 1720831249 [16:54:43]opened+sec_in_day 1720917649 [16:54:43]quantity*price = 100012 [16:54:43]sum+1 = 100014 [16:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 235 13.07.2024 16:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164675 ФПД: 47646095211308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164675&fm=47646095211308&tin=02508201610067®Number=0000000000090829&sum=100000 [16:54:44]StoreToDocumentArchive [16:54:44]shift 446 fd 164675 [16:54:44]save to /storage/0446/doc_00164675 [16:54:44]save last doc name /storage/0446/doc_00164675 to /storage/kkm_last_doc_name [16:54:44]save OK [16:54:44]Clear old archive folders... [16:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:44]tlvbuf is 01549C50 [16:54:44]SAM_PROTO_ClearQueue [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 09 00 00 [16:54:44]Write to MH i2c: E2 08 00 78 34 80 09 00 00 00 00 00 00 1E [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]SAM_PROTO_ClearQueue done [16:54:44]KKMCreateOFDPacket [16:54:44]OFDProtocolAddRootSTLVToBuf [16:54:44]FM_MakeSignedData [16:54:44]FM_MakeSignedData [16:54:44]SAM_PROTO_SignData [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 0D 01 02 [16:54:44]Write to MH i2c: E2 08 00 79 34 80 0D 01 02 00 00 00 00 26 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=255 [16:54:44]MH_SAM_APDU [16:54: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EB 00 00 00 F4 03 04 00 56 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 83 02 00 35 04 06 00 2B 55 78 94 [16:54:44]Write to MH i2c: E2 02 01 7A 34 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EB 00 00 00 F4 03 04 00 56 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 83 02 00 35 04 06 00 2B 55 78 94 00 00 E4 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [16:54:45]RAPDU: 90 00 [16:54:45]wFMCommunicate OK [16:54:45]wFMCommunicate request_size=7 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 0D 02 02 02 7B 2C [16:54:45]Write to MH i2c: E2 0A 00 7B 34 80 0D 02 02 02 00 7B 2C 00 00 D4 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 03 00 7B 34 00 90 00 23 [16:54:45]RAPDU: 90 00 [16:54:45]wFMCommunicate OK [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 0D 03 02 [16:54:45]Write to MH i2c: E2 08 00 7C 34 80 0D 03 02 00 00 00 00 2B [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 0B 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 0B 00 7C 34 00 0A 9E E6 30 57 C9 AF 32 90 00 EB [16:54:45]RAPDU: 0A 9E E6 30 57 C9 AF 32 90 00 [16:54:45]wFMCommunicate OK [16:54:45]SAM_PROTO_SignData done [16:54:45]FM_MakeSignedData done [16:54:45]CreateOFDProtocolMessage [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 11 00 00 [16:54:45]Write to MH i2c: E2 08 00 7D 34 80 11 00 00 00 00 00 00 2B [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 17 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 17 00 7D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [16:54:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:54:45]wFMCommunicate OK [16:54:45]CreateOFDProtocolMessage done [16:54:45]OFDSenderStorePacket 164675 [16:54:45]StoreOFDPacket docnum=164675 [16:54:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 FF 04 01 95 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EB 00 00 00 F4 03 04 00 56 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 83 02 00 35 04 06 00 2B 55 78 94 7B 2C 0A 9E E6 30 57 C9 AF 32 [16:54:45]CheckFolder [16:54:45]dirname=/storage/ofd_packets [16:54:45]CheckFolder done [16:54:45]ProducePacketName [16:54:45]name=ofd_packets/00164675 [16:54:45]NVStorageSaveData ofd_packets/00164675 [16:54:45]File name is /storage/ofd_packets/00164675 [16:54:45]Write 298 bytes [16:54:45]NVStorageSaveData done [16:54:45]OFDSenderStorePacket done [16:54:45]KKMCreateOFDPacket done [16:54:45]NVStorageSaveData kkm_last_timestamp [16:54:45]File name is /storage/kkm_last_timestamp [16:54:45]Write 4 bytes [16:54:45]NVStorageSaveData done [16:54:45]ExternCall_PrintAddStr [16:54:45]wPrintStart [16:54:45]Write to MH i2c: 01 00 00 7E 34 B2 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 07 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 07 00 7E 34 00 00 00 00 00 FF 0F C7 [16:54:45]RasterBufferAndPrint [16:54:45]line Счет N : (1)458769 [16:54:45]line ИНН: 02508201610067 [16:54:45]line Контрольно-Кассовый Чек [16:54:45]line ПРОДАЖА [16:54:45]line ТРК (МРК, ГНК) : 11 [16:54:45]line Товар: 2710194210 [16:54:45]line ДТ-К-5 [16:54:45]line 13.910 * 71.90 [16:54:45]line = 1000.13 [16:54:45]line НДС 12% НСП 1% [16:54:45]line > о реализуемом товаре [16:54:45]line ОКРУГЛЕНИЕ: -0.13 [16:54:45]line ИТОГО: 1000.00 [16:54:45]line Внесено: 1000.00 [16:54:45]line СДАЧА: 0.00 [16:54:45]line НСП 1% : 8.85 [16:54:45]line НДС 12% : 106.21 [16:54:45]line Наличными: 1000.00 [16:54:45]line Безнал.: 0.00 [16:54:45]line Место: АЗС № 72 "Партнер Нефть" [16:54:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:54:45]line СНО: Общий режим [16:54:45]line Чек 235 13.07.2024 16:54 [16:54:45]line Смена: 446 ФФД: 1.0 [16:54:45]line ЗНМ: 0300000160 [16:54:45]line РНМ: 0000000000090829 [16:54:45]line Версия ККМ: 001 [16:54:45]line ФМ: 0000000000874718 [16:54:45]line ФД: 164675 [16:54:45]line ФПД: 47646095211308 [16:54:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165446&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164675&fm=47646095211308&tin=02508201610067®Number=0000000000090829&sum=100000 [16:54:45]OFD Sender: Processing packet 164675 [packets to send 104, broken 103] [16:54:45]ProducePacketName [16:54:45]name=ofd_packets/00164675 [16:54:45]OFD Sender: To server: pG, [16:54:45]CommunicateWithHost lk.salyk.kg:30040 [16:54:45]ConnectInit lk.salyk.kg [16:54:45]written 0, free lines is 4095 [16:54:45]Connected sock=10 [16:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 FF 04 01 95 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EB 00 00 00 F4 03 04 00 56 B1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 83 02 00 35 04 06 00 2B 55 78 94 7B 2C 0A 9E E6 30 57 C9 AF 32 [16:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D A6 47 00 9B 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 83 02 00 F4 03 04 00 E6 57 92 66 B6 04 01 00 00 30 67 2D 27 6B DD E4 98 [16:54:46]CommunicateWithHost err = 0 [16:54:46]CheckOFDResponse [16:54:46]1017 (14) - 77093643461234 [16:54:46]1041 (16) - 0000000000874718 [16:54:46]1040 (4) - 164675 [16:54:46]1012 (4) - 13.07.2024 10:33 [16:54:46]1206 (1) - 0 [16:54:46]OFD Sender: Remove packet 164675 [16:54:46]ProducePacketName [16:54:46]name=ofd_packets/00164675 [16:54:46]NVStorageDeleteData [16:54:46]Write to MH i2c: 01 00 00 A8 34 DC [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 A8 34 00 00 00 00 00 F2 0C E1 [16:54:46]RasterBufferAndPrint [16:54:46]line [16:54:46]line [16:54:46]line [16:54:46]line [16:54:46]line [16:54:46]written 0, free lines is 3322 [16:54:46]MH_Cut [16:54:46]Write to MH i2c: D1 01 00 AF 34 01 B5 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: D1 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: D1 01 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: D1 01 00 AF 34 00 B4 [16:54:46]Write to MH i2c: 01 00 00 B0 34 E4 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]OFD Sender: No OFD packet to send [16:54:46]*** Cut start [16:54:46]*** Partial cut [16:54:46]*** CUTSNS_PIN = 1 [16:54:46]*** CUTSNS_PIN = 0 [16:54:47]*** Brake cut motor [16:54:47]Read from MH i2c: 01 [16:54:47]MH_I2C_Read... [16:54:47]*** Stop cut motor [16:54:47]*** Cut end [16:54:47]Read from MH i2c: 01 07 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 07 00 B0 34 00 00 00 00 00 FF 0F F9 [16:54:47]process_action close_receipt done [16:54:47]requested_data is exist [16:54:47]produce_requested_data [16:54:47]requested_item fm.sn is exist - process it [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 11 00 00 [16:54:47]Write to MH i2c: E2 08 00 B1 34 80 11 00 00 00 00 00 00 5F [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 17 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 17 00 B1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [16:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:54:47]wFMCommunicate OK [16:54:47]requested_item fd.num is exist - process it [16:54:47]SAM_PROTO_GetFieldsCounters [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 13 00 00 [16:54:47]Write to MH i2c: E2 08 00 B2 34 80 13 00 00 00 00 00 00 62 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 62 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 62 00 B2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetFieldsCounters done [16:54:47]requested_item shift.num is exist - process it [16:54:47]requested_item shift.opened is exist - process it [16:54:47]req_shift_opened [16:54:47]FM_GetShiftState [16:54:47]SAM_PROTO_GetShiftState [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 13 01 00 [16:54:47]Write to MH i2c: E2 08 00 B3 34 80 13 01 00 00 00 00 00 64 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 B3 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 45 [16:54:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetShiftState done [16:54:47]FM_GetShiftState done [16:54:47]req_shift_opened done [16:54:47]requested_item shift.open_date is exist - process it [16:54:47]req_shift_open_date [16:54:47]req_shift_open_date done [16:54:47]produce_requested_data done [16:54:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164675,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:54:47]process_action_free close_receipt [16:54:47]json_value_free [16:54:47]json_value_free done [16:54:47]process_json_proto returns [16:54:47]Send response to host [16:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164675,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:54:47]free response buf [16:54:47]execute_script done [16:54:47]execute_script returns [16:54:47]free content buf [16:54:47]Sock 7.Close socket [16:54:47]Sock 7.Thread stoped [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:39]accept exits with 9 [16:58:39]New connection [16:58:39]New thread 3067149668 created [16:58:39]Thread 3067293028 joined [16:58:39]Waiting for new connection... [16:58:39] Sock 9.Parse request [16:58:39]Sock 9.Check first char [16:58:39]Sock 9.First char is OK [16:58:39]request: POST /json_proto HTTP/1.0 [16:58:39]Method: POST [16:58:39]URL: /json_proto [16:58:39]Method is POST - this is cgi request [16:58:39]url: /json_proto [16:58:39]query_string will be loaded in cgi processing [16:58:39]execute_cgi json_proto POST (null) [16:58:39]execute_cgi path=json_proto method=POST [16:58:39]POST find Content-Length [16:58:39]Host: 172.17.56.4:8080 [16:58:39]Content-Length: 677 [16:58:39]Content-Type: application/json [16:58:39] [16:58:39]POST finish read [16:58:39]Found Content-Length = 677 [16:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.000, "sum" : 460.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:39]execute_script... [16:58: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)458770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.000, "sum" : 460.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:39]POST & json_proto [16:58:39]process_json_proto [16:58:39]json parsed OK: [16:58:39]protocol is kg_v1.0 [16:58:39]action value=close_receipt [16:58:39]process_action close_receipt [16:58:39]cmd_close_receipt [16:58:39]MH_GetDate [16:58:39]Write to MH i2c: F0 00 00 B4 34 D7 [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: F0 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: F0 09 00 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: F0 09 00 B4 34 00 42 B2 92 66 C9 DC B2 64 87 [16:58:39]GetLastDocTimeStamp 1720889686 [16:58:39]current date 1720889922 [16:58:39]FM_GetShiftState [16:58:39]SAM_PROTO_GetShiftState [16:58:39]wFMCommunicate request_size=4 [16:58:39]MH_SAM_APDU [16:58:39]CAPDU: 80 13 01 00 [16:58:39]Write to MH i2c: E2 08 00 B5 34 80 13 01 00 00 00 00 00 66 [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:39]Read from MH i2c: E2 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: E2 0E 00 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: E2 0E 00 B5 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [16:58:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:58:39]wFMCommunicate OK [16:58:39]SAM_PROTO_GetShiftState done [16:58:39]FM_GetShiftState done [16:58:39]opened in 1720831249 [16:58:39]opened+sec_in_day 1720917649 [16:58:39]quantity*price = 46060 [16:58:39]sum+1 = 46061 [16:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.08 НДС 12% : 48.91 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 236 13.07.2024 16:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164676 ФПД: 158931267192900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164676&fm=158931267192900&tin=02508201610067®Number=0000000000090829&sum=46000 [16:58:41]StoreToDocumentArchive [16:58:41]shift 446 fd 164676 [16:58:41]save to /storage/0446/doc_00164676 [16:58:41]save last doc name /storage/0446/doc_00164676 to /storage/kkm_last_doc_name [16:58:41]save OK [16:58:41]Clear old archive folders... [16:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:41]tlvbuf is 014B9B60 [16:58:41]SAM_PROTO_ClearQueue [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 09 00 00 [16:58:41]Write to MH i2c: E2 08 00 C2 34 80 09 00 00 00 00 00 00 68 [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [16:58:41]RAPDU: 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_ClearQueue done [16:58:41]KKMCreateOFDPacket [16:58:41]OFDProtocolAddRootSTLVToBuf [16:58:41]FM_MakeSignedData [16:58:41]FM_MakeSignedData [16:58:41]SAM_PROTO_SignData [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 0D 01 02 [16:58:41]Write to MH i2c: E2 08 00 C3 34 80 0D 01 02 00 00 00 00 70 [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [16:58:41]RAPDU: 90 00 [16:58:41]wFMCommunicate OK [16:58:41]wFMCommunicate request_size=255 [16:58:41]MH_SAM_APDU [16:58: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 58 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EC B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 42 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 83 02 00 35 04 06 00 90 [16:58:41]Write to MH i2c: E2 02 01 C4 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EC B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 42 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 83 02 00 35 04 06 00 90 00 00 DC [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 C4 34 00 90 00 6C [16:58:41]RAPDU: 90 00 [16:58:41]wFMCommunicate OK [16:58:41]wFMCommunicate request_size=10 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 0D 02 02 05 8C 11 B9 88 44 [16:58:41]Write to MH i2c: E2 0D 00 C5 34 80 0D 02 02 05 00 8C 11 B9 88 44 00 00 9F [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 03 00 C5 34 00 90 00 6D [16:58:41]RAPDU: 90 00 [16:58:41]wFMCommunicate OK [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 0D 03 02 [16:58:41]Write to MH i2c: E2 08 00 C6 34 80 0D 03 02 00 00 00 00 75 [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0B 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 0B 00 C6 34 00 72 29 55 33 6D 3A 10 D8 90 00 28 [16:58:41]RAPDU: 72 29 55 33 6D 3A 10 D8 90 00 [16:58:41]wFMCommunicate OK [16:58:41]SAM_PROTO_SignData done [16:58:41]FM_MakeSignedData done [16:58:41]CreateOFDProtocolMessage [16:58:41]wFMCommunicate request_size=4 [16:58:41]MH_SAM_APDU [16:58:41]CAPDU: 80 11 00 00 [16:58:41]Write to MH i2c: E2 08 00 C7 34 80 11 00 00 00 00 00 00 75 [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:41]Read from MH i2c: E2 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 17 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: E2 17 00 C7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [16:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:58:41]wFMCommunicate OK [16:58:41]CreateOFDProtocolMessage done [16:58:41]OFDSenderStorePacket 164676 [16:58:41]StoreOFDPacket docnum=164676 [16:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 4E 07 01 03 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EC B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 42 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 83 02 00 35 04 06 00 90 8C 11 B9 88 44 72 29 55 33 6D 3A 10 D8 [16:58:41]CheckFolder [16:58:41]dirname=/storage/ofd_packets [16:58:41]CheckFolder done [16:58:41]ProducePacketName [16:58:41]name=ofd_packets/00164676 [16:58:41]NVStorageSaveData ofd_packets/00164676 [16:58:41]File name is /storage/ofd_packets/00164676 [16:58:41]Write 301 bytes [16:58:41]NVStorageSaveData done [16:58:41]OFDSenderStorePacket done [16:58:41]KKMCreateOFDPacket done [16:58:41]NVStorageSaveData kkm_last_timestamp [16:58:41]File name is /storage/kkm_last_timestamp [16:58:41]Write 4 bytes [16:58:41]NVStorageSaveData done [16:58:41]ExternCall_PrintAddStr [16:58:41]wPrintStart [16:58:41]Write to MH i2c: 01 00 00 C8 34 FC [16:58:41]Write i2c OK [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: 01 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: 01 07 00 [16:58:41]MH_I2C_Read... [16:58:41]Read from MH i2c: 01 07 00 C8 34 00 00 00 00 00 FF 0F 11 [16:58:41]RasterBufferAndPrint [16:58:41]line Счет N : (1)458770 [16:58:41]line ИНН: 02508201610067 [16:58:41]line Контрольно-Кассовый Чек [16:58:41]line ПРОДАЖА [16:58:41]line ТРК (МРК, ГНК) : 22 [16:58:41]line Товар: 2710124130 [16:58:41]line Аи-92-К-5 [16:58:41]line 7.000 * 65.80 [16:58:41]line = 460.60 [16:58:41]line НДС 12% НСП 1% [16:58:41]line > о реализуемом товаре [16:58:41]line ОКРУГЛЕНИЕ: -0.60 [16:58:41]line ИТОГО: 460.00 [16:58:41]line Внесено: 460.00 [16:58:41]line СДАЧА: 0.00 [16:58:41]line НСП 1% : 4.08 [16:58:41]line НДС 12% : 48.91 [16:58:41]line Наличными: 460.00 [16:58:41]line Безнал.: 0.00 [16:58:41]line Место: АЗС № 72 "Партнер Нефть" [16:58:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:58:41]line СНО: Общий режим [16:58:41]line Чек 236 13.07.2024 16:58 [16:58:41]line Смена: 446 ФФД: 1.0 [16:58:41]line ЗНМ: 0300000160 [16:58:41]line РНМ: 0000000000090829 [16:58:41]line Версия ККМ: 001 [16:58:41]line ФМ: 0000000000874718 [16:58:41]line ФД: 164676 [16:58:41]line ФПД: 158931267192900 [16:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164676&fm=158931267192900&tin=02508201610067®Number=0000000000090829&sum=46000 [16:58:41]OFD Sender: Processing packet 164676 [packets to send 104, broken 103] [16:58:41]ProducePacketName [16:58:41]name=ofd_packets/00164676 [16:58:41]OFD Sender: To server: pG, [16:58:41]CommunicateWithHost lk.salyk.kg:30040 [16:58:41]ConnectInit lk.salyk.kg [16:58:41]written 0, free lines is 4095 [16:58:42]Connected sock=10 [16:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 4E 07 01 03 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EC B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 42 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 83 02 00 35 04 06 00 90 8C 11 B9 88 44 72 29 55 33 6D 3A 10 D8 [16:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D 6C 47 00 D8 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 83 02 00 F4 03 04 00 D3 58 92 66 B6 04 01 00 00 AA 32 DA 0C 9F 8E 2B 4F [16:58:42]CommunicateWithHost err = 0 [16:58:42]CheckOFDResponse [16:58:42]1017 (14) - 77093643461234 [16:58:42]1041 (16) - 0000000000874718 [16:58:42]1040 (4) - 164676 [16:58:42]1012 (4) - 13.07.2024 10:37 [16:58:42]1206 (1) - 0 [16:58:42]OFD Sender: Remove packet 164676 [16:58:42]ProducePacketName [16:58:42]name=ofd_packets/00164676 [16:58:42]NVStorageDeleteData [16:58:42]Write to MH i2c: 01 00 00 F2 34 26 [16:58:42]Write i2c OK [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: 01 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: 01 07 00 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: 01 07 00 F2 34 00 00 00 00 00 0C 0D 46 [16:58:42]RasterBufferAndPrint [16:58:42]line [16:58:42]line [16:58:42]line [16:58:42]line [16:58:42]line [16:58:42]written 0, free lines is 3346 [16:58:42]MH_Cut [16:58:42]Write to MH i2c: D1 01 00 F9 34 01 FF [16:58:42]Write i2c OK [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: D1 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: D1 01 00 [16:58:42]MH_I2C_Read... [16:58:42]Read from MH i2c: D1 01 00 F9 34 00 FE [16:58:42]Write to MH i2c: 01 00 00 FA 34 2E [16:58:42]Write i2c OK [16:58:42]MH_I2C_Read... [16:58:42]OFD Sender: No OFD packet to send [16:58:43]*** Cut start [16:58:43]*** Partial cut [16:58:43]*** CUTSNS_PIN = 1 [16:58:43]*** CUTSNS_PIN = 0 [16:58:43]*** Brake cut motor [16:58:43]Read from MH i2c: 01 [16:58:43]MH_I2C_Read... [16:58:43]*** Stop cut motor [16:58:43]*** Cut end [16:58:43]Read from MH i2c: 01 07 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: 01 07 00 FA 34 00 00 00 00 00 FF 0F 43 [16:58:43]process_action close_receipt done [16:58:43]requested_data is exist [16:58:43]produce_requested_data [16:58:43]requested_item fm.sn is exist - process it [16:58:43]wFMCommunicate request_size=4 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 11 00 00 [16:58:43]Write to MH i2c: E2 08 00 FB 34 80 11 00 00 00 00 00 00 A9 [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:43]Read from MH i2c: E2 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 17 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 17 00 FB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [16:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:58:43]wFMCommunicate OK [16:58:43]requested_item fd.num is exist - process it [16:58:43]SAM_PROTO_GetFieldsCounters [16:58:43]wFMCommunicate request_size=4 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 13 00 00 [16:58:43]Write to MH i2c: E2 08 00 FC 34 80 13 00 00 00 00 00 00 AC [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:43]Read from MH i2c: E2 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 62 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 62 00 FC 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:43]wFMCommunicate OK [16:58:43]SAM_PROTO_GetFieldsCounters done [16:58:43]requested_item shift.num is exist - process it [16:58:43]requested_item shift.opened is exist - process it [16:58:43]req_shift_opened [16:58:43]FM_GetShiftState [16:58:43]SAM_PROTO_GetShiftState [16:58:43]wFMCommunicate request_size=4 [16:58:43]MH_SAM_APDU [16:58:43]CAPDU: 80 13 01 00 [16:58:43]Write to MH i2c: E2 08 00 FD 34 80 13 01 00 00 00 00 00 AE [16:58:43]Write i2c OK [16:58:43]MH_I2C_Read... [16:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:43]Read from MH i2c: E2 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 0E 00 [16:58:43]MH_I2C_Read... [16:58:43]Read from MH i2c: E2 0E 00 FD 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8F [16:58:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [16:58:43]wFMCommunicate OK [16:58:43]SAM_PROTO_GetShiftState done [16:58:43]FM_GetShiftState done [16:58:43]req_shift_opened done [16:58:43]requested_item shift.open_date is exist - process it [16:58:43]req_shift_open_date [16:58:43]req_shift_open_date done [16:58:43]produce_requested_data done [16:58:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164676,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [16:58:43]process_action_free close_receipt [16:58:43]json_value_free [16:58:43]json_value_free done [16:58:43]process_json_proto returns [16:58:43]Send response to host [16:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164676,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [16:58:43]free response buf [16:58:43]execute_script done [16:58:43]execute_script returns [16:58:43]free content buf [16:58:43]Sock 9.Close socket [16:58:43]Sock 9.Thread stoped [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]accept exits with 7 [17:01:27]New connection [17:01:27]New thread 3067293028 created [17:01:27]Thread 3067149668 joined [17:01:27]Waiting for new connection... [17:01:27] Sock 7.Parse request [17:01:27]Sock 7.Check first char [17:01:27]Sock 7.First char is OK [17:01:27]request: POST /json_proto HTTP/1.0 [17:01:27]Method: POST [17:01:27]URL: /json_proto [17:01:27]Method is POST - this is cgi request [17:01:27]url: /json_proto [17:01:27]query_string will be loaded in cgi processing [17:01:27]execute_cgi json_proto POST (null) [17:01:27]execute_cgi path=json_proto method=POST [17:01:27]POST find Content-Length [17:01:27]Host: 172.17.56.4:8080 [17:01:27]Content-Length: 677 [17:01:27]Content-Type: application/json [17:01:27] [17:01:27]POST finish read [17:01:27]Found Content-Length = 677 [17:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:27]execute_script... [17:01: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)458771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:27]POST & json_proto [17:01:27]process_json_proto [17:01:27]json parsed OK: [17:01:27]protocol is kg_v1.0 [17:01:27]action value=close_receipt [17:01:27]process_action close_receipt [17:01:27]cmd_close_receipt [17:01:27]MH_GetDate [17:01:27]Write to MH i2c: F0 00 00 FE 34 21 [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: F0 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: F0 09 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: F0 09 00 FE 34 00 E9 B2 92 66 C9 DC B2 64 78 [17:01:27]GetLastDocTimeStamp 1720889922 [17:01:27]current date 1720890089 [17:01:27]FM_GetShiftState [17:01:27]SAM_PROTO_GetShiftState [17:01:27]wFMCommunicate request_size=4 [17:01:27]MH_SAM_APDU [17:01:27]CAPDU: 80 13 01 00 [17:01:27]Write to MH i2c: E2 08 00 FF 34 80 13 01 00 00 00 00 00 B0 [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:27]Read from MH i2c: E2 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 0E 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 0E 00 FF 34 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 91 [17:01:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:01:27]wFMCommunicate OK [17:01:27]SAM_PROTO_GetShiftState done [17:01:27]FM_GetShiftState done [17:01:27]opened in 1720831249 [17:01:27]opened+sec_in_day 1720917649 [17:01:27]quantity*price = 50008 [17:01:27]sum+1 = 50009 [17:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 237 13.07.2024 17:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164677 ФПД: 62681864011078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170129&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164677&fm=62681864011078&tin=02508201610067®Number=0000000000090829&sum=50000 [17:01:28]StoreToDocumentArchive [17:01:28]shift 446 fd 164677 [17:01:28]save to /storage/0446/doc_00164677 [17:01:28]save last doc name /storage/0446/doc_00164677 to /storage/kkm_last_doc_name [17:01:28]save OK [17:01:28]Clear old archive folders... [17:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:28]tlvbuf is 0146B620 [17:01:28]SAM_PROTO_ClearQueue [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 09 00 00 [17:01:28]Write to MH i2c: E2 08 00 0C 35 80 09 00 00 00 00 00 00 B3 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]SAM_PROTO_ClearQueue done [17:01:28]KKMCreateOFDPacket [17:01:28]OFDProtocolAddRootSTLVToBuf [17:01:28]FM_MakeSignedData [17:01:28]FM_MakeSignedData [17:01:28]SAM_PROTO_SignData [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 0D 01 02 [17:01:28]Write to MH i2c: E2 08 00 0D 35 80 0D 01 02 00 00 00 00 BB [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]wFMCommunicate request_size=255 [17:01:28]MH_SAM_APDU [17:01: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 ED 00 00 00 F4 03 04 00 E9 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 83 02 00 35 04 06 00 39 [17:01:28]Write to MH i2c: E2 02 01 0E 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 ED 00 00 00 F4 03 04 00 E9 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 83 02 00 35 04 06 00 39 00 00 76 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]wFMCommunicate request_size=10 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 0D 02 02 05 02 42 3C FD 46 [17:01:28]Write to MH i2c: E2 0D 00 0F 35 80 0D 02 02 05 00 02 42 3C FD 46 00 00 8B [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 0F 35 00 90 00 B8 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 0D 03 02 [17:01:28]Write to MH i2c: E2 08 00 10 35 80 0D 03 02 00 00 00 00 C0 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 0B 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 0B 00 10 35 00 C0 DF D4 4D 5F 3A 3A 97 90 00 EB [17:01:28]RAPDU: C0 DF D4 4D 5F 3A 3A 97 90 00 [17:01:28]wFMCommunicate OK [17:01:28]SAM_PROTO_SignData done [17:01:28]FM_MakeSignedData done [17:01:28]CreateOFDProtocolMessage [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 11 00 00 [17:01:28]Write to MH i2c: E2 08 00 11 35 80 11 00 00 00 00 00 00 C0 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 17 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 17 00 11 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [17:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:01:28]wFMCommunicate OK [17:01:28]CreateOFDProtocolMessage done [17:01:28]OFDSenderStorePacket 164677 [17:01:28]StoreOFDPacket docnum=164677 [17:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 3C 07 01 83 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 ED 00 00 00 F4 03 04 00 E9 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 83 02 00 35 04 06 00 39 02 42 3C FD 46 C0 DF D4 4D 5F 3A 3A 97 [17:01:28]CheckFolder [17:01:28]dirname=/storage/ofd_packets [17:01:28]CheckFolder done [17:01:28]ProducePacketName [17:01:28]name=ofd_packets/00164677 [17:01:28]NVStorageSaveData ofd_packets/00164677 [17:01:28]File name is /storage/ofd_packets/00164677 [17:01:28]Write 301 bytes [17:01:28]NVStorageSaveData done [17:01:28]OFDSenderStorePacket done [17:01:28]KKMCreateOFDPacket done [17:01:28]NVStorageSaveData kkm_last_timestamp [17:01:28]File name is /storage/kkm_last_timestamp [17:01:28]Write 4 bytes [17:01:28]NVStorageSaveData done [17:01:28]ExternCall_PrintAddStr [17:01:28]wPrintStart [17:01:28]Write to MH i2c: 01 00 00 12 35 47 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 07 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 07 00 12 35 00 00 00 00 00 FF 0F 5C [17:01:28]RasterBufferAndPrint [17:01:28]line Счет N : (1)458771 [17:01:28]line ИНН: 02508201610067 [17:01:28]line Контрольно-Кассовый Чек [17:01:28]line ПРОДАЖА [17:01:28]line ТРК (МРК, ГНК) : 12 [17:01:28]line Товар: 2710124130 [17:01:28]line Аи-92-К-5 [17:01:28]line 7.600 * 65.80 [17:01:28]line = 500.08 [17:01:28]line НДС 12% НСП 1% [17:01:28]line > о реализуемом товаре [17:01:28]line ОКРУГЛЕНИЕ: -0.08 [17:01:28]line ИТОГО: 500.00 [17:01:28]line Внесено: 500.00 [17:01:28]line СДАЧА: 0.00 [17:01:28]line НСП 1% : 4.42 [17:01:28]line НДС 12% : 53.11 [17:01:28]line Наличными: 500.00 [17:01:28]line Безнал.: 0.00 [17:01:28]line Место: АЗС № 72 "Партнер Нефть" [17:01:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:01:28]line СНО: Общий режим [17:01:28]line Чек 237 13.07.2024 17:01 [17:01:28]line Смена: 446 ФФД: 1.0 [17:01:28]line ЗНМ: 0300000160 [17:01:28]line РНМ: 0000000000090829 [17:01:28]line Версия ККМ: 001 [17:01:28]line ФМ: 0000000000874718 [17:01:28]line ФД: 164677 [17:01:28]line ФПД: 62681864011078 [17:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170129&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164677&fm=62681864011078&tin=02508201610067®Number=0000000000090829&sum=50000 [17:01:29]OFD Sender: Processing packet 164677 [packets to send 104, broken 103] [17:01:29]ProducePacketName [17:01:29]name=ofd_packets/00164677 [17:01:29]OFD Sender: To server: pG, [17:01:29]CommunicateWithHost lk.salyk.kg:30040 [17:01:29]ConnectInit lk.salyk.kg [17:01:29]written 0, free lines is 4095 [17:01:29]Connected sock=10 [17:01:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 3C 07 01 83 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 ED 00 00 00 F4 03 04 00 E9 B2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 83 02 00 35 04 06 00 39 02 42 3C FD 46 C0 DF D4 4D 5F 3A 3A 97 [17:01:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 83 B3 47 00 10 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 34 37 31 38 10 04 04 00 45 83 02 00 F4 03 04 00 7A 59 92 66 B6 04 01 00 00 08 34 FD 5D 2B 87 1C 7F [17:01:29]CommunicateWithHost err = 0 [17:01:29]CheckOFDResponse [17:01:29]1017 (14) - 77093643461234 [17:01:29]1041 (16) - 0000000000874718 [17:01:29]1040 (4) - 164677 [17:01:29]1012 (4) - 13.07.2024 10:39 [17:01:29]1206 (1) - 0 [17:01:29]OFD Sender: Remove packet 164677 [17:01:29]ProducePacketName [17:01:29]name=ofd_packets/00164677 [17:01:29]NVStorageDeleteData [17:01:29]Write to MH i2c: 01 00 00 3C 35 71 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 07 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 07 00 3C 35 00 00 00 00 00 F0 0C 74 [17:01:29]RasterBufferAndPrint [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]written 0, free lines is 3318 [17:01:29]MH_Cut [17:01:29]Write to MH i2c: D1 01 00 43 35 01 4A [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 01 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 01 00 43 35 00 49 [17:01:29]Write to MH i2c: 01 00 00 44 35 79 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]OFD Sender: No OFD packet to send [17:01:30]*** Cut start [17:01:30]*** Partial cut [17:01:30]*** CUTSNS_PIN = 1 [17:01:30]*** CUTSNS_PIN = 0 [17:01:30]*** Brake cut motor [17:01:30]Read from MH i2c: 01 [17:01:30]MH_I2C_Read... [17:01:30]*** Stop cut motor [17:01:30]*** Cut end [17:01:30]Read from MH i2c: 01 07 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: 01 07 00 44 35 00 00 00 00 00 FF 0F 8E [17:01:30]process_action close_receipt done [17:01:30]requested_data is exist [17:01:30]produce_requested_data [17:01:30]requested_item fm.sn is exist - process it [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 11 00 00 [17:01:30]Write to MH i2c: E2 08 00 45 35 80 11 00 00 00 00 00 00 F4 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 17 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 17 00 45 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [17:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:01:30]wFMCommunicate OK [17:01:30]requested_item fd.num is exist - process it [17:01:30]SAM_PROTO_GetFieldsCounters [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 13 00 00 [17:01:30]Write to MH i2c: E2 08 00 46 35 80 13 00 00 00 00 00 00 F7 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 62 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 62 00 46 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:31]wFMCommunicate OK [17:01:31]SAM_PROTO_GetFieldsCounters done [17:01:31]requested_item shift.num is exist - process it [17:01:31]requested_item shift.opened is exist - process it [17:01:31]req_shift_opened [17:01:31]FM_GetShiftState [17:01:31]SAM_PROTO_GetShiftState [17:01:31]wFMCommunicate request_size=4 [17:01:31]MH_SAM_APDU [17:01:31]CAPDU: 80 13 01 00 [17:01:31]Write to MH i2c: E2 08 00 47 35 80 13 01 00 00 00 00 00 F9 [17:01:31]Write i2c OK [17:01:31]MH_I2C_Read... [17:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:31]Read from MH i2c: E2 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 0E 00 [17:01:31]MH_I2C_Read... [17:01:31]Read from MH i2c: E2 0E 00 47 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DA [17:01:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:01:31]wFMCommunicate OK [17:01:31]SAM_PROTO_GetShiftState done [17:01:31]FM_GetShiftState done [17:01:31]req_shift_opened done [17:01:31]requested_item shift.open_date is exist - process it [17:01:31]req_shift_open_date [17:01:31]req_shift_open_date done [17:01:31]produce_requested_data done [17:01:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164677,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:01:31]process_action_free close_receipt [17:01:31]json_value_free [17:01:31]json_value_free done [17:01:31]process_json_proto returns [17:01:31]Send response to host [17:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164677,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:01:31]free response buf [17:01:31]execute_script done [17:01:31]execute_script returns [17:01:31]free content buf [17:01:31]Sock 7.Close socket [17:01:31]Sock 7.Thread stoped [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:50]accept exits with 9 [17:04:50]New connection [17:04:50]New thread 3067149668 created [17:04:50]Thread 3067293028 joined [17:04:50]Waiting for new connection... [17:04:50] Sock 9.Parse request [17:04:50]Sock 9.Check first char [17:04:50]Sock 9.First char is OK [17:04:50]request: POST /json_proto HTTP/1.0 [17:04:50]Method: POST [17:04:50]URL: /json_proto [17:04:50]Method is POST - this is cgi request [17:04:50]url: /json_proto [17:04:50]query_string will be loaded in cgi processing [17:04:50]execute_cgi json_proto POST (null) [17:04:50]execute_cgi path=json_proto method=POST [17:04:50]POST find Content-Length [17:04:50]Host: 172.17.56.4:8080 [17:04:50]Content-Length: 677 [17:04:50]Content-Type: application/json [17:04:50] [17:04:50]POST finish read [17:04:50]Found Content-Length = 677 [17:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:50]execute_script... [17:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:50]POST & json_proto [17:04:50]process_json_proto [17:04:50]json parsed OK: [17:04:50]protocol is kg_v1.0 [17:04:50]action value=close_receipt [17:04:50]process_action close_receipt [17:04:50]cmd_close_receipt [17:04:50]MH_GetDate [17:04:50]Write to MH i2c: F0 00 00 48 35 6C [17:04:50]Write i2c OK [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: F0 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: F0 09 00 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: F0 09 00 48 35 00 B5 B3 92 66 C9 DC B2 64 90 [17:04:50]GetLastDocTimeStamp 1720890089 [17:04:50]current date 1720890293 [17:04:50]FM_GetShiftState [17:04:50]SAM_PROTO_GetShiftState [17:04:50]wFMCommunicate request_size=4 [17:04:50]MH_SAM_APDU [17:04:50]CAPDU: 80 13 01 00 [17:04:50]Write to MH i2c: E2 08 00 49 35 80 13 01 00 00 00 00 00 FB [17:04:50]Write i2c OK [17:04:50]MH_I2C_Read... [17:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:50]Read from MH i2c: E2 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: E2 0E 00 [17:04:50]MH_I2C_Read... [17:04:50]Read from MH i2c: E2 0E 00 49 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DC [17:04:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:04:50]wFMCommunicate OK [17:04:50]SAM_PROTO_GetShiftState done [17:04:50]FM_GetShiftState done [17:04:50]opened in 1720831249 [17:04:50]opened+sec_in_day 1720917649 [17:04:50]quantity*price = 50008 [17:04:50]sum+1 = 50009 [17:04:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 238 13.07.2024 17:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164678 ФПД: 97665986946429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170453&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164678&fm=97665986946429&tin=02508201610067®Number=0000000000090829&sum=50000 [17:04:51]StoreToDocumentArchive [17:04:51]shift 446 fd 164678 [17:04:51]save to /storage/0446/doc_00164678 [17:04:51]save last doc name /storage/0446/doc_00164678 to /storage/kkm_last_doc_name [17:04:51]save OK [17:04:51]Clear old archive folders... [17:04:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:51]tlvbuf is 01412590 [17:04:51]SAM_PROTO_ClearQueue [17:04:51]wFMCommunicate request_size=4 [17:04:51]MH_SAM_APDU [17:04:51]CAPDU: 80 09 00 00 [17:04:51]Write to MH i2c: E2 08 00 56 35 80 09 00 00 00 00 00 00 FD [17:04:51]Write i2c OK [17:04:51]MH_I2C_Read... [17:04:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:51]Read from MH i2c: E2 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: E2 03 00 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [17:04:51]RAPDU: 90 00 [17:04:51]wFMCommunicate OK [17:04:51]SAM_PROTO_ClearQueue done [17:04:51]KKMCreateOFDPacket [17:04:51]OFDProtocolAddRootSTLVToBuf [17:04:51]FM_MakeSignedData [17:04:51]FM_MakeSignedData [17:04:51]SAM_PROTO_SignData [17:04:51]wFMCommunicate request_size=4 [17:04:51]MH_SAM_APDU [17:04:51]CAPDU: 80 0D 01 02 [17:04:51]Write to MH i2c: E2 08 00 57 35 80 0D 01 02 00 00 00 00 05 [17:04:51]Write i2c OK [17:04:51]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=255 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 B5 B3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 83 02 00 35 04 06 00 58 [17:04:52]Write to MH i2c: E2 02 01 58 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 B5 B3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 83 02 00 35 04 06 00 58 00 00 AE [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=10 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 02 02 05 D3 A2 75 65 7D [17:04:52]Write to MH i2c: E2 0D 00 59 35 80 0D 02 02 05 00 D3 A2 75 65 7D 00 00 DE [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 59 35 00 90 00 02 [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 03 02 [17:04:52]Write to MH i2c: E2 08 00 5A 35 80 0D 03 02 00 00 00 00 0A [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0B 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0B 00 5A 35 00 93 73 0C 99 B1 65 D5 55 90 00 F6 [17:04:52]RAPDU: 93 73 0C 99 B1 65 D5 55 90 00 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_SignData done [17:04:52]FM_MakeSignedData done [17:04:52]CreateOFDProtocolMessage [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 11 00 00 [17:04:52]Write to MH i2c: E2 08 00 5B 35 80 11 00 00 00 00 00 00 0A [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 5B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [17:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:04:52]wFMCommunicate OK [17:04:52]CreateOFDProtocolMessage done [17:04:52]OFDSenderStorePacket 164678 [17:04:52]StoreOFDPacket docnum=164678 [17:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 C1 07 01 F1 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 B5 B3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 83 02 00 35 04 06 00 58 D3 A2 75 65 7D 93 73 0C 99 B1 65 D5 55 [17:04:52]CheckFolder [17:04:52]dirname=/storage/ofd_packets [17:04:52]CheckFolder done [17:04:52]ProducePacketName [17:04:52]name=ofd_packets/00164678 [17:04:52]NVStorageSaveData ofd_packets/00164678 [17:04:52]File name is /storage/ofd_packets/00164678 [17:04:52]Write 301 bytes [17:04:52]NVStorageSaveData done [17:04:52]OFDSenderStorePacket done [17:04:52]KKMCreateOFDPacket done [17:04:52]NVStorageSaveData kkm_last_timestamp [17:04:52]File name is /storage/kkm_last_timestamp [17:04:52]Write 4 bytes [17:04:52]NVStorageSaveData done [17:04:52]ExternCall_PrintAddStr [17:04:52]wPrintStart [17:04:52]Write to MH i2c: 01 00 00 5C 35 91 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 07 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 07 00 5C 35 00 00 00 00 00 FF 0F A6 [17:04:52]RasterBufferAndPrint [17:04:52]line Счет N : (1)458772 [17:04:52]line ИНН: 02508201610067 [17:04:52]line Контрольно-Кассовый Чек [17:04:52]line ПРОДАЖА [17:04:52]line ТРК (МРК, ГНК) : 12 [17:04:52]line Товар: 2710124130 [17:04:52]line Аи-92-К-5 [17:04:52]line 7.600 * 65.80 [17:04:52]line = 500.08 [17:04:52]line НДС 12% НСП 1% [17:04:52]line > о реализуемом товаре [17:04:52]line ОКРУГЛЕНИЕ: -0.08 [17:04:52]line ИТОГО: 500.00 [17:04:52]line Внесено: 500.00 [17:04:52]line СДАЧА: 0.00 [17:04:52]line НСП 1% : 4.42 [17:04:52]line НДС 12% : 53.11 [17:04:52]line Наличными: 500.00 [17:04:52]line Безнал.: 0.00 [17:04:52]line Место: АЗС № 72 "Партнер Нефть" [17:04:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:04:52]line СНО: Общий режим [17:04:52]line Чек 238 13.07.2024 17:04 [17:04:52]line Смена: 446 ФФД: 1.0 [17:04:52]line ЗНМ: 0300000160 [17:04:52]line РНМ: 0000000000090829 [17:04:52]line Версия ККМ: 001 [17:04:52]line ФМ: 0000000000874718 [17:04:52]line ФД: 164678 [17:04:52]line ФПД: 97665986946429 [17:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170453&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164678&fm=97665986946429&tin=02508201610067®Number=0000000000090829&sum=50000 [17:04:52]written 0, free lines is 4095 [17:04:52]OFD Sender: Processing packet 164678 [packets to send 104, broken 103] [17:04:52]ProducePacketName [17:04:52]name=ofd_packets/00164678 [17:04:52]OFD Sender: To server: pG, [17:04:52]CommunicateWithHost lk.salyk.kg:30040 [17:04:52]ConnectInit lk.salyk.kg [17:04:52]Connected sock=10 [17:04:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 C1 07 01 F1 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EE 00 00 00 F4 03 04 00 B5 B3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 83 02 00 35 04 06 00 58 D3 A2 75 65 7D 93 73 0C 99 B1 65 D5 55 [17:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 08 47 00 A1 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 83 02 00 F4 03 04 00 46 5A 92 66 B6 04 01 00 00 FF F9 49 11 AE 56 5A 37 [17:04:53]CommunicateWithHost err = 0 [17:04:53]CheckOFDResponse [17:04:53]1017 (14) - 77093643461234 [17:04:53]1041 (16) - 0000000000874718 [17:04:53]1040 (4) - 164678 [17:04:53]1012 (4) - 13.07.2024 10:43 [17:04:53]1206 (1) - 0 [17:04:53]OFD Sender: Remove packet 164678 [17:04:53]ProducePacketName [17:04:53]name=ofd_packets/00164678 [17:04:53]NVStorageDeleteData [17:04:53]Write to MH i2c: 01 00 00 86 35 BB [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 07 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 07 00 86 35 00 00 00 00 00 F5 0C C3 [17:04:53]RasterBufferAndPrint [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]written 0, free lines is 3324 [17:04:53]MH_Cut [17:04:53]Write to MH i2c: D1 01 00 8D 35 01 94 [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: D1 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: D1 01 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: D1 01 00 8D 35 00 93 [17:04:53]Write to MH i2c: 01 00 00 8E 35 C3 [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]OFD Sender: No OFD packet to send [17:04:53]*** Cut start [17:04:53]*** Partial cut [17:04:53]*** CUTSNS_PIN = 1 [17:04:53]*** CUTSNS_PIN = 0 [17:04:54]*** Brake cut motor [17:04:54]Read from MH i2c: 01 [17:04:54]MH_I2C_Read... [17:04:54]*** Stop cut motor [17:04:54]*** Cut end [17:04:54]Read from MH i2c: 01 07 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 FF 0F D8 [17:04:54]process_action close_receipt done [17:04:54]requested_data is exist [17:04:54]produce_requested_data [17:04:54]requested_item fm.sn is exist - process it [17:04:54]wFMCommunicate request_size=4 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 11 00 00 [17:04:54]Write to MH i2c: E2 08 00 8F 35 80 11 00 00 00 00 00 00 3E [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 17 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 17 00 8F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [17:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:04:54]wFMCommunicate OK [17:04:54]requested_item fd.num is exist - process it [17:04:54]SAM_PROTO_GetFieldsCounters [17:04:54]wFMCommunicate request_size=4 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 13 00 00 [17:04:54]Write to MH i2c: E2 08 00 90 35 80 13 00 00 00 00 00 00 41 [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 62 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 62 00 90 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [17:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:54]wFMCommunicate OK [17:04:54]SAM_PROTO_GetFieldsCounters done [17:04:54]requested_item shift.num is exist - process it [17:04:54]requested_item shift.opened is exist - process it [17:04:54]req_shift_opened [17:04:54]FM_GetShiftState [17:04:54]SAM_PROTO_GetShiftState [17:04:54]wFMCommunicate request_size=4 [17:04:54]MH_SAM_APDU [17:04:54]CAPDU: 80 13 01 00 [17:04:54]Write to MH i2c: E2 08 00 91 35 80 13 01 00 00 00 00 00 43 [17:04:54]Write i2c OK [17:04:54]MH_I2C_Read... [17:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:54]Read from MH i2c: E2 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 0E 00 [17:04:54]MH_I2C_Read... [17:04:54]Read from MH i2c: E2 0E 00 91 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 24 [17:04:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:04:54]wFMCommunicate OK [17:04:54]SAM_PROTO_GetShiftState done [17:04:54]FM_GetShiftState done [17:04:54]req_shift_opened done [17:04:54]requested_item shift.open_date is exist - process it [17:04:54]req_shift_open_date [17:04:54]req_shift_open_date done [17:04:54]produce_requested_data done [17:04:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164678,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:04:54]process_action_free close_receipt [17:04:54]json_value_free [17:04:54]json_value_free done [17:04:54]process_json_proto returns [17:04:54]Send response to host [17:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164678,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:04:54]free response buf [17:04:54]execute_script done [17:04:54]execute_script returns [17:04:54]free content buf [17:04:54]Sock 9.Close socket [17:04:54]Sock 9.Thread stoped [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]accept exits with 7 [17:06:33]New connection [17:06:33]New thread 3067293028 created [17:06:33]Thread 3067149668 joined [17:06:33]Waiting for new connection... [17:06:33] Sock 7.Parse request [17:06:33]Sock 7.Check first char [17:06:33]Sock 7.First char is OK [17:06:33]request: POST /json_proto HTTP/1.0 [17:06:33]Method: POST [17:06:33]URL: /json_proto [17:06:33]Method is POST - this is cgi request [17:06:33]url: /json_proto [17:06:33]query_string will be loaded in cgi processing [17:06:33]execute_cgi json_proto POST (null) [17:06:33]execute_cgi path=json_proto method=POST [17:06:33]POST find Content-Length [17:06:33]Host: 172.17.56.4:8080 [17:06:33]Content-Length: 790 [17:06:33]Content-Type: application/json [17:06:33] [17:06:33]POST finish read [17:06:33]Found Content-Length = 790 [17:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:33]execute_script... [17:06: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)458773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:33]POST & json_proto [17:06:33]process_json_proto [17:06:33]json parsed OK: [17:06:33]protocol is kg_v1.0 [17:06:33]action value=close_receipt [17:06:33]process_action close_receipt [17:06:33]cmd_close_receipt [17:06:33]MH_GetDate [17:06:33]Write to MH i2c: F0 00 00 92 35 B6 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: F0 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: F0 09 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: F0 09 00 92 35 00 1C B4 92 66 C9 DC B2 64 42 [17:06:33]GetLastDocTimeStamp 1720890293 [17:06:33]current date 1720890396 [17:06:33]FM_GetShiftState [17:06:33]SAM_PROTO_GetShiftState [17:06:33]wFMCommunicate request_size=4 [17:06:33]MH_SAM_APDU [17:06:33]CAPDU: 80 13 01 00 [17:06:33]Write to MH i2c: E2 08 00 93 35 80 13 01 00 00 00 00 00 45 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:33]Read from MH i2c: E2 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 0E 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: E2 0E 00 93 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 26 [17:06:33]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:06:33]wFMCommunicate OK [17:06:33]SAM_PROTO_GetShiftState done [17:06:33]FM_GetShiftState done [17:06:33]opened in 1720831249 [17:06:33]opened+sec_in_day 1720917649 [17:06:33]quantity*price = 142520 [17:06:33]sum+1 = 142521 [17:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1425.20 НСП 1% : 12.61 НДС 12% : 151.35 Наличными: 0.00 Безнал.: 1425.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 239 13.07.2024 17:06 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164679 ФПД: 253810608350879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170636&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164679&fm=253810608350879&tin=02508201610067®Number=0000000000090829&sum=142520 [17:06:34]StoreToDocumentArchive [17:06:34]shift 446 fd 164679 [17:06:34]save to /storage/0446/doc_00164679 [17:06:34]save last doc name /storage/0446/doc_00164679 to /storage/kkm_last_doc_name [17:06:34]save OK [17:06:34]Clear old archive folders... [17:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:34]tlvbuf is 01449D60 [17:06:34]SAM_PROTO_ClearQueue [17:06:34]wFMCommunicate request_size=4 [17:06:34]MH_SAM_APDU [17:06:34]CAPDU: 80 09 00 00 [17:06:34]Write to MH i2c: E2 08 00 A0 35 80 09 00 00 00 00 00 00 47 [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:34]Read from MH i2c: E2 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 03 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 03 00 A0 35 00 90 00 49 [17:06:34]RAPDU: 90 00 [17:06:34]wFMCommunicate OK [17:06:34]SAM_PROTO_ClearQueue done [17:06:34]KKMCreateOFDPacket [17:06:34]OFDProtocolAddRootSTLVToBuf [17:06:34]FM_MakeSignedData [17:06:34]FM_MakeSignedData [17:06:34]SAM_PROTO_SignData [17:06:34]wFMCommunicate request_size=4 [17:06:34]MH_SAM_APDU [17:06:34]CAPDU: 80 0D 01 02 [17:06:34]Write to MH i2c: E2 08 00 A1 35 80 0D 01 02 00 00 00 00 4F [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:34]Read from MH i2c: E2 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 03 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [17:06:34]RAPDU: 90 00 [17:06:34]wFMCommunicate OK [17:06:34]wFMCommunicate request_size=255 [17:06:34]MH_SAM_APDU [17:06: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 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 1C B4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 83 02 00 35 04 06 00 E6 D6 E3 26 [17:06:34]Write to MH i2c: E2 02 01 A2 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 1C B4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 83 02 00 35 04 06 00 E6 D6 E3 26 00 00 15 [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:35]Read from MH i2c: E2 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 03 00 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [17:06:35]RAPDU: 90 00 [17:06:35]wFMCommunicate OK [17:06:35]wFMCommunicate request_size=7 [17:06:35]MH_SAM_APDU [17:06:35]CAPDU: 80 0D 02 02 02 A6 9F [17:06:35]Write to MH i2c: E2 0A 00 A3 35 80 0D 02 02 02 00 A6 9F 00 00 9B [17:06:35]Write i2c OK [17:06:35]MH_I2C_Read... [17:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:35]Read from MH i2c: E2 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 03 00 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 03 00 A3 35 00 90 00 4C [17:06:35]RAPDU: 90 00 [17:06:35]wFMCommunicate OK [17:06:35]wFMCommunicate request_size=4 [17:06:35]MH_SAM_APDU [17:06:35]CAPDU: 80 0D 03 02 [17:06:35]Write to MH i2c: E2 08 00 A4 35 80 0D 03 02 00 00 00 00 54 [17:06:35]Write i2c OK [17:06:35]MH_I2C_Read... [17:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:35]Read from MH i2c: E2 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 0B 00 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 0B 00 A4 35 00 D2 4B 1B 1E 3A D3 B2 8F 90 00 F9 [17:06:35]RAPDU: D2 4B 1B 1E 3A D3 B2 8F 90 00 [17:06:35]wFMCommunicate OK [17:06:35]SAM_PROTO_SignData done [17:06:35]FM_MakeSignedData done [17:06:35]CreateOFDProtocolMessage [17:06:35]wFMCommunicate request_size=4 [17:06:35]MH_SAM_APDU [17:06:35]CAPDU: 80 11 00 00 [17:06:35]Write to MH i2c: E2 08 00 A5 35 80 11 00 00 00 00 00 00 54 [17:06:35]Write i2c OK [17:06:35]MH_I2C_Read... [17:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:35]Read from MH i2c: E2 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 17 00 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: E2 17 00 A5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [17:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:06:35]wFMCommunicate OK [17:06:35]CreateOFDProtocolMessage done [17:06:35]OFDSenderStorePacket 164679 [17:06:35]StoreOFDPacket docnum=164679 [17:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 B5 04 01 A0 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 1C B4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 83 02 00 35 04 06 00 E6 D6 E3 26 A6 9F D2 4B 1B 1E 3A D3 B2 8F [17:06:35]CheckFolder [17:06:35]dirname=/storage/ofd_packets [17:06:35]CheckFolder done [17:06:35]ProducePacketName [17:06:35]name=ofd_packets/00164679 [17:06:35]NVStorageSaveData ofd_packets/00164679 [17:06:35]File name is /storage/ofd_packets/00164679 [17:06:35]Write 298 bytes [17:06:35]NVStorageSaveData done [17:06:35]OFDSenderStorePacket done [17:06:35]KKMCreateOFDPacket done [17:06:35]NVStorageSaveData kkm_last_timestamp [17:06:35]File name is /storage/kkm_last_timestamp [17:06:35]Write 4 bytes [17:06:35]NVStorageSaveData done [17:06:35]ExternCall_PrintAddStr [17:06:35]wPrintStart [17:06:35]Write to MH i2c: 01 00 00 A6 35 DB [17:06:35]Write i2c OK [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: 01 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: 01 07 00 [17:06:35]MH_I2C_Read... [17:06:35]Read from MH i2c: 01 07 00 A6 35 00 00 00 00 00 FF 0F F0 [17:06:35]RasterBufferAndPrint [17:06:35]line Счет N : (1)458773 [17:06:35]line ИНН: 02508201610067 [17:06:35]line Контрольно-Кассовый Чек [17:06:35]line ПРОДАЖА [17:06:35]line ТРК (МРК, ГНК) : 21 [17:06:35]line Товар: 2710194210 [17:06:35]line ДТ-К-5 [17:06:35]line 20.000 * 71.26 [17:06:35]line = 1425.20 [17:06:35]line НДС 12% НСП 1% [17:06:35]line > о реализуемом товаре [17:06:35]line ИТОГО: 1425.20 [17:06:35]line НСП 1% : 12.61 [17:06:35]line НДС 12% : 151.35 [17:06:35]line Наличными: 0.00 [17:06:35]line Безнал.: 1425.20 [17:06:35]line Место: АЗС № 72 "Партнер Нефть" [17:06:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:06:35]line СНО: Общий режим [17:06:35]line Чек 239 13.07.2024 17:06 [17:06:35]line Смена: 446 ФФД: 1.0 [17:06:35]line ЗНМ: 0300000160 [17:06:35]line РНМ: 0000000000090829 [17:06:35]line Версия ККМ: 001 [17:06:35]line Платежная система: KICB Банк [17:06:35]line ФМ: 0000000000874718 [17:06:35]line ФД: 164679 [17:06:35]line ФПД: 253810608350879 [17:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170636&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164679&fm=253810608350879&tin=02508201610067®Number=0000000000090829&sum=142520 [17:06:35]OFD Sender: Processing packet 164679 [packets to send 104, broken 103] [17:06:35]ProducePacketName [17:06:35]name=ofd_packets/00164679 [17:06:35]OFD Sender: To server: pG, [17:06:35]CommunicateWithHost lk.salyk.kg:30040 [17:06:35]ConnectInit lk.salyk.kg [17:06:35]written 0, free lines is 4095 [17:06:35]Connected sock=9 [17:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 B5 04 01 A0 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 1C B4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 83 02 00 35 04 06 00 E6 D6 E3 26 A6 9F D2 4B 1B 1E 3A D3 B2 8F [17:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F 09 47 00 91 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 83 02 00 F4 03 04 00 AC 5A 92 66 B6 04 01 00 00 06 14 40 14 EB E0 B9 FA [17:06:35]CommunicateWithHost err = 0 [17:06:35]CheckOFDResponse [17:06:35]1017 (14) - 77093643461234 [17:06:35]1041 (16) - 0000000000874718 [17:06:35]1040 (4) - 164679 [17:06:35]1012 (4) - 13.07.2024 10:45 [17:06:35]1206 (1) - 0 [17:06:35]OFD Sender: Remove packet 164679 [17:06:35]ProducePacketName [17:06:35]name=ofd_packets/00164679 [17:06:35]NVStorageDeleteData [17:06:36]Write to MH i2c: 01 00 00 CF 35 04 [17:06:36]Write i2c OK [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: 01 [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: 01 07 00 [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: 01 07 00 CF 35 00 00 00 00 00 04 0D 1C [17:06:36]RasterBufferAndPrint [17:06:36]line [17:06:36]line [17:06:36]line [17:06:36]line [17:06:36]line [17:06:36]written 0, free lines is 3338 [17:06:36]MH_Cut [17:06:36]Write to MH i2c: D1 01 00 D6 35 01 DD [17:06:36]Write i2c OK [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: D1 [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: D1 01 00 [17:06:36]MH_I2C_Read... [17:06:36]Read from MH i2c: D1 01 00 D6 35 00 DC [17:06:36]Write to MH i2c: 01 00 00 D7 35 0C [17:06:36]Write i2c OK [17:06:36]MH_I2C_Read... [17:06:36]OFD Sender: No OFD packet to send [17:06:36]*** Cut start [17:06:36]*** Partial cut [17:06:36]*** CUTSNS_PIN = 1 [17:06:36]*** CUTSNS_PIN = 0 [17:06:37]*** Brake cut motor [17:06:37]Read from MH i2c: 01 [17:06:37]MH_I2C_Read... [17:06:37]*** Stop cut motor [17:06:37]*** Cut end [17:06:37]Read from MH i2c: 01 07 00 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: 01 07 00 D7 35 00 00 00 00 00 FF 0F 21 [17:06:37]process_action close_receipt done [17:06:37]requested_data is exist [17:06:37]produce_requested_data [17:06:37]requested_item fm.sn is exist - process it [17:06:37]wFMCommunicate request_size=4 [17:06:37]MH_SAM_APDU [17:06:37]CAPDU: 80 11 00 00 [17:06:37]Write to MH i2c: E2 08 00 D8 35 80 11 00 00 00 00 00 00 87 [17:06:37]Write i2c OK [17:06:37]MH_I2C_Read... [17:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:37]Read from MH i2c: E2 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 17 00 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 17 00 D8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [17:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:06:37]wFMCommunicate OK [17:06:37]requested_item fd.num is exist - process it [17:06:37]SAM_PROTO_GetFieldsCounters [17:06:37]wFMCommunicate request_size=4 [17:06:37]MH_SAM_APDU [17:06:37]CAPDU: 80 13 00 00 [17:06:37]Write to MH i2c: E2 08 00 D9 35 80 13 00 00 00 00 00 00 8A [17:06:37]Write i2c OK [17:06:37]MH_I2C_Read... [17:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:37]Read from MH i2c: E2 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 62 00 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 62 00 D9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:06: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:37]wFMCommunicate OK [17:06:37]SAM_PROTO_GetFieldsCounters done [17:06:37]requested_item shift.num is exist - process it [17:06:37]requested_item shift.opened is exist - process it [17:06:37]req_shift_opened [17:06:37]FM_GetShiftState [17:06:37]SAM_PROTO_GetShiftState [17:06:37]wFMCommunicate request_size=4 [17:06:37]MH_SAM_APDU [17:06:37]CAPDU: 80 13 01 00 [17:06:37]Write to MH i2c: E2 08 00 DA 35 80 13 01 00 00 00 00 00 8C [17:06:37]Write i2c OK [17:06:37]MH_I2C_Read... [17:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:37]Read from MH i2c: E2 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 0E 00 [17:06:37]MH_I2C_Read... [17:06:37]Read from MH i2c: E2 0E 00 DA 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6D [17:06:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:06:37]wFMCommunicate OK [17:06:37]SAM_PROTO_GetShiftState done [17:06:37]FM_GetShiftState done [17:06:37]req_shift_opened done [17:06:37]requested_item shift.open_date is exist - process it [17:06:37]req_shift_open_date [17:06:37]req_shift_open_date done [17:06:37]produce_requested_data done [17:06:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164679,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:06:37]process_action_free close_receipt [17:06:37]json_value_free [17:06:37]json_value_free done [17:06:37]process_json_proto returns [17:06:37]Send response to host [17:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164679,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:06:37]free response buf [17:06:37]execute_script done [17:06:37]execute_script returns [17:06:37]free content buf [17:06:37]Sock 7.Close socket [17:06:37]Sock 7.Thread stoped [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:08]accept exits with 10 [17:26:08]New connection [17:26:08]New thread 3067149668 created [17:26:08]Thread 3067293028 joined [17:26:08]Waiting for new connection... [17:26:08] Sock 10.Parse request [17:26:08]Sock 10.Check first char [17:26:08]Sock 10.First char is OK [17:26:08]request: POST /json_proto HTTP/1.0 [17:26:08]Method: POST [17:26:08]URL: /json_proto [17:26:08]Method is POST - this is cgi request [17:26:08]url: /json_proto [17:26:08]query_string will be loaded in cgi processing [17:26:08]execute_cgi json_proto POST (null) [17:26:08]execute_cgi path=json_proto method=POST [17:26:08]POST find Content-Length [17:26:08]Host: 172.17.56.4:8080 [17:26:08]Content-Length: 677 [17:26:08]Content-Type: application/json [17:26:08] [17:26:08]POST finish read [17:26:08]Found Content-Length = 677 [17:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:08]execute_script... [17:26: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)458775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:08]POST & json_proto [17:26:08]process_json_proto [17:26:08]json parsed OK: [17:26:08]protocol is kg_v1.0 [17:26:08]action value=close_receipt [17:26:08]process_action close_receipt [17:26:08]cmd_close_receipt [17:26:08]MH_GetDate [17:26:08]Write to MH i2c: F0 00 00 DB 35 FF [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 09 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: F0 09 00 DB 35 00 B3 B8 92 66 C9 DC B2 64 26 [17:26:08]GetLastDocTimeStamp 1720890396 [17:26:08]current date 1720891571 [17:26:08]FM_GetShiftState [17:26:08]SAM_PROTO_GetShiftState [17:26:08]wFMCommunicate request_size=4 [17:26:08]MH_SAM_APDU [17:26:08]CAPDU: 80 13 01 00 [17:26:08]Write to MH i2c: E2 08 00 DC 35 80 13 01 00 00 00 00 00 8E [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:08]Read from MH i2c: E2 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 DC 35 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6F [17:26:08]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:08]wFMCommunicate OK [17:26:08]SAM_PROTO_GetShiftState done [17:26:08]FM_GetShiftState done [17:26:08]opened in 1720831249 [17:26:08]opened+sec_in_day 1720917649 [17:26:08]quantity*price = 40006 [17:26:08]sum+1 = 40007 [17:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 240 13.07.2024 17:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164680 ФПД: 169668271171902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164680&fm=169668271171902&tin=02508201610067®Number=0000000000090829&sum=40000 [17:26:09]StoreToDocumentArchive [17:26:09]shift 446 fd 164680 [17:26:09]save to /storage/0446/doc_00164680 [17:26:09]save last doc name /storage/0446/doc_00164680 to /storage/kkm_last_doc_name [17:26:09]save OK [17:26:09]Clear old archive folders... [17:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:09]tlvbuf is 01422BC0 [17:26:09]SAM_PROTO_ClearQueue [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 09 00 00 [17:26:09]Write to MH i2c: E2 08 00 E9 35 80 09 00 00 00 00 00 00 90 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 E9 35 00 90 00 92 [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_ClearQueue done [17:26:09]KKMCreateOFDPacket [17:26:09]OFDProtocolAddRootSTLVToBuf [17:26:09]FM_MakeSignedData [17:26:09]FM_MakeSignedData [17:26:09]SAM_PROTO_SignData [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 0D 01 02 [17:26:09]Write to MH i2c: E2 08 00 EA 35 80 0D 01 02 00 00 00 00 98 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 03 00 EA 35 00 90 00 93 [17:26:09]RAPDU: 90 00 [17:26:09]wFMCommunicate OK [17:26:09]wFMCommunicate request_size=255 [17:26:09]MH_SAM_APDU [17:26: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B3 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 83 02 00 35 04 06 00 9A [17:26:09]Write to MH i2c: E2 02 01 EB 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B3 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 83 02 00 35 04 06 00 9A 00 00 6A [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 EB 35 00 90 00 94 [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]wFMCommunicate request_size=10 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 02 02 05 4F F9 08 69 3E [17:26:10]Write to MH i2c: E2 0D 00 EC 35 80 0D 02 02 05 00 4F F9 08 69 3E 00 00 9C [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [17:26:10]RAPDU: 90 00 [17:26:10]wFMCommunicate OK [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 0D 03 02 [17:26:10]Write to MH i2c: E2 08 00 ED 35 80 0D 03 02 00 00 00 00 9D [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 0B 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 0B 00 ED 35 00 BC 53 03 37 04 81 9A 02 90 00 08 [17:26:10]RAPDU: BC 53 03 37 04 81 9A 02 90 00 [17:26:10]wFMCommunicate OK [17:26:10]SAM_PROTO_SignData done [17:26:10]FM_MakeSignedData done [17:26:10]CreateOFDProtocolMessage [17:26:10]wFMCommunicate request_size=4 [17:26:10]MH_SAM_APDU [17:26:10]CAPDU: 80 11 00 00 [17:26:10]Write to MH i2c: E2 08 00 EE 35 80 11 00 00 00 00 00 00 9D [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:10]Read from MH i2c: E2 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 17 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: E2 17 00 EE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [17:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:10]wFMCommunicate OK [17:26:10]CreateOFDProtocolMessage done [17:26:10]OFDSenderStorePacket 164680 [17:26:10]StoreOFDPacket docnum=164680 [17:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A B5 07 01 2C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B3 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 83 02 00 35 04 06 00 9A 4F F9 08 69 3E BC 53 03 37 04 81 9A 02 [17:26:10]CheckFolder [17:26:10]dirname=/storage/ofd_packets [17:26:10]CheckFolder done [17:26:10]ProducePacketName [17:26:10]name=ofd_packets/00164680 [17:26:10]NVStorageSaveData ofd_packets/00164680 [17:26:10]File name is /storage/ofd_packets/00164680 [17:26:10]Write 301 bytes [17:26:10]NVStorageSaveData done [17:26:10]OFDSenderStorePacket done [17:26:10]KKMCreateOFDPacket done [17:26:10]NVStorageSaveData kkm_last_timestamp [17:26:10]File name is /storage/kkm_last_timestamp [17:26:10]Write 4 bytes [17:26:10]NVStorageSaveData done [17:26:10]ExternCall_PrintAddStr [17:26:10]wPrintStart [17:26:10]Write to MH i2c: 01 00 00 EF 35 24 [17:26:10]Write i2c OK [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 [17:26:10]MH_I2C_Read... [17:26:10]Read from MH i2c: 01 07 00 EF 35 00 00 00 00 00 FF 0F 39 [17:26:10]RasterBufferAndPrint [17:26:10]line Счет N : (1)458775 [17:26:10]line ИНН: 02508201610067 [17:26:10]line Контрольно-Кассовый Чек [17:26:10]line ПРОДАЖА [17:26:10]line ТРК (МРК, ГНК) : 12 [17:26:10]line Товар: 2710124130 [17:26:10]line Аи-92-К-5 [17:26:10]line 6.080 * 65.80 [17:26:10]line = 400.06 [17:26:10]line НДС 12% НСП 1% [17:26:10]line > о реализуемом товаре [17:26:10]line ОКРУГЛЕНИЕ: -0.06 [17:26:10]line ИТОГО: 400.00 [17:26:10]line Внесено: 400.00 [17:26:10]line СДАЧА: 0.00 [17:26:10]line НСП 1% : 3.54 [17:26:10]line НДС 12% : 42.48 [17:26:10]line Наличными: 400.00 [17:26:10]line Безнал.: 0.00 [17:26:10]line Место: АЗС № 72 "Партнер Нефть" [17:26:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:10]line СНО: Общий режим [17:26:10]line Чек 240 13.07.2024 17:26 [17:26:10]line Смена: 446 ФФД: 1.0 [17:26:10]line ЗНМ: 0300000160 [17:26:10]line РНМ: 0000000000090829 [17:26:10]line Версия ККМ: 001 [17:26:10]line ФМ: 0000000000874718 [17:26:10]line ФД: 164680 [17:26:10]line ФПД: 169668271171902 [17:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164680&fm=169668271171902&tin=02508201610067®Number=0000000000090829&sum=40000 [17:26:10]OFD Sender: Processing packet 164680 [packets to send 104, broken 103] [17:26:10]ProducePacketName [17:26:10]name=ofd_packets/00164680 [17:26:10]OFD Sender: To server: pG, [17:26:10]CommunicateWithHost lk.salyk.kg:30040 [17:26:10]ConnectInit lk.salyk.kg [17:26:10]written 0, free lines is 4095 [17:26:10]Connected sock=9 [17:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A B5 07 01 2C 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B3 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 83 02 00 35 04 06 00 9A 4F F9 08 69 3E BC 53 03 37 04 81 9A 02 [17:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F E3 47 00 33 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 83 02 00 F4 03 04 00 44 5F 92 66 B6 04 01 00 00 CE 02 A7 4F E1 1D CD 04 [17:26:11]CommunicateWithHost err = 0 [17:26:11]CheckOFDResponse [17:26:11]1017 (14) - 77093643461234 [17:26:11]1041 (16) - 0000000000874718 [17:26:11]1040 (4) - 164680 [17:26:11]1012 (4) - 13.07.2024 11:04 [17:26:11]1206 (1) - 0 [17:26:11]OFD Sender: Remove packet 164680 [17:26:11]ProducePacketName [17:26:11]name=ofd_packets/00164680 [17:26:11]NVStorageDeleteData [17:26:11]Write to MH i2c: 01 00 00 19 36 4F [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 07 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: 01 07 00 19 36 00 00 00 00 00 FE 0C 60 [17:26:11]RasterBufferAndPrint [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]line [17:26:11]written 0, free lines is 3332 [17:26:11]MH_Cut [17:26:11]Write to MH i2c: D1 01 00 20 36 01 28 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 01 00 [17:26:11]MH_I2C_Read... [17:26:11]Read from MH i2c: D1 01 00 20 36 00 27 [17:26:11]Write to MH i2c: 01 00 00 21 36 57 [17:26:11]Write i2c OK [17:26:11]MH_I2C_Read... [17:26:11]OFD Sender: No OFD packet to send [17:26:11]*** Cut start [17:26:11]*** Partial cut [17:26:11]*** CUTSNS_PIN = 1 [17:26:11]*** CUTSNS_PIN = 0 [17:26:12]*** Brake cut motor [17:26:12]Read from MH i2c: 01 [17:26:12]MH_I2C_Read... [17:26:12]*** Stop cut motor [17:26:12]*** Cut end [17:26:12]Read from MH i2c: 01 07 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: 01 07 00 21 36 00 00 00 00 00 FF 0F 6C [17:26:12]process_action close_receipt done [17:26:12]requested_data is exist [17:26:12]produce_requested_data [17:26:12]requested_item fm.sn is exist - process it [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 11 00 00 [17:26:12]Write to MH i2c: E2 08 00 22 36 80 11 00 00 00 00 00 00 D2 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 17 00 22 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [17:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:12]wFMCommunicate OK [17:26:12]requested_item fd.num is exist - process it [17:26:12]SAM_PROTO_GetFieldsCounters [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 13 00 00 [17:26:12]Write to MH i2c: E2 08 00 23 36 80 13 00 00 00 00 00 00 D5 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 62 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 62 00 23 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_GetFieldsCounters done [17:26:12]requested_item shift.num is exist - process it [17:26:12]requested_item shift.opened is exist - process it [17:26:12]req_shift_opened [17:26:12]FM_GetShiftState [17:26:12]SAM_PROTO_GetShiftState [17:26:12]wFMCommunicate request_size=4 [17:26:12]MH_SAM_APDU [17:26:12]CAPDU: 80 13 01 00 [17:26:12]Write to MH i2c: E2 08 00 24 36 80 13 01 00 00 00 00 00 D7 [17:26:12]Write i2c OK [17:26:12]MH_I2C_Read... [17:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:12]Read from MH i2c: E2 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0E 00 [17:26:12]MH_I2C_Read... [17:26:12]Read from MH i2c: E2 0E 00 24 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B8 [17:26:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:12]wFMCommunicate OK [17:26:12]SAM_PROTO_GetShiftState done [17:26:12]FM_GetShiftState done [17:26:12]req_shift_opened done [17:26:12]requested_item shift.open_date is exist - process it [17:26:12]req_shift_open_date [17:26:12]req_shift_open_date done [17:26:12]produce_requested_data done [17:26:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164680,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:26:12]process_action_free close_receipt [17:26:12]json_value_free [17:26:12]json_value_free done [17:26:12]process_json_proto returns [17:26:12]Send response to host [17:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164680,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:26:12]free response buf [17:26:12]execute_script done [17:26:12]execute_script returns [17:26:12]free content buf [17:26:12]Sock 10.Close socket [17:26:12]Sock 10.Thread stoped [17:26:16]OFD Sender: No OFD packet to send [17:26:17]accept exits with 7 [17:26:17]New connection [17:26:17]New thread 3067293028 created [17:26:17]Thread 3067149668 joined [17:26:17]Waiting for new connection... [17:26:17] Sock 7.Parse request [17:26:17]Sock 7.Check first char [17:26:17]Sock 7.First char is OK [17:26:17]request: POST /json_proto HTTP/1.0 [17:26:17]Method: POST [17:26:17]URL: /json_proto [17:26:17]Method is POST - this is cgi request [17:26:17]url: /json_proto [17:26:17]query_string will be loaded in cgi processing [17:26:17]execute_cgi json_proto POST (null) [17:26:17]execute_cgi path=json_proto method=POST [17:26:17]POST find Content-Length [17:26:17]Host: 172.17.56.4:8080 [17:26:17]Content-Length: 677 [17:26:17]Content-Type: application/json [17:26:17] [17:26:17]POST finish read [17:26:17]Found Content-Length = 677 [17:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:17]execute_script... [17:26: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)458776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:17]POST & json_proto [17:26:17]process_json_proto [17:26:17]json parsed OK: [17:26:17]protocol is kg_v1.0 [17:26:17]action value=close_receipt [17:26:17]process_action close_receipt [17:26:17]cmd_close_receipt [17:26:17]MH_GetDate [17:26:17]Write to MH i2c: F0 00 00 25 36 4A [17:26:17]Write i2c OK [17:26:17]MH_I2C_Read... [17:26:17]Read from MH i2c: F0 [17:26:17]MH_I2C_Read... [17:26:17]Read from MH i2c: F0 09 00 [17:26:17]MH_I2C_Read... [17:26:17]Read from MH i2c: F0 09 00 25 36 00 BC B8 92 66 C9 DC B2 64 7A [17:26:17]GetLastDocTimeStamp 1720891571 [17:26:17]current date 1720891580 [17:26:17]FM_GetShiftState [17:26:17]SAM_PROTO_GetShiftState [17:26:17]wFMCommunicate request_size=4 [17:26:17]MH_SAM_APDU [17:26:17]CAPDU: 80 13 01 00 [17:26:17]Write to MH i2c: E2 08 00 26 36 80 13 01 00 00 00 00 00 D9 [17:26:17]Write i2c OK [17:26:17]MH_I2C_Read... [17:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:17]Read from MH i2c: E2 [17:26:17]MH_I2C_Read... [17:26:17]Read from MH i2c: E2 0E 00 [17:26:17]MH_I2C_Read... [17:26:17]Read from MH i2c: E2 0E 00 26 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BA [17:26:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:17]wFMCommunicate OK [17:26:17]SAM_PROTO_GetShiftState done [17:26:17]FM_GetShiftState done [17:26:17]opened in 1720831249 [17:26:17]opened+sec_in_day 1720917649 [17:26:17]quantity*price = 50008 [17:26:17]sum+1 = 50009 [17:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 241 13.07.2024 17:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164681 ФПД: 245151230624785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164681&fm=245151230624785&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:18]StoreToDocumentArchive [17:26:18]shift 446 fd 164681 [17:26:18]save to /storage/0446/doc_00164681 [17:26:18]save last doc name /storage/0446/doc_00164681 to /storage/kkm_last_doc_name [17:26:18]save OK [17:26:18]Clear old archive folders... [17:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:18]tlvbuf is 0153B740 [17:26:18]SAM_PROTO_ClearQueue [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 09 00 00 [17:26:18]Write to MH i2c: E2 08 00 33 36 80 09 00 00 00 00 00 00 DB [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 33 36 00 90 00 DD [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]SAM_PROTO_ClearQueue done [17:26:18]KKMCreateOFDPacket [17:26:18]OFDProtocolAddRootSTLVToBuf [17:26:18]FM_MakeSignedData [17:26:18]FM_MakeSignedData [17:26:18]SAM_PROTO_SignData [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 01 02 [17:26:18]Write to MH i2c: E2 08 00 34 36 80 0D 01 02 00 00 00 00 E3 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 34 36 00 90 00 DE [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=255 [17:26:18]MH_SAM_APDU [17:26: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F1 00 00 00 F4 03 04 00 BC B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 83 02 00 35 04 06 00 DE [17:26:18]Write to MH i2c: E2 02 01 35 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F1 00 00 00 F4 03 04 00 BC B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 83 02 00 35 04 06 00 DE 00 00 24 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 35 36 00 90 00 DF [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=10 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 02 02 05 F6 B8 04 84 11 [17:26:18]Write to MH i2c: E2 0D 00 36 36 80 0D 02 02 05 00 F6 B8 04 84 11 00 00 37 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 36 36 00 90 00 E0 [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 03 02 [17:26:18]Write to MH i2c: E2 08 00 37 36 80 0D 03 02 00 00 00 00 E8 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0B 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0B 00 37 36 00 BF 37 47 2F BC FB B6 B4 90 00 76 [17:26:18]RAPDU: BF 37 47 2F BC FB B6 B4 90 00 [17:26:18]wFMCommunicate OK [17:26:18]SAM_PROTO_SignData done [17:26:18]FM_MakeSignedData done [17:26:18]CreateOFDProtocolMessage [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 11 00 00 [17:26:18]Write to MH i2c: E2 08 00 38 36 80 11 00 00 00 00 00 00 E8 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 17 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: E2 17 00 38 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [17:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:19]wFMCommunicate OK [17:26:19]CreateOFDProtocolMessage done [17:26:19]OFDSenderStorePacket 164681 [17:26:19]StoreOFDPacket docnum=164681 [17:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB 0B 07 01 18 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F1 00 00 00 F4 03 04 00 BC B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 83 02 00 35 04 06 00 DE F6 B8 04 84 11 BF 37 47 2F BC FB B6 B4 [17:26:19]CheckFolder [17:26:19]dirname=/storage/ofd_packets [17:26:19]CheckFolder done [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00164681 [17:26:19]NVStorageSaveData ofd_packets/00164681 [17:26:19]File name is /storage/ofd_packets/00164681 [17:26:19]Write 301 bytes [17:26:19]NVStorageSaveData done [17:26:19]OFDSenderStorePacket done [17:26:19]KKMCreateOFDPacket done [17:26:19]NVStorageSaveData kkm_last_timestamp [17:26:19]File name is /storage/kkm_last_timestamp [17:26:19]Write 4 bytes [17:26:19]NVStorageSaveData done [17:26:19]ExternCall_PrintAddStr [17:26:19]wPrintStart [17:26:19]Write to MH i2c: 01 00 00 39 36 6F [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 39 36 00 00 00 00 00 FF 0F 84 [17:26:19]RasterBufferAndPrint [17:26:19]line Счет N : (1)458776 [17:26:19]line ИНН: 02508201610067 [17:26:19]line Контрольно-Кассовый Чек [17:26:19]line ПРОДАЖА [17:26:19]line ТРК (МРК, ГНК) : 22 [17:26:19]line Товар: 2710124130 [17:26:19]line Аи-92-К-5 [17:26:19]line 7.600 * 65.80 [17:26:19]line = 500.08 [17:26:19]line НДС 12% НСП 1% [17:26:19]line > о реализуемом товаре [17:26:19]line ОКРУГЛЕНИЕ: -0.08 [17:26:19]line ИТОГО: 500.00 [17:26:19]line Внесено: 500.00 [17:26:19]line СДАЧА: 0.00 [17:26:19]line НСП 1% : 4.42 [17:26:19]line НДС 12% : 53.11 [17:26:19]line Наличными: 500.00 [17:26:19]line Безнал.: 0.00 [17:26:19]line Место: АЗС № 72 "Партнер Нефть" [17:26:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:19]line СНО: Общий режим [17:26:19]line Чек 241 13.07.2024 17:26 [17:26:19]line Смена: 446 ФФД: 1.0 [17:26:19]line ЗНМ: 0300000160 [17:26:19]line РНМ: 0000000000090829 [17:26:19]line Версия ККМ: 001 [17:26:19]line ФМ: 0000000000874718 [17:26:19]line ФД: 164681 [17:26:19]line ФПД: 245151230624785 [17:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164681&fm=245151230624785&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:19]written 0, free lines is 4095 [17:26:19]OFD Sender: Processing packet 164681 [packets to send 104, broken 103] [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00164681 [17:26:19]OFD Sender: To server: pG, [17:26:19]CommunicateWithHost lk.salyk.kg:30040 [17:26:19]ConnectInit lk.salyk.kg [17:26:19]Connected sock=10 [17:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB 0B 07 01 18 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F1 00 00 00 F4 03 04 00 BC B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 83 02 00 35 04 06 00 DE F6 B8 04 84 11 BF 37 47 2F BC FB B6 B4 [17:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 69 47 00 7A 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 34 37 31 38 10 04 04 00 49 83 02 00 F4 03 04 00 4C 5F 92 66 B6 04 01 00 00 3E 8B 05 E7 D2 59 32 BC [17:26:19]CommunicateWithHost err = 0 [17:26:19]CheckOFDResponse [17:26:19]1017 (14) - 77093643461234 [17:26:19]1041 (16) - 0000000000874718 [17:26:19]1040 (4) - 164681 [17:26:19]1012 (4) - 13.07.2024 11:04 [17:26:19]1206 (1) - 0 [17:26:19]OFD Sender: Remove packet 164681 [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00164681 [17:26:19]NVStorageDeleteData [17:26:19]Write to MH i2c: 01 00 00 63 36 99 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 63 36 00 00 00 00 00 FD 0C A9 [17:26:19]RasterBufferAndPrint [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]written 0, free lines is 3337 [17:26:19]MH_Cut [17:26:19]Write to MH i2c: D1 01 00 6A 36 01 72 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 01 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 01 00 6A 36 00 71 [17:26:19]Write to MH i2c: 01 00 00 6B 36 A1 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]OFD Sender: No OFD packet to send [17:26:20]*** Cut start [17:26:20]*** Partial cut [17:26:20]*** CUTSNS_PIN = 1 [17:26:20]*** CUTSNS_PIN = 0 [17:26:20]*** Brake cut motor [17:26:20]Read from MH i2c: 01 [17:26:20]MH_I2C_Read... [17:26:20]*** Stop cut motor [17:26:20]*** Cut end [17:26:20]Read from MH i2c: 01 07 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 6B 36 00 00 00 00 00 FF 0F B6 [17:26:20]process_action close_receipt done [17:26:20]requested_data is exist [17:26:20]produce_requested_data [17:26:20]requested_item fm.sn is exist - process it [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 11 00 00 [17:26:20]Write to MH i2c: E2 08 00 6C 36 80 11 00 00 00 00 00 00 1C [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 17 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 17 00 6C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [17:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:20]wFMCommunicate OK [17:26:20]requested_item fd.num is exist - process it [17:26:20]SAM_PROTO_GetFieldsCounters [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 13 00 00 [17:26:20]Write to MH i2c: E2 08 00 6D 36 80 13 00 00 00 00 00 00 1F [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 62 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 62 00 6D 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [17:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:20]wFMCommunicate OK [17:26:20]SAM_PROTO_GetFieldsCounters done [17:26:20]requested_item shift.num is exist - process it [17:26:20]requested_item shift.opened is exist - process it [17:26:20]req_shift_opened [17:26:20]FM_GetShiftState [17:26:20]SAM_PROTO_GetShiftState [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 13 01 00 [17:26:20]Write to MH i2c: E2 08 00 6E 36 80 13 01 00 00 00 00 00 21 [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:20]Read from MH i2c: E2 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 0E 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: E2 0E 00 6E 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 02 [17:26:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:20]wFMCommunicate OK [17:26:20]SAM_PROTO_GetShiftState done [17:26:20]FM_GetShiftState done [17:26:20]req_shift_opened done [17:26:20]requested_item shift.open_date is exist - process it [17:26:20]req_shift_open_date [17:26:20]req_shift_open_date done [17:26:20]produce_requested_data done [17:26:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164681,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:26:20]process_action_free close_receipt [17:26:20]json_value_free [17:26:20]json_value_free done [17:26:20]process_json_proto returns [17:26:20]Send response to host [17:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164681,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:26:20]free response buf [17:26:20]execute_script done [17:26:20]execute_script returns [17:26:20]free content buf [17:26:20]Sock 7.Close socket [17:26:20]Sock 7.Thread stoped [17:26:21]accept exits with 9 [17:26:21]New connection [17:26:21]New thread 3067149668 created [17:26:21]Thread 3067293028 joined [17:26:21]Waiting for new connection... [17:26:21] Sock 9.Parse request [17:26:21]Sock 9.Check first char [17:26:21]Sock 9.First char is OK [17:26:21]request: POST /json_proto HTTP/1.0 [17:26:21]Method: POST [17:26:21]URL: /json_proto [17:26:21]Method is POST - this is cgi request [17:26:21]url: /json_proto [17:26:21]query_string will be loaded in cgi processing [17:26:21]execute_cgi json_proto POST (null) [17:26:21]execute_cgi path=json_proto method=POST [17:26:21]POST find Content-Length [17:26:21]Host: 172.17.56.4:8080 [17:26:21]Content-Length: 679 [17:26:21]Content-Type: application/json [17:26:21] [17:26:21]POST finish read [17:26:21]Found Content-Length = 679 [17:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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" ] } } [17:26:21]execute_script... [17:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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" ] } } [17:26:21]POST & json_proto [17:26:21]process_json_proto [17:26:21]json parsed OK: [17:26:21]protocol is kg_v1.0 [17:26:21]action value=close_receipt [17:26:21]process_action close_receipt [17:26:21]cmd_close_receipt [17:26:21]MH_GetDate [17:26:21]Write to MH i2c: F0 00 00 6F 36 94 [17:26:21]Write i2c OK [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: F0 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: F0 09 00 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: F0 09 00 6F 36 00 C0 B8 92 66 C9 DC B2 64 C8 [17:26:21]GetLastDocTimeStamp 1720891580 [17:26:21]current date 1720891584 [17:26:21]FM_GetShiftState [17:26:21]SAM_PROTO_GetShiftState [17:26:21]wFMCommunicate request_size=4 [17:26:21]MH_SAM_APDU [17:26:21]CAPDU: 80 13 01 00 [17:26:21]Write to MH i2c: E2 08 00 70 36 80 13 01 00 00 00 00 00 23 [17:26:21]Write i2c OK [17:26:21]MH_I2C_Read... [17:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:21]Read from MH i2c: E2 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 0E 00 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 0E 00 70 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 04 [17:26:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:21]wFMCommunicate OK [17:26:21]SAM_PROTO_GetShiftState done [17:26:21]FM_GetShiftState done [17:26:21]opened in 1720831249 [17:26:21]opened+sec_in_day 1720917649 [17:26:21]quantity*price = 300038 [17:26:21]sum+1 = 300040 [17:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 242 13.07.2024 17:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164682 ФПД: 75607222123740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164682&fm=75607222123740&tin=02508201610067®Number=0000000000090829&sum=300000 [17:26:22]StoreToDocumentArchive [17:26:22]shift 446 fd 164682 [17:26:22]save to /storage/0446/doc_00164682 [17:26:22]save last doc name /storage/0446/doc_00164682 to /storage/kkm_last_doc_name [17:26:22]save OK [17:26:22]Clear old archive folders... [17:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:22]tlvbuf is 01414D10 [17:26:22]SAM_PROTO_ClearQueue [17:26:22]wFMCommunicate request_size=4 [17:26:22]MH_SAM_APDU [17:26:22]CAPDU: 80 09 00 00 [17:26:22]Write to MH i2c: E2 08 00 7D 36 80 09 00 00 00 00 00 00 25 [17:26:22]Write i2c OK [17:26:22]MH_I2C_Read... [17:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:22]Read from MH i2c: E2 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 03 00 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 03 00 7D 36 00 90 00 27 [17:26:22]RAPDU: 90 00 [17:26:22]wFMCommunicate OK [17:26:22]SAM_PROTO_ClearQueue done [17:26:22]KKMCreateOFDPacket [17:26:22]OFDProtocolAddRootSTLVToBuf [17:26:22]FM_MakeSignedData [17:26:22]FM_MakeSignedData [17:26:22]SAM_PROTO_SignData [17:26:22]wFMCommunicate request_size=4 [17:26:22]MH_SAM_APDU [17:26:22]CAPDU: 80 0D 01 02 [17:26:22]Write to MH i2c: E2 08 00 7E 36 80 0D 01 02 00 00 00 00 2D [17:26:22]Write i2c OK [17:26:22]MH_I2C_Read... [17:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:22]Read from MH i2c: E2 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 03 00 [17:26:22]MH_I2C_Read... [17:26:22]Read from MH i2c: E2 03 00 7E 36 00 90 00 28 [17:26:22]RAPDU: 90 00 [17:26:22]wFMCommunicate OK [17:26:22]wFMCommunicate request_size=255 [17:26:22]MH_SAM_APDU [17:26:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 F2 00 00 00 F4 03 04 00 C0 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 83 02 00 35 04 06 00 44 C3 AD 9D [17:26:22]Write to MH i2c: E2 02 01 7F 36 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 F2 00 00 00 F4 03 04 00 C0 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 83 02 00 35 04 06 00 44 C3 AD 9D 00 00 90 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 7F 36 00 90 00 29 [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]wFMCommunicate request_size=7 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 02 02 02 FC DC [17:26:23]Write to MH i2c: E2 0A 00 80 36 80 0D 02 02 02 00 FC DC 00 00 0C [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 03 00 80 36 00 90 00 2A [17:26:23]RAPDU: 90 00 [17:26:23]wFMCommunicate OK [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 0D 03 02 [17:26:23]Write to MH i2c: E2 08 00 81 36 80 0D 03 02 00 00 00 00 32 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 0B 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 0B 00 81 36 00 77 C9 ED 90 1A A7 5E 23 90 00 32 [17:26:23]RAPDU: 77 C9 ED 90 1A A7 5E 23 90 00 [17:26:23]wFMCommunicate OK [17:26:23]SAM_PROTO_SignData done [17:26:23]FM_MakeSignedData done [17:26:23]CreateOFDProtocolMessage [17:26:23]wFMCommunicate request_size=4 [17:26:23]MH_SAM_APDU [17:26:23]CAPDU: 80 11 00 00 [17:26:23]Write to MH i2c: E2 08 00 82 36 80 11 00 00 00 00 00 00 32 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:23]Read from MH i2c: E2 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: E2 17 00 82 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [17:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:23]wFMCommunicate OK [17:26:23]CreateOFDProtocolMessage done [17:26:23]OFDSenderStorePacket 164682 [17:26:23]StoreOFDPacket docnum=164682 [17:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 24 04 01 7C 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 F2 00 00 00 F4 03 04 00 C0 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 83 02 00 35 04 06 00 44 C3 AD 9D FC DC 77 C9 ED 90 1A A7 5E 23 [17:26:23]CheckFolder [17:26:23]dirname=/storage/ofd_packets [17:26:23]CheckFolder done [17:26:23]ProducePacketName [17:26:23]name=ofd_packets/00164682 [17:26:23]NVStorageSaveData ofd_packets/00164682 [17:26:23]File name is /storage/ofd_packets/00164682 [17:26:23]Write 298 bytes [17:26:23]NVStorageSaveData done [17:26:23]OFDSenderStorePacket done [17:26:23]KKMCreateOFDPacket done [17:26:23]NVStorageSaveData kkm_last_timestamp [17:26:23]File name is /storage/kkm_last_timestamp [17:26:23]Write 4 bytes [17:26:23]NVStorageSaveData done [17:26:23]ExternCall_PrintAddStr [17:26:23]wPrintStart [17:26:23]Write to MH i2c: 01 00 00 83 36 B9 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 83 36 00 00 00 00 00 FF 0F CE [17:26:23]RasterBufferAndPrint [17:26:23]line Счет N : (1)458774 [17:26:23]line ИНН: 02508201610067 [17:26:23]line Контрольно-Кассовый Чек [17:26:23]line ПРОДАЖА [17:26:23]line ТРК (МРК, ГНК) : 11 [17:26:23]line Товар: 2710194210 [17:26:23]line ДТ-К-5 [17:26:23]line 41.730 * 71.90 [17:26:23]line = 3000.39 [17:26:23]line НДС 12% НСП 1% [17:26:23]line > о реализуемом товаре [17:26:23]line ОКРУГЛЕНИЕ: -0.39 [17:26:23]line ИТОГО: 3000.00 [17:26:23]line Внесено: 3000.00 [17:26:23]line СДАЧА: 0.00 [17:26:23]line НСП 1% : 26.55 [17:26:23]line НДС 12% : 318.62 [17:26:23]line Наличными: 3000.00 [17:26:23]line Безнал.: 0.00 [17:26:23]line Место: АЗС № 72 "Партнер Нефть" [17:26:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:23]line СНО: Общий режим [17:26:23]line Чек 242 13.07.2024 17:26 [17:26:23]line Смена: 446 ФФД: 1.0 [17:26:23]line ЗНМ: 0300000160 [17:26:23]line РНМ: 0000000000090829 [17:26:23]line Версия ККМ: 001 [17:26:23]line ФМ: 0000000000874718 [17:26:23]line ФД: 164682 [17:26:23]line ФПД: 75607222123740 [17:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164682&fm=75607222123740&tin=02508201610067®Number=0000000000090829&sum=300000 [17:26:23]OFD Sender: Processing packet 164682 [packets to send 104, broken 103] [17:26:23]ProducePacketName [17:26:23]name=ofd_packets/00164682 [17:26:23]OFD Sender: To server: pG, [17:26:23]CommunicateWithHost lk.salyk.kg:30040 [17:26:23]ConnectInit lk.salyk.kg [17:26:23]written 0, free lines is 4095 [17:26:23]Connected sock=10 [17:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F3 24 04 01 7C 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 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 76 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 F2 00 00 00 F4 03 04 00 C0 B8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 83 02 00 35 04 06 00 44 C3 AD 9D FC DC 77 C9 ED 90 1A A7 5E 23 [17:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 D2 47 00 72 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 83 02 00 F4 03 04 00 50 5F 92 66 B6 04 01 00 00 C8 C5 12 04 11 28 90 96 [17:26:23]CommunicateWithHost err = 0 [17:26:23]CheckOFDResponse [17:26:23]1017 (14) - 77093643461234 [17:26:23]1041 (16) - 0000000000874718 [17:26:23]1040 (4) - 164682 [17:26:23]1012 (4) - 13.07.2024 11:04 [17:26:23]1206 (1) - 0 [17:26:23]OFD Sender: Remove packet 164682 [17:26:23]ProducePacketName [17:26:23]name=ofd_packets/00164682 [17:26:23]NVStorageDeleteData [17:26:23]Write to MH i2c: 01 00 00 AD 36 E3 [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: 01 07 00 AD 36 00 00 00 00 00 18 0D 0F [17:26:23]RasterBufferAndPrint [17:26:23]line [17:26:23]line [17:26:23]line [17:26:23]line [17:26:23]line [17:26:23]written 0, free lines is 3370 [17:26:23]MH_Cut [17:26:23]Write to MH i2c: D1 01 00 B4 36 01 BC [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: D1 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: D1 01 00 [17:26:23]MH_I2C_Read... [17:26:23]Read from MH i2c: D1 01 00 B4 36 00 BB [17:26:23]Write to MH i2c: 01 00 00 B5 36 EB [17:26:23]Write i2c OK [17:26:23]MH_I2C_Read... [17:26:24]OFD Sender: No OFD packet to send [17:26:24]*** Cut start [17:26:24]*** Partial cut [17:26:24]*** CUTSNS_PIN = 1 [17:26:24]*** CUTSNS_PIN = 0 [17:26:24]*** Brake cut motor [17:26:25]Read from MH i2c: 01 [17:26:25]MH_I2C_Read... [17:26:25]*** Stop cut motor [17:26:25]*** Cut end [17:26:25]Read from MH i2c: 01 07 00 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: 01 07 00 B5 36 00 00 00 00 00 FF 0F 00 [17:26:25]process_action close_receipt done [17:26:25]requested_data is exist [17:26:25]produce_requested_data [17:26:25]requested_item fm.sn is exist - process it [17:26:25]wFMCommunicate request_size=4 [17:26:25]MH_SAM_APDU [17:26:25]CAPDU: 80 11 00 00 [17:26:25]Write to MH i2c: E2 08 00 B6 36 80 11 00 00 00 00 00 00 66 [17:26:25]Write i2c OK [17:26:25]MH_I2C_Read... [17:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:25]Read from MH i2c: E2 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 17 00 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 17 00 B6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [17:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:25]wFMCommunicate OK [17:26:25]requested_item fd.num is exist - process it [17:26:25]SAM_PROTO_GetFieldsCounters [17:26:25]wFMCommunicate request_size=4 [17:26:25]MH_SAM_APDU [17:26:25]CAPDU: 80 13 00 00 [17:26:25]Write to MH i2c: E2 08 00 B7 36 80 13 00 00 00 00 00 00 69 [17:26:25]Write i2c OK [17:26:25]MH_I2C_Read... [17:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:25]Read from MH i2c: E2 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 62 00 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 62 00 B7 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:25]wFMCommunicate OK [17:26:25]SAM_PROTO_GetFieldsCounters done [17:26:25]requested_item shift.num is exist - process it [17:26:25]requested_item shift.opened is exist - process it [17:26:25]req_shift_opened [17:26:25]FM_GetShiftState [17:26:25]SAM_PROTO_GetShiftState [17:26:25]wFMCommunicate request_size=4 [17:26:25]MH_SAM_APDU [17:26:25]CAPDU: 80 13 01 00 [17:26:25]Write to MH i2c: E2 08 00 B8 36 80 13 01 00 00 00 00 00 6B [17:26:25]Write i2c OK [17:26:25]MH_I2C_Read... [17:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:25]Read from MH i2c: E2 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 0E 00 [17:26:25]MH_I2C_Read... [17:26:25]Read from MH i2c: E2 0E 00 B8 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4C [17:26:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:26:25]wFMCommunicate OK [17:26:25]SAM_PROTO_GetShiftState done [17:26:25]FM_GetShiftState done [17:26:25]req_shift_opened done [17:26:25]requested_item shift.open_date is exist - process it [17:26:25]req_shift_open_date [17:26:25]req_shift_open_date done [17:26:25]produce_requested_data done [17:26:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164682,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:26:25]process_action_free close_receipt [17:26:25]json_value_free [17:26:25]json_value_free done [17:26:25]process_json_proto returns [17:26:25]Send response to host [17:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164682,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:26:25]free response buf [17:26:25]execute_script done [17:26:25]execute_script returns [17:26:25]free content buf [17:26:25]Sock 9.Close socket [17:26:25]Sock 9.Thread stoped [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:25]accept exits with 7 [17:33:25]New connection [17:33:25]New thread 3067293028 created [17:33:25]Thread 3067149668 joined [17:33:25]Waiting for new connection... [17:33:25] Sock 7.Parse request [17:33:25]Sock 7.Check first char [17:33:25]Sock 7.First char is OK [17:33:25]request: POST /json_proto HTTP/1.0 [17:33:25]Method: POST [17:33:25]URL: /json_proto [17:33:25]Method is POST - this is cgi request [17:33:25]url: /json_proto [17:33:25]query_string will be loaded in cgi processing [17:33:25]execute_cgi json_proto POST (null) [17:33:25]execute_cgi path=json_proto method=POST [17:33:25]POST find Content-Length [17:33:25]Host: 172.17.56.4:8080 [17:33:25]Content-Length: 677 [17:33:25]Content-Type: application/json [17:33:25] [17:33:25]POST finish read [17:33:25]Found Content-Length = 677 [17:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:25]execute_script... [17:33: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)458777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:25]POST & json_proto [17:33:25]process_json_proto [17:33:25]json parsed OK: [17:33:25]protocol is kg_v1.0 [17:33:25]action value=close_receipt [17:33:25]process_action close_receipt [17:33:25]cmd_close_receipt [17:33:25]MH_GetDate [17:33:25]Write to MH i2c: F0 00 00 B9 36 DE [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 09 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: F0 09 00 B9 36 00 67 BA 92 66 C9 DC B2 64 BB [17:33:25]GetLastDocTimeStamp 1720891584 [17:33:25]current date 1720892007 [17:33:25]FM_GetShiftState [17:33:25]SAM_PROTO_GetShiftState [17:33:25]wFMCommunicate request_size=4 [17:33:25]MH_SAM_APDU [17:33:25]CAPDU: 80 13 01 00 [17:33:25]Write to MH i2c: E2 08 00 BA 36 80 13 01 00 00 00 00 00 6D [17:33:25]Write i2c OK [17:33:25]MH_I2C_Read... [17:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:25]Read from MH i2c: E2 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 [17:33:25]MH_I2C_Read... [17:33:25]Read from MH i2c: E2 0E 00 BA 36 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4E [17:33:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:33:25]wFMCommunicate OK [17:33:25]SAM_PROTO_GetShiftState done [17:33:25]FM_GetShiftState done [17:33:25]opened in 1720831249 [17:33:25]opened+sec_in_day 1720917649 [17:33:25]quantity*price = 20003 [17:33:25]sum+1 = 20004 [17:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 243 13.07.2024 17:33 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164683 ФПД: 260902022645313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164683&fm=260902022645313&tin=02508201610067®Number=0000000000090829&sum=20000 [17:33:26]StoreToDocumentArchive [17:33:26]shift 446 fd 164683 [17:33:26]save to /storage/0446/doc_00164683 [17:33:26]save last doc name /storage/0446/doc_00164683 to /storage/kkm_last_doc_name [17:33:26]save OK [17:33:26]Clear old archive folders... [17:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:26]tlvbuf is 01538700 [17:33:26]SAM_PROTO_ClearQueue [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 09 00 00 [17:33:26]Write to MH i2c: E2 08 00 C7 36 80 09 00 00 00 00 00 00 6F [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 C7 36 00 90 00 71 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_ClearQueue done [17:33:26]KKMCreateOFDPacket [17:33:26]OFDProtocolAddRootSTLVToBuf [17:33:26]FM_MakeSignedData [17:33:26]FM_MakeSignedData [17:33:26]SAM_PROTO_SignData [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 0D 01 02 [17:33:26]Write to MH i2c: E2 08 00 C8 36 80 0D 01 02 00 00 00 00 77 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]wFMCommunicate request_size=255 [17:33:26]MH_SAM_APDU [17:33: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 68 BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 83 02 00 35 04 06 00 ED [17:33:26]Write to MH i2c: E2 02 01 C9 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 68 BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 83 02 00 35 04 06 00 ED 00 00 1A [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]wFMCommunicate request_size=10 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 0D 02 02 05 49 FC 61 86 41 [17:33:26]Write to MH i2c: E2 0D 00 CA 36 80 0D 02 02 05 00 49 FC 61 86 41 00 00 F1 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 03 00 CA 36 00 90 00 74 [17:33:26]RAPDU: 90 00 [17:33:26]wFMCommunicate OK [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 0D 03 02 [17:33:26]Write to MH i2c: E2 08 00 CB 36 80 0D 03 02 00 00 00 00 7C [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0B 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0B 00 CB 36 00 DA 6C 27 00 A6 E8 8C 65 90 00 69 [17:33:26]RAPDU: DA 6C 27 00 A6 E8 8C 65 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_SignData done [17:33:26]FM_MakeSignedData done [17:33:26]CreateOFDProtocolMessage [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 11 00 00 [17:33:26]Write to MH i2c: E2 08 00 CC 36 80 11 00 00 00 00 00 00 7C [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 CC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [17:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:33:26]wFMCommunicate OK [17:33:26]CreateOFDProtocolMessage done [17:33:26]OFDSenderStorePacket 164683 [17:33:26]StoreOFDPacket docnum=164683 [17:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC E5 07 01 D3 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 68 BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 83 02 00 35 04 06 00 ED 49 FC 61 86 41 DA 6C 27 00 A6 E8 8C 65 [17:33:26]CheckFolder [17:33:26]dirname=/storage/ofd_packets [17:33:26]CheckFolder done [17:33:26]ProducePacketName [17:33:26]name=ofd_packets/00164683 [17:33:26]NVStorageSaveData ofd_packets/00164683 [17:33:26]File name is /storage/ofd_packets/00164683 [17:33:26]Write 301 bytes [17:33:26]NVStorageSaveData done [17:33:26]OFDSenderStorePacket done [17:33:26]KKMCreateOFDPacket done [17:33:26]NVStorageSaveData kkm_last_timestamp [17:33:26]File name is /storage/kkm_last_timestamp [17:33:26]Write 4 bytes [17:33:26]NVStorageSaveData done [17:33:26]ExternCall_PrintAddStr [17:33:26]wPrintStart [17:33:26]Write to MH i2c: 01 00 00 CD 36 03 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: 01 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: 01 07 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: 01 07 00 CD 36 00 00 00 00 00 FF 0F 18 [17:33:26]RasterBufferAndPrint [17:33:26]line Счет N : (1)458777 [17:33:26]line ИНН: 02508201610067 [17:33:26]line Контрольно-Кассовый Чек [17:33:26]line ПРОДАЖА [17:33:26]line ТРК (МРК, ГНК) : 12 [17:33:26]line Товар: 2710124130 [17:33:26]line Аи-92-К-5 [17:33:26]line 3.040 * 65.80 [17:33:26]line = 200.03 [17:33:26]line НДС 12% НСП 1% [17:33:26]line > о реализуемом товаре [17:33:26]line ОКРУГЛЕНИЕ: -0.03 [17:33:26]line ИТОГО: 200.00 [17:33:26]line Внесено: 200.00 [17:33:26]line СДАЧА: 0.00 [17:33:26]line НСП 1% : 1.77 [17:33:26]line НДС 12% : 21.24 [17:33:26]line Наличными: 200.00 [17:33:26]line Безнал.: 0.00 [17:33:26]line Место: АЗС № 72 "Партнер Нефть" [17:33:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:33:26]line СНО: Общий режим [17:33:26]line Чек 243 13.07.2024 17:33 [17:33:26]line Смена: 446 ФФД: 1.0 [17:33:26]line ЗНМ: 0300000160 [17:33:26]line РНМ: 0000000000090829 [17:33:26]line Версия ККМ: 001 [17:33:26]line ФМ: 0000000000874718 [17:33:26]line ФД: 164683 [17:33:26]line ФПД: 260902022645313 [17:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164683&fm=260902022645313&tin=02508201610067®Number=0000000000090829&sum=20000 [17:33:27]OFD Sender: Processing packet 164683 [packets to send 104, broken 103] [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00164683 [17:33:27]OFD Sender: To server: pG, [17:33:27]CommunicateWithHost lk.salyk.kg:30040 [17:33:27]ConnectInit lk.salyk.kg [17:33:27]written 0, free lines is 4095 [17:33:27]Connected sock=11 [17:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC E5 07 01 D3 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 68 BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 83 02 00 35 04 06 00 ED 49 FC 61 86 41 DA 6C 27 00 A6 E8 8C 65 [17:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 24 B1 47 00 3F 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 34 37 31 38 10 04 04 00 4B 83 02 00 F4 03 04 00 F8 60 92 66 B6 04 01 00 00 98 68 F4 F8 58 35 D4 0C [17:33:27]CommunicateWithHost err = 0 [17:33:27]CheckOFDResponse [17:33:27]1017 (14) - 77093643461234 [17:33:27]1041 (16) - 0000000000874718 [17:33:27]1040 (4) - 164683 [17:33:27]1012 (4) - 13.07.2024 11:11 [17:33:27]1206 (1) - 0 [17:33:27]OFD Sender: Remove packet 164683 [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00164683 [17:33:27]NVStorageDeleteData [17:33:27]Write to MH i2c: 01 00 00 F7 36 2D [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: 01 07 00 F7 36 00 00 00 00 00 FE 0C 3E [17:33:27]RasterBufferAndPrint [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]line [17:33:27]written 0, free lines is 3332 [17:33:27]MH_Cut [17:33:27]Write to MH i2c: D1 01 00 FE 36 01 06 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 01 00 [17:33:27]MH_I2C_Read... [17:33:27]Read from MH i2c: D1 01 00 FE 36 00 05 [17:33:27]Write to MH i2c: 01 00 00 FF 36 35 [17:33:27]Write i2c OK [17:33:27]MH_I2C_Read... [17:33:27]OFD Sender: No OFD packet to send [17:33:28]*** Cut start [17:33:28]*** Partial cut [17:33:28]*** CUTSNS_PIN = 1 [17:33:28]*** CUTSNS_PIN = 0 [17:33:28]*** Brake cut motor [17:33:28]Read from MH i2c: 01 [17:33:28]MH_I2C_Read... [17:33:28]*** Stop cut motor [17:33:28]*** Cut end [17:33:28]Read from MH i2c: 01 07 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: 01 07 00 FF 36 00 00 00 00 00 FF 0F 4A [17:33:28]process_action close_receipt done [17:33:28]requested_data is exist [17:33:28]produce_requested_data [17:33:28]requested_item fm.sn is exist - process it [17:33:28]wFMCommunicate request_size=4 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 11 00 00 [17:33:28]Write to MH i2c: E2 08 00 00 37 80 11 00 00 00 00 00 00 B1 [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:28]Read from MH i2c: E2 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 17 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 17 00 00 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [17:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:33:28]wFMCommunicate OK [17:33:28]requested_item fd.num is exist - process it [17:33:28]SAM_PROTO_GetFieldsCounters [17:33:28]wFMCommunicate request_size=4 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 13 00 00 [17:33:28]Write to MH i2c: E2 08 00 01 37 80 13 00 00 00 00 00 00 B4 [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:28]Read from MH i2c: E2 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 62 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 62 00 01 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:33: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:28]wFMCommunicate OK [17:33:28]SAM_PROTO_GetFieldsCounters done [17:33:28]requested_item shift.num is exist - process it [17:33:28]requested_item shift.opened is exist - process it [17:33:28]req_shift_opened [17:33:28]FM_GetShiftState [17:33:28]SAM_PROTO_GetShiftState [17:33:28]wFMCommunicate request_size=4 [17:33:28]MH_SAM_APDU [17:33:28]CAPDU: 80 13 01 00 [17:33:28]Write to MH i2c: E2 08 00 02 37 80 13 01 00 00 00 00 00 B6 [17:33:28]Write i2c OK [17:33:28]MH_I2C_Read... [17:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:28]Read from MH i2c: E2 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 0E 00 [17:33:28]MH_I2C_Read... [17:33:28]Read from MH i2c: E2 0E 00 02 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 97 [17:33:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:33:28]wFMCommunicate OK [17:33:28]SAM_PROTO_GetShiftState done [17:33:28]FM_GetShiftState done [17:33:28]req_shift_opened done [17:33:28]requested_item shift.open_date is exist - process it [17:33:28]req_shift_open_date [17:33:28]req_shift_open_date done [17:33:28]produce_requested_data done [17:33:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164683,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:33:28]process_action_free close_receipt [17:33:28]json_value_free [17:33:28]json_value_free done [17:33:28]process_json_proto returns [17:33:28]Send response to host [17:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164683,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:33:28]free response buf [17:33:28]execute_script done [17:33:28]execute_script returns [17:33:28]free content buf [17:33:28]Sock 7.Close socket [17:33:29]Sock 7.Thread stoped [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:20]accept exits with 9 [17:35:20]New connection [17:35:20]New thread 3067149668 created [17:35:20]Thread 3067293028 joined [17:35:20]Waiting for new connection... [17:35:20] Sock 9.Parse request [17:35:20]Sock 9.Check first char [17:35:20]Sock 9.First char is OK [17:35:20]request: POST /json_proto HTTP/1.0 [17:35:20]Method: POST [17:35:20]URL: /json_proto [17:35:20]Method is POST - this is cgi request [17:35:20]url: /json_proto [17:35:20]query_string will be loaded in cgi processing [17:35:20]execute_cgi json_proto POST (null) [17:35:20]execute_cgi path=json_proto method=POST [17:35:20]POST find Content-Length [17:35:20]Host: 172.17.56.4:8080 [17:35:20]Content-Length: 677 [17:35:20]Content-Type: application/json [17:35:20] [17:35:20]POST finish read [17:35:20]Found Content-Length = 677 [17:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [17:35:20]execute_script... [17:35: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)458778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [17:35:20]POST & json_proto [17:35:20]process_json_proto [17:35:20]json parsed OK: [17:35:20]protocol is kg_v1.0 [17:35:20]action value=close_receipt [17:35:20]process_action close_receipt [17:35:20]cmd_close_receipt [17:35:20]MH_GetDate [17:35:20]Write to MH i2c: F0 00 00 03 37 29 [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 09 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 09 00 03 37 00 DB BA 92 66 C9 DC B2 64 7A [17:35:20]GetLastDocTimeStamp 1720892008 [17:35:20]current date 1720892123 [17:35:20]FM_GetShiftState [17:35:20]SAM_PROTO_GetShiftState [17:35:20]wFMCommunicate request_size=4 [17:35:20]MH_SAM_APDU [17:35:20]CAPDU: 80 13 01 00 [17:35:20]Write to MH i2c: E2 08 00 04 37 80 13 01 00 00 00 00 00 B8 [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:20]Read from MH i2c: E2 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 04 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 99 [17:35:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetShiftState done [17:35:20]FM_GetShiftState done [17:35:20]opened in 1720831249 [17:35:20]opened+sec_in_day 1720917649 [17:35:20]quantity*price = 30004 [17:35:20]sum+1 = 30006 [17:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 244 13.07.2024 17:35 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164684 ФПД: 104722889357334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164684&fm=104722889357334&tin=02508201610067®Number=0000000000090829&sum=30000 [17:35:21]StoreToDocumentArchive [17:35:21]shift 446 fd 164684 [17:35:21]save to /storage/0446/doc_00164684 [17:35:21]save last doc name /storage/0446/doc_00164684 to /storage/kkm_last_doc_name [17:35:21]save OK [17:35:21]Clear old archive folders... [17:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:21]tlvbuf is 014DB070 [17:35:21]SAM_PROTO_ClearQueue [17:35:21]wFMCommunicate request_size=4 [17:35:21]MH_SAM_APDU [17:35:21]CAPDU: 80 09 00 00 [17:35:21]Write to MH i2c: E2 08 00 11 37 80 09 00 00 00 00 00 00 BA [17:35:21]Write i2c OK [17:35:21]MH_I2C_Read... [17:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:21]Read from MH i2c: E2 [17:35:21]MH_I2C_Read... [17:35:21]Read from MH i2c: E2 03 00 [17:35:21]MH_I2C_Read... [17:35:21]Read from MH i2c: E2 03 00 11 37 00 90 00 BC [17:35:21]RAPDU: 90 00 [17:35:21]wFMCommunicate OK [17:35:21]SAM_PROTO_ClearQueue done [17:35:21]KKMCreateOFDPacket [17:35:21]OFDProtocolAddRootSTLVToBuf [17:35:21]FM_MakeSignedData [17:35:21]FM_MakeSignedData [17:35:21]SAM_PROTO_SignData [17:35:21]wFMCommunicate request_size=4 [17:35:21]MH_SAM_APDU [17:35:21]CAPDU: 80 0D 01 02 [17:35:21]Write to MH i2c: E2 08 00 12 37 80 0D 01 02 00 00 00 00 C2 [17:35:21]Write i2c OK [17:35:21]MH_I2C_Read... [17:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:21]Read from MH i2c: E2 [17:35:21]MH_I2C_Read... [17:35:21]Read from MH i2c: E2 03 00 [17:35:21]MH_I2C_Read... [17:35:21]Read from MH i2c: E2 03 00 12 37 00 90 00 BD [17:35:21]RAPDU: 90 00 [17:35:21]wFMCommunicate OK [17:35:21]wFMCommunicate request_size=255 [17:35:21]MH_SAM_APDU [17:35: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 F4 00 00 00 F4 03 04 00 DB BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 83 02 00 35 04 06 00 5F [17:35:21]Write to MH i2c: E2 02 01 13 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 F4 00 00 00 F4 03 04 00 DB BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 83 02 00 35 04 06 00 5F 00 00 6C [17:35:21]Write i2c OK [17:35:21]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 13 37 00 90 00 BE [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]wFMCommunicate request_size=10 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 02 02 05 3E B2 9E B8 16 [17:35:22]Write to MH i2c: E2 0D 00 14 37 80 0D 02 02 05 00 3E B2 9E B8 16 00 00 2B [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 14 37 00 90 00 BF [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]wFMCommunicate request_size=4 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 03 02 [17:35:22]Write to MH i2c: E2 08 00 15 37 80 0D 03 02 00 00 00 00 C7 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 0B 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 0B 00 15 37 00 2D 60 56 C3 7C D3 8B BB 90 00 03 [17:35:22]RAPDU: 2D 60 56 C3 7C D3 8B BB 90 00 [17:35:22]wFMCommunicate OK [17:35:22]SAM_PROTO_SignData done [17:35:22]FM_MakeSignedData done [17:35:22]CreateOFDProtocolMessage [17:35:22]wFMCommunicate request_size=4 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 11 00 00 [17:35:22]Write to MH i2c: E2 08 00 16 37 80 11 00 00 00 00 00 00 C7 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 17 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 17 00 16 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [17:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:35:22]wFMCommunicate OK [17:35:22]CreateOFDProtocolMessage done [17:35:22]OFDSenderStorePacket 164684 [17:35:22]StoreOFDPacket docnum=164684 [17:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 6F 07 01 FF 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 F4 00 00 00 F4 03 04 00 DB BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 83 02 00 35 04 06 00 5F 3E B2 9E B8 16 2D 60 56 C3 7C D3 8B BB [17:35:22]CheckFolder [17:35:22]dirname=/storage/ofd_packets [17:35:22]CheckFolder done [17:35:22]ProducePacketName [17:35:22]name=ofd_packets/00164684 [17:35:22]NVStorageSaveData ofd_packets/00164684 [17:35:22]File name is /storage/ofd_packets/00164684 [17:35:22]Write 301 bytes [17:35:22]NVStorageSaveData done [17:35:22]OFDSenderStorePacket done [17:35:22]KKMCreateOFDPacket done [17:35:22]NVStorageSaveData kkm_last_timestamp [17:35:22]File name is /storage/kkm_last_timestamp [17:35:22]Write 4 bytes [17:35:22]NVStorageSaveData done [17:35:22]ExternCall_PrintAddStr [17:35:22]wPrintStart [17:35:22]Write to MH i2c: 01 00 00 17 37 4E [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 17 37 00 00 00 00 00 FF 0F 63 [17:35:22]RasterBufferAndPrint [17:35:22]line Счет N : (1)458778 [17:35:22]line ИНН: 02508201610067 [17:35:22]line Контрольно-Кассовый Чек [17:35:22]line ПРОДАЖА [17:35:22]line ТРК (МРК, ГНК) : 12 [17:35:22]line Товар: 2710124130 [17:35:22]line Аи-92-К-5 [17:35:22]line 4.560 * 65.80 [17:35:22]line = 300.05 [17:35:22]line НДС 12% НСП 1% [17:35:22]line > о реализуемом товаре [17:35:22]line ОКРУГЛЕНИЕ: -0.05 [17:35:22]line ИТОГО: 300.00 [17:35:22]line Внесено: 300.00 [17:35:22]line СДАЧА: 0.00 [17:35:22]line НСП 1% : 2.65 [17:35:22]line НДС 12% : 31.86 [17:35:22]line Наличными: 300.00 [17:35:22]line Безнал.: 0.00 [17:35:22]line Место: АЗС № 72 "Партнер Нефть" [17:35:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:35:22]line СНО: Общий режим [17:35:22]line Чек 244 13.07.2024 17:35 [17:35:22]line Смена: 446 ФФД: 1.0 [17:35:22]line ЗНМ: 0300000160 [17:35:22]line РНМ: 0000000000090829 [17:35:22]line Версия ККМ: 001 [17:35:22]line ФМ: 0000000000874718 [17:35:22]line ФД: 164684 [17:35:22]line ФПД: 104722889357334 [17:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164684&fm=104722889357334&tin=02508201610067®Number=0000000000090829&sum=30000 [17:35:22]written 0, free lines is 4095 [17:35:22]OFD Sender: Processing packet 164684 [packets to send 104, broken 103] [17:35:22]ProducePacketName [17:35:22]name=ofd_packets/00164684 [17:35:22]OFD Sender: To server: pG, [17:35:22]CommunicateWithHost lk.salyk.kg:30040 [17:35:22]ConnectInit lk.salyk.kg [17:35:22]Connected sock=10 [17:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 6F 07 01 FF 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 F4 00 00 00 F4 03 04 00 DB BA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 83 02 00 35 04 06 00 5F 3E B2 9E B8 16 2D 60 56 C3 7C D3 8B BB [17:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B D0 47 00 CB 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 83 02 00 F4 03 04 00 6B 61 92 66 B6 04 01 00 00 32 3F 06 A0 43 D3 AC 64 [17:35:22]CommunicateWithHost err = 0 [17:35:22]CheckOFDResponse [17:35:22]1017 (14) - 77093643461234 [17:35:22]1041 (16) - 0000000000874718 [17:35:22]1040 (4) - 164684 [17:35:22]1012 (4) - 13.07.2024 11:13 [17:35:22]1206 (1) - 0 [17:35:22]OFD Sender: Remove packet 164684 [17:35:22]ProducePacketName [17:35:22]name=ofd_packets/00164684 [17:35:22]NVStorageDeleteData [17:35:22]Write to MH i2c: 01 00 00 41 37 78 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 41 37 00 00 00 00 00 0D 0D 99 [17:35:22]RasterBufferAndPrint [17:35:22]line [17:35:22]line [17:35:22]line [17:35:22]line [17:35:22]line [17:35:22]written 0, free lines is 3347 [17:35:22]MH_Cut [17:35:22]Write to MH i2c: D1 01 00 48 37 01 51 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: D1 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: D1 01 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: D1 01 00 48 37 00 50 [17:35:22]Write to MH i2c: 01 00 00 49 37 80 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:23]OFD Sender: No OFD packet to send [17:35:23]*** Cut start [17:35:23]*** Partial cut [17:35:23]*** CUTSNS_PIN = 1 [17:35:23]*** CUTSNS_PIN = 0 [17:35:23]*** Brake cut motor [17:35:23]Read from MH i2c: 01 [17:35:23]MH_I2C_Read... [17:35:23]*** Stop cut motor [17:35:23]*** Cut end [17:35:23]Read from MH i2c: 01 07 00 [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: 01 07 00 49 37 00 00 00 00 00 FF 0F 95 [17:35:23]process_action close_receipt done [17:35:23]requested_data is exist [17:35:23]produce_requested_data [17:35:23]requested_item fm.sn is exist - process it [17:35:23]wFMCommunicate request_size=4 [17:35:23]MH_SAM_APDU [17:35:23]CAPDU: 80 11 00 00 [17:35:23]Write to MH i2c: E2 08 00 4A 37 80 11 00 00 00 00 00 00 FB [17:35:23]Write i2c OK [17:35:23]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 17 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 17 00 4A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [17:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:35:24]wFMCommunicate OK [17:35:24]requested_item fd.num is exist - process it [17:35:24]SAM_PROTO_GetFieldsCounters [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 13 00 00 [17:35:24]Write to MH i2c: E2 08 00 4B 37 80 13 00 00 00 00 00 00 FE [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 62 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 62 00 4B 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [17:35: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:24]wFMCommunicate OK [17:35:24]SAM_PROTO_GetFieldsCounters done [17:35:24]requested_item shift.num is exist - process it [17:35:24]requested_item shift.opened is exist - process it [17:35:24]req_shift_opened [17:35:24]FM_GetShiftState [17:35:24]SAM_PROTO_GetShiftState [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 13 01 00 [17:35:24]Write to MH i2c: E2 08 00 4C 37 80 13 01 00 00 00 00 00 00 [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 4C 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E1 [17:35:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:35:24]wFMCommunicate OK [17:35:24]SAM_PROTO_GetShiftState done [17:35:24]FM_GetShiftState done [17:35:24]req_shift_opened done [17:35:24]requested_item shift.open_date is exist - process it [17:35:24]req_shift_open_date [17:35:24]req_shift_open_date done [17:35:24]produce_requested_data done [17:35:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164684,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:35:24]process_action_free close_receipt [17:35:24]json_value_free [17:35:24]json_value_free done [17:35:24]process_json_proto returns [17:35:24]Send response to host [17:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164684,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:35:24]free response buf [17:35:24]execute_script done [17:35:24]execute_script returns [17:35:24]free content buf [17:35:24]Sock 9.Close socket [17:35:24]Sock 9.Thread stoped [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:47]accept exits with 7 [17:37:47]New connection [17:37:47]New thread 3067293028 created [17:37:47]Thread 3067149668 joined [17:37:47]Waiting for new connection... [17:37:47] Sock 7.Parse request [17:37:47]Sock 7.Check first char [17:37:47]Sock 7.First char is OK [17:37:47]request: POST /json_proto HTTP/1.0 [17:37:47]Method: POST [17:37:47]URL: /json_proto [17:37:47]Method is POST - this is cgi request [17:37:47]url: /json_proto [17:37:47]query_string will be loaded in cgi processing [17:37:47]execute_cgi json_proto POST (null) [17:37:47]execute_cgi path=json_proto method=POST [17:37:47]POST find Content-Length [17:37:47]Host: 172.17.56.4:8080 [17:37:47]Content-Length: 677 [17:37:47]Content-Type: application/json [17:37:47] [17:37:47]POST finish read [17:37:47]Found Content-Length = 677 [17:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:47]execute_script... [17:37: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)458779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:47]POST & json_proto [17:37:47]process_json_proto [17:37:47]json parsed OK: [17:37:47]protocol is kg_v1.0 [17:37:47]action value=close_receipt [17:37:47]process_action close_receipt [17:37:47]cmd_close_receipt [17:37:47]MH_GetDate [17:37:47]Write to MH i2c: F0 00 00 4D 37 73 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: F0 09 00 4D 37 00 6E BB 92 66 C9 DC B2 64 58 [17:37:47]GetLastDocTimeStamp 1720892123 [17:37:47]current date 1720892270 [17:37:47]FM_GetShiftState [17:37:47]SAM_PROTO_GetShiftState [17:37:47]wFMCommunicate request_size=4 [17:37:47]MH_SAM_APDU [17:37:47]CAPDU: 80 13 01 00 [17:37:47]Write to MH i2c: E2 08 00 4E 37 80 13 01 00 00 00 00 00 02 [17:37:47]Write i2c OK [17:37:47]MH_I2C_Read... [17:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:47]Read from MH i2c: E2 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: E2 0E 00 [17:37:47]MH_I2C_Read... [17:37:47]Read from MH i2c: E2 0E 00 4E 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E3 [17:37:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:37:47]wFMCommunicate OK [17:37:47]SAM_PROTO_GetShiftState done [17:37:47]FM_GetShiftState done [17:37:47]opened in 1720831249 [17:37:47]opened+sec_in_day 1720917649 [17:37:47]quantity*price = 50008 [17:37:47]sum+1 = 50009 [17:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 245 13.07.2024 17:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164685 ФПД: 148891233406637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164685&fm=148891233406637&tin=02508201610067®Number=0000000000090829&sum=50000 [17:37:48]StoreToDocumentArchive [17:37:48]shift 446 fd 164685 [17:37:48]save to /storage/0446/doc_00164685 [17:37:48]save last doc name /storage/0446/doc_00164685 to /storage/kkm_last_doc_name [17:37:48]save OK [17:37:48]Clear old archive folders... [17:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:48]tlvbuf is B6FA87E0 [17:37:48]SAM_PROTO_ClearQueue [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 09 00 00 [17:37:48]Write to MH i2c: E2 08 00 5B 37 80 09 00 00 00 00 00 00 04 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 5B 37 00 90 00 06 [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]SAM_PROTO_ClearQueue done [17:37:48]KKMCreateOFDPacket [17:37:48]OFDProtocolAddRootSTLVToBuf [17:37:48]FM_MakeSignedData [17:37:48]FM_MakeSignedData [17:37:48]SAM_PROTO_SignData [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 01 02 [17:37:48]Write to MH i2c: E2 08 00 5C 37 80 0D 01 02 00 00 00 00 0C [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 5C 37 00 90 00 07 [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=255 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F5 00 00 00 F4 03 04 00 6E BB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 83 02 00 35 04 06 00 87 [17:37:48]Write to MH i2c: E2 02 01 5D 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F5 00 00 00 F4 03 04 00 6E BB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 83 02 00 35 04 06 00 87 00 00 B3 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 5D 37 00 90 00 08 [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=10 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 02 02 05 6A 71 13 CE AD [17:37:48]Write to MH i2c: E2 0D 00 5E 37 80 0D 02 02 05 00 6A 71 13 CE AD 00 00 82 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 03 00 5E 37 00 90 00 09 [17:37:48]RAPDU: 90 00 [17:37:48]wFMCommunicate OK [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 0D 03 02 [17:37:48]Write to MH i2c: E2 08 00 5F 37 80 0D 03 02 00 00 00 00 11 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0B 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 0B 00 5F 37 00 CE E0 AA 73 10 A0 B5 80 90 00 C2 [17:37:48]RAPDU: CE E0 AA 73 10 A0 B5 80 90 00 [17:37:48]wFMCommunicate OK [17:37:48]SAM_PROTO_SignData done [17:37:48]FM_MakeSignedData done [17:37:48]CreateOFDProtocolMessage [17:37:48]wFMCommunicate request_size=4 [17:37:48]MH_SAM_APDU [17:37:48]CAPDU: 80 11 00 00 [17:37:48]Write to MH i2c: E2 08 00 60 37 80 11 00 00 00 00 00 00 11 [17:37:48]Write i2c OK [17:37:48]MH_I2C_Read... [17:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:48]Read from MH i2c: E2 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 17 00 [17:37:48]MH_I2C_Read... [17:37:48]Read from MH i2c: E2 17 00 60 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [17:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:37:49]wFMCommunicate OK [17:37:49]CreateOFDProtocolMessage done [17:37:49]OFDSenderStorePacket 164685 [17:37:49]StoreOFDPacket docnum=164685 [17:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 11 07 01 AD 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F5 00 00 00 F4 03 04 00 6E BB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 83 02 00 35 04 06 00 87 6A 71 13 CE AD CE E0 AA 73 10 A0 B5 80 [17:37:49]CheckFolder [17:37:49]dirname=/storage/ofd_packets [17:37:49]CheckFolder done [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00164685 [17:37:49]NVStorageSaveData ofd_packets/00164685 [17:37:49]File name is /storage/ofd_packets/00164685 [17:37:49]Write 301 bytes [17:37:49]NVStorageSaveData done [17:37:49]OFDSenderStorePacket done [17:37:49]KKMCreateOFDPacket done [17:37:49]NVStorageSaveData kkm_last_timestamp [17:37:49]File name is /storage/kkm_last_timestamp [17:37:49]Write 4 bytes [17:37:49]NVStorageSaveData done [17:37:49]ExternCall_PrintAddStr [17:37:49]wPrintStart [17:37:49]Write to MH i2c: 01 00 00 61 37 98 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 FF 0F AD [17:37:49]RasterBufferAndPrint [17:37:49]line Счет N : (1)458779 [17:37:49]line ИНН: 02508201610067 [17:37:49]line Контрольно-Кассовый Чек [17:37:49]line ПРОДАЖА [17:37:49]line ТРК (МРК, ГНК) : 22 [17:37:49]line Товар: 2710124130 [17:37:49]line Аи-92-К-5 [17:37:49]line 7.600 * 65.80 [17:37:49]line = 500.08 [17:37:49]line НДС 12% НСП 1% [17:37:49]line > о реализуемом товаре [17:37:49]line ОКРУГЛЕНИЕ: -0.08 [17:37:49]line ИТОГО: 500.00 [17:37:49]line Внесено: 500.00 [17:37:49]line СДАЧА: 0.00 [17:37:49]line НСП 1% : 4.42 [17:37:49]line НДС 12% : 53.11 [17:37:49]line Наличными: 500.00 [17:37:49]line Безнал.: 0.00 [17:37:49]line Место: АЗС № 72 "Партнер Нефть" [17:37:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:37:49]line СНО: Общий режим [17:37:49]line Чек 245 13.07.2024 17:37 [17:37:49]line Смена: 446 ФФД: 1.0 [17:37:49]line ЗНМ: 0300000160 [17:37:49]line РНМ: 0000000000090829 [17:37:49]line Версия ККМ: 001 [17:37:49]line ФМ: 0000000000874718 [17:37:49]line ФД: 164685 [17:37:49]line ФПД: 148891233406637 [17:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164685&fm=148891233406637&tin=02508201610067®Number=0000000000090829&sum=50000 [17:37:49]OFD Sender: Processing packet 164685 [packets to send 104, broken 103] [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00164685 [17:37:49]OFD Sender: To server: pG, [17:37:49]CommunicateWithHost lk.salyk.kg:30040 [17:37:49]ConnectInit lk.salyk.kg [17:37:49]written 0, free lines is 4095 [17:37:49]Connected sock=10 [17:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 11 07 01 AD 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F5 00 00 00 F4 03 04 00 6E BB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 83 02 00 35 04 06 00 87 6A 71 13 CE AD CE E0 AA 73 10 A0 B5 80 [17:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F8 0B 47 00 9D D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 83 02 00 F4 03 04 00 FE 61 92 66 B6 04 01 00 00 40 92 E9 D0 07 C7 1D 21 [17:37:49]CommunicateWithHost err = 0 [17:37:49]CheckOFDResponse [17:37:49]1017 (14) - 77093643461234 [17:37:49]1041 (16) - 0000000000874718 [17:37:49]1040 (4) - 164685 [17:37:49]1012 (4) - 13.07.2024 11:16 [17:37:49]1206 (1) - 0 [17:37:49]OFD Sender: Remove packet 164685 [17:37:49]ProducePacketName [17:37:49]name=ofd_packets/00164685 [17:37:49]NVStorageDeleteData [17:37:49]Write to MH i2c: 01 00 00 8B 37 C2 [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: 01 07 00 8B 37 00 00 00 00 00 0E 0D E4 [17:37:49]RasterBufferAndPrint [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]line [17:37:49]written 0, free lines is 3351 [17:37:49]MH_Cut [17:37:49]Write to MH i2c: D1 01 00 92 37 01 9B [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 01 00 [17:37:49]MH_I2C_Read... [17:37:49]Read from MH i2c: D1 01 00 92 37 00 9A [17:37:49]Write to MH i2c: 01 00 00 93 37 CA [17:37:49]Write i2c OK [17:37:49]MH_I2C_Read... [17:37:50]OFD Sender: No OFD packet to send [17:37:50]*** Cut start [17:37:50]*** Partial cut [17:37:50]*** CUTSNS_PIN = 1 [17:37:50]*** CUTSNS_PIN = 0 [17:37:50]*** Brake cut motor [17:37:51]Read from MH i2c: 01 [17:37:51]MH_I2C_Read... [17:37:51]*** Stop cut motor [17:37:51]*** Cut end [17:37:51]Read from MH i2c: 01 07 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: 01 07 00 93 37 00 00 00 00 00 FF 0F DF [17:37:51]process_action close_receipt done [17:37:51]requested_data is exist [17:37:51]produce_requested_data [17:37:51]requested_item fm.sn is exist - process it [17:37:51]wFMCommunicate request_size=4 [17:37:51]MH_SAM_APDU [17:37:51]CAPDU: 80 11 00 00 [17:37:51]Write to MH i2c: E2 08 00 94 37 80 11 00 00 00 00 00 00 45 [17:37:51]Write i2c OK [17:37:51]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 17 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 17 00 94 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [17:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:37:51]wFMCommunicate OK [17:37:51]requested_item fd.num is exist - process it [17:37:51]SAM_PROTO_GetFieldsCounters [17:37:51]wFMCommunicate request_size=4 [17:37:51]MH_SAM_APDU [17:37:51]CAPDU: 80 13 00 00 [17:37:51]Write to MH i2c: E2 08 00 95 37 80 13 00 00 00 00 00 00 48 [17:37:51]Write i2c OK [17:37:51]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 62 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 62 00 95 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [17:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:51]wFMCommunicate OK [17:37:51]SAM_PROTO_GetFieldsCounters done [17:37:51]requested_item shift.num is exist - process it [17:37:51]requested_item shift.opened is exist - process it [17:37:51]req_shift_opened [17:37:51]FM_GetShiftState [17:37:51]SAM_PROTO_GetShiftState [17:37:51]wFMCommunicate request_size=4 [17:37:51]MH_SAM_APDU [17:37:51]CAPDU: 80 13 01 00 [17:37:51]Write to MH i2c: E2 08 00 96 37 80 13 01 00 00 00 00 00 4A [17:37:51]Write i2c OK [17:37:51]MH_I2C_Read... [17:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:51]Read from MH i2c: E2 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 0E 00 [17:37:51]MH_I2C_Read... [17:37:51]Read from MH i2c: E2 0E 00 96 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2B [17:37:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:37:51]wFMCommunicate OK [17:37:51]SAM_PROTO_GetShiftState done [17:37:51]FM_GetShiftState done [17:37:51]req_shift_opened done [17:37:51]requested_item shift.open_date is exist - process it [17:37:51]req_shift_open_date [17:37:51]req_shift_open_date done [17:37:51]produce_requested_data done [17:37:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164685,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:37:51]process_action_free close_receipt [17:37:51]json_value_free [17:37:51]json_value_free done [17:37:51]process_json_proto returns [17:37:51]Send response to host [17:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164685,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:37:51]free response buf [17:37:51]execute_script done [17:37:51]execute_script returns [17:37:51]free content buf [17:37:51]Sock 7.Close socket [17:37:51]Sock 7.Thread stoped [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:44]accept exits with 9 [17:46:44]New connection [17:46:44]New thread 3067149668 created [17:46:44]Thread 3067293028 joined [17:46:44]Waiting for new connection... [17:46:44] Sock 9.Parse request [17:46:44]Sock 9.Check first char [17:46:44]Sock 9.First char is OK [17:46:44]request: POST /json_proto HTTP/1.0 [17:46:44]Method: POST [17:46:44]URL: /json_proto [17:46:44]Method is POST - this is cgi request [17:46:44]url: /json_proto [17:46:44]query_string will be loaded in cgi processing [17:46:44]execute_cgi json_proto POST (null) [17:46:44]execute_cgi path=json_proto method=POST [17:46:44]POST find Content-Length [17:46:44]Host: 172.17.56.4:8080 [17:46:44]Content-Length: 677 [17:46:44]Content-Type: application/json [17:46:44] [17:46:44]POST finish read [17:46:44]Found Content-Length = 677 [17:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:44]execute_script... [17:46: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)458780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:44]POST & json_proto [17:46:44]process_json_proto [17:46:44]json parsed OK: [17:46:44]protocol is kg_v1.0 [17:46:44]action value=close_receipt [17:46:44]process_action close_receipt [17:46:44]cmd_close_receipt [17:46:44]MH_GetDate [17:46:44]Write to MH i2c: F0 00 00 97 37 BD [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: F0 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: F0 09 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: F0 09 00 97 37 00 87 BD 92 66 C9 DC B2 64 BD [17:46:44]GetLastDocTimeStamp 1720892270 [17:46:44]current date 1720892807 [17:46:44]FM_GetShiftState [17:46:44]SAM_PROTO_GetShiftState [17:46:44]wFMCommunicate request_size=4 [17:46:44]MH_SAM_APDU [17:46:44]CAPDU: 80 13 01 00 [17:46:44]Write to MH i2c: E2 08 00 98 37 80 13 01 00 00 00 00 00 4C [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:44]Read from MH i2c: E2 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 0E 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 0E 00 98 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2D [17:46:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:46:44]wFMCommunicate OK [17:46:44]SAM_PROTO_GetShiftState done [17:46:44]FM_GetShiftState done [17:46:44]opened in 1720831249 [17:46:44]opened+sec_in_day 1720917649 [17:46:44]quantity*price = 50008 [17:46:44]sum+1 = 50009 [17:46:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 246 13.07.2024 17:46 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164686 ФПД: 143093024233204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164686&fm=143093024233204&tin=02508201610067®Number=0000000000090829&sum=50000 [17:46:45]StoreToDocumentArchive [17:46:45]shift 446 fd 164686 [17:46:45]save to /storage/0446/doc_00164686 [17:46:45]save last doc name /storage/0446/doc_00164686 to /storage/kkm_last_doc_name [17:46:45]save OK [17:46:45]Clear old archive folders... [17:46:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:45]tlvbuf is 01457D60 [17:46:45]SAM_PROTO_ClearQueue [17:46:45]wFMCommunicate request_size=4 [17:46:45]MH_SAM_APDU [17:46:45]CAPDU: 80 09 00 00 [17:46:45]Write to MH i2c: E2 08 00 A5 37 80 09 00 00 00 00 00 00 4E [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 A5 37 00 90 00 50 [17:46:45]RAPDU: 90 00 [17:46:45]wFMCommunicate OK [17:46:45]SAM_PROTO_ClearQueue done [17:46:45]KKMCreateOFDPacket [17:46:45]OFDProtocolAddRootSTLVToBuf [17:46:45]FM_MakeSignedData [17:46:45]FM_MakeSignedData [17:46:45]SAM_PROTO_SignData [17:46:45]wFMCommunicate request_size=4 [17:46:45]MH_SAM_APDU [17:46:45]CAPDU: 80 0D 01 02 [17:46:45]Write to MH i2c: E2 08 00 A6 37 80 0D 01 02 00 00 00 00 56 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 A6 37 00 90 00 51 [17:46:45]RAPDU: 90 00 [17:46:45]wFMCommunicate OK [17:46:45]wFMCommunicate request_size=255 [17:46:45]MH_SAM_APDU [17:46: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F6 00 00 00 F4 03 04 00 87 BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 83 02 00 35 04 06 00 82 [17:46:45]Write to MH i2c: E2 02 01 A7 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F6 00 00 00 F4 03 04 00 87 BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 83 02 00 35 04 06 00 82 00 00 15 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 03 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 03 00 A7 37 00 90 00 52 [17:46:46]RAPDU: 90 00 [17:46:46]wFMCommunicate OK [17:46:46]wFMCommunicate request_size=10 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 0D 02 02 05 24 70 E1 16 F4 [17:46:46]Write to MH i2c: E2 0D 00 A8 37 80 0D 02 02 05 00 24 70 E1 16 F4 00 00 E2 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 03 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [17:46:46]RAPDU: 90 00 [17:46:46]wFMCommunicate OK [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 0D 03 02 [17:46:46]Write to MH i2c: E2 08 00 A9 37 80 0D 03 02 00 00 00 00 5B [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0B 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0B 00 A9 37 00 B1 24 C7 F9 1C FA 35 65 90 00 A1 [17:46:46]RAPDU: B1 24 C7 F9 1C FA 35 65 90 00 [17:46:46]wFMCommunicate OK [17:46:46]SAM_PROTO_SignData done [17:46:46]FM_MakeSignedData done [17:46:46]CreateOFDProtocolMessage [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 11 00 00 [17:46:46]Write to MH i2c: E2 08 00 AA 37 80 11 00 00 00 00 00 00 5B [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 AA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [17:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:46:46]wFMCommunicate OK [17:46:46]CreateOFDProtocolMessage done [17:46:46]OFDSenderStorePacket 164686 [17:46:46]StoreOFDPacket docnum=164686 [17:46:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 6A 07 01 17 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F6 00 00 00 F4 03 04 00 87 BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 83 02 00 35 04 06 00 82 24 70 E1 16 F4 B1 24 C7 F9 1C FA 35 65 [17:46:46]CheckFolder [17:46:46]dirname=/storage/ofd_packets [17:46:46]CheckFolder done [17:46:46]ProducePacketName [17:46:46]name=ofd_packets/00164686 [17:46:46]NVStorageSaveData ofd_packets/00164686 [17:46:46]File name is /storage/ofd_packets/00164686 [17:46:46]Write 301 bytes [17:46:46]NVStorageSaveData done [17:46:46]OFDSenderStorePacket done [17:46:46]KKMCreateOFDPacket done [17:46:46]NVStorageSaveData kkm_last_timestamp [17:46:46]File name is /storage/kkm_last_timestamp [17:46:46]Write 4 bytes [17:46:46]NVStorageSaveData done [17:46:46]ExternCall_PrintAddStr [17:46:46]wPrintStart [17:46:46]Write to MH i2c: 01 00 00 AB 37 E2 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 AB 37 00 00 00 00 00 FF 0F F7 [17:46:46]RasterBufferAndPrint [17:46:46]line Счет N : (1)458780 [17:46:46]line ИНН: 02508201610067 [17:46:46]line Контрольно-Кассовый Чек [17:46:46]line ПРОДАЖА [17:46:46]line ТРК (МРК, ГНК) : 22 [17:46:46]line Товар: 2710124130 [17:46:46]line Аи-92-К-5 [17:46:46]line 7.600 * 65.80 [17:46:46]line = 500.08 [17:46:46]line НДС 12% НСП 1% [17:46:46]line > о реализуемом товаре [17:46:46]line ОКРУГЛЕНИЕ: -0.08 [17:46:46]line ИТОГО: 500.00 [17:46:46]line Внесено: 500.00 [17:46:46]line СДАЧА: 0.00 [17:46:46]line НСП 1% : 4.42 [17:46:46]line НДС 12% : 53.11 [17:46:46]line Наличными: 500.00 [17:46:46]line Безнал.: 0.00 [17:46:46]line Место: АЗС № 72 "Партнер Нефть" [17:46:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:46:46]line СНО: Общий режим [17:46:46]line Чек 246 13.07.2024 17:46 [17:46:46]line Смена: 446 ФФД: 1.0 [17:46:46]line ЗНМ: 0300000160 [17:46:46]line РНМ: 0000000000090829 [17:46:46]line Версия ККМ: 001 [17:46:46]line ФМ: 0000000000874718 [17:46:46]line ФД: 164686 [17:46:46]line ФПД: 143093024233204 [17:46:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164686&fm=143093024233204&tin=02508201610067®Number=0000000000090829&sum=50000 [17:46:46]OFD Sender: Processing packet 164686 [packets to send 104, broken 103] [17:46:46]ProducePacketName [17:46:46]name=ofd_packets/00164686 [17:46:46]OFD Sender: To server: pG, [17:46:46]CommunicateWithHost lk.salyk.kg:30040 [17:46:46]ConnectInit lk.salyk.kg [17:46:46]written 0, free lines is 4095 [17:46:46]Connected sock=10 [17:46:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 6A 07 01 17 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F6 00 00 00 F4 03 04 00 87 BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 83 02 00 35 04 06 00 82 24 70 E1 16 F4 B1 24 C7 F9 1C FA 35 65 [17:46:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F 53 47 00 0E 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 34 37 31 38 10 04 04 00 4E 83 02 00 F4 03 04 00 18 64 92 66 B6 04 01 00 00 AD 2F AF 20 43 C3 EE 65 [17:46:46]CommunicateWithHost err = 0 [17:46:46]CheckOFDResponse [17:46:46]1017 (14) - 77093643461234 [17:46:46]1041 (16) - 0000000000874718 [17:46:46]1040 (4) - 164686 [17:46:46]1012 (4) - 13.07.2024 11:25 [17:46:46]1206 (1) - 0 [17:46:46]OFD Sender: Remove packet 164686 [17:46:46]ProducePacketName [17:46:46]name=ofd_packets/00164686 [17:46:46]NVStorageDeleteData [17:46:47]Write to MH i2c: 01 00 00 D5 37 0C [17:46:47]Write i2c OK [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: 01 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: 01 07 00 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: 01 07 00 D5 37 00 00 00 00 00 0A 0D 2A [17:46:47]RasterBufferAndPrint [17:46:47]line [17:46:47]line [17:46:47]line [17:46:47]line [17:46:47]line [17:46:47]written 0, free lines is 3347 [17:46:47]MH_Cut [17:46:47]Write to MH i2c: D1 01 00 DC 37 01 E5 [17:46:47]Write i2c OK [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: D1 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: D1 01 00 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: D1 01 00 DC 37 00 E4 [17:46:47]Write to MH i2c: 01 00 00 DD 37 14 [17:46:47]Write i2c OK [17:46:47]MH_I2C_Read... [17:46:47]OFD Sender: No OFD packet to send [17:46:47]*** Cut start [17:46:47]*** Partial cut [17:46:47]*** CUTSNS_PIN = 1 [17:46:47]*** CUTSNS_PIN = 0 [17:46:48]*** Brake cut motor [17:46:48]Read from MH i2c: 01 [17:46:48]MH_I2C_Read... [17:46:48]*** Stop cut motor [17:46:48]*** Cut end [17:46:48]Read from MH i2c: 01 07 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: 01 07 00 DD 37 00 00 00 00 00 FF 0F 29 [17:46:48]process_action close_receipt done [17:46:48]requested_data is exist [17:46:48]produce_requested_data [17:46:48]requested_item fm.sn is exist - process it [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 11 00 00 [17:46:48]Write to MH i2c: E2 08 00 DE 37 80 11 00 00 00 00 00 00 8F [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 17 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 17 00 DE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [17:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:46:48]wFMCommunicate OK [17:46:48]requested_item fd.num is exist - process it [17:46:48]SAM_PROTO_GetFieldsCounters [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 13 00 00 [17:46:48]Write to MH i2c: E2 08 00 DF 37 80 13 00 00 00 00 00 00 92 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 62 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 62 00 DF 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:46: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:48]wFMCommunicate OK [17:46:48]SAM_PROTO_GetFieldsCounters done [17:46:48]requested_item shift.num is exist - process it [17:46:48]requested_item shift.opened is exist - process it [17:46:48]req_shift_opened [17:46:48]FM_GetShiftState [17:46:48]SAM_PROTO_GetShiftState [17:46:48]wFMCommunicate request_size=4 [17:46:48]MH_SAM_APDU [17:46:48]CAPDU: 80 13 01 00 [17:46:48]Write to MH i2c: E2 08 00 E0 37 80 13 01 00 00 00 00 00 94 [17:46:48]Write i2c OK [17:46:48]MH_I2C_Read... [17:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:48]Read from MH i2c: E2 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 [17:46:48]MH_I2C_Read... [17:46:48]Read from MH i2c: E2 0E 00 E0 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 75 [17:46:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:46:48]wFMCommunicate OK [17:46:48]SAM_PROTO_GetShiftState done [17:46:48]FM_GetShiftState done [17:46:48]req_shift_opened done [17:46:48]requested_item shift.open_date is exist - process it [17:46:48]req_shift_open_date [17:46:48]req_shift_open_date done [17:46:48]produce_requested_data done [17:46:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164686,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:46:48]process_action_free close_receipt [17:46:48]json_value_free [17:46:48]json_value_free done [17:46:48]process_json_proto returns [17:46:48]Send response to host [17:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164686,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:46:48]free response buf [17:46:48]execute_script done [17:46:48]execute_script returns [17:46:48]free content buf [17:46:48]Sock 9.Close socket [17:46:48]Sock 9.Thread stoped [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:40]accept exits with 7 [17:47:40]New connection [17:47:40]New thread 3067293028 created [17:47:40]Thread 3067149668 joined [17:47:40]Waiting for new connection... [17:47:40] Sock 7.Parse request [17:47:40]Sock 7.Check first char [17:47:40]Sock 7.First char is OK [17:47:40]request: POST /json_proto HTTP/1.0 [17:47:40]Method: POST [17:47:40]URL: /json_proto [17:47:40]Method is POST - this is cgi request [17:47:40]url: /json_proto [17:47:40]query_string will be loaded in cgi processing [17:47:40]execute_cgi json_proto POST (null) [17:47:40]execute_cgi path=json_proto method=POST [17:47:40]POST find Content-Length [17:47:40]Host: 172.17.56.4:8080 [17:47:40]Content-Length: 677 [17:47:40]Content-Type: application/json [17:47:40] [17:47:40]POST finish read [17:47:40]Found Content-Length = 677 [17:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:40]execute_script... [17:47: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)458781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:40]POST & json_proto [17:47:40]process_json_proto [17:47:40]json parsed OK: [17:47:40]protocol is kg_v1.0 [17:47:40]action value=close_receipt [17:47:40]process_action close_receipt [17:47:40]cmd_close_receipt [17:47:40]MH_GetDate [17:47:40]Write to MH i2c: F0 00 00 E1 37 07 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: F0 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: F0 09 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: F0 09 00 E1 37 00 BF BD 92 66 C9 DC B2 64 3F [17:47:40]GetLastDocTimeStamp 1720892807 [17:47:40]current date 1720892863 [17:47:40]FM_GetShiftState [17:47:40]SAM_PROTO_GetShiftState [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 13 01 00 [17:47:40]Write to MH i2c: E2 08 00 E2 37 80 13 01 00 00 00 00 00 96 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0E 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 0E 00 E2 37 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 77 [17:47:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:47:40]wFMCommunicate OK [17:47:40]SAM_PROTO_GetShiftState done [17:47:40]FM_GetShiftState done [17:47:40]opened in 1720831249 [17:47:40]opened+sec_in_day 1720917649 [17:47:40]quantity*price = 24017 [17:47:40]sum+1 = 24018 [17:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 247 13.07.2024 17:47 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164687 ФПД: 8668533898873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164687&fm=8668533898873&tin=02508201610067®Number=0000000000090829&sum=24000 [17:47:41]StoreToDocumentArchive [17:47:41]shift 446 fd 164687 [17:47:41]save to /storage/0446/doc_00164687 [17:47:41]save last doc name /storage/0446/doc_00164687 to /storage/kkm_last_doc_name [17:47:41]save OK [17:47:41]Clear old archive folders... [17:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:41]tlvbuf is 01422AD0 [17:47:41]SAM_PROTO_ClearQueue [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 09 00 00 [17:47:41]Write to MH i2c: E2 08 00 EF 37 80 09 00 00 00 00 00 00 98 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 EF 37 00 90 00 9A [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]SAM_PROTO_ClearQueue done [17:47:41]KKMCreateOFDPacket [17:47:41]OFDProtocolAddRootSTLVToBuf [17:47:41]FM_MakeSignedData [17:47:41]FM_MakeSignedData [17:47:41]SAM_PROTO_SignData [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 01 02 [17:47:41]Write to MH i2c: E2 08 00 F0 37 80 0D 01 02 00 00 00 00 A0 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 03 00 F0 37 00 90 00 9B [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]wFMCommunicate request_size=255 [17:47:41]MH_SAM_APDU [17:47: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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 BF BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 83 02 00 35 04 06 00 07 [17:47:41]Write to MH i2c: E2 02 01 F1 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 BF BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 83 02 00 35 04 06 00 07 00 00 0D [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 F1 37 00 90 00 9C [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=10 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 02 02 05 E2 4C E2 3E 79 [17:47:42]Write to MH i2c: E2 0D 00 F2 37 80 0D 02 02 05 00 E2 4C E2 3E 79 00 00 74 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 F2 37 00 90 00 9D [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 03 02 [17:47:42]Write to MH i2c: E2 08 00 F3 37 80 0D 03 02 00 00 00 00 A5 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0B 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0B 00 F3 37 00 8C 07 BF AD 55 8E E2 99 90 00 03 [17:47:42]RAPDU: 8C 07 BF AD 55 8E E2 99 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_SignData done [17:47:42]FM_MakeSignedData done [17:47:42]CreateOFDProtocolMessage [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 11 00 00 [17:47:42]Write to MH i2c: E2 08 00 F4 37 80 11 00 00 00 00 00 00 A5 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 F4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [17:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:42]wFMCommunicate OK [17:47:42]CreateOFDProtocolMessage done [17:47:42]OFDSenderStorePacket 164687 [17:47:42]StoreOFDPacket docnum=164687 [17:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 37 07 01 2C 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 BF BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 83 02 00 35 04 06 00 07 E2 4C E2 3E 79 8C 07 BF AD 55 8E E2 99 [17:47:42]CheckFolder [17:47:42]dirname=/storage/ofd_packets [17:47:42]CheckFolder done [17:47:42]ProducePacketName [17:47:42]name=ofd_packets/00164687 [17:47:42]NVStorageSaveData ofd_packets/00164687 [17:47:42]File name is /storage/ofd_packets/00164687 [17:47:42]Write 301 bytes [17:47:42]NVStorageSaveData done [17:47:42]OFDSenderStorePacket done [17:47:42]KKMCreateOFDPacket done [17:47:42]NVStorageSaveData kkm_last_timestamp [17:47:42]File name is /storage/kkm_last_timestamp [17:47:42]Write 4 bytes [17:47:42]NVStorageSaveData done [17:47:42]ExternCall_PrintAddStr [17:47:42]wPrintStart [17:47:42]Write to MH i2c: 01 00 00 F5 37 2C [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 F5 37 00 00 00 00 00 FF 0F 41 [17:47:42]RasterBufferAndPrint [17:47:42]line Счет N : (1)458781 [17:47:42]line ИНН: 02508201610067 [17:47:42]line Контрольно-Кассовый Чек [17:47:42]line ПРОДАЖА [17:47:42]line ТРК (МРК, ГНК) : 12 [17:47:42]line Товар: 2710124130 [17:47:42]line Аи-92-К-5 [17:47:42]line 3.650 * 65.80 [17:47:42]line = 240.17 [17:47:42]line НДС 12% НСП 1% [17:47:42]line > о реализуемом товаре [17:47:42]line ОКРУГЛЕНИЕ: -0.17 [17:47:42]line ИТОГО: 240.00 [17:47:42]line Внесено: 240.00 [17:47:42]line СДАЧА: 0.00 [17:47:42]line НСП 1% : 2.12 [17:47:42]line НДС 12% : 25.50 [17:47:42]line Наличными: 240.00 [17:47:42]line Безнал.: 0.00 [17:47:42]line Место: АЗС № 72 "Партнер Нефть" [17:47:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:47:42]line СНО: Общий режим [17:47:42]line Чек 247 13.07.2024 17:47 [17:47:42]line Смена: 446 ФФД: 1.0 [17:47:42]line ЗНМ: 0300000160 [17:47:42]line РНМ: 0000000000090829 [17:47:42]line Версия ККМ: 001 [17:47:42]line ФМ: 0000000000874718 [17:47:42]line ФД: 164687 [17:47:42]line ФПД: 8668533898873 [17:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164687&fm=8668533898873&tin=02508201610067®Number=0000000000090829&sum=24000 [17:47:42]OFD Sender: Processing packet 164687 [packets to send 104, broken 103] [17:47:42]ProducePacketName [17:47:42]name=ofd_packets/00164687 [17:47:42]OFD Sender: To server: pG, [17:47:42]CommunicateWithHost lk.salyk.kg:30040 [17:47:42]ConnectInit lk.salyk.kg [17:47:42]written 0, free lines is 4095 [17:47:42]Connected sock=10 [17:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 37 07 01 2C 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 BF BD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 83 02 00 35 04 06 00 07 E2 4C E2 3E 79 8C 07 BF AD 55 8E E2 99 [17:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 F1 47 00 F7 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 34 37 31 38 10 04 04 00 4F 83 02 00 F4 03 04 00 50 64 92 66 B6 04 01 00 00 15 26 19 B2 3B A2 00 AF [17:47:43]CommunicateWithHost err = 0 [17:47:43]CheckOFDResponse [17:47:43]1017 (14) - 77093643461234 [17:47:43]1041 (16) - 0000000000874718 [17:47:43]1040 (4) - 164687 [17:47:43]1012 (4) - 13.07.2024 11:26 [17:47:43]1206 (1) - 0 [17:47:43]OFD Sender: Remove packet 164687 [17:47:43]ProducePacketName [17:47:43]name=ofd_packets/00164687 [17:47:43]NVStorageDeleteData [17:47:43]Write to MH i2c: 01 00 00 1F 38 57 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 1F 38 00 00 00 00 00 FD 0C 67 [17:47:43]RasterBufferAndPrint [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]written 0, free lines is 3331 [17:47:43]MH_Cut [17:47:43]Write to MH i2c: D1 01 00 26 38 01 30 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: D1 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: D1 01 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: D1 01 00 26 38 00 2F [17:47:43]Write to MH i2c: 01 00 00 27 38 5F [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]OFD Sender: No OFD packet to send [17:47:43]int [17:47:43]*** FLAG_PRN_PAP2 set [17:47:43]*** Cut start [17:47:43]*** Partial cut [17:47:43]*** CUTSNS_PIN = 1 [17:47:43]*** CUTSNS_PIN = 0 [17:47:43]*** Brake cut motor [17:47:44]Read from MH i2c: 01 [17:47:44]MH_I2C_Read... [17:47:44]*** Stop cut motor [17:47:44]*** Cut end [17:47:44]Read from MH i2c: 01 07 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 27 38 00 02 00 00 00 FF 0F 76 [17:47:44]process_action close_receipt done [17:47:44]requested_data is exist [17:47:44]produce_requested_data [17:47:44]requested_item fm.sn is exist - process it [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 11 00 00 [17:47:44]Write to MH i2c: E2 08 00 28 38 80 11 00 00 00 00 00 00 DA [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 17 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 17 00 28 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [17:47:44]Write to MH i2c: RAPDU: 01 11 00 04 10 00 00 29 30 38 30 61 30 [17:47:44]30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:44]wFMCommunicate OK [17:47:44]Write i2c OK [17:47:44]requested_item fd.num is exist - process it [17:47:44]MH_I2C_Read... [17:47:44]SAM_PROTO_GetFieldsCounters [17:47:44]Read from MH i2c: wFMCommunicate request_size=4 [17:47:44]01 MH_SAM_APDU [17:47:44] [17:47:44]CAPDU: MH_I2C_Read... [17:47:44]80 13 00 Read from MH i2c: 00 01 [17:47:44]07 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 29 38 00 02 00 00 00 FF 0F 78 [17:47:44]Write to MH i2c: state=0 [17:47:44]E2 Cover opened [17:47:44]08 00 2A 38 80 13 00 00 00 00 00 00 DE [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 62 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 62 00 2A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:47: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:44]wFMCommunicate OK [17:47:44]SAM_PROTO_GetFieldsCounters done [17:47:44]requested_item shift.num is exist - process it [17:47:44]requested_item shift.opened is exist - process it [17:47:44]req_shift_opened [17:47:44]FM_GetShiftState [17:47:44]SAM_PROTO_GetShiftState [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 13 01 00 [17:47:44]Write to MH i2c: E2 08 00 2B 38 80 13 01 00 00 00 00 00 E0 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0E 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0E 00 2B 38 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C1 [17:47:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:47:44]wFMCommunicate OK [17:47:44]SAM_PROTO_GetShiftState done [17:47:44]FM_GetShiftState done [17:47:44]req_shift_opened done [17:47:44]requested_item shift.open_date is exist - process it [17:47:44]req_shift_open_date [17:47:44]req_shift_open_date done [17:47:44]produce_requested_data done [17:47:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164687,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:47:44]process_action_free close_receipt [17:47:44]json_value_free [17:47:44]json_value_free done [17:47:44]process_json_proto returns [17:47:44]Send response to host [17:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164687,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:47:44]free response buf [17:47:44]execute_script done [17:47:44]execute_script returns [17:47:44]free content buf [17:47:44]Sock 7.Close socket [17:47:44]Sock 7.Thread stoped [17:47:48]OFD Sender: No OFD packet to send [17:47:49]Write to MH i2c: 01 00 00 2C 38 64 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 07 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 07 00 2C 38 00 02 00 00 00 FF 0F 7B [17:47:49]state=3 [17:47:49]Cover opened [17:47:53]OFD Sender: No OFD packet to send [17:47:54]Write to MH i2c: 01 00 00 2D 38 65 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 07 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 07 00 2D 38 00 02 00 00 00 FF 0F 7C [17:47:54]state=3 [17:47:54]Cover opened [17:47:58]OFD Sender: No OFD packet to send [17:47:59]Write to MH i2c: 01 00 00 2E 38 66 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 2E 38 00 02 00 00 00 FF 0F 7D [17:47:59]state=3 [17:47:59]Cover opened [17:48:03]OFD Sender: No OFD packet to send [17:48:04]Write to MH i2c: 01 00 00 2F 38 67 [17:48:04]Write i2c OK [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: 01 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: 01 07 00 [17:48:04]MH_I2C_Read... [17:48:04]Read from MH i2c: 01 07 00 2F 38 00 02 00 00 00 FF 0F 7E [17:48:04]state=3 [17:48:04]Cover opened [17:48:05]int [17:48:05]Write to MH i2c: 01 00 00 30 38 68 [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 07 00 [17:48:05]MH_I2C_Read... [17:48:05]*** FLAG_PRN_PAP1 set [17:48:05]*** FLAG_PRN_PAP1 reset [17:48:05]Read from MH i2c: 01 07 00 30 38 00 02 00 00 00 FF 0F 7F [17:48:05]state=3 [17:48:05]Cover opened [17:48:05]int [17:48:05]Write to MH i2c: 01 00 00 31 38 69 [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 07 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 07 00 31 38 00 02 00 00 00 FF 0F 80 [17:48:05]state=3 [17:48:05]Cover opened [17:48:05]int [17:48:05]Write to MH i2c: 01 00 00 32 38 6A [17:48:05]*** FLAG_PRN_PAP1 set [17:48:05]*** FLAG_PRN_PAP1 reset [17:48:05]*** FLAG_PRN_PAP1 set [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 07 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: 01 07 00 32 38 00 03 00 00 00 FF 0F 82 [17:48:05]state=3 [17:48:05]No paper [17:48:05]Cover opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31449392+1689443529=1720892921 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 FA BD 92 66 C9 DC B2 64 69 [17:48:42]Current date/time: 13.07.2024 17:48 [17:48:42]FM_Init [17:48:42]wFMConnect [17:48:42]MH_SAM_On [17:48:42]Write to MH i2c: E0 00 00 08 00 E7 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_init finished! [17:48:42]*** atr: [17:48:42]*** 0F 3B D5 18 FF 81 91 FE [17:48:42]*** 1F C3 80 73 C8 21 10 0A [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]*** 00 00 00 00 00 00 00 00 [17:48:42]Read from MH i2c: E0 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E0 10 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:48:42]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:48:42]wFMCommunicate request_size=10 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:48:42]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:42]wFMCommunicate OK [17:48:42]Detected FM SN is 0000000000874718 [17:48:42]Stored FM SN is 0000000000874718 [17:48:42]wFMCommunicate request_size=9 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 16 00 00 04 29 B3 00 00 [17:48:42]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]FM PIN OK [17:48:42]wFMCommunicate request_size=8 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 14 04 00 03 02 00 01 [17:48:42]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=13 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:48:42]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:48:42]RAPDU: 90 00 [17:48:42]wFMCommunicate OK [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:42]wFMCommunicate OK [17:48:42]DocumentArchiveInit [17:48:42]Start Httpd... [17:48:42]Httpd thread 3067534692 created [17:48:42]Write to MH i2c: 01 00 00 0F 00 0F [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:48:42]MH Int Process started [17:48:42]Allocated Socket 8 [17:48:42]Bind OK [17:48:42]Listen OK [17:48:42]httpd running on port 8080 [17:48:42]Waiting for new connection... [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:51]accept exits with 9 [17:48:51]New connection [17:48:51]New thread 3067247972 created [17:48:51]Waiting for new connection... [17:48:51] Sock 9.Parse request [17:48:51]Sock 9.Check first char [17:48:51]Sock 9.First char is OK [17:48:51]request: POST /json_proto HTTP/1.0 [17:48:51]Method: POST [17:48:51]URL: /json_proto [17:48:51]Method is POST - this is cgi request [17:48:51]url: /json_proto [17:48:51]query_string will be loaded in cgi processing [17:48:51]execute_cgi json_proto POST (null) [17:48:51]execute_cgi path=json_proto method=POST [17:48:51]POST find Content-Length [17:48:51]Host: 172.17.56.4:8080 [17:48:51]Content-Length: 215 [17:48:51]Content-Type: application/json [17:48:51] [17:48:51]POST finish read [17:48:51]Found Content-Length = 215 [17:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:51]execute_script... [17:48:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:51]POST & json_proto [17:48:51]process_json_proto [17:48:51]json parsed OK: [17:48:51]protocol is kg_v1.0 [17:48:51]action value=get_value [17:48:51]process_action get_value [17:48:51]cmd_get_value [17:48:51]process_action get_value done [17:48:51]requested_data is exist [17:48:51]produce_requested_data [17:48:51]requested_item kkm.sn is exist - process it [17:48:51]requested_item kkm.ver is exist - process it [17:48:51]requested_item fm.sn is exist - process it [17:48:51]wFMCommunicate request_size=4 [17:48:51]MH_SAM_APDU [17:48:51]CAPDU: 80 11 00 00 [17:48:51]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 17 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [17:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:48:52]wFMCommunicate OK [17:48:52]requested_item fd.num is exist - process it [17:48:52]SAM_PROTO_GetFieldsCounters [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 13 00 00 [17:48:52]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 62 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [17:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:52]wFMCommunicate OK [17:48:52]SAM_PROTO_GetFieldsCounters done [17:48:52]requested_item shift.num is exist - process it [17:48:52]requested_item shift.opened is exist - process it [17:48:52]req_shift_opened [17:48:52]FM_GetShiftState [17:48:52]SAM_PROTO_GetShiftState [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 13 01 00 [17:48:52]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 70 [17:48:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:48:52]wFMCommunicate OK [17:48:52]SAM_PROTO_GetShiftState done [17:48:52]FM_GetShiftState done [17:48:52]req_shift_opened done [17:48:52]requested_item shift.open_date is exist - process it [17:48:52]req_shift_open_date [17:48:52]req_shift_open_date done [17:48:52]produce_requested_data done [17:48:52]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164687,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:48:52]process_action_free get_value [17:48:52]json_value_free [17:48:52]json_value_free done [17:48:52]process_json_proto returns [17:48:52]Send response to host [17:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164687,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:48:52]free response buf [17:48:52]execute_script done [17:48:52]execute_script returns [17:48:52]free content buf [17:48:52]Sock 9.Close socket [17:48:52]Sock 9.Thread stoped [17:48:52]accept exits with 10 [17:48:52]New connection [17:48:52]New thread 3067104612 created [17:48:52]Thread 3067247972 joined [17:48:52]Waiting for new connection... [17:48:52] Sock 10.Parse request [17:48:52]Sock 10.Check first char [17:48:52]Sock 10.First char is OK [17:48:52]request: POST /json_proto HTTP/1.0 [17:48:52]Method: POST [17:48:52]URL: /json_proto [17:48:52]Method is POST - this is cgi request [17:48:52]url: /json_proto [17:48:52]query_string will be loaded in cgi processing [17:48:52]execute_cgi json_proto POST (null) [17:48:52]execute_cgi path=json_proto method=POST [17:48:52]POST find Content-Length [17:48:52]Host: 172.17.56.4:8080 [17:48:52]Content-Length: 331 [17:48:52]Content-Type: application/json [17:48:52] [17:48:52]POST finish read [17:48:52]Found Content-Length = 331 [17:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:48:52]execute_script... [17:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:48:52]POST & json_proto [17:48:52]process_json_proto [17:48:52]json parsed OK: [17:48:52]protocol is kg_v1.0 [17:48:52]action value=get_value [17:48:52]process_action get_value [17:48:52]cmd_get_value [17:48:52]process_action get_value done [17:48:52]requested_data is exist [17:48:52]produce_requested_data [17:48:52]requested_item fm.sale.total is exist - process it [17:48:52]SAM_PROTO_GetFMData [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 13 03 00 [17:48:52]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]OFD Sender: No OFD packet to send [17:48:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 FD 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 D0 7F 02 00 69 04 A3 00 6F 04 04 00 C2 7E 02 00 B1 04 05 00 BE 79 B2 57 02 70 04 05 00 59 8E 98 35 02 72 04 04 00 65 EB 19 22 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 37 94 B5 3F 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 50 F1 4E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 19 59 EF 03 09 00 90 00 F1 [17:48:52]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 D0 7F 02 00 69 04 A3 00 6F 04 04 00 C2 7E 02 00 B1 04 05 00 BE 79 B2 57 02 70 04 05 00 59 8E 98 35 02 72 04 04 00 65 EB 19 22 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 37 94 B5 3F 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 50 F1 4E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 19 59 EF 03 09 00 90 00 [17:48:52]wFMCommunicate OK [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 17 00 00 [17:48:52]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [17:48:53]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 17 00 00 [17:48:53]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [17:48:53]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 17 00 00 [17:48:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [17:48:53]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 17 00 00 [17:48:53]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 E1 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:48:53]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_GetFMData done [17:48:54]requested_item fm.sale_refund.total is exist - process it [17:48:54]requested_item fm.buy.total is exist - process it [17:48:54]requested_item shift.sale.total is exist - process it [17:48:54]SAM_PROTO_GetShiftData [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 13 02 00 [17:48:54]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 FD 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 F7 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 61 40 0D 01 70 04 03 00 A8 4B ED 72 04 03 00 B9 F4 1F 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 61 99 1C 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 FA 61 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 10 02 02 70 04 03 00 10 02 02 72 04 00 00 00 04 79 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 97 36 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 51 [17:48:54]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 F7 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 61 40 0D 01 70 04 03 00 A8 4B ED 72 04 03 00 B9 F4 1F 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 61 99 1C 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 FA 61 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 10 02 02 70 04 03 00 10 02 02 72 04 00 00 00 04 79 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 97 36 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 17 00 00 [17:48:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 FD 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8D 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 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 90 00 D4 [17:48:54]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8D 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 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 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 17 00 00 [17:48:54]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:55]Read from MH i2c: E2 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 FD 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [17:48:55]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:48:55]wFMCommunicate OK [17:48:55]wFMCommunicate request_size=4 [17:48:55]MH_SAM_APDU [17:48:55]CAPDU: 80 17 00 00 [17:48:55]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:48:55]Read from MH i2c: E2 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 FD 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 FD 00 1B 00 00 00 EF 03 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 90 00 13 [17:48:55]RAPDU: 00 EF 03 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 90 00 [17:48:55]wFMCommunicate OK [17:48:55]wFMCommunicate request_size=4 [17:48:55]MH_SAM_APDU [17:48:55]CAPDU: 80 17 00 00 [17:48:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:48:55]Read from MH i2c: E2 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 D7 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 D7 00 1C 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [17:48:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:48:55]wFMCommunicate OK [17:48:55]SAM_PROTO_GetShiftData done [17:48:55]requested_item shift.sale.total_cash is exist - process it [17:48:55]requested_item shift.sale_refund.total is exist - process it [17:48:55]requested_item shift.sale_refund.total_cash is exist - process it [17:48:55]requested_item shift.buy.total is exist - process it [17:48:55]requested_item shift.buy.total_cash is exist - process it [17:48:55]produce_requested_data done [17:48:55]produce_requested_data return {"fm.sale.total":100612489.58,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":176456.65,"shift.sale.total_cash":155514.00,"shift.sale_refund.total":1316.00,"shift.sale_refund.total_cash":1316.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:48:55]process_action_free get_value [17:48:55]json_value_free [17:48:55]json_value_free done [17:48:55]process_json_proto returns [17:48:55]Send response to host [17:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100612489.58,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":176456.65,"shift.sale.total_cash":155514.00,"shift.sale_refund.total":1316.00,"shift.sale_refund.total_cash":1316.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:48:55]free response buf [17:48:55]execute_script done [17:48:55]execute_script returns [17:48:55]free content buf [17:48:55]Sock 10.Close socket [17:48:55]Sock 10.Thread stoped [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:21]accept exits with 7 [17:52:21]New connection [17:52:21]New thread 3067247972 created [17:52:21]Thread 3067104612 joined [17:52:21]Waiting for new connection... [17:52:21] Sock 7.Parse request [17:52:21]Sock 7.Check first char [17:52:21]Sock 7.First char is OK [17:52:21]request: POST /json_proto HTTP/1.0 [17:52:21]Method: POST [17:52:21]URL: /json_proto [17:52:21]Method is POST - this is cgi request [17:52:21]url: /json_proto [17:52:21]query_string will be loaded in cgi processing [17:52:21]execute_cgi json_proto POST (null) [17:52:21]execute_cgi path=json_proto method=POST [17:52:21]POST find Content-Length [17:52:21]Host: 172.17.56.4:8080 [17:52:21]Content-Length: 677 [17:52:21]Content-Type: application/json [17:52:21] [17:52:21]POST finish read [17:52:21]Found Content-Length = 677 [17:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:21]execute_script... [17:52: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)458782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:21]POST & json_proto [17:52:21]process_json_proto [17:52:21]json parsed OK: [17:52:21]protocol is kg_v1.0 [17:52:21]action value=close_receipt [17:52:21]process_action close_receipt [17:52:21]cmd_close_receipt [17:52:21]MH_GetDate [17:52:21]Write to MH i2c: F0 00 00 1D 00 0C [17:52:21]Write i2c OK [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: F0 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: F0 09 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: F0 09 00 1D 00 00 D5 BE 92 66 C9 DC B2 64 5B [17:52:21]GetLastDocTimeStamp 97 [17:52:21]current date 1720893141 [17:52:21]FM_GetShiftState [17:52:21]SAM_PROTO_GetShiftState [17:52:21]wFMCommunicate request_size=4 [17:52:21]MH_SAM_APDU [17:52:21]CAPDU: 80 13 01 00 [17:52:21]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:52:21]Write i2c OK [17:52:21]MH_I2C_Read... [17:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:21]Read from MH i2c: E2 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 0E 00 [17:52:21]MH_I2C_Read... [17:52:21]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [17:52:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:52:21]wFMCommunicate OK [17:52:21]SAM_PROTO_GetShiftState done [17:52:21]FM_GetShiftState done [17:52:21]opened in 1720831249 [17:52:21]opened+sec_in_day 1720917649 [17:52:21]quantity*price = 50008 [17:52:21]sum+1 = 50009 [17:52:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 248 13.07.2024 17:52 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164688 ФПД: 214276957860871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164688&fm=214276957860871&tin=02508201610067®Number=0000000000090829&sum=50000 [17:52:22]StoreToDocumentArchive [17:52:22]shift 446 fd 164688 [17:52:22]save to /storage/0446/doc_00164688 [17:52:22]save last doc name /storage/0446/doc_00164688 to /storage/kkm_last_doc_name [17:52:22]save OK [17:52:22]Clear old archive folders... [17:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:22]tlvbuf is 01E51A80 [17:52:22]SAM_PROTO_ClearQueue [17:52:22]wFMCommunicate request_size=4 [17:52:22]MH_SAM_APDU [17:52:22]CAPDU: 80 09 00 00 [17:52:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:52:22]Write i2c OK [17:52:22]MH_I2C_Read... [17:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:22]Read from MH i2c: E2 [17:52:22]MH_I2C_Read... [17:52:22]Read from MH i2c: E2 03 00 [17:52:22]MH_I2C_Read... [17:52:22]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:52:22]RAPDU: 90 00 [17:52:22]wFMCommunicate OK [17:52:22]SAM_PROTO_ClearQueue done [17:52:22]KKMCreateOFDPacket [17:52:22]OFDProtocolAddRootSTLVToBuf [17:52:22]FM_MakeSignedData [17:52:22]FM_MakeSignedData [17:52:22]SAM_PROTO_SignData [17:52:22]wFMCommunicate request_size=4 [17:52:22]MH_SAM_APDU [17:52:22]CAPDU: 80 0D 01 02 [17:52:22]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:52:22]Write i2c OK [17:52:22]MH_I2C_Read... [17:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:22]Read from MH i2c: E2 [17:52:22]MH_I2C_Read... [17:52:22]Read from MH i2c: E2 03 00 [17:52:22]MH_I2C_Read... [17:52:22]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:52:22]RAPDU: 90 00 [17:52:22]wFMCommunicate OK [17:52:22]wFMCommunicate request_size=255 [17:52:22]MH_SAM_APDU [17:52: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F8 00 00 00 F4 03 04 00 D5 BE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 83 02 00 35 04 06 00 C2 [17:52:22]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F8 00 00 00 F4 03 04 00 D5 BE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 83 02 00 35 04 06 00 C2 00 00 F7 [17:52:22]Write i2c OK [17:52:22]MH_I2C_Read... [17:52:22]OFD Sender: No OFD packet to send [17:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:23]Read from MH i2c: E2 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 03 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:52:23]RAPDU: 90 00 [17:52:23]wFMCommunicate OK [17:52:23]wFMCommunicate request_size=10 [17:52:23]MH_SAM_APDU [17:52:23]CAPDU: 80 0D 02 02 05 E2 3D F4 F4 07 [17:52:23]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E2 3D F4 F4 07 00 00 C0 [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:23]Read from MH i2c: E2 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 03 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:52:23]RAPDU: 90 00 [17:52:23]wFMCommunicate OK [17:52:23]wFMCommunicate request_size=4 [17:52:23]MH_SAM_APDU [17:52:23]CAPDU: 80 0D 03 02 [17:52:23]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:23]Read from MH i2c: E2 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 0B 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 0B 00 2F 00 00 B6 87 B6 B9 14 5F F9 6B 90 00 2E [17:52:23]RAPDU: B6 87 B6 B9 14 5F F9 6B 90 00 [17:52:23]wFMCommunicate OK [17:52:23]SAM_PROTO_SignData done [17:52:23]FM_MakeSignedData done [17:52:23]CreateOFDProtocolMessage [17:52:23]wFMCommunicate request_size=4 [17:52:23]MH_SAM_APDU [17:52:23]CAPDU: 80 11 00 00 [17:52:23]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:23]Read from MH i2c: E2 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 17 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [17:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:23]wFMCommunicate OK [17:52:23]CreateOFDProtocolMessage done [17:52:23]OFDSenderStorePacket 164688 [17:52:23]StoreOFDPacket docnum=164688 [17:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 93 07 01 4F 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F8 00 00 00 F4 03 04 00 D5 BE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 83 02 00 35 04 06 00 C2 E2 3D F4 F4 07 B6 87 B6 B9 14 5F F9 6B [17:52:23]CheckFolder [17:52:23]dirname=/storage/ofd_packets [17:52:23]CheckFolder done [17:52:23]ProducePacketName [17:52:23]name=ofd_packets/00164688 [17:52:23]NVStorageSaveData ofd_packets/00164688 [17:52:23]File name is /storage/ofd_packets/00164688 [17:52:23]Write 301 bytes [17:52:23]NVStorageSaveData done [17:52:23]OFDSenderStorePacket done [17:52:23]KKMCreateOFDPacket done [17:52:23]NVStorageSaveData kkm_last_timestamp [17:52:23]File name is /storage/kkm_last_timestamp [17:52:23]Write 4 bytes [17:52:23]NVStorageSaveData done [17:52:23]ExternCall_PrintAddStr [17:52:23]wPrintStart [17:52:23]Write to MH i2c: 01 00 00 31 00 31 [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 07 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:52:23]RasterBufferAndPrint [17:52:23]line Счет N : (1)458782 [17:52:23]line ИНН: 02508201610067 [17:52:23]line Контрольно-Кассовый Чек [17:52:23]line ПРОДАЖА [17:52:23]line ТРК (МРК, ГНК) : 22 [17:52:23]line Товар: 2710124130 [17:52:23]line Аи-92-К-5 [17:52:23]line 7.600 * 65.80 [17:52:23]line = 500.08 [17:52:23]line НДС 12% НСП 1% [17:52:23]line > о реализуемом товаре [17:52:23]line ОКРУГЛЕНИЕ: -0.08 [17:52:23]line ИТОГО: 500.00 [17:52:23]line Внесено: 500.00 [17:52:23]line СДАЧА: 0.00 [17:52:23]line НСП 1% : 4.42 [17:52:23]line НДС 12% : 53.11 [17:52:23]line Наличными: 500.00 [17:52:23]line Безнал.: 0.00 [17:52:23]line Место: АЗС № 72 "Партнер Нефть" [17:52:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:52:23]line СНО: Общий режим [17:52:23]line Чек 248 13.07.2024 17:52 [17:52:23]line Смена: 446 ФФД: 1.0 [17:52:23]line ЗНМ: 0300000160 [17:52:23]line РНМ: 0000000000090829 [17:52:23]line Версия ККМ: 001 [17:52:23]line ФМ: 0000000000874718 [17:52:23]line ФД: 164688 [17:52:23]line ФПД: 214276957860871 [17:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164688&fm=214276957860871&tin=02508201610067®Number=0000000000090829&sum=50000 [17:52:23]OFD Sender: Processing packet 164688 [packets to send 104, broken 103] [17:52:23]ProducePacketName [17:52:23]name=ofd_packets/00164688 [17:52:23]OFD Sender: To server: pG, [17:52:23]CommunicateWithHost lk.salyk.kg:30040 [17:52:23]ConnectInit lk.salyk.kg [17:52:23]written 0, free lines is 4095 [17:52:23]Connected sock=10 [17:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 93 07 01 4F 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F8 00 00 00 F4 03 04 00 D5 BE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 83 02 00 35 04 06 00 C2 E2 3D F4 F4 07 B6 87 B6 B9 14 5F F9 6B [17:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E EA 47 00 3E 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 83 02 00 F4 03 04 00 66 65 92 66 B6 04 01 00 00 DC 82 72 B5 D0 8A B8 C9 [17:52:23]CommunicateWithHost err = 0 [17:52:23]CheckOFDResponse [17:52:23]1017 (14) - 77093643461234 [17:52:23]1041 (16) - 0000000000874718 [17:52:23]1040 (4) - 164688 [17:52:23]1012 (4) - 13.07.2024 11:30 [17:52:23]1206 (1) - 0 [17:52:23]OFD Sender: Remove packet 164688 [17:52:23]ProducePacketName [17:52:23]name=ofd_packets/00164688 [17:52:23]NVStorageDeleteData [17:52:23]Write to MH i2c: 01 00 00 5B 00 5B [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 07 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F9 0C 67 [17:52:23]RasterBufferAndPrint [17:52:23]line [17:52:23]line [17:52:23]line [17:52:23]line [17:52:23]line [17:52:23]written 0, free lines is 3328 [17:52:23]MH_Cut [17:52:23]Write to MH i2c: D1 01 00 62 00 01 34 [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: D1 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: D1 01 00 [17:52:23]MH_I2C_Read... [17:52:23]Read from MH i2c: D1 01 00 62 00 00 33 [17:52:23]Write to MH i2c: 01 00 00 63 00 63 [17:52:23]Write i2c OK [17:52:23]MH_I2C_Read... [17:52:24]OFD Sender: No OFD packet to send [17:52:24]*** Cut start [17:52:24]*** Partial cut [17:52:24]*** CUTSNS_PIN = 1 [17:52:24]*** CUTSNS_PIN = 0 [17:52:24]*** Brake cut motor [17:52:25]Read from MH i2c: 01 [17:52:25]MH_I2C_Read... [17:52:25]*** Stop cut motor [17:52:25]*** Cut end [17:52:25]Read from MH i2c: 01 07 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [17:52:25]process_action close_receipt done [17:52:25]requested_data is exist [17:52:25]produce_requested_data [17:52:25]requested_item fm.sn is exist - process it [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 11 00 00 [17:52:25]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 17 00 [17:52:25]MH_I2C_Read... [17:52:25]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 34 37 31 38 90 00 34 [17:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:25]wFMCommunicate OK [17:52:25]requested_item fd.num is exist - process it [17:52:25]SAM_PROTO_GetFieldsCounters [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 13 00 00 [17:52:25]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 62 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 62 00 65 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:52: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:25]wFMCommunicate OK [17:52:25]SAM_PROTO_GetFieldsCounters done [17:52:25]requested_item shift.num is exist - process it [17:52:25]requested_item shift.opened is exist - process it [17:52:25]req_shift_opened [17:52:25]FM_GetShiftState [17:52:25]SAM_PROTO_GetShiftState [17:52:25]wFMCommunicate request_size=4 [17:52:25]MH_SAM_APDU [17:52:25]CAPDU: 80 13 01 00 [17:52:25]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:52:25]Write i2c OK [17:52:25]MH_I2C_Read... [17:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:25]Read from MH i2c: E2 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 0E 00 [17:52:25]MH_I2C_Read... [17:52:25]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C4 [17:52:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:52:25]wFMCommunicate OK [17:52:25]SAM_PROTO_GetShiftState done [17:52:25]FM_GetShiftState done [17:52:25]req_shift_opened done [17:52:25]requested_item shift.open_date is exist - process it [17:52:25]req_shift_open_date [17:52:25]req_shift_open_date done [17:52:25]produce_requested_data done [17:52:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164688,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:52:25]process_action_free close_receipt [17:52:25]json_value_free [17:52:25]json_value_free done [17:52:25]process_json_proto returns [17:52:25]Send response to host [17:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164688,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:52:25]free response buf [17:52:25]execute_script done [17:52:25]execute_script returns [17:52:25]free content buf [17:52:25]Sock 7.Close socket [17:52:25]Sock 7.Thread stoped [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]accept exits with 9 [17:53:34]New connection [17:53:34]New thread 3067104612 created [17:53:34]Thread 3067247972 joined [17:53:34]Waiting for new connection... [17:53:34] Sock 9.Parse request [17:53:34]Sock 9.Check first char [17:53:34]Sock 9.First char is OK [17:53:34]request: POST /json_proto HTTP/1.0 [17:53:34]Method: POST [17:53:34]URL: /json_proto [17:53:34]Method is POST - this is cgi request [17:53:34]url: /json_proto [17:53:34]query_string will be loaded in cgi processing [17:53:34]execute_cgi json_proto POST (null) [17:53:34]execute_cgi path=json_proto method=POST [17:53:34]POST find Content-Length [17:53:34]Host: 172.17.56.4:8080 [17:53:34]Content-Length: 677 [17:53:34]Content-Type: application/json [17:53:34] [17:53:34]POST finish read [17:53:34]Found Content-Length = 677 [17:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:34]execute_script... [17:53: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)458783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:34]POST & json_proto [17:53:34]process_json_proto [17:53:34]json parsed OK: [17:53:34]protocol is kg_v1.0 [17:53:34]action value=close_receipt [17:53:34]process_action close_receipt [17:53:34]cmd_close_receipt [17:53:34]MH_GetDate [17:53:34]Write to MH i2c: F0 00 00 67 00 56 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 09 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 09 00 67 00 00 1E BF 92 66 C9 DC B2 64 EF [17:53:34]GetLastDocTimeStamp 1720893141 [17:53:34]current date 1720893214 [17:53:34]FM_GetShiftState [17:53:34]SAM_PROTO_GetShiftState [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 01 00 [17:53:34]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [17:53:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetShiftState done [17:53:34]FM_GetShiftState done [17:53:34]opened in 1720831249 [17:53:34]opened+sec_in_day 1720917649 [17:53:34]quantity*price = 40006 [17:53:34]sum+1 = 40007 [17:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 249 13.07.2024 17:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164689 ФПД: 85784731710134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164689&fm=85784731710134&tin=02508201610067®Number=0000000000090829&sum=40000 [17:53:35]StoreToDocumentArchive [17:53:35]shift 446 fd 164689 [17:53:35]save to /storage/0446/doc_00164689 [17:53:35]save last doc name /storage/0446/doc_00164689 to /storage/kkm_last_doc_name [17:53:35]save OK [17:53:35]Clear old archive folders... [17:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:35]tlvbuf is 01E48600 [17:53:35]SAM_PROTO_ClearQueue [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 09 00 00 [17:53:35]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_ClearQueue done [17:53:35]KKMCreateOFDPacket [17:53:35]OFDProtocolAddRootSTLVToBuf [17:53:35]FM_MakeSignedData [17:53:35]FM_MakeSignedData [17:53:35]SAM_PROTO_SignData [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 01 02 [17:53:35]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=255 [17:53:35]MH_SAM_APDU [17:53: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1E BF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 83 02 00 35 04 06 00 4E [17:53:35]Write to MH i2c: E2 02 01 77 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1E BF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 83 02 00 35 04 06 00 4E 00 00 F9 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=10 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 02 02 05 05 50 75 F2 B6 [17:53:35]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 05 50 75 F2 B6 00 00 6E [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 03 02 [17:53:35]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 79 00 00 40 41 83 7B 92 08 2A 5F 90 00 97 [17:53:35]RAPDU: 40 41 83 7B 92 08 2A 5F 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_SignData done [17:53:35]FM_MakeSignedData done [17:53:35]CreateOFDProtocolMessage [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 11 00 00 [17:53:35]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 17 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [17:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:36]wFMCommunicate OK [17:53:36]CreateOFDProtocolMessage done [17:53:36]OFDSenderStorePacket 164689 [17:53:36]StoreOFDPacket docnum=164689 [17:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 66 07 01 7A 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1E BF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 83 02 00 35 04 06 00 4E 05 50 75 F2 B6 40 41 83 7B 92 08 2A 5F [17:53:36]CheckFolder [17:53:36]dirname=/storage/ofd_packets [17:53:36]CheckFolder done [17:53:36]ProducePacketName [17:53:36]name=ofd_packets/00164689 [17:53:36]NVStorageSaveData ofd_packets/00164689 [17:53:36]File name is /storage/ofd_packets/00164689 [17:53:36]Write 301 bytes [17:53:36]NVStorageSaveData done [17:53:36]OFDSenderStorePacket done [17:53:36]KKMCreateOFDPacket done [17:53:36]NVStorageSaveData kkm_last_timestamp [17:53:36]File name is /storage/kkm_last_timestamp [17:53:36]Write 4 bytes [17:53:36]NVStorageSaveData done [17:53:36]ExternCall_PrintAddStr [17:53:36]wPrintStart [17:53:36]Write to MH i2c: 01 00 00 7B 00 7B [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [17:53:36]RasterBufferAndPrint [17:53:36]line Счет N : (1)458783 [17:53:36]line ИНН: 02508201610067 [17:53:36]line Контрольно-Кассовый Чек [17:53:36]line ПРОДАЖА [17:53:36]line ТРК (МРК, ГНК) : 12 [17:53:36]line Товар: 2710124130 [17:53:36]line Аи-92-К-5 [17:53:36]line 6.080 * 65.80 [17:53:36]line = 400.06 [17:53:36]line НДС 12% НСП 1% [17:53:36]line > о реализуемом товаре [17:53:36]line ОКРУГЛЕНИЕ: -0.06 [17:53:36]line ИТОГО: 400.00 [17:53:36]line Внесено: 400.00 [17:53:36]line СДАЧА: 0.00 [17:53:36]line НСП 1% : 3.54 [17:53:36]line НДС 12% : 42.48 [17:53:36]line Наличными: 400.00 [17:53:36]line Безнал.: 0.00 [17:53:36]line Место: АЗС № 72 "Партнер Нефть" [17:53:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:53:36]line СНО: Общий режим [17:53:36]line Чек 249 13.07.2024 17:53 [17:53:36]line Смена: 446 ФФД: 1.0 [17:53:36]line ЗНМ: 0300000160 [17:53:36]line РНМ: 0000000000090829 [17:53:36]line Версия ККМ: 001 [17:53:36]line ФМ: 0000000000874718 [17:53:36]line ФД: 164689 [17:53:36]line ФПД: 85784731710134 [17:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164689&fm=85784731710134&tin=02508201610067®Number=0000000000090829&sum=40000 [17:53:36]written 0, free lines is 4095 [17:53:36]OFD Sender: Processing packet 164689 [packets to send 104, broken 103] [17:53:36]ProducePacketName [17:53:36]name=ofd_packets/00164689 [17:53:36]OFD Sender: To server: pG, [17:53:36]CommunicateWithHost lk.salyk.kg:30040 [17:53:36]ConnectInit lk.salyk.kg [17:53:36]Write to MH i2c: 01 00 00 A5 00 A5 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F6 0C AE [17:53:36]RasterBufferAndPrint [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]written 0, free lines is 3322 [17:53:36]MH_Cut [17:53:36]Write to MH i2c: D1 01 00 AC 00 01 7E [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 AC 00 00 7D [17:53:36]Write to MH i2c: 01 00 00 AD 00 AD [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:37]*** Cut start [17:53:37]*** Partial cut [17:53:37]*** CUTSNS_PIN = 1 [17:53:37]*** CUTSNS_PIN = 0 [17:53:37]*** Brake cut motor [17:53:38]Read from MH i2c: 01 [17:53:38]MH_I2C_Read... [17:53:38]*** Stop cut motor [17:53:38]*** Cut end [17:53:38]Read from MH i2c: 01 07 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [17:53:38]process_action close_receipt done [17:53:38]requested_data is exist [17:53:38]produce_requested_data [17:53:38]requested_item fm.sn is exist - process it [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 11 00 00 [17:53:38]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [17:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:38]wFMCommunicate OK [17:53:38]requested_item fd.num is exist - process it [17:53:38]SAM_PROTO_GetFieldsCounters [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 00 00 [17:53:38]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 62 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 62 00 AF 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetFieldsCounters done [17:53:38]requested_item shift.num is exist - process it [17:53:38]requested_item shift.opened is exist - process it [17:53:38]req_shift_opened [17:53:38]FM_GetShiftState [17:53:38]SAM_PROTO_GetShiftState [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 01 00 [17:53:38]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0E [17:53:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetShiftState done [17:53:38]FM_GetShiftState done [17:53:38]req_shift_opened done [17:53:38]requested_item shift.open_date is exist - process it [17:53:38]req_shift_open_date [17:53:38]req_shift_open_date done [17:53:38]produce_requested_data done [17:53:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164689,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [17:53:38]process_action_free close_receipt [17:53:38]json_value_free [17:53:38]json_value_free done [17:53:38]process_json_proto returns [17:53:38]Send response to host [17:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164689,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [17:53:38]free response buf [17:53:38]execute_script done [17:53:38]execute_script returns [17:53:38]free content buf [17:53:38]Sock 9.Close socket [17:53:38]Sock 9.Thread stoped [17:55:46]ConnectInit Can't connect to host [17:55:46]CommunicateWithHost connect error [17:55:46]CommunicateWithHost err = -1 [17:55:46]OFD Sender: Server communicate error [17:55:51]OFD Sender: Processing packet 164689 [packets to send 104, broken 103] [17:55:51]ProducePacketName [17:55:51]name=ofd_packets/00164689 [17:55:51]OFD Sender: To server: pG, [17:55:51]CommunicateWithHost lk.salyk.kg:30040 [17:55:51]ConnectInit lk.salyk.kg [17:55:51]Connected sock=9 [17:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 66 07 01 7A 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1E BF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 83 02 00 35 04 06 00 4E 05 50 75 F2 B6 40 41 83 7B 92 08 2A 5F [17:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 94 47 00 AD 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 83 02 00 F4 03 04 00 36 66 92 66 B6 04 01 00 00 42 B5 BE C9 8A 18 20 57 [17:55:51]CommunicateWithHost err = 0 [17:55:51]CheckOFDResponse [17:55:51]1017 (14) - 77093643461234 [17:55:51]1041 (16) - 0000000000874718 [17:55:51]1040 (4) - 164689 [17:55:51]1012 (4) - 13.07.2024 11:34 [17:55:51]1206 (1) - 0 [17:55:51]OFD Sender: Remove packet 164689 [17:55:51]ProducePacketName [17:55:51]name=ofd_packets/00164689 [17:55:51]NVStorageDeleteData [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:23]accept exits with 7 [18:01:23]New connection [18:01:23]New thread 3067247972 created [18:01:23]Thread 3067104612 joined [18:01:23]Waiting for new connection... [18:01:23] Sock 7.Parse request [18:01:23]Sock 7.Check first char [18:01:23]Sock 7.First char is OK [18:01:23]request: POST /json_proto HTTP/1.0 [18:01:23]Method: POST [18:01:23]URL: /json_proto [18:01:23]Method is POST - this is cgi request [18:01:23]url: /json_proto [18:01:23]query_string will be loaded in cgi processing [18:01:23]execute_cgi json_proto POST (null) [18:01:23]execute_cgi path=json_proto method=POST [18:01:23]POST find Content-Length [18:01:23]Host: 172.17.56.4:8080 [18:01:23]Content-Length: 677 [18:01:23]Content-Type: application/json [18:01:23] [18:01:23]POST finish read [18:01:23]Found Content-Length = 677 [18:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [18:01:23]execute_script... [18:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [18:01:23]POST & json_proto [18:01:23]process_json_proto [18:01:23]json parsed OK: [18:01:23]protocol is kg_v1.0 [18:01:23]action value=close_receipt [18:01:23]process_action close_receipt [18:01:23]cmd_close_receipt [18:01:23]MH_GetDate [18:01:23]Write to MH i2c: F0 00 00 B1 00 A0 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 09 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 09 00 B1 00 00 F4 C0 92 66 C9 DC B2 64 10 [18:01:23]GetLastDocTimeStamp 1720893214 [18:01:23]current date 1720893684 [18:01:23]FM_GetShiftState [18:01:23]SAM_PROTO_GetShiftState [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 13 01 00 [18:01:23]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0E 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [18:01:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:01:23]wFMCommunicate OK [18:01:23]SAM_PROTO_GetShiftState done [18:01:23]FM_GetShiftState done [18:01:23]opened in 1720831249 [18:01:23]opened+sec_in_day 1720917649 [18:01:23]quantity*price = 30004 [18:01:23]sum+1 = 30006 [18:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 250 13.07.2024 18:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164690 ФПД: 139809299517937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164690&fm=139809299517937&tin=02508201610067®Number=0000000000090829&sum=30000 [18:01:25]StoreToDocumentArchive [18:01:25]shift 446 fd 164690 [18:01:25]save to /storage/0446/doc_00164690 [18:01:25]save last doc name /storage/0446/doc_00164690 to /storage/kkm_last_doc_name [18:01:25]save OK [18:01:25]Clear old archive folders... [18:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:25]tlvbuf is 01E67800 [18:01:25]SAM_PROTO_ClearQueue [18:01:25]wFMCommunicate request_size=4 [18:01:25]MH_SAM_APDU [18:01:25]CAPDU: 80 09 00 00 [18:01:25]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:01:25]RAPDU: 90 00 [18:01:25]wFMCommunicate OK [18:01:25]SAM_PROTO_ClearQueue done [18:01:25]KKMCreateOFDPacket [18:01:25]OFDProtocolAddRootSTLVToBuf [18:01:25]FM_MakeSignedData [18:01:25]FM_MakeSignedData [18:01:25]SAM_PROTO_SignData [18:01:25]wFMCommunicate request_size=4 [18:01:25]MH_SAM_APDU [18:01:25]CAPDU: 80 0D 01 02 [18:01:25]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:01:25]RAPDU: 90 00 [18:01:25]wFMCommunicate OK [18:01:25]wFMCommunicate request_size=255 [18:01:25]MH_SAM_APDU [18:01: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FA 00 00 00 F4 03 04 00 F4 C0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 83 02 00 35 04 06 00 7F [18:01:25]Write to MH i2c: E2 02 01 C1 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FA 00 00 00 F4 03 04 00 F4 C0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 83 02 00 35 04 06 00 7F 00 00 2E [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:01:25]RAPDU: 90 00 [18:01:25]wFMCommunicate OK [18:01:25]wFMCommunicate request_size=10 [18:01:25]MH_SAM_APDU [18:01:25]CAPDU: 80 0D 02 02 05 27 E3 A2 51 F1 [18:01:25]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 27 E3 A2 51 F1 00 00 34 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:01:25]RAPDU: 90 00 [18:01:25]wFMCommunicate OK [18:01:25]wFMCommunicate request_size=4 [18:01:25]MH_SAM_APDU [18:01:25]CAPDU: 80 0D 03 02 [18:01:25]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 0B 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 0B 00 C3 00 00 B2 B6 B6 79 06 86 50 AA 90 00 5C [18:01:25]RAPDU: B2 B6 B6 79 06 86 50 AA 90 00 [18:01:25]wFMCommunicate OK [18:01:25]SAM_PROTO_SignData done [18:01:25]FM_MakeSignedData done [18:01:25]CreateOFDProtocolMessage [18:01:25]wFMCommunicate request_size=4 [18:01:25]MH_SAM_APDU [18:01:25]CAPDU: 80 11 00 00 [18:01:25]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:25]Read from MH i2c: E2 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 17 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [18:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:25]wFMCommunicate OK [18:01:25]CreateOFDProtocolMessage done [18:01:25]OFDSenderStorePacket 164690 [18:01:25]StoreOFDPacket docnum=164690 [18:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 16 07 01 8C 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FA 00 00 00 F4 03 04 00 F4 C0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 83 02 00 35 04 06 00 7F 27 E3 A2 51 F1 B2 B6 B6 79 06 86 50 AA [18:01:25]CheckFolder [18:01:25]dirname=/storage/ofd_packets [18:01:25]CheckFolder done [18:01:25]ProducePacketName [18:01:25]name=ofd_packets/00164690 [18:01:25]NVStorageSaveData ofd_packets/00164690 [18:01:25]File name is /storage/ofd_packets/00164690 [18:01:25]Write 301 bytes [18:01:25]NVStorageSaveData done [18:01:25]OFDSenderStorePacket done [18:01:25]KKMCreateOFDPacket done [18:01:25]NVStorageSaveData kkm_last_timestamp [18:01:25]File name is /storage/kkm_last_timestamp [18:01:25]Write 4 bytes [18:01:25]NVStorageSaveData done [18:01:25]ExternCall_PrintAddStr [18:01:25]wPrintStart [18:01:25]Write to MH i2c: 01 00 00 C5 00 C5 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 07 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [18:01:25]RasterBufferAndPrint [18:01:25]line Счет N : (1)458784 [18:01:25]line ИНН: 02508201610067 [18:01:25]line Контрольно-Кассовый Чек [18:01:25]line ПРОДАЖА [18:01:25]line ТРК (МРК, ГНК) : 12 [18:01:25]line Товар: 2710124130 [18:01:25]line Аи-92-К-5 [18:01:25]line 4.560 * 65.80 [18:01:25]line = 300.05 [18:01:25]line НДС 12% НСП 1% [18:01:25]line > о реализуемом товаре [18:01:25]line ОКРУГЛЕНИЕ: -0.05 [18:01:25]line ИТОГО: 300.00 [18:01:25]line Внесено: 300.00 [18:01:25]line СДАЧА: 0.00 [18:01:25]line НСП 1% : 2.65 [18:01:25]line НДС 12% : 31.86 [18:01:25]line Наличными: 300.00 [18:01:25]line Безнал.: 0.00 [18:01:25]line Место: АЗС № 72 "Партнер Нефть" [18:01:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:01:25]line СНО: Общий режим [18:01:25]line Чек 250 13.07.2024 18:01 [18:01:25]line Смена: 446 ФФД: 1.0 [18:01:25]line ЗНМ: 0300000160 [18:01:25]line РНМ: 0000000000090829 [18:01:25]line Версия ККМ: 001 [18:01:25]line ФМ: 0000000000874718 [18:01:25]line ФД: 164690 [18:01:25]line ФПД: 139809299517937 [18:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180124&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164690&fm=139809299517937&tin=02508201610067®Number=0000000000090829&sum=30000 [18:01:25]OFD Sender: Processing packet 164690 [packets to send 104, broken 103] [18:01:25]ProducePacketName [18:01:25]name=ofd_packets/00164690 [18:01:25]OFD Sender: To server: pG, [18:01:25]CommunicateWithHost lk.salyk.kg:30040 [18:01:25]ConnectInit lk.salyk.kg [18:01:25]written 0, free lines is 4095 [18:01:25]Connected sock=10 [18:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 16 07 01 8C 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 FA 00 00 00 F4 03 04 00 F4 C0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 83 02 00 35 04 06 00 7F 27 E3 A2 51 F1 B2 B6 B6 79 06 86 50 AA [18:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C C6 47 00 F4 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 34 37 31 38 10 04 04 00 52 83 02 00 F4 03 04 00 84 67 92 66 B6 04 01 00 00 50 6A 24 CB 23 B7 35 24 [18:01:26]CommunicateWithHost err = 0 [18:01:26]CheckOFDResponse [18:01:26]1017 (14) - 77093643461234 [18:01:26]1041 (16) - 0000000000874718 [18:01:26]1040 (4) - 164690 [18:01:26]1012 (4) - 13.07.2024 11:39 [18:01:26]1206 (1) - 0 [18:01:26]OFD Sender: Remove packet 164690 [18:01:26]ProducePacketName [18:01:26]name=ofd_packets/00164690 [18:01:26]NVStorageDeleteData [18:01:26]Write to MH i2c: 01 00 00 EF 00 EF [18:01:26]Write i2c OK [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: 01 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: 01 07 00 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 F1 0C F3 [18:01:26]RasterBufferAndPrint [18:01:26]line [18:01:26]line [18:01:26]line [18:01:26]line [18:01:26]line [18:01:26]written 0, free lines is 3319 [18:01:26]MH_Cut [18:01:26]Write to MH i2c: D1 01 00 F6 00 01 C8 [18:01:26]Write i2c OK [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: D1 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: D1 01 00 [18:01:26]MH_I2C_Read... [18:01:26]Read from MH i2c: D1 01 00 F6 00 00 C7 [18:01:26]Write to MH i2c: 01 00 00 F7 00 F7 [18:01:26]Write i2c OK [18:01:26]MH_I2C_Read... [18:01:26]OFD Sender: No OFD packet to send [18:01:26]*** Cut start [18:01:26]*** Partial cut [18:01:26]*** CUTSNS_PIN = 1 [18:01:27]*** CUTSNS_PIN = 0 [18:01:27]*** Brake cut motor [18:01:27]Read from MH i2c: 01 [18:01:27]MH_I2C_Read... [18:01:27]*** Stop cut motor [18:01:27]*** Cut end [18:01:27]Read from MH i2c: 01 07 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [18:01:27]process_action close_receipt done [18:01:27]requested_data is exist [18:01:27]produce_requested_data [18:01:27]requested_item fm.sn is exist - process it [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 11 00 00 [18:01:27]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 17 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [18:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:27]wFMCommunicate OK [18:01:27]requested_item fd.num is exist - process it [18:01:27]SAM_PROTO_GetFieldsCounters [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 00 00 [18:01:27]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 62 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [18:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetFieldsCounters done [18:01:27]requested_item shift.num is exist - process it [18:01:27]requested_item shift.opened is exist - process it [18:01:27]req_shift_opened [18:01:27]FM_GetShiftState [18:01:27]SAM_PROTO_GetShiftState [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 01 00 [18:01:27]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 58 [18:01:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetShiftState done [18:01:27]FM_GetShiftState done [18:01:27]req_shift_opened done [18:01:27]requested_item shift.open_date is exist - process it [18:01:27]req_shift_open_date [18:01:27]req_shift_open_date done [18:01:27]produce_requested_data done [18:01:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164690,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:01:27]process_action_free close_receipt [18:01:27]json_value_free [18:01:27]json_value_free done [18:01:27]process_json_proto returns [18:01:27]Send response to host [18:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164690,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:01:27]free response buf [18:01:27]execute_script done [18:01:27]execute_script returns [18:01:27]free content buf [18:01:27]Sock 7.Close socket [18:01:27]Sock 7.Thread stoped [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:18]accept exits with 9 [18:07:18]New connection [18:07:18]New thread 3067104612 created [18:07:18]Thread 3067247972 joined [18:07:18]Waiting for new connection... [18:07:18] Sock 9.Parse request [18:07:18]Sock 9.Check first char [18:07:18]Sock 9.First char is OK [18:07:18]request: POST /json_proto HTTP/1.0 [18:07:18]Method: POST [18:07:18]URL: /json_proto [18:07:18]Method is POST - this is cgi request [18:07:18]url: /json_proto [18:07:18]query_string will be loaded in cgi processing [18:07:18]execute_cgi json_proto POST (null) [18:07:18]execute_cgi path=json_proto method=POST [18:07:18]POST find Content-Length [18:07:18]Host: 172.17.56.4:8080 [18:07:18]Content-Length: 790 [18:07:18]Content-Type: application/json [18:07:18] [18:07:18]POST finish read [18:07:18]Found Content-Length = 790 [18:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:18]execute_script... [18:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:18]POST & json_proto [18:07:18]process_json_proto [18:07:18]json parsed OK: [18:07:18]protocol is kg_v1.0 [18:07:18]action value=close_receipt [18:07:18]process_action close_receipt [18:07:18]cmd_close_receipt [18:07:18]MH_GetDate [18:07:18]Write to MH i2c: F0 00 00 FB 00 EA [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 09 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: F0 09 00 FB 00 00 57 C2 92 66 C9 DC B2 64 BF [18:07:18]GetLastDocTimeStamp 1720893684 [18:07:18]current date 1720894039 [18:07:18]FM_GetShiftState [18:07:18]SAM_PROTO_GetShiftState [18:07:18]wFMCommunicate request_size=4 [18:07:18]MH_SAM_APDU [18:07:18]CAPDU: 80 13 01 00 [18:07:18]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [18:07:18]Write i2c OK [18:07:18]MH_I2C_Read... [18:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:18]Read from MH i2c: E2 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: E2 0E 00 [18:07:18]MH_I2C_Read... [18:07:18]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [18:07:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:07:18]wFMCommunicate OK [18:07:18]SAM_PROTO_GetShiftState done [18:07:18]FM_GetShiftState done [18:07:18]opened in 1720831249 [18:07:18]opened+sec_in_day 1720917649 [18:07:18]quantity*price = 30001 [18:07:18]sum+1 = 30002 [18:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 251 13.07.2024 18:07 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164691 ФПД: 272372793194772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180719&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164691&fm=272372793194772&tin=02508201610067®Number=0000000000090829&sum=30001 [18:07:19]StoreToDocumentArchive [18:07:19]shift 446 fd 164691 [18:07:19]save to /storage/0446/doc_00164691 [18:07:19]save last doc name /storage/0446/doc_00164691 to /storage/kkm_last_doc_name [18:07:19]save OK [18:07:19]Clear old archive folders... [18:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:19]tlvbuf is 01E6B6F0 [18:07:19]SAM_PROTO_ClearQueue [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 09 00 00 [18:07:19]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:19]Read from MH i2c: E2 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 03 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [18:07:19]RAPDU: 90 00 [18:07:19]wFMCommunicate OK [18:07:19]SAM_PROTO_ClearQueue done [18:07:19]KKMCreateOFDPacket [18:07:19]OFDProtocolAddRootSTLVToBuf [18:07:19]FM_MakeSignedData [18:07:19]FM_MakeSignedData [18:07:19]SAM_PROTO_SignData [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 0D 01 02 [18:07:19]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:19]Read from MH i2c: E2 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 03 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:07:19]RAPDU: 90 00 [18:07:19]wFMCommunicate OK [18:07:19]wFMCommunicate request_size=255 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 57 C2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 83 02 00 35 04 06 00 F7 [18:07:20]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 57 C2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 83 02 00 35 04 06 00 F7 00 00 44 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]wFMCommunicate request_size=10 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 02 02 05 B8 BB 95 B9 14 [18:07:20]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 B8 BB 95 B9 14 00 00 66 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:07:20]RAPDU: 90 00 [18:07:20]wFMCommunicate OK [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 0D 03 02 [18:07:20]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0B 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0B 00 0D 01 00 6A 2F 40 C2 86 FD 21 33 90 00 FC [18:07:20]RAPDU: 6A 2F 40 C2 86 FD 21 33 90 00 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_SignData done [18:07:20]FM_MakeSignedData done [18:07:20]CreateOFDProtocolMessage [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 11 00 00 [18:07:20]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [18:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:07:20]wFMCommunicate OK [18:07:20]CreateOFDProtocolMessage done [18:07:20]OFDSenderStorePacket 164691 [18:07:20]StoreOFDPacket docnum=164691 [18:07:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CA 36 07 01 AA 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 57 C2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 83 02 00 35 04 06 00 F7 B8 BB 95 B9 14 6A 2F 40 C2 86 FD 21 33 [18:07:20]CheckFolder [18:07:20]dirname=/storage/ofd_packets [18:07:20]CheckFolder done [18:07:20]ProducePacketName [18:07:20]name=ofd_packets/00164691 [18:07:20]NVStorageSaveData ofd_packets/00164691 [18:07:20]File name is /storage/ofd_packets/00164691 [18:07:20]Write 301 bytes [18:07:20]NVStorageSaveData done [18:07:20]OFDSenderStorePacket done [18:07:20]KKMCreateOFDPacket done [18:07:20]NVStorageSaveData kkm_last_timestamp [18:07:20]File name is /storage/kkm_last_timestamp [18:07:20]Write 4 bytes [18:07:20]NVStorageSaveData done [18:07:20]ExternCall_PrintAddStr [18:07:20]wPrintStart [18:07:20]Write to MH i2c: 01 00 00 0F 01 10 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [18:07:20]RasterBufferAndPrint [18:07:20]line Счет N : (1)458785 [18:07:20]line ИНН: 02508201610067 [18:07:20]line Контрольно-Кассовый Чек [18:07:20]line ПРОДАЖА [18:07:20]line ТРК (МРК, ГНК) : 12 [18:07:20]line Товар: 2710124130 [18:07:20]line Аи-92-К-5 [18:07:20]line 4.600 * 65.22 [18:07:20]line = 300.01 [18:07:20]line НДС 12% НСП 1% [18:07:20]line > о реализуемом товаре [18:07:20]line ИТОГО: 300.01 [18:07:20]line НСП 1% : 2.65 [18:07:20]line НДС 12% : 31.86 [18:07:20]line Наличными: 0.00 [18:07:20]line Безнал.: 300.01 [18:07:20]line Место: АЗС № 72 "Партнер Нефть" [18:07:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:07:20]line СНО: Общий режим [18:07:20]line Чек 251 13.07.2024 18:07 [18:07:20]line Смена: 446 ФФД: 1.0 [18:07:20]line ЗНМ: 0300000160 [18:07:20]line РНМ: 0000000000090829 [18:07:20]line Версия ККМ: 001 [18:07:20]line Платежная система: KICB Банк [18:07:20]line ФМ: 0000000000874718 [18:07:20]line ФД: 164691 [18:07:20]line ФПД: 272372793194772 [18:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180719&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164691&fm=272372793194772&tin=02508201610067®Number=0000000000090829&sum=30001 [18:07:20]written 0, free lines is 4095 [18:07:20]OFD Sender: Processing packet 164691 [packets to send 104, broken 103] [18:07:20]ProducePacketName [18:07:20]name=ofd_packets/00164691 [18:07:20]OFD Sender: To server: pG, [18:07:20]CommunicateWithHost lk.salyk.kg:30040 [18:07:20]ConnectInit lk.salyk.kg [18:07:20]Connected sock=10 [18:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CA 36 07 01 AA 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 57 C2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 83 02 00 35 04 06 00 F7 B8 BB 95 B9 14 6A 2F 40 C2 86 FD 21 33 [18:07:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B4 F9 47 00 06 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 83 02 00 F4 03 04 00 E7 68 92 66 B6 04 01 00 00 47 CE 26 1E 57 29 B8 31 [18:07:20]CommunicateWithHost err = 0 [18:07:20]CheckOFDResponse [18:07:20]1017 (14) - 77093643461234 [18:07:20]1041 (16) - 0000000000874718 [18:07:20]1040 (4) - 164691 [18:07:20]1012 (4) - 13.07.2024 11:45 [18:07:20]1206 (1) - 0 [18:07:20]OFD Sender: Remove packet 164691 [18:07:20]ProducePacketName [18:07:20]name=ofd_packets/00164691 [18:07:20]NVStorageDeleteData [18:07:20]Write to MH i2c: 01 00 00 38 01 39 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 15 0D 62 [18:07:20]RasterBufferAndPrint [18:07:20]line [18:07:20]line [18:07:20]line [18:07:20]line [18:07:20]line [18:07:20]written 0, free lines is 3356 [18:07:20]MH_Cut [18:07:20]Write to MH i2c: D1 01 00 3F 01 01 12 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: D1 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: D1 01 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: D1 01 00 3F 01 00 11 [18:07:20]Write to MH i2c: 01 00 00 40 01 41 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:21]OFD Sender: No OFD packet to send [18:07:21]*** Cut start [18:07:21]*** Partial cut [18:07:21]*** CUTSNS_PIN = 1 [18:07:21]*** CUTSNS_PIN = 0 [18:07:21]*** Brake cut motor [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]*** Stop cut motor [18:07:22]*** Cut end [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [18:07:22]process_action close_receipt done [18:07:22]requested_data is exist [18:07:22]produce_requested_data [18:07:22]requested_item fm.sn is exist - process it [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 11 00 00 [18:07:22]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [18:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:07:22]wFMCommunicate OK [18:07:22]requested_item fd.num is exist - process it [18:07:22]SAM_PROTO_GetFieldsCounters [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 00 00 [18:07:22]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 62 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 62 00 42 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [18:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetFieldsCounters done [18:07:22]requested_item shift.num is exist - process it [18:07:22]requested_item shift.opened is exist - process it [18:07:22]req_shift_opened [18:07:22]FM_GetShiftState [18:07:22]SAM_PROTO_GetShiftState [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 01 00 [18:07:22]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A2 [18:07:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_GetShiftState done [18:07:22]FM_GetShiftState done [18:07:22]req_shift_opened done [18:07:22]requested_item shift.open_date is exist - process it [18:07:22]req_shift_open_date [18:07:22]req_shift_open_date done [18:07:22]produce_requested_data done [18:07:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164691,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:07:22]process_action_free close_receipt [18:07:22]json_value_free [18:07:22]json_value_free done [18:07:22]process_json_proto returns [18:07:22]Send response to host [18:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164691,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:07:22]free response buf [18:07:22]execute_script done [18:07:22]execute_script returns [18:07:22]free content buf [18:07:22]Sock 9.Close socket [18:07:22]Sock 9.Thread stoped [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:09]accept exits with 7 [18:10:09]New connection [18:10:09]New thread 3067247972 created [18:10:09]Thread 3067104612 joined [18:10:09]Waiting for new connection... [18:10:09] Sock 7.Parse request [18:10:09]Sock 7.Check first char [18:10:09]Sock 7.First char is OK [18:10:09]request: POST /json_proto HTTP/1.0 [18:10:09]Method: POST [18:10:09]URL: /json_proto [18:10:09]Method is POST - this is cgi request [18:10:09]url: /json_proto [18:10:09]query_string will be loaded in cgi processing [18:10:09]execute_cgi json_proto POST (null) [18:10:09]execute_cgi path=json_proto method=POST [18:10:09]POST find Content-Length [18:10:09]Host: 172.17.56.4:8080 [18:10:09]Content-Length: 677 [18:10:09]Content-Type: application/json [18:10:09] [18:10:09]POST finish read [18:10:09]Found Content-Length = 677 [18:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:09]execute_script... [18:10: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)458786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:09]POST & json_proto [18:10:09]process_json_proto [18:10:09]json parsed OK: [18:10:09]protocol is kg_v1.0 [18:10:09]action value=close_receipt [18:10:09]process_action close_receipt [18:10:09]cmd_close_receipt [18:10:09]MH_GetDate [18:10:09]Write to MH i2c: F0 00 00 44 01 34 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 09 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 09 00 44 01 00 01 C3 92 66 C9 DC B2 64 B4 [18:10:09]GetLastDocTimeStamp 1720894039 [18:10:09]current date 1720894209 [18:10:09]FM_GetShiftState [18:10:09]SAM_PROTO_GetShiftState [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 13 01 00 [18:10:09]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A4 [18:10:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:10:09]wFMCommunicate OK [18:10:09]SAM_PROTO_GetShiftState done [18:10:09]FM_GetShiftState done [18:10:09]opened in 1720831249 [18:10:09]opened+sec_in_day 1720917649 [18:10:09]quantity*price = 50008 [18:10:09]sum+1 = 50009 [18:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 252 13.07.2024 18:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164692 ФПД: 223213897916612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164692&fm=223213897916612&tin=02508201610067®Number=0000000000090829&sum=50000 [18:10:10]StoreToDocumentArchive [18:10:10]shift 446 fd 164692 [18:10:10]save to /storage/0446/doc_00164692 [18:10:10]save last doc name /storage/0446/doc_00164692 to /storage/kkm_last_doc_name [18:10:10]save OK [18:10:10]Clear old archive folders... [18:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:10]tlvbuf is 01E6CED0 [18:10:10]SAM_PROTO_ClearQueue [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 09 00 00 [18:10:10]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]SAM_PROTO_ClearQueue done [18:10:10]KKMCreateOFDPacket [18:10:10]OFDProtocolAddRootSTLVToBuf [18:10:10]FM_MakeSignedData [18:10:10]FM_MakeSignedData [18:10:10]SAM_PROTO_SignData [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 0D 01 02 [18:10:10]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]wFMCommunicate request_size=255 [18:10:10]MH_SAM_APDU [18:10: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 01 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 83 02 00 35 04 06 00 CB [18:10:10]Write to MH i2c: E2 02 01 54 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 01 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 83 02 00 35 04 06 00 CB 00 00 61 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]wFMCommunicate request_size=10 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 0D 02 02 05 03 09 18 20 C4 [18:10:10]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 03 09 18 20 C4 00 00 E2 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:10:11]RAPDU: 90 00 [18:10:11]wFMCommunicate OK [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 0D 03 02 [18:10:11]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 0B 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 0B 00 56 01 00 FA C0 2C AE 4F 97 B4 2C 90 00 2D [18:10:11]RAPDU: FA C0 2C AE 4F 97 B4 2C 90 00 [18:10:11]wFMCommunicate OK [18:10:11]SAM_PROTO_SignData done [18:10:11]FM_MakeSignedData done [18:10:11]CreateOFDProtocolMessage [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 11 00 00 [18:10:11]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [18:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:11]wFMCommunicate OK [18:10:11]CreateOFDProtocolMessage done [18:10:11]OFDSenderStorePacket 164692 [18:10:11]StoreOFDPacket docnum=164692 [18:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 B5 07 01 59 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 01 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 83 02 00 35 04 06 00 CB 03 09 18 20 C4 FA C0 2C AE 4F 97 B4 2C [18:10:11]CheckFolder [18:10:11]dirname=/storage/ofd_packets [18:10:11]CheckFolder done [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00164692 [18:10:11]NVStorageSaveData ofd_packets/00164692 [18:10:11]File name is /storage/ofd_packets/00164692 [18:10:11]Write 301 bytes [18:10:11]NVStorageSaveData done [18:10:11]OFDSenderStorePacket done [18:10:11]KKMCreateOFDPacket done [18:10:11]NVStorageSaveData kkm_last_timestamp [18:10:11]File name is /storage/kkm_last_timestamp [18:10:11]Write 4 bytes [18:10:11]NVStorageSaveData done [18:10:11]OFD Sender: Processing packet 164692 [packets to send 104, broken 103] [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00164692 [18:10:11]OFD Sender: To server: pG, [18:10:11]CommunicateWithHost lk.salyk.kg:30040 [18:10:11]ConnectInit lk.salyk.kg [18:10:11]ExternCall_PrintAddStr [18:10:11]wPrintStart [18:10:11]Write to MH i2c: 01 00 00 58 01 59 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [18:10:11]RasterBufferAndPrint [18:10:11]line Счет N : (1)458786 [18:10:11]line ИНН: 02508201610067 [18:10:11]line Контрольно-Кассовый Чек [18:10:11]line ПРОДАЖА [18:10:11]line ТРК (МРК, ГНК) : 22 [18:10:11]line Товар: 2710124130 [18:10:11]line Аи-92-К-5 [18:10:11]line 7.600 * 65.80 [18:10:11]line = 500.08 [18:10:11]line НДС 12% НСП 1% [18:10:11]line > о реализуемом товаре [18:10:11]line ОКРУГЛЕНИЕ: -0.08 [18:10:11]line ИТОГО: 500.00 [18:10:11]line Внесено: 500.00 [18:10:11]line СДАЧА: 0.00 [18:10:11]line НСП 1% : 4.42 [18:10:11]line НДС 12% : 53.11 [18:10:11]line Наличными: 500.00 [18:10:11]line Безнал.: 0.00 [18:10:11]line Место: АЗС № 72 "Партнер Нефть" [18:10:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:10:11]line СНО: Общий режим [18:10:11]line Чек 252 13.07.2024 18:10 [18:10:11]line Смена: 446 ФФД: 1.0 [18:10:11]line ЗНМ: 0300000160 [18:10:11]line РНМ: 0000000000090829 [18:10:11]line Версия ККМ: 001 [18:10:11]line ФМ: 0000000000874718 [18:10:11]line ФД: 164692 [18:10:11]line ФПД: 223213897916612 [18:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164692&fm=223213897916612&tin=02508201610067®Number=0000000000090829&sum=50000 [18:10:11]Connected sock=11 [18:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 B5 07 01 59 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 01 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 83 02 00 35 04 06 00 CB 03 09 18 20 C4 FA C0 2C AE 4F 97 B4 2C [18:10:11]written 0, free lines is 4095 [18:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 6C 47 00 AA 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 34 37 31 38 10 04 04 00 54 83 02 00 F4 03 04 00 91 69 92 66 B6 04 01 00 00 8F 90 1E D3 E1 B1 AB 73 [18:10:11]CommunicateWithHost err = 0 [18:10:11]CheckOFDResponse [18:10:11]1017 (14) - 77093643461234 [18:10:11]1041 (16) - 0000000000874718 [18:10:11]1040 (4) - 164692 [18:10:11]1012 (4) - 13.07.2024 11:48 [18:10:11]1206 (1) - 0 [18:10:11]OFD Sender: Remove packet 164692 [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00164692 [18:10:11]NVStorageDeleteData [18:10:11]Write to MH i2c: 01 00 00 82 01 83 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 02 0D 99 [18:10:11]RasterBufferAndPrint [18:10:11]line [18:10:11]line [18:10:11]line [18:10:11]line [18:10:11]line [18:10:11]written 0, free lines is 3336 [18:10:11]MH_Cut [18:10:11]Write to MH i2c: D1 01 00 89 01 01 5C [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: D1 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: D1 01 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: D1 01 00 89 01 00 5B [18:10:11]Write to MH i2c: 01 00 00 8A 01 8B [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:12]OFD Sender: No OFD packet to send [18:10:12]*** Cut start [18:10:12]*** Partial cut [18:10:12]*** CUTSNS_PIN = 1 [18:10:12]*** CUTSNS_PIN = 0 [18:10:12]*** Brake cut motor [18:10:13]Read from MH i2c: 01 [18:10:13]MH_I2C_Read... [18:10:13]*** Stop cut motor [18:10:13]*** Cut end [18:10:13]Read from MH i2c: 01 07 00 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [18:10:13]process_action close_receipt done [18:10:13]requested_data is exist [18:10:13]produce_requested_data [18:10:13]requested_item fm.sn is exist - process it [18:10:13]wFMCommunicate request_size=4 [18:10:13]MH_SAM_APDU [18:10:13]CAPDU: 80 11 00 00 [18:10:13]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [18:10:13]Write i2c OK [18:10:13]MH_I2C_Read... [18:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:13]Read from MH i2c: E2 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 17 00 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [18:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:10:13]wFMCommunicate OK [18:10:13]requested_item fd.num is exist - process it [18:10:13]SAM_PROTO_GetFieldsCounters [18:10:13]wFMCommunicate request_size=4 [18:10:13]MH_SAM_APDU [18:10:13]CAPDU: 80 13 00 00 [18:10:13]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [18:10:13]Write i2c OK [18:10:13]MH_I2C_Read... [18:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:13]Read from MH i2c: E2 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 62 00 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 62 00 8C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [18:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:13]wFMCommunicate OK [18:10:13]SAM_PROTO_GetFieldsCounters done [18:10:13]requested_item shift.num is exist - process it [18:10:13]requested_item shift.opened is exist - process it [18:10:13]req_shift_opened [18:10:13]FM_GetShiftState [18:10:13]SAM_PROTO_GetShiftState [18:10:13]wFMCommunicate request_size=4 [18:10:13]MH_SAM_APDU [18:10:13]CAPDU: 80 13 01 00 [18:10:13]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [18:10:13]Write i2c OK [18:10:13]MH_I2C_Read... [18:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:13]Read from MH i2c: E2 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 0E 00 [18:10:13]MH_I2C_Read... [18:10:13]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EC [18:10:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:10:13]wFMCommunicate OK [18:10:13]SAM_PROTO_GetShiftState done [18:10:13]FM_GetShiftState done [18:10:13]req_shift_opened done [18:10:13]requested_item shift.open_date is exist - process it [18:10:13]req_shift_open_date [18:10:13]req_shift_open_date done [18:10:13]produce_requested_data done [18:10:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164692,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:10:13]process_action_free close_receipt [18:10:13]json_value_free [18:10:13]json_value_free done [18:10:13]process_json_proto returns [18:10:13]Send response to host [18:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164692,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:10:13]free response buf [18:10:13]execute_script done [18:10:13]execute_script returns [18:10:13]free content buf [18:10:13]Sock 7.Close socket [18:10:13]Sock 7.Thread stoped [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:03]accept exits with 9 [18:11:03]New connection [18:11:03]New thread 3067104612 created [18:11:03]Thread 3067247972 joined [18:11:03]Waiting for new connection... [18:11:03] Sock 9.Parse request [18:11:03]Sock 9.Check first char [18:11:03]Sock 9.First char is OK [18:11:03]request: POST /json_proto HTTP/1.0 [18:11:03]Method: POST [18:11:03]URL: /json_proto [18:11:03]Method is POST - this is cgi request [18:11:03]url: /json_proto [18:11:03]query_string will be loaded in cgi processing [18:11:03]execute_cgi json_proto POST (null) [18:11:03]execute_cgi path=json_proto method=POST [18:11:03]POST find Content-Length [18:11:03]Host: 172.17.56.4:8080 [18:11:03]Content-Length: 677 [18:11:03]Content-Type: application/json [18:11:03] [18:11:03]POST finish read [18:11:03]Found Content-Length = 677 [18:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:03]execute_script... [18:11: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)458787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:03]POST & json_proto [18:11:03]process_json_proto [18:11:03]json parsed OK: [18:11:03]protocol is kg_v1.0 [18:11:03]action value=close_receipt [18:11:03]process_action close_receipt [18:11:03]cmd_close_receipt [18:11:03]MH_GetDate [18:11:03]Write to MH i2c: F0 00 00 8E 01 7E [18:11:03]Write i2c OK [18:11:03]MH_I2C_Read... [18:11:03]Read from MH i2c: F0 [18:11:03]MH_I2C_Read... [18:11:03]Read from MH i2c: F0 09 00 [18:11:03]MH_I2C_Read... [18:11:03]Read from MH i2c: F0 09 00 8E 01 00 38 C3 92 66 C9 DC B2 64 35 [18:11:03]GetLastDocTimeStamp 1720894209 [18:11:03]current date 1720894264 [18:11:03]FM_GetShiftState [18:11:03]SAM_PROTO_GetShiftState [18:11:03]wFMCommunicate request_size=4 [18:11:03]MH_SAM_APDU [18:11:03]CAPDU: 80 13 01 00 [18:11:03]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [18:11:03]Write i2c OK [18:11:03]MH_I2C_Read... [18:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:03]Read from MH i2c: E2 [18:11:03]MH_I2C_Read... [18:11:03]Read from MH i2c: E2 0E 00 [18:11:03]MH_I2C_Read... [18:11:03]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EE [18:11:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:11:03]wFMCommunicate OK [18:11:03]SAM_PROTO_GetShiftState done [18:11:03]FM_GetShiftState done [18:11:03]opened in 1720831249 [18:11:03]opened+sec_in_day 1720917649 [18:11:03]quantity*price = 50008 [18:11:03]sum+1 = 50009 [18:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 253 13.07.2024 18:11 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164693 ФПД: 212993295495240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164693&fm=212993295495240&tin=02508201610067®Number=0000000000090829&sum=50000 [18:11:04]StoreToDocumentArchive [18:11:04]shift 446 fd 164693 [18:11:04]save to /storage/0446/doc_00164693 [18:11:04]save last doc name /storage/0446/doc_00164693 to /storage/kkm_last_doc_name [18:11:04]save OK [18:11:04]Clear old archive folders... [18:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:05]tlvbuf is B6DF0110 [18:11:05]SAM_PROTO_ClearQueue [18:11:05]wFMCommunicate request_size=4 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 09 00 00 [18:11:05]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [18:11:05]RAPDU: 90 00 [18:11:05]wFMCommunicate OK [18:11:05]SAM_PROTO_ClearQueue done [18:11:05]KKMCreateOFDPacket [18:11:05]OFDProtocolAddRootSTLVToBuf [18:11:05]FM_MakeSignedData [18:11:05]FM_MakeSignedData [18:11:05]SAM_PROTO_SignData [18:11:05]wFMCommunicate request_size=4 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 0D 01 02 [18:11:05]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [18:11:05]RAPDU: 90 00 [18:11:05]wFMCommunicate OK [18:11:05]wFMCommunicate request_size=255 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FD 00 00 00 F4 03 04 00 38 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 83 02 00 35 04 06 00 C1 [18:11:05]Write to MH i2c: E2 02 01 9E 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FD 00 00 00 F4 03 04 00 38 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 83 02 00 35 04 06 00 C1 00 00 DA [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [18:11:05]RAPDU: 90 00 [18:11:05]wFMCommunicate OK [18:11:05]wFMCommunicate request_size=10 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 0D 02 02 05 B7 5D B7 B0 48 [18:11:05]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 B7 5D B7 B0 48 00 00 E7 [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [18:11:05]RAPDU: 90 00 [18:11:05]wFMCommunicate OK [18:11:05]wFMCommunicate request_size=4 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 0D 03 02 [18:11:05]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 0B 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 0B 00 A0 01 00 E0 44 08 49 E9 D4 23 70 90 00 E2 [18:11:05]RAPDU: E0 44 08 49 E9 D4 23 70 90 00 [18:11:05]wFMCommunicate OK [18:11:05]SAM_PROTO_SignData done [18:11:05]FM_MakeSignedData done [18:11:05]CreateOFDProtocolMessage [18:11:05]wFMCommunicate request_size=4 [18:11:05]MH_SAM_APDU [18:11:05]CAPDU: 80 11 00 00 [18:11:05]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:05]Read from MH i2c: E2 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 17 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [18:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:05]wFMCommunicate OK [18:11:05]CreateOFDProtocolMessage done [18:11:05]OFDSenderStorePacket 164693 [18:11:05]StoreOFDPacket docnum=164693 [18:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 01 07 01 25 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FD 00 00 00 F4 03 04 00 38 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 83 02 00 35 04 06 00 C1 B7 5D B7 B0 48 E0 44 08 49 E9 D4 23 70 [18:11:05]CheckFolder [18:11:05]dirname=/storage/ofd_packets [18:11:05]CheckFolder done [18:11:05]ProducePacketName [18:11:05]name=ofd_packets/00164693 [18:11:05]NVStorageSaveData ofd_packets/00164693 [18:11:05]File name is /storage/ofd_packets/00164693 [18:11:05]Write 301 bytes [18:11:05]NVStorageSaveData done [18:11:05]OFDSenderStorePacket done [18:11:05]KKMCreateOFDPacket done [18:11:05]NVStorageSaveData kkm_last_timestamp [18:11:05]File name is /storage/kkm_last_timestamp [18:11:05]Write 4 bytes [18:11:05]NVStorageSaveData done [18:11:05]ExternCall_PrintAddStr [18:11:05]wPrintStart [18:11:05]Write to MH i2c: 01 00 00 A2 01 A3 [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 07 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [18:11:05]RasterBufferAndPrint [18:11:05]line Счет N : (1)458787 [18:11:05]line ИНН: 02508201610067 [18:11:05]line Контрольно-Кассовый Чек [18:11:05]line ПРОДАЖА [18:11:05]line ТРК (МРК, ГНК) : 12 [18:11:05]line Товар: 2710124130 [18:11:05]line Аи-92-К-5 [18:11:05]line 7.600 * 65.80 [18:11:05]line = 500.08 [18:11:05]line НДС 12% НСП 1% [18:11:05]line > о реализуемом товаре [18:11:05]line ОКРУГЛЕНИЕ: -0.08 [18:11:05]line ИТОГО: 500.00 [18:11:05]line Внесено: 500.00 [18:11:05]line СДАЧА: 0.00 [18:11:05]line НСП 1% : 4.42 [18:11:05]line НДС 12% : 53.11 [18:11:05]line Наличными: 500.00 [18:11:05]line Безнал.: 0.00 [18:11:05]line Место: АЗС № 72 "Партнер Нефть" [18:11:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:11:05]line СНО: Общий режим [18:11:05]line Чек 253 13.07.2024 18:11 [18:11:05]line Смена: 446 ФФД: 1.0 [18:11:05]line ЗНМ: 0300000160 [18:11:05]line РНМ: 0000000000090829 [18:11:05]line Версия ККМ: 001 [18:11:05]line ФМ: 0000000000874718 [18:11:05]line ФД: 164693 [18:11:05]line ФПД: 212993295495240 [18:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164693&fm=212993295495240&tin=02508201610067®Number=0000000000090829&sum=50000 [18:11:05]OFD Sender: Processing packet 164693 [packets to send 104, broken 103] [18:11:05]ProducePacketName [18:11:05]name=ofd_packets/00164693 [18:11:05]OFD Sender: To server: pG, [18:11:05]CommunicateWithHost lk.salyk.kg:30040 [18:11:05]ConnectInit lk.salyk.kg [18:11:05]written 0, free lines is 4095 [18:11:05]Connected sock=10 [18:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 01 07 01 25 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FD 00 00 00 F4 03 04 00 38 C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 83 02 00 35 04 06 00 C1 B7 5D B7 B0 48 E0 44 08 49 E9 D4 23 70 [18:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 98 47 00 9A 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 83 02 00 F4 03 04 00 C8 69 92 66 B6 04 01 00 00 FE 80 46 50 5A 93 1D BF [18:11:06]CommunicateWithHost err = 0 [18:11:06]CheckOFDResponse [18:11:06]1017 (14) - 77093643461234 [18:11:06]1041 (16) - 0000000000874718 [18:11:06]1040 (4) - 164693 [18:11:06]1012 (4) - 13.07.2024 11:49 [18:11:06]1206 (1) - 0 [18:11:06]OFD Sender: Remove packet 164693 [18:11:06]ProducePacketName [18:11:06]name=ofd_packets/00164693 [18:11:06]NVStorageDeleteData [18:11:06]Write to MH i2c: 01 00 00 CC 01 CD [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: 01 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: 01 07 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 F9 0C D9 [18:11:06]RasterBufferAndPrint [18:11:06]line [18:11:06]line [18:11:06]line [18:11:06]line [18:11:06]line [18:11:06]written 0, free lines is 3328 [18:11:06]MH_Cut [18:11:06]Write to MH i2c: D1 01 00 D3 01 01 A6 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: D1 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: D1 01 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: D1 01 00 D3 01 00 A5 [18:11:06]Write to MH i2c: 01 00 00 D4 01 D5 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]OFD Sender: No OFD packet to send [18:11:06]*** Cut start [18:11:06]*** Partial cut [18:11:06]*** CUTSNS_PIN = 1 [18:11:07]*** CUTSNS_PIN = 0 [18:11:07]*** Brake cut motor [18:11:07]Read from MH i2c: 01 [18:11:07]MH_I2C_Read... [18:11:07]*** Stop cut motor [18:11:07]*** Cut end [18:11:07]Read from MH i2c: 01 07 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [18:11:07]process_action close_receipt done [18:11:07]requested_data is exist [18:11:07]produce_requested_data [18:11:07]requested_item fm.sn is exist - process it [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 11 00 00 [18:11:07]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 17 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [18:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:07]wFMCommunicate OK [18:11:07]requested_item fd.num is exist - process it [18:11:07]SAM_PROTO_GetFieldsCounters [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 13 00 00 [18:11:07]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 62 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 62 00 D6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [18:11: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:07]wFMCommunicate OK [18:11:07]SAM_PROTO_GetFieldsCounters done [18:11:07]requested_item shift.num is exist - process it [18:11:07]requested_item shift.opened is exist - process it [18:11:07]req_shift_opened [18:11:07]FM_GetShiftState [18:11:07]SAM_PROTO_GetShiftState [18:11:07]wFMCommunicate request_size=4 [18:11:07]MH_SAM_APDU [18:11:07]CAPDU: 80 13 01 00 [18:11:07]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:07]Read from MH i2c: E2 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 0E 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 36 [18:11:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:11:07]wFMCommunicate OK [18:11:07]SAM_PROTO_GetShiftState done [18:11:07]FM_GetShiftState done [18:11:07]req_shift_opened done [18:11:07]requested_item shift.open_date is exist - process it [18:11:07]req_shift_open_date [18:11:07]req_shift_open_date done [18:11:07]produce_requested_data done [18:11:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164693,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:11:07]process_action_free close_receipt [18:11:07]json_value_free [18:11:07]json_value_free done [18:11:07]process_json_proto returns [18:11:07]Send response to host [18:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164693,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:11:07]free response buf [18:11:07]execute_script done [18:11:07]execute_script returns [18:11:07]free content buf [18:11:07]Sock 9.Close socket [18:11:07]Sock 9.Thread stoped [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:55]accept exits with 7 [18:11:55]New connection [18:11:55]New thread 3067247972 created [18:11:55]Thread 3067104612 joined [18:11:55]Waiting for new connection... [18:11:55] Sock 7.Parse request [18:11:55]Sock 7.Check first char [18:11:55]Sock 7.First char is OK [18:11:55]request: POST /json_proto HTTP/1.0 [18:11:55]Method: POST [18:11:55]URL: /json_proto [18:11:55]Method is POST - this is cgi request [18:11:55]url: /json_proto [18:11:55]query_string will be loaded in cgi processing [18:11:55]execute_cgi json_proto POST (null) [18:11:55]execute_cgi path=json_proto method=POST [18:11:55]POST find Content-Length [18:11:55]Host: 172.17.56.4:8080 [18:11:55]Content-Length: 677 [18:11:55]Content-Type: application/json [18:11:55] [18:11:55]POST finish read [18:11:55]Found Content-Length = 677 [18:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:55]execute_script... [18:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:55]POST & json_proto [18:11:55]process_json_proto [18:11:55]json parsed OK: [18:11:55]protocol is kg_v1.0 [18:11:55]action value=close_receipt [18:11:55]process_action close_receipt [18:11:55]cmd_close_receipt [18:11:55]MH_GetDate [18:11:55]Write to MH i2c: F0 00 00 D8 01 C8 [18:11:55]Write i2c OK [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 09 00 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: F0 09 00 D8 01 00 6B C3 92 66 C9 DC B2 64 B2 [18:11:55]GetLastDocTimeStamp 1720894264 [18:11:55]current date 1720894315 [18:11:55]FM_GetShiftState [18:11:55]SAM_PROTO_GetShiftState [18:11:55]wFMCommunicate request_size=4 [18:11:55]MH_SAM_APDU [18:11:55]CAPDU: 80 13 01 00 [18:11:55]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [18:11:55]Write i2c OK [18:11:55]MH_I2C_Read... [18:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:55]Read from MH i2c: E2 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: E2 0E 00 [18:11:55]MH_I2C_Read... [18:11:55]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 38 [18:11:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:11:55]wFMCommunicate OK [18:11:55]SAM_PROTO_GetShiftState done [18:11:55]FM_GetShiftState done [18:11:55]opened in 1720831249 [18:11:55]opened+sec_in_day 1720917649 [18:11:55]quantity*price = 50008 [18:11:55]sum+1 = 50009 [18:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 254 13.07.2024 18:11 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164694 ФПД: 52486858666622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164694&fm=52486858666622&tin=02508201610067®Number=0000000000090829&sum=50000 [18:11:56]StoreToDocumentArchive [18:11:56]shift 446 fd 164694 [18:11:56]save to /storage/0446/doc_00164694 [18:11:56]save last doc name /storage/0446/doc_00164694 to /storage/kkm_last_doc_name [18:11:56]save OK [18:11:56]Clear old archive folders... [18:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:56]tlvbuf is 01E7A940 [18:11:56]SAM_PROTO_ClearQueue [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 09 00 00 [18:11:56]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]SAM_PROTO_ClearQueue done [18:11:56]KKMCreateOFDPacket [18:11:56]OFDProtocolAddRootSTLVToBuf [18:11:56]FM_MakeSignedData [18:11:56]FM_MakeSignedData [18:11:56]SAM_PROTO_SignData [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 0D 01 02 [18:11:56]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]wFMCommunicate request_size=255 [18:11:56]MH_SAM_APDU [18: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 6B C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 83 02 00 35 04 06 00 2F [18:11:56]Write to MH i2c: E2 02 01 E8 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 6B C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 83 02 00 35 04 06 00 2F 00 00 C7 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]OFD Sender: No OFD packet to send [18:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]wFMCommunicate request_size=10 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 0D 02 02 05 BC 8C 90 F2 7E [18:11:56]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 BC 8C 90 F2 7E 00 00 B6 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [18:11:56]RAPDU: 90 00 [18:11:56]wFMCommunicate OK [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 0D 03 02 [18:11:56]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 0B 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 0B 00 EA 01 00 66 33 10 DD 16 39 F9 5E 90 00 93 [18:11:56]RAPDU: 66 33 10 DD 16 39 F9 5E 90 00 [18:11:56]wFMCommunicate OK [18:11:56]SAM_PROTO_SignData done [18:11:56]FM_MakeSignedData done [18:11:56]CreateOFDProtocolMessage [18:11:56]wFMCommunicate request_size=4 [18:11:56]MH_SAM_APDU [18:11:56]CAPDU: 80 11 00 00 [18:11:56]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:56]Read from MH i2c: E2 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 17 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [18:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:56]wFMCommunicate OK [18:11:56]CreateOFDProtocolMessage done [18:11:56]OFDSenderStorePacket 164694 [18:11:56]StoreOFDPacket docnum=164694 [18:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 EC 07 01 81 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 6B C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 83 02 00 35 04 06 00 2F BC 8C 90 F2 7E 66 33 10 DD 16 39 F9 5E [18:11:56]CheckFolder [18:11:56]dirname=/storage/ofd_packets [18:11:56]CheckFolder done [18:11:56]ProducePacketName [18:11:56]name=ofd_packets/00164694 [18:11:56]NVStorageSaveData ofd_packets/00164694 [18:11:56]File name is /storage/ofd_packets/00164694 [18:11:56]Write 301 bytes [18:11:56]NVStorageSaveData done [18:11:56]OFDSenderStorePacket done [18:11:56]KKMCreateOFDPacket done [18:11:56]NVStorageSaveData kkm_last_timestamp [18:11:56]File name is /storage/kkm_last_timestamp [18:11:56]Write 4 bytes [18:11:56]NVStorageSaveData done [18:11:56]ExternCall_PrintAddStr [18:11:56]wPrintStart [18:11:56]Write to MH i2c: 01 00 00 EC 01 ED [18:11:56]Write i2c OK [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: 01 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: 01 07 00 [18:11:56]MH_I2C_Read... [18:11:56]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [18:11:56]RasterBufferAndPrint [18:11:56]line Счет N : (1)458788 [18:11:56]line ИНН: 02508201610067 [18:11:56]line Контрольно-Кассовый Чек [18:11:56]line ПРОДАЖА [18:11:56]line ТРК (МРК, ГНК) : 12 [18:11:56]line Товар: 2710124130 [18:11:56]line Аи-92-К-5 [18:11:56]line 7.600 * 65.80 [18:11:56]line = 500.08 [18:11:56]line НДС 12% НСП 1% [18:11:56]line > о реализуемом товаре [18:11:56]line ОКРУГЛЕНИЕ: -0.08 [18:11:56]line ИТОГО: 500.00 [18:11:56]line Внесено: 500.00 [18:11:56]line СДАЧА: 0.00 [18:11:56]line НСП 1% : 4.42 [18:11:56]line НДС 12% : 53.11 [18:11:56]line Наличными: 500.00 [18:11:56]line Безнал.: 0.00 [18:11:56]line Место: АЗС № 72 "Партнер Нефть" [18:11:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:11:56]line СНО: Общий режим [18:11:56]line Чек 254 13.07.2024 18:11 [18:11:56]line Смена: 446 ФФД: 1.0 [18:11:56]line ЗНМ: 0300000160 [18:11:56]line РНМ: 0000000000090829 [18:11:56]line Версия ККМ: 001 [18:11:56]line ФМ: 0000000000874718 [18:11:56]line ФД: 164694 [18:11:56]line ФПД: 52486858666622 [18:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164694&fm=52486858666622&tin=02508201610067®Number=0000000000090829&sum=50000 [18:11:57]OFD Sender: Processing packet 164694 [packets to send 104, broken 103] [18:11:57]ProducePacketName [18:11:57]name=ofd_packets/00164694 [18:11:57]OFD Sender: To server: pG, [18:11:57]CommunicateWithHost lk.salyk.kg:30040 [18:11:57]ConnectInit lk.salyk.kg [18:11:57]written 0, free lines is 4095 [18:11:57]Connected sock=10 [18: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 34 37 31 38 0F 01 00 00 31 EC 07 01 81 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 6B C3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 83 02 00 35 04 06 00 2F BC 8C 90 F2 7E 66 33 10 DD 16 39 F9 5E [18:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 13 BC 47 00 21 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 34 37 31 38 10 04 04 00 56 83 02 00 F4 03 04 00 FB 69 92 66 B6 04 01 00 00 7D 36 73 5E 35 60 D8 4D [18:11:57]CommunicateWithHost err = 0 [18:11:57]CheckOFDResponse [18:11:57]1017 (14) - 77093643461234 [18:11:57]1041 (16) - 0000000000874718 [18:11:57]1040 (4) - 164694 [18:11:57]1012 (4) - 13.07.2024 11:50 [18:11:57]1206 (1) - 0 [18:11:57]OFD Sender: Remove packet 164694 [18:11:57]ProducePacketName [18:11:57]name=ofd_packets/00164694 [18:11:57]NVStorageDeleteData [18:11:57]Write to MH i2c: 01 00 00 16 02 18 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 12 0D 3E [18:11:57]RasterBufferAndPrint [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]line [18:11:57]written 0, free lines is 3352 [18:11:57]MH_Cut [18:11:57]Write to MH i2c: D1 01 00 1D 02 01 F1 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 01 00 [18:11:57]MH_I2C_Read... [18:11:57]Read from MH i2c: D1 01 00 1D 02 00 F0 [18:11:57]Write to MH i2c: 01 00 00 1E 02 20 [18:11:57]Write i2c OK [18:11:57]MH_I2C_Read... [18:11:58]OFD Sender: No OFD packet to send [18:11:58]*** Cut start [18:11:58]*** Partial cut [18:11:58]*** CUTSNS_PIN = 1 [18:11:58]*** CUTSNS_PIN = 0 [18:11:58]*** Brake cut motor [18:11:58]Read from MH i2c: 01 [18:11:58]MH_I2C_Read... [18:11:58]*** Stop cut motor [18:11:58]*** Cut end [18:11:58]Read from MH i2c: 01 07 00 [18:11:58]MH_I2C_Read... [18:11:58]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [18:11:59]process_action close_receipt done [18:11:59]requested_data is exist [18:11:59]produce_requested_data [18:11:59]requested_item fm.sn is exist - process it [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 11 00 00 [18:11:59]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [18:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:59]wFMCommunicate OK [18:11:59]requested_item fd.num is exist - process it [18:11:59]SAM_PROTO_GetFieldsCounters [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 13 00 00 [18:11:59]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 62 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 62 00 20 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:59]wFMCommunicate OK [18:11:59]SAM_PROTO_GetFieldsCounters done [18:11:59]requested_item shift.num is exist - process it [18:11:59]requested_item shift.opened is exist - process it [18:11:59]req_shift_opened [18:11:59]FM_GetShiftState [18:11:59]SAM_PROTO_GetShiftState [18:11:59]wFMCommunicate request_size=4 [18:11:59]MH_SAM_APDU [18:11:59]CAPDU: 80 13 01 00 [18:11:59]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [18:11:59]Write i2c OK [18:11:59]MH_I2C_Read... [18:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:59]Read from MH i2c: E2 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 0E 00 [18:11:59]MH_I2C_Read... [18:11:59]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 81 [18:11:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:11:59]wFMCommunicate OK [18:11:59]SAM_PROTO_GetShiftState done [18:11:59]FM_GetShiftState done [18:11:59]req_shift_opened done [18:11:59]requested_item shift.open_date is exist - process it [18:11:59]req_shift_open_date [18:11:59]req_shift_open_date done [18:11:59]produce_requested_data done [18:11:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164694,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:11:59]process_action_free close_receipt [18:11:59]json_value_free [18:11:59]json_value_free done [18:11:59]process_json_proto returns [18:11:59]Send response to host [18:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164694,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:11:59]free response buf [18:11:59]execute_script done [18:11:59]execute_script returns [18:11:59]free content buf [18:11:59]Sock 7.Close socket [18:11:59]Sock 7.Thread stoped [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:51]accept exits with 9 [18:16:51]New connection [18:16:51]New thread 3067104612 created [18:16:51]Thread 3067247972 joined [18:16:51]Waiting for new connection... [18:16:51] Sock 9.Parse request [18:16:51]Sock 9.Check first char [18:16:51]Sock 9.First char is OK [18:16:51]request: POST /json_proto HTTP/1.0 [18:16:51]Method: POST [18:16:51]URL: /json_proto [18:16:51]Method is POST - this is cgi request [18:16:51]url: /json_proto [18:16:51]query_string will be loaded in cgi processing [18:16:51]execute_cgi json_proto POST (null) [18:16:51]execute_cgi path=json_proto method=POST [18:16:51]POST find Content-Length [18:16:51]Host: 172.17.56.4:8080 [18:16:51]Content-Length: 677 [18:16:51]Content-Type: application/json [18:16:51] [18:16:51]POST finish read [18:16:51]Found Content-Length = 677 [18:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.630, "sum" : 370.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:51]execute_script... [18:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.630, "sum" : 370.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:51]POST & json_proto [18:16:51]process_json_proto [18:16:51]json parsed OK: [18:16:51]protocol is kg_v1.0 [18:16:51]action value=close_receipt [18:16:51]process_action close_receipt [18:16:51]cmd_close_receipt [18:16:51]MH_GetDate [18:16:51]Write to MH i2c: F0 00 00 22 02 13 [18:16:51]Write i2c OK [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 09 00 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: F0 09 00 22 02 00 93 C4 92 66 C9 DC B2 64 26 [18:16:51]GetLastDocTimeStamp 1720894315 [18:16:51]current date 1720894611 [18:16:51]FM_GetShiftState [18:16:51]SAM_PROTO_GetShiftState [18:16:51]wFMCommunicate request_size=4 [18:16:51]MH_SAM_APDU [18:16:51]CAPDU: 80 13 01 00 [18:16:51]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [18:16:51]Write i2c OK [18:16:51]MH_I2C_Read... [18:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:51]Read from MH i2c: E2 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: E2 0E 00 [18:16:51]MH_I2C_Read... [18:16:51]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 83 [18:16:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:16:51]wFMCommunicate OK [18:16:51]SAM_PROTO_GetShiftState done [18:16:51]FM_GetShiftState done [18:16:51]opened in 1720831249 [18:16:51]opened+sec_in_day 1720917649 [18:16:51]quantity*price = 37045 [18:16:51]sum+1 = 37046 [18:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.34 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 255 13.07.2024 18:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164695 ФПД: 80196047127126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164695&fm=80196047127126&tin=02508201610067®Number=0000000000090829&sum=37000 [18:16:52]StoreToDocumentArchive [18:16:52]shift 446 fd 164695 [18:16:52]save to /storage/0446/doc_00164695 [18:16:52]save last doc name /storage/0446/doc_00164695 to /storage/kkm_last_doc_name [18:16:52]save OK [18:16:52]Clear old archive folders... [18:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:52]tlvbuf is 01E3E9B0 [18:16:52]SAM_PROTO_ClearQueue [18:16:52]wFMCommunicate request_size=4 [18:16:52]MH_SAM_APDU [18:16:52]CAPDU: 80 09 00 00 [18:16:52]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:52]Read from MH i2c: E2 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 03 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [18:16:52]RAPDU: 90 00 [18:16:52]wFMCommunicate OK [18:16:52]SAM_PROTO_ClearQueue done [18:16:52]KKMCreateOFDPacket [18:16:52]OFDProtocolAddRootSTLVToBuf [18:16:52]FM_MakeSignedData [18:16:52]FM_MakeSignedData [18:16:52]SAM_PROTO_SignData [18:16:52]wFMCommunicate request_size=4 [18:16:52]MH_SAM_APDU [18:16:52]CAPDU: 80 0D 01 02 [18:16:52]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:52]Read from MH i2c: E2 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 03 00 [18:16:52]MH_I2C_Read... [18:16:52]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [18:16:52]RAPDU: 90 00 [18:16:52]wFMCommunicate OK [18:16:52]wFMCommunicate request_size=255 [18:16:52]MH_SAM_APDU [18:16: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 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 93 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 83 02 00 35 04 06 00 48 [18:16:52]Write to MH i2c: E2 02 01 32 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 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 93 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 83 02 00 35 04 06 00 48 00 00 F8 [18:16:52]Write i2c OK [18:16:52]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]wFMCommunicate request_size=10 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 02 02 05 F0 18 E6 C2 56 [18:16:53]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 F0 18 E6 C2 56 00 00 BF [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [18:16:53]RAPDU: 90 00 [18:16:53]wFMCommunicate OK [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 0D 03 02 [18:16:53]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 0B 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 0B 00 34 02 00 07 88 93 1C A7 16 6F E7 90 00 03 [18:16:53]RAPDU: 07 88 93 1C A7 16 6F E7 90 00 [18:16:53]wFMCommunicate OK [18:16:53]SAM_PROTO_SignData done [18:16:53]FM_MakeSignedData done [18:16:53]CreateOFDProtocolMessage [18:16:53]wFMCommunicate request_size=4 [18:16:53]MH_SAM_APDU [18:16:53]CAPDU: 80 11 00 00 [18:16:53]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:53]Read from MH i2c: E2 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 17 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [18:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:16:53]wFMCommunicate OK [18:16:53]CreateOFDProtocolMessage done [18:16:53]OFDSenderStorePacket 164695 [18:16:53]StoreOFDPacket docnum=164695 [18:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 0E 07 01 AB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 93 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 83 02 00 35 04 06 00 48 F0 18 E6 C2 56 07 88 93 1C A7 16 6F E7 [18:16:53]CheckFolder [18:16:53]dirname=/storage/ofd_packets [18:16:53]CheckFolder done [18:16:53]ProducePacketName [18:16:53]name=ofd_packets/00164695 [18:16:53]NVStorageSaveData ofd_packets/00164695 [18:16:53]File name is /storage/ofd_packets/00164695 [18:16:53]Write 301 bytes [18:16:53]NVStorageSaveData done [18:16:53]OFDSenderStorePacket done [18:16:53]KKMCreateOFDPacket done [18:16:53]NVStorageSaveData kkm_last_timestamp [18:16:53]File name is /storage/kkm_last_timestamp [18:16:53]Write 4 bytes [18:16:53]NVStorageSaveData done [18:16:53]ExternCall_PrintAddStr [18:16:53]wPrintStart [18:16:53]Write to MH i2c: 01 00 00 36 02 38 [18:16:53]Write i2c OK [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 07 00 [18:16:53]MH_I2C_Read... [18:16:53]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [18:16:53]RasterBufferAndPrint [18:16:53]line Счет N : (1)458789 [18:16:53]line ИНН: 02508201610067 [18:16:53]line Контрольно-Кассовый Чек [18:16:53]line ПРОДАЖА [18:16:53]line ТРК (МРК, ГНК) : 22 [18:16:53]line Товар: 2710124130 [18:16:53]line Аи-92-К-5 [18:16:53]line 5.630 * 65.80 [18:16:53]line = 370.45 [18:16:53]line НДС 12% НСП 1% [18:16:53]line > о реализуемом товаре [18:16:53]line ОКРУГЛЕНИЕ: -0.45 [18:16:53]line ИТОГО: 370.00 [18:16:53]line Внесено: 370.00 [18:16:53]line СДАЧА: 0.00 [18:16:53]line НСП 1% : 3.28 [18:16:53]line НДС 12% : 39.34 [18:16:53]line Наличными: 370.00 [18:16:53]line Безнал.: 0.00 [18:16:53]line Место: АЗС № 72 "Партнер Нефть" [18:16:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:16:53]line СНО: Общий режим [18:16:53]line Чек 255 13.07.2024 18:16 [18:16:53]line Смена: 446 ФФД: 1.0 [18:16:53]line ЗНМ: 0300000160 [18:16:53]line РНМ: 0000000000090829 [18:16:53]line Версия ККМ: 001 [18:16:53]line ФМ: 0000000000874718 [18:16:53]line ФД: 164695 [18:16:53]line ФПД: 80196047127126 [18:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164695&fm=80196047127126&tin=02508201610067®Number=0000000000090829&sum=37000 [18:16:53]OFD Sender: Processing packet 164695 [packets to send 104, broken 103] [18:16:53]ProducePacketName [18:16:53]name=ofd_packets/00164695 [18:16:53]OFD Sender: To server: pG, [18:16:53]CommunicateWithHost lk.salyk.kg:30040 [18:16:53]ConnectInit lk.salyk.kg [18:16:53]written 0, free lines is 4095 [18:16:53]Connected sock=10 [18:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 0E 07 01 AB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 93 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 83 02 00 35 04 06 00 48 F0 18 E6 C2 56 07 88 93 1C A7 16 6F E7 [18:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 9B 47 00 61 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 34 37 31 38 10 04 04 00 57 83 02 00 F4 03 04 00 24 6B 92 66 B6 04 01 00 00 95 B0 0B 25 EB AC 84 8A [18:16:53]CommunicateWithHost err = 0 [18:16:53]CheckOFDResponse [18:16:53]1017 (14) - 77093643461234 [18:16:53]1041 (16) - 0000000000874718 [18:16:53]1040 (4) - 164695 [18:16:53]1012 (4) - 13.07.2024 11:55 [18:16:53]1206 (1) - 0 [18:16:53]OFD Sender: Remove packet 164695 [18:16:53]ProducePacketName [18:16:53]name=ofd_packets/00164695 [18:16:53]NVStorageDeleteData [18:16:54]Write to MH i2c: 01 00 00 60 02 62 [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 07 00 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 01 0D 77 [18:16:54]RasterBufferAndPrint [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]line [18:16:54]written 0, free lines is 3335 [18:16:54]MH_Cut [18:16:54]Write to MH i2c: D1 01 00 67 02 01 3B [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 01 00 [18:16:54]MH_I2C_Read... [18:16:54]Read from MH i2c: D1 01 00 67 02 00 3A [18:16:54]Write to MH i2c: 01 00 00 68 02 6A [18:16:54]Write i2c OK [18:16:54]MH_I2C_Read... [18:16:54]OFD Sender: No OFD packet to send [18:16:54]*** Cut start [18:16:54]*** Partial cut [18:16:54]*** CUTSNS_PIN = 1 [18:16:54]*** CUTSNS_PIN = 0 [18:16:54]*** Brake cut motor [18:16:55]Read from MH i2c: 01 [18:16:55]MH_I2C_Read... [18:16:55]*** Stop cut motor [18:16:55]*** Cut end [18:16:55]Read from MH i2c: 01 07 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [18:16:55]process_action close_receipt done [18:16:55]requested_data is exist [18:16:55]produce_requested_data [18:16:55]requested_item fm.sn is exist - process it [18:16:55]wFMCommunicate request_size=4 [18:16:55]MH_SAM_APDU [18:16:55]CAPDU: 80 11 00 00 [18:16:55]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [18:16:55]Write i2c OK [18:16:55]MH_I2C_Read... [18:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:55]Read from MH i2c: E2 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 17 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [18:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:16:55]wFMCommunicate OK [18:16:55]requested_item fd.num is exist - process it [18:16:55]SAM_PROTO_GetFieldsCounters [18:16:55]wFMCommunicate request_size=4 [18:16:55]MH_SAM_APDU [18:16:55]CAPDU: 80 13 00 00 [18:16:55]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [18:16:55]Write i2c OK [18:16:55]MH_I2C_Read... [18:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:55]Read from MH i2c: E2 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 62 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 62 00 6A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [18:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:55]wFMCommunicate OK [18:16:55]SAM_PROTO_GetFieldsCounters done [18:16:55]requested_item shift.num is exist - process it [18:16:55]requested_item shift.opened is exist - process it [18:16:55]req_shift_opened [18:16:55]FM_GetShiftState [18:16:55]SAM_PROTO_GetShiftState [18:16:55]wFMCommunicate request_size=4 [18:16:55]MH_SAM_APDU [18:16:55]CAPDU: 80 13 01 00 [18:16:55]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [18:16:55]Write i2c OK [18:16:55]MH_I2C_Read... [18:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:55]Read from MH i2c: E2 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 0E 00 [18:16:55]MH_I2C_Read... [18:16:55]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CB [18:16:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:16:55]wFMCommunicate OK [18:16:55]SAM_PROTO_GetShiftState done [18:16:55]FM_GetShiftState done [18:16:55]req_shift_opened done [18:16:55]requested_item shift.open_date is exist - process it [18:16:55]req_shift_open_date [18:16:55]req_shift_open_date done [18:16:55]produce_requested_data done [18:16:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164695,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:16:55]process_action_free close_receipt [18:16:55]json_value_free [18:16:55]json_value_free done [18:16:55]process_json_proto returns [18:16:55]Send response to host [18:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164695,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:16:55]free response buf [18:16:55]execute_script done [18:16:55]execute_script returns [18:16:55]free content buf [18:16:55]Sock 9.Close socket [18:16:55]Sock 9.Thread stoped [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:36]accept exits with 7 [18:17:36]New connection [18:17:36]New thread 3067247972 created [18:17:36]Thread 3067104612 joined [18:17:36]Waiting for new connection... [18:17:36] Sock 7.Parse request [18:17:36]Sock 7.Check first char [18:17:36]Sock 7.First char is OK [18:17:36]request: POST /json_proto HTTP/1.0 [18:17:36]Method: POST [18:17:36]URL: /json_proto [18:17:36]Method is POST - this is cgi request [18:17:36]url: /json_proto [18:17:36]query_string will be loaded in cgi processing [18:17:36]execute_cgi json_proto POST (null) [18:17:36]execute_cgi path=json_proto method=POST [18:17:36]POST find Content-Length [18:17:36]Host: 172.17.56.4:8080 [18:17:36]Content-Length: 677 [18:17:36]Content-Type: application/json [18:17:36] [18:17:36]POST finish read [18:17:36]Found Content-Length = 677 [18:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:36]execute_script... [18:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:36]POST & json_proto [18:17:36]process_json_proto [18:17:36]json parsed OK: [18:17:36]protocol is kg_v1.0 [18:17:36]action value=close_receipt [18:17:36]process_action close_receipt [18:17:36]cmd_close_receipt [18:17:36]MH_GetDate [18:17:36]Write to MH i2c: F0 00 00 6C 02 5D [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: F0 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: F0 09 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: F0 09 00 6C 02 00 C0 C4 92 66 C9 DC B2 64 9D [18:17:36]GetLastDocTimeStamp 1720894611 [18:17:36]current date 1720894656 [18:17:36]FM_GetShiftState [18:17:36]SAM_PROTO_GetShiftState [18:17:36]wFMCommunicate request_size=4 [18:17:36]MH_SAM_APDU [18:17:36]CAPDU: 80 13 01 00 [18:17:36]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [18:17:36]Write i2c OK [18:17:36]MH_I2C_Read... [18:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:36]Read from MH i2c: E2 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 0E 00 [18:17:36]MH_I2C_Read... [18:17:36]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CD [18:17:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:17:36]wFMCommunicate OK [18:17:36]SAM_PROTO_GetShiftState done [18:17:36]FM_GetShiftState done [18:17:36]opened in 1720831249 [18:17:36]opened+sec_in_day 1720917649 [18:17:36]quantity*price = 20003 [18:17:36]sum+1 = 20004 [18:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 256 13.07.2024 18:17 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164696 ФПД: 200704535010932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181736&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164696&fm=200704535010932&tin=02508201610067®Number=0000000000090829&sum=20000 [18:17:37]StoreToDocumentArchive [18:17:37]shift 446 fd 164696 [18:17:37]save to /storage/0446/doc_00164696 [18:17:37]save last doc name /storage/0446/doc_00164696 to /storage/kkm_last_doc_name [18:17:37]save OK [18:17:37]Clear old archive folders... [18:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:37]tlvbuf is 01E40530 [18:17:37]SAM_PROTO_ClearQueue [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 09 00 00 [18:17:37]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]SAM_PROTO_ClearQueue done [18:17:37]KKMCreateOFDPacket [18:17:37]OFDProtocolAddRootSTLVToBuf [18:17:37]FM_MakeSignedData [18:17:37]FM_MakeSignedData [18:17:37]SAM_PROTO_SignData [18:17:37]wFMCommunicate request_size=4 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 01 02 [18:17:37]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:37]Read from MH i2c: E2 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 [18:17:37]MH_I2C_Read... [18:17:37]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [18:17:37]RAPDU: 90 00 [18:17:37]wFMCommunicate OK [18:17:37]wFMCommunicate request_size=255 [18:17:37]MH_SAM_APDU [18:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C0 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 83 02 00 35 04 06 00 B6 [18:17:37]Write to MH i2c: E2 02 01 7C 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C0 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 83 02 00 35 04 06 00 B6 00 00 DF [18:17:37]Write i2c OK [18:17:37]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 03 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [18:17:38]RAPDU: 90 00 [18:17:38]wFMCommunicate OK [18:17:38]wFMCommunicate request_size=10 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 0D 02 02 05 8A 2A 83 9E 74 [18:17:38]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 8A 2A 83 9E 74 00 00 4C [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 03 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [18:17:38]RAPDU: 90 00 [18:17:38]wFMCommunicate OK [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 0D 03 02 [18:17:38]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0B 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0B 00 7E 02 00 8F C1 BE F6 B5 F2 84 8D 90 00 B8 [18:17:38]RAPDU: 8F C1 BE F6 B5 F2 84 8D 90 00 [18:17:38]wFMCommunicate OK [18:17:38]SAM_PROTO_SignData done [18:17:38]FM_MakeSignedData done [18:17:38]CreateOFDProtocolMessage [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 11 00 00 [18:17:38]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 17 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [18:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:17:38]wFMCommunicate OK [18:17:38]CreateOFDProtocolMessage done [18:17:38]OFDSenderStorePacket 164696 [18:17:38]StoreOFDPacket docnum=164696 [18:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 A5 07 01 A2 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C0 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 83 02 00 35 04 06 00 B6 8A 2A 83 9E 74 8F C1 BE F6 B5 F2 84 8D [18:17:38]CheckFolder [18:17:38]dirname=/storage/ofd_packets [18:17:38]CheckFolder done [18:17:38]ProducePacketName [18:17:38]name=ofd_packets/00164696 [18:17:38]NVStorageSaveData ofd_packets/00164696 [18:17:38]File name is /storage/ofd_packets/00164696 [18:17:38]Write 301 bytes [18:17:38]NVStorageSaveData done [18:17:38]OFDSenderStorePacket done [18:17:38]KKMCreateOFDPacket done [18:17:38]NVStorageSaveData kkm_last_timestamp [18:17:38]File name is /storage/kkm_last_timestamp [18:17:38]Write 4 bytes [18:17:38]NVStorageSaveData done [18:17:38]OFD Sender: Processing packet 164696 [packets to send 104, broken 103] [18:17:38]ProducePacketName [18:17:38]name=ofd_packets/00164696 [18:17:38]OFD Sender: To server: pG, [18:17:38]CommunicateWithHost lk.salyk.kg:30040 [18:17:38]ConnectInit lk.salyk.kg [18:17:38]ExternCall_PrintAddStr [18:17:38]wPrintStart [18:17:38]Write to MH i2c: 01 00 00 80 02 82 [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [18:17:38]RasterBufferAndPrint [18:17:38]line Счет N : (1)458790 [18:17:38]line ИНН: 02508201610067 [18:17:38]line Контрольно-Кассовый Чек [18:17:38]line ПРОДАЖА [18:17:38]line ТРК (МРК, ГНК) : 12 [18:17:38]line Товар: 2710124130 [18:17:38]line Аи-92-К-5 [18:17:38]line 3.040 * 65.80 [18:17:38]line = 200.03 [18:17:38]line НДС 12% НСП 1% [18:17:38]line > о реализуемом товаре [18:17:38]line ОКРУГЛЕНИЕ: -0.03 [18:17:38]line ИТОГО: 200.00 [18:17:38]line Внесено: 200.00 [18:17:38]line СДАЧА: 0.00 [18:17:38]line НСП 1% : 1.77 [18:17:38]line НДС 12% : 21.24 [18:17:38]line Наличными: 200.00 [18:17:38]line Безнал.: 0.00 [18:17:38]line Место: АЗС № 72 "Партнер Нефть" [18:17:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:17:38]line СНО: Общий режим [18:17:38]line Чек 256 13.07.2024 18:17 [18:17:38]line Смена: 446 ФФД: 1.0 [18:17:38]line ЗНМ: 0300000160 [18:17:38]line РНМ: 0000000000090829 [18:17:38]line Версия ККМ: 001 [18:17:38]line ФМ: 0000000000874718 [18:17:38]line ФД: 164696 [18:17:38]line ФПД: 200704535010932 [18:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181736&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164696&fm=200704535010932&tin=02508201610067®Number=0000000000090829&sum=20000 [18:17:38]Connected sock=11 [18:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 A5 07 01 A2 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 C0 C4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 83 02 00 35 04 06 00 B6 8A 2A 83 9E 74 8F C1 BE F6 B5 F2 84 8D [18:17:38]written 0, free lines is 4095 [18:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F1 9E 47 00 BE 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 34 37 31 38 10 04 04 00 58 83 02 00 F4 03 04 00 51 6B 92 66 B6 04 01 00 00 59 0B 41 64 93 BF 0F 0E [18:17:38]CommunicateWithHost err = 0 [18:17:38]CheckOFDResponse [18:17:38]1017 (14) - 77093643461234 [18:17:38]1041 (16) - 0000000000874718 [18:17:38]1040 (4) - 164696 [18:17:38]1012 (4) - 13.07.2024 11:56 [18:17:38]1206 (1) - 0 [18:17:38]OFD Sender: Remove packet 164696 [18:17:38]ProducePacketName [18:17:38]name=ofd_packets/00164696 [18:17:38]NVStorageDeleteData [18:17:39]Write to MH i2c: 01 00 00 AA 02 AC [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 07 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 FE 0C BD [18:17:39]RasterBufferAndPrint [18:17:39]line [18:17:39]line [18:17:39]line [18:17:39]line [18:17:39]line [18:17:39]written 0, free lines is 3332 [18:17:39]MH_Cut [18:17:39]Write to MH i2c: D1 01 00 B1 02 01 85 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: D1 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: D1 01 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: D1 01 00 B1 02 00 84 [18:17:39]Write to MH i2c: 01 00 00 B2 02 B4 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]OFD Sender: No OFD packet to send [18:17:39]*** Cut start [18:17:39]*** Partial cut [18:17:39]*** CUTSNS_PIN = 1 [18:17:39]*** CUTSNS_PIN = 0 [18:17:39]*** Brake cut motor [18:17:40]Read from MH i2c: 01 [18:17:40]MH_I2C_Read... [18:17:40]*** Stop cut motor [18:17:40]*** Cut end [18:17:40]Read from MH i2c: 01 07 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [18:17:40]process_action close_receipt done [18:17:40]requested_data is exist [18:17:40]produce_requested_data [18:17:40]requested_item fm.sn is exist - process it [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 11 00 00 [18:17:40]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [18:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:17:40]wFMCommunicate OK [18:17:40]requested_item fd.num is exist - process it [18:17:40]SAM_PROTO_GetFieldsCounters [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 13 00 00 [18:17:40]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 62 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 62 00 B4 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [18:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_GetFieldsCounters done [18:17:40]requested_item shift.num is exist - process it [18:17:40]requested_item shift.opened is exist - process it [18:17:40]req_shift_opened [18:17:40]FM_GetShiftState [18:17:40]SAM_PROTO_GetShiftState [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 13 01 00 [18:17:40]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 15 [18:17:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_GetShiftState done [18:17:40]FM_GetShiftState done [18:17:40]req_shift_opened done [18:17:40]requested_item shift.open_date is exist - process it [18:17:40]req_shift_open_date [18:17:40]req_shift_open_date done [18:17:40]produce_requested_data done [18:17:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164696,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:17:40]process_action_free close_receipt [18:17:40]json_value_free [18:17:40]json_value_free done [18:17:40]process_json_proto returns [18:17:40]Send response to host [18:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164696,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:17:40]free response buf [18:17:40]execute_script done [18:17:40]execute_script returns [18:17:40]free content buf [18:17:40]Sock 7.Close socket [18:17:40]Sock 7.Thread stoped [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:22]accept exits with 9 [18:20:22]New connection [18:20:22]New thread 3067104612 created [18:20:22]Thread 3067247972 joined [18:20:22]Waiting for new connection... [18:20:22] Sock 9.Parse request [18:20:22]Sock 9.Check first char [18:20:22]Sock 9.First char is OK [18:20:22]request: POST /json_proto HTTP/1.0 [18:20:22]Method: POST [18:20:22]URL: /json_proto [18:20:22]Method is POST - this is cgi request [18:20:22]url: /json_proto [18:20:22]query_string will be loaded in cgi processing [18:20:22]execute_cgi json_proto POST (null) [18:20:22]execute_cgi path=json_proto method=POST [18:20:22]POST find Content-Length [18:20:22]Host: 172.17.56.4:8080 [18:20:22]Content-Length: 678 [18:20:22]Content-Type: application/json [18:20:22] [18:20:22]POST finish read [18:20:22]Found Content-Length = 678 [18:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:22]execute_script... [18:20: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)458791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:22]POST & json_proto [18:20:22]process_json_proto [18:20:22]json parsed OK: [18:20:22]protocol is kg_v1.0 [18:20:22]action value=close_receipt [18:20:22]process_action close_receipt [18:20:22]cmd_close_receipt [18:20:22]MH_GetDate [18:20:22]Write to MH i2c: F0 00 00 B6 02 A7 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: F0 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: F0 09 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: F0 09 00 B6 02 00 66 C5 92 66 C9 DC B2 64 8E [18:20:22]GetLastDocTimeStamp 1720894656 [18:20:22]current date 1720894822 [18:20:22]FM_GetShiftState [18:20:22]SAM_PROTO_GetShiftState [18:20:22]wFMCommunicate request_size=4 [18:20:22]MH_SAM_APDU [18:20:22]CAPDU: 80 13 01 00 [18:20:22]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [18:20:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:20:22]wFMCommunicate OK [18:20:22]SAM_PROTO_GetShiftState done [18:20:22]FM_GetShiftState done [18:20:22]opened in 1720831249 [18:20:22]opened+sec_in_day 1720917649 [18:20:22]quantity*price = 70011 [18:20:22]sum+1 = 70012 [18:20:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 257 13.07.2024 18:20 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164697 ФПД: 2872991223299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182022&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164697&fm=2872991223299&tin=02508201610067®Number=0000000000090829&sum=70000 [18:20:23]StoreToDocumentArchive [18:20:23]shift 446 fd 164697 [18:20:23]save to /storage/0446/doc_00164697 [18:20:23]save last doc name /storage/0446/doc_00164697 to /storage/kkm_last_doc_name [18:20:23]save OK [18:20:23]Clear old archive folders... [18:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:23]tlvbuf is B6EF0EB0 [18:20:23]SAM_PROTO_ClearQueue [18:20:23]wFMCommunicate request_size=4 [18:20:23]MH_SAM_APDU [18:20:23]CAPDU: 80 09 00 00 [18:20:23]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [18:20:23]Write i2c OK [18:20:23]MH_I2C_Read... [18:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:23]Read from MH i2c: E2 [18:20:23]MH_I2C_Read... [18:20:23]Read from MH i2c: E2 03 00 [18:20:23]MH_I2C_Read... [18:20:23]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [18:20:23]RAPDU: 90 00 [18:20:23]wFMCommunicate OK [18:20:23]SAM_PROTO_ClearQueue done [18:20:23]KKMCreateOFDPacket [18:20:23]OFDProtocolAddRootSTLVToBuf [18:20:23]FM_MakeSignedData [18:20:23]FM_MakeSignedData [18:20:23]SAM_PROTO_SignData [18:20:23]wFMCommunicate request_size=4 [18:20:23]MH_SAM_APDU [18:20:23]CAPDU: 80 0D 01 02 [18:20:23]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [18:20:23]Write i2c OK [18:20:23]MH_I2C_Read... [18:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:23]Read from MH i2c: E2 [18:20:23]MH_I2C_Read... [18:20:23]Read from MH i2c: E2 03 00 [18:20:23]MH_I2C_Read... [18:20:23]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [18:20:23]RAPDU: 90 00 [18:20:23]wFMCommunicate OK [18:20:23]wFMCommunicate request_size=255 [18:20:23]MH_SAM_APDU [18:20: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 01 00 00 F4 03 04 00 66 C5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 83 02 00 35 04 06 00 02 [18:20:23]Write to MH i2c: E2 02 01 C6 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 01 00 00 F4 03 04 00 66 C5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 83 02 00 35 04 06 00 02 00 00 C1 [18:20:23]Write i2c OK [18:20:23]MH_I2C_Read... [18:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:24]Read from MH i2c: E2 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 03 00 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [18:20:24]RAPDU: 90 00 [18:20:24]wFMCommunicate OK [18:20:24]wFMCommunicate request_size=10 [18:20:24]MH_SAM_APDU [18:20:24]CAPDU: 80 0D 02 02 05 9C EB 9F 0E 03 [18:20:24]Write to MH i2c: E2 0D 00 C7 02 80 0D 02 02 05 00 9C EB 9F 0E 03 00 00 84 [18:20:24]Write i2c OK [18:20:24]MH_I2C_Read... [18:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:24]Read from MH i2c: E2 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 03 00 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [18:20:24]RAPDU: 90 00 [18:20:24]wFMCommunicate OK [18:20:24]wFMCommunicate request_size=4 [18:20:24]MH_SAM_APDU [18:20:24]CAPDU: 80 0D 03 02 [18:20:24]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [18:20:24]Write i2c OK [18:20:24]MH_I2C_Read... [18:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:24]Read from MH i2c: E2 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 0B 00 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 0B 00 C8 02 00 6C B6 06 32 AF 59 70 20 90 00 38 [18:20:24]RAPDU: 6C B6 06 32 AF 59 70 20 90 00 [18:20:24]wFMCommunicate OK [18:20:24]SAM_PROTO_SignData done [18:20:24]FM_MakeSignedData done [18:20:24]CreateOFDProtocolMessage [18:20:24]wFMCommunicate request_size=4 [18:20:24]MH_SAM_APDU [18:20:24]CAPDU: 80 11 00 00 [18:20:24]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [18:20:24]Write i2c OK [18:20:24]MH_I2C_Read... [18:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:24]Read from MH i2c: E2 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 17 00 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [18:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:20:24]wFMCommunicate OK [18:20:24]CreateOFDProtocolMessage done [18:20:24]OFDSenderStorePacket 164697 [18:20:24]StoreOFDPacket docnum=164697 [18:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF 87 07 01 8A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 01 00 00 F4 03 04 00 66 C5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 83 02 00 35 04 06 00 02 9C EB 9F 0E 03 6C B6 06 32 AF 59 70 20 [18:20:24]CheckFolder [18:20:24]dirname=/storage/ofd_packets [18:20:24]CheckFolder done [18:20:24]ProducePacketName [18:20:24]name=ofd_packets/00164697 [18:20:24]NVStorageSaveData ofd_packets/00164697 [18:20:24]File name is /storage/ofd_packets/00164697 [18:20:24]Write 301 bytes [18:20:24]NVStorageSaveData done [18:20:24]OFDSenderStorePacket done [18:20:24]KKMCreateOFDPacket done [18:20:24]NVStorageSaveData kkm_last_timestamp [18:20:24]File name is /storage/kkm_last_timestamp [18:20:24]Write 4 bytes [18:20:24]NVStorageSaveData done [18:20:24]ExternCall_PrintAddStr [18:20:24]wPrintStart [18:20:24]Write to MH i2c: 01 00 00 CA 02 CC [18:20:24]Write i2c OK [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: 01 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: 01 07 00 [18:20:24]MH_I2C_Read... [18:20:24]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [18:20:24]RasterBufferAndPrint [18:20:24]line Счет N : (1)458791 [18:20:24]line ИНН: 02508201610067 [18:20:24]line Контрольно-Кассовый Чек [18:20:24]line ПРОДАЖА [18:20:24]line ТРК (МРК, ГНК) : 22 [18:20:24]line Товар: 2710124130 [18:20:24]line Аи-92-К-5 [18:20:24]line 10.640 * 65.80 [18:20:24]line = 700.11 [18:20:24]line НДС 12% НСП 1% [18:20:24]line > о реализуемом товаре [18:20:24]line ОКРУГЛЕНИЕ: -0.11 [18:20:24]line ИТОГО: 700.00 [18:20:24]line Внесено: 700.00 [18:20:24]line СДАЧА: 0.00 [18:20:24]line НСП 1% : 6.20 [18:20:24]line НДС 12% : 74.35 [18:20:24]line Наличными: 700.00 [18:20:24]line Безнал.: 0.00 [18:20:24]line Место: АЗС № 72 "Партнер Нефть" [18:20:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:20:24]line СНО: Общий режим [18:20:24]line Чек 257 13.07.2024 18:20 [18:20:24]line Смена: 446 ФФД: 1.0 [18:20:24]line ЗНМ: 0300000160 [18:20:24]line РНМ: 0000000000090829 [18:20:24]line Версия ККМ: 001 [18:20:24]line ФМ: 0000000000874718 [18:20:24]line ФД: 164697 [18:20:24]line ФПД: 2872991223299 [18:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182022&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164697&fm=2872991223299&tin=02508201610067®Number=0000000000090829&sum=70000 [18:20:24]OFD Sender: Processing packet 164697 [packets to send 104, broken 103] [18:20:24]ProducePacketName [18:20:24]name=ofd_packets/00164697 [18:20:24]OFD Sender: To server: pG, [18:20:24]CommunicateWithHost lk.salyk.kg:30040 [18:20:24]ConnectInit lk.salyk.kg [18:20:24]written 0, free lines is 4095 [18:20:24]Connected sock=10 [18:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF 87 07 01 8A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 01 00 00 F4 03 04 00 66 C5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 83 02 00 35 04 06 00 02 9C EB 9F 0E 03 6C B6 06 32 AF 59 70 20 [18:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC BD 47 00 95 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 83 02 00 F4 03 04 00 F7 6B 92 66 B6 04 01 00 00 DE 5F 22 AF F1 FA FD AE [18:20:24]CommunicateWithHost err = 0 [18:20:24]CheckOFDResponse [18:20:24]1017 (14) - 77093643461234 [18:20:24]1041 (16) - 0000000000874718 [18:20:24]1040 (4) - 164697 [18:20:24]1012 (4) - 13.07.2024 11:58 [18:20:24]1206 (1) - 0 [18:20:24]OFD Sender: Remove packet 164697 [18:20:24]ProducePacketName [18:20:24]name=ofd_packets/00164697 [18:20:24]NVStorageDeleteData [18:20:25]Write to MH i2c: 01 00 00 F4 02 F6 [18:20:25]Write i2c OK [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: 01 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: 01 07 00 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 F5 0C FE [18:20:25]RasterBufferAndPrint [18:20:25]line [18:20:25]line [18:20:25]line [18:20:25]line [18:20:25]line [18:20:25]written 0, free lines is 3324 [18:20:25]MH_Cut [18:20:25]Write to MH i2c: D1 01 00 FB 02 01 CF [18:20:25]Write i2c OK [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: D1 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: D1 01 00 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: D1 01 00 FB 02 00 CE [18:20:25]Write to MH i2c: 01 00 00 FC 02 FE [18:20:25]Write i2c OK [18:20:25]MH_I2C_Read... [18:20:25]OFD Sender: No OFD packet to send [18:20:25]*** Cut start [18:20:25]*** Partial cut [18:20:25]*** CUTSNS_PIN = 1 [18:20:25]*** CUTSNS_PIN = 0 [18:20:25]*** Brake cut motor [18:20:26]Read from MH i2c: 01 [18:20:26]MH_I2C_Read... [18:20:26]*** Stop cut motor [18:20:26]*** Cut end [18:20:26]Read from MH i2c: 01 07 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [18:20:26]process_action close_receipt done [18:20:26]requested_data is exist [18:20:26]produce_requested_data [18:20:26]requested_item fm.sn is exist - process it [18:20:26]wFMCommunicate request_size=4 [18:20:26]MH_SAM_APDU [18:20:26]CAPDU: 80 11 00 00 [18:20:26]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:26]Read from MH i2c: E2 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 17 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [18:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:20:26]wFMCommunicate OK [18:20:26]requested_item fd.num is exist - process it [18:20:26]SAM_PROTO_GetFieldsCounters [18:20:26]wFMCommunicate request_size=4 [18:20:26]MH_SAM_APDU [18:20:26]CAPDU: 80 13 00 00 [18:20:26]Write to MH i2c: E2 08 00 FE 02 80 13 00 00 00 00 00 00 7C [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:26]Read from MH i2c: E2 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 62 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 62 00 FE 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:26]wFMCommunicate OK [18:20:26]SAM_PROTO_GetFieldsCounters done [18:20:26]requested_item shift.num is exist - process it [18:20:26]requested_item shift.opened is exist - process it [18:20:26]req_shift_opened [18:20:26]FM_GetShiftState [18:20:26]SAM_PROTO_GetShiftState [18:20:26]wFMCommunicate request_size=4 [18:20:26]MH_SAM_APDU [18:20:26]CAPDU: 80 13 01 00 [18:20:26]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:26]Read from MH i2c: E2 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 0E 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5F [18:20:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:20:26]wFMCommunicate OK [18:20:26]SAM_PROTO_GetShiftState done [18:20:26]FM_GetShiftState done [18:20:26]req_shift_opened done [18:20:26]requested_item shift.open_date is exist - process it [18:20:26]req_shift_open_date [18:20:26]req_shift_open_date done [18:20:26]produce_requested_data done [18:20:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164697,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:20:26]process_action_free close_receipt [18:20:26]json_value_free [18:20:26]json_value_free done [18:20:26]process_json_proto returns [18:20:26]Send response to host [18:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164697,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:20:26]free response buf [18:20:26]execute_script done [18:20:26]execute_script returns [18:20:26]free content buf [18:20:26]Sock 9.Close socket [18:20:26]Sock 9.Thread stoped [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:21]accept exits with 7 [18:28:21]New connection [18:28:21]New thread 3067247972 created [18:28:21]Thread 3067104612 joined [18:28:21]Waiting for new connection... [18:28:21] Sock 7.Parse request [18:28:21]Sock 7.Check first char [18:28:21]Sock 7.First char is OK [18:28:21]request: POST /json_proto HTTP/1.0 [18:28:21]Method: POST [18:28:21]URL: /json_proto [18:28:21]Method is POST - this is cgi request [18:28:21]url: /json_proto [18:28:21]query_string will be loaded in cgi processing [18:28:21]execute_cgi json_proto POST (null) [18:28:21]execute_cgi path=json_proto method=POST [18:28:21]POST find Content-Length [18:28:21]Host: 172.17.56.4:8080 [18:28:21]Content-Length: 790 [18:28:21]Content-Type: application/json [18:28:21] [18:28:21]POST finish read [18:28:21]Found Content-Length = 790 [18:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:21]execute_script... [18:28: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)458792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:21]POST & json_proto [18:28:21]process_json_proto [18:28:21]json parsed OK: [18:28:21]protocol is kg_v1.0 [18:28:21]action value=close_receipt [18:28:21]process_action close_receipt [18:28:21]cmd_close_receipt [18:28:21]MH_GetDate [18:28:21]Write to MH i2c: F0 00 00 00 03 F2 [18:28:21]Write i2c OK [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: F0 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: F0 09 00 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: F0 09 00 00 03 00 45 C7 92 66 C9 DC B2 64 BA [18:28:21]GetLastDocTimeStamp 1720894822 [18:28:21]current date 1720895301 [18:28:21]FM_GetShiftState [18:28:21]SAM_PROTO_GetShiftState [18:28:21]wFMCommunicate request_size=4 [18:28:21]MH_SAM_APDU [18:28:21]CAPDU: 80 13 01 00 [18:28:21]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [18:28:21]Write i2c OK [18:28:21]MH_I2C_Read... [18:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:21]Read from MH i2c: E2 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: E2 0E 00 [18:28:21]MH_I2C_Read... [18:28:21]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 62 [18:28:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:28:21]wFMCommunicate OK [18:28:21]SAM_PROTO_GetShiftState done [18:28:21]FM_GetShiftState done [18:28:21]opened in 1720831249 [18:28:21]opened+sec_in_day 1720917649 [18:28:21]quantity*price = 60002 [18:28:21]sum+1 = 60003 [18:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 258 13.07.2024 18:28 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164698 ФПД: 35242182196146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164698&fm=35242182196146&tin=02508201610067®Number=0000000000090829&sum=60002 [18:28:22]StoreToDocumentArchive [18:28:22]shift 446 fd 164698 [18:28:22]save to /storage/0446/doc_00164698 [18:28:22]save last doc name /storage/0446/doc_00164698 to /storage/kkm_last_doc_name [18:28:22]save OK [18:28:22]Clear old archive folders... [18:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:22]tlvbuf is 01E88B50 [18:28:22]SAM_PROTO_ClearQueue [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 09 00 00 [18:28:22]Write to MH i2c: E2 08 00 0E 03 80 09 00 00 00 00 00 00 83 [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [18:28:22]RAPDU: 90 00 [18:28:22]wFMCommunicate OK [18:28:22]SAM_PROTO_ClearQueue done [18:28:22]KKMCreateOFDPacket [18:28:22]OFDProtocolAddRootSTLVToBuf [18:28:22]FM_MakeSignedData [18:28:22]FM_MakeSignedData [18:28:22]SAM_PROTO_SignData [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 0D 01 02 [18:28:22]Write to MH i2c: E2 08 00 0F 03 80 0D 01 02 00 00 00 00 8B [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [18:28:22]RAPDU: 90 00 [18:28:22]wFMCommunicate OK [18:28:22]wFMCommunicate request_size=255 [18:28:22]MH_SAM_APDU [18:28: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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 45 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 83 02 00 35 04 06 00 20 [18:28:22]Write to MH i2c: E2 02 01 10 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 45 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 83 02 00 35 04 06 00 20 00 00 FB [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [18:28:22]RAPDU: 90 00 [18:28:22]wFMCommunicate OK [18:28:22]wFMCommunicate request_size=10 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 0D 02 02 05 0D 75 C0 3B B2 [18:28:22]Write to MH i2c: E2 0D 00 11 03 80 0D 02 02 05 00 0D 75 C0 3B B2 00 00 C7 [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [18:28:22]RAPDU: 90 00 [18:28:22]wFMCommunicate OK [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 0D 03 02 [18:28:22]Write to MH i2c: E2 08 00 12 03 80 0D 03 02 00 00 00 00 90 [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:22]Read from MH i2c: E2 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 0B 00 [18:28:22]MH_I2C_Read... [18:28:22]Read from MH i2c: E2 0B 00 12 03 00 CC 16 43 28 41 1C 55 04 90 00 94 [18:28:22]RAPDU: CC 16 43 28 41 1C 55 04 90 00 [18:28:22]wFMCommunicate OK [18:28:22]SAM_PROTO_SignData done [18:28:22]FM_MakeSignedData done [18:28:22]CreateOFDProtocolMessage [18:28:22]wFMCommunicate request_size=4 [18:28:22]MH_SAM_APDU [18:28:22]CAPDU: 80 11 00 00 [18:28:22]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [18:28:22]Write i2c OK [18:28:22]MH_I2C_Read... [18:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:23]Read from MH i2c: E2 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: E2 17 00 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [18:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:28:23]wFMCommunicate OK [18:28:23]CreateOFDProtocolMessage done [18:28:23]OFDSenderStorePacket 164698 [18:28:23]StoreOFDPacket docnum=164698 [18:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B CC 07 01 99 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 45 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 83 02 00 35 04 06 00 20 0D 75 C0 3B B2 CC 16 43 28 41 1C 55 04 [18:28:23]CheckFolder [18:28:23]dirname=/storage/ofd_packets [18:28:23]CheckFolder done [18:28:23]ProducePacketName [18:28:23]name=ofd_packets/00164698 [18:28:23]NVStorageSaveData ofd_packets/00164698 [18:28:23]File name is /storage/ofd_packets/00164698 [18:28:23]Write 301 bytes [18:28:23]NVStorageSaveData done [18:28:23]OFDSenderStorePacket done [18:28:23]KKMCreateOFDPacket done [18:28:23]NVStorageSaveData kkm_last_timestamp [18:28:23]File name is /storage/kkm_last_timestamp [18:28:23]Write 4 bytes [18:28:23]NVStorageSaveData done [18:28:23]ExternCall_PrintAddStr [18:28:23]wPrintStart [18:28:23]Write to MH i2c: 01 00 00 14 03 17 [18:28:23]Write i2c OK [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 07 00 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [18:28:23]RasterBufferAndPrint [18:28:23]line Счет N : (1)458792 [18:28:23]line ИНН: 02508201610067 [18:28:23]line Контрольно-Кассовый Чек [18:28:23]line ПРОДАЖА [18:28:23]line ТРК (МРК, ГНК) : 12 [18:28:23]line Товар: 2710124130 [18:28:23]line Аи-92-К-5 [18:28:23]line 9.200 * 65.22 [18:28:23]line = 600.02 [18:28:23]line НДС 12% НСП 1% [18:28:23]line > о реализуемом товаре [18:28:23]line ИТОГО: 600.02 [18:28:23]line НСП 1% : 5.31 [18:28:23]line НДС 12% : 63.72 [18:28:23]line Наличными: 0.00 [18:28:23]line Безнал.: 600.02 [18:28:23]line Место: АЗС № 72 "Партнер Нефть" [18:28:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:28:23]line СНО: Общий режим [18:28:23]line Чек 258 13.07.2024 18:28 [18:28:23]line Смена: 446 ФФД: 1.0 [18:28:23]line ЗНМ: 0300000160 [18:28:23]line РНМ: 0000000000090829 [18:28:23]line Версия ККМ: 001 [18:28:23]line Платежная система: KICB Банк [18:28:23]line ФМ: 0000000000874718 [18:28:23]line ФД: 164698 [18:28:23]line ФПД: 35242182196146 [18:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182821&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164698&fm=35242182196146&tin=02508201610067®Number=0000000000090829&sum=60002 [18:28:23]written 0, free lines is 4095 [18:28:23]OFD Sender: Processing packet 164698 [packets to send 104, broken 103] [18:28:23]ProducePacketName [18:28:23]name=ofd_packets/00164698 [18:28:23]OFD Sender: To server: pG, [18:28:23]CommunicateWithHost lk.salyk.kg:30040 [18:28:23]ConnectInit lk.salyk.kg [18:28:23]Connected sock=10 [18:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B CC 07 01 99 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 45 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 83 02 00 35 04 06 00 20 0D 75 C0 3B B2 CC 16 43 28 41 1C 55 04 [18:28:23]Write to MH i2c: 01 00 00 3D 03 40 [18:28:23]Write i2c OK [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 07 00 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 1C 0D 70 [18:28:23]RasterBufferAndPrint [18:28:23]line [18:28:23]line [18:28:23]line [18:28:23]line [18:28:23]line [18:28:23]written 0, free lines is 3362 [18:28:23]MH_Cut [18:28:23]Write to MH i2c: D1 01 00 44 03 01 19 [18:28:23]Write i2c OK [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: D1 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: D1 01 00 [18:28:23]MH_I2C_Read... [18:28:23]Read from MH i2c: D1 01 00 44 03 00 18 [18:28:23]Write to MH i2c: 01 00 00 45 03 48 [18:28:23]Write i2c OK [18:28:23]MH_I2C_Read... [18:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BF 46 47 00 59 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 34 37 31 38 10 04 04 00 5A 83 02 00 F4 03 04 00 D6 6D 92 66 B6 04 01 00 00 CE C0 C4 62 E1 BA E0 4A [18:28:23]CommunicateWithHost err = 0 [18:28:23]CheckOFDResponse [18:28:23]1017 (14) - 77093643461234 [18:28:23]1041 (16) - 0000000000874718 [18:28:23]1040 (4) - 164698 [18:28:23]1012 (4) - 13.07.2024 12:06 [18:28:23]1206 (1) - 0 [18:28:23]OFD Sender: Remove packet 164698 [18:28:23]ProducePacketName [18:28:23]name=ofd_packets/00164698 [18:28:23]NVStorageDeleteData [18:28:24]*** Cut start [18:28:24]*** Partial cut [18:28:24]*** CUTSNS_PIN = 1 [18:28:24]OFD Sender: No OFD packet to send [18:28:24]*** CUTSNS_PIN = 0 [18:28:24]*** Brake cut motor [18:28:24]Read from MH i2c: 01 [18:28:24]MH_I2C_Read... [18:28:24]*** Stop cut motor [18:28:24]*** Cut end [18:28:24]Read from MH i2c: 01 07 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [18:28:24]process_action close_receipt done [18:28:24]requested_data is exist [18:28:24]produce_requested_data [18:28:24]requested_item fm.sn is exist - process it [18:28:24]wFMCommunicate request_size=4 [18:28:24]MH_SAM_APDU [18:28:24]CAPDU: 80 11 00 00 [18:28:24]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [18:28:24]Write i2c OK [18:28:24]MH_I2C_Read... [18:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:24]Read from MH i2c: E2 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 17 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [18:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:28:24]wFMCommunicate OK [18:28:24]requested_item fd.num is exist - process it [18:28:24]SAM_PROTO_GetFieldsCounters [18:28:24]wFMCommunicate request_size=4 [18:28:24]MH_SAM_APDU [18:28:24]CAPDU: 80 13 00 00 [18:28:24]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [18:28:24]Write i2c OK [18:28:24]MH_I2C_Read... [18:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:24]Read from MH i2c: E2 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 62 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 62 00 47 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:28: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:24]wFMCommunicate OK [18:28:24]SAM_PROTO_GetFieldsCounters done [18:28:24]requested_item shift.num is exist - process it [18:28:24]requested_item shift.opened is exist - process it [18:28:24]req_shift_opened [18:28:24]FM_GetShiftState [18:28:24]SAM_PROTO_GetShiftState [18:28:24]wFMCommunicate request_size=4 [18:28:24]MH_SAM_APDU [18:28:24]CAPDU: 80 13 01 00 [18:28:24]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [18:28:24]Write i2c OK [18:28:24]MH_I2C_Read... [18:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:24]Read from MH i2c: E2 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 0E 00 [18:28:24]MH_I2C_Read... [18:28:24]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A9 [18:28:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:28:24]wFMCommunicate OK [18:28:24]SAM_PROTO_GetShiftState done [18:28:24]FM_GetShiftState done [18:28:24]req_shift_opened done [18:28:24]requested_item shift.open_date is exist - process it [18:28:24]req_shift_open_date [18:28:24]req_shift_open_date done [18:28:24]produce_requested_data done [18:28:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164698,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:28:24]process_action_free close_receipt [18:28:24]json_value_free [18:28:24]json_value_free done [18:28:24]process_json_proto returns [18:28:24]Send response to host [18:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164698,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:28:24]free response buf [18:28:24]execute_script done [18:28:24]execute_script returns [18:28:24]free content buf [18:28:24]Sock 7.Close socket [18:28:24]Sock 7.Thread stoped [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:06]accept exits with 9 [18:29:06]New connection [18:29:06]New thread 3067104612 created [18:29:06]Thread 3067247972 joined [18:29:06]Waiting for new connection... [18:29:06] Sock 9.Parse request [18:29:06]Sock 9.Check first char [18:29:06]Sock 9.First char is OK [18:29:06]request: POST /json_proto HTTP/1.0 [18:29:06]Method: POST [18:29:06]URL: /json_proto [18:29:06]Method is POST - this is cgi request [18:29:06]url: /json_proto [18:29:06]query_string will be loaded in cgi processing [18:29:06]execute_cgi json_proto POST (null) [18:29:06]execute_cgi path=json_proto method=POST [18:29:06]POST find Content-Length [18:29:06]Host: 172.17.56.4:8080 [18:29:06]Content-Length: 677 [18:29:06]Content-Type: application/json [18:29:06] [18:29:06]POST finish read [18:29:06]Found Content-Length = 677 [18:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:06]execute_script... [18:29: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)458793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.430, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:06]POST & json_proto [18:29:06]process_json_proto [18:29:06]json parsed OK: [18:29:06]protocol is kg_v1.0 [18:29:06]action value=close_receipt [18:29:06]process_action close_receipt [18:29:06]cmd_close_receipt [18:29:06]MH_GetDate [18:29:06]Write to MH i2c: F0 00 00 49 03 3B [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: F0 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: F0 09 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: F0 09 00 49 03 00 73 C7 92 66 C9 DC B2 64 31 [18:29:06]GetLastDocTimeStamp 1720895301 [18:29:06]current date 1720895347 [18:29:06]FM_GetShiftState [18:29:06]SAM_PROTO_GetShiftState [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 13 01 00 [18:29:06]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0E 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AB [18:29:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:29:06]wFMCommunicate OK [18:29:06]SAM_PROTO_GetShiftState done [18:29:06]FM_GetShiftState done [18:29:06]opened in 1720831249 [18:29:06]opened+sec_in_day 1720917649 [18:29:06]quantity*price = 62049 [18:29:06]sum+1 = 62050 [18:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 259 13.07.2024 18:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164699 ФПД: 4970717026807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164699&fm=4970717026807&tin=02508201610067®Number=0000000000090829&sum=62000 [18:29:07]StoreToDocumentArchive [18:29:07]shift 446 fd 164699 [18:29:07]save to /storage/0446/doc_00164699 [18:29:07]save last doc name /storage/0446/doc_00164699 to /storage/kkm_last_doc_name [18:29:07]save OK [18:29:07]Clear old archive folders... [18:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:07]tlvbuf is 01E8F1E0 [18:29:07]SAM_PROTO_ClearQueue [18:29:07]wFMCommunicate request_size=4 [18:29:07]MH_SAM_APDU [18:29:07]CAPDU: 80 09 00 00 [18:29:07]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:07]Read from MH i2c: E2 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 03 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [18:29:07]RAPDU: 90 00 [18:29:07]wFMCommunicate OK [18:29:07]SAM_PROTO_ClearQueue done [18:29:07]KKMCreateOFDPacket [18:29:07]OFDProtocolAddRootSTLVToBuf [18:29:07]FM_MakeSignedData [18:29:07]FM_MakeSignedData [18:29:07]SAM_PROTO_SignData [18:29:07]wFMCommunicate request_size=4 [18:29:07]MH_SAM_APDU [18:29:07]CAPDU: 80 0D 01 02 [18:29:07]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:07]Read from MH i2c: E2 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 03 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [18:29:07]RAPDU: 90 00 [18:29:07]wFMCommunicate OK [18:29:07]wFMCommunicate request_size=255 [18:29:07]MH_SAM_APDU [18:29: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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 73 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 83 02 00 35 04 06 00 04 [18:29:07]Write to MH i2c: E2 02 01 59 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 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 73 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 83 02 00 35 04 06 00 04 00 00 18 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]wFMCommunicate request_size=10 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 02 02 05 85 55 D2 99 F7 [18:29:08]Write to MH i2c: E2 0D 00 5A 03 80 0D 02 02 05 00 85 55 D2 99 F7 00 00 1D [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [18:29:08]RAPDU: 90 00 [18:29:08]wFMCommunicate OK [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 0D 03 02 [18:29:08]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 0B 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 0B 00 5B 03 00 12 43 FD 08 86 26 3C C9 90 00 E5 [18:29:08]RAPDU: 12 43 FD 08 86 26 3C C9 90 00 [18:29:08]wFMCommunicate OK [18:29:08]SAM_PROTO_SignData done [18:29:08]FM_MakeSignedData done [18:29:08]CreateOFDProtocolMessage [18:29:08]wFMCommunicate request_size=4 [18:29:08]MH_SAM_APDU [18:29:08]CAPDU: 80 11 00 00 [18:29:08]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:08]Read from MH i2c: E2 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 17 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [18:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:29:08]wFMCommunicate OK [18:29:08]CreateOFDProtocolMessage done [18:29:08]OFDSenderStorePacket 164699 [18:29:08]StoreOFDPacket docnum=164699 [18:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 97 D9 07 01 D5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 73 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 83 02 00 35 04 06 00 04 85 55 D2 99 F7 12 43 FD 08 86 26 3C C9 [18:29:08]CheckFolder [18:29:08]dirname=/storage/ofd_packets [18:29:08]CheckFolder done [18:29:08]ProducePacketName [18:29:08]name=ofd_packets/00164699 [18:29:08]NVStorageSaveData ofd_packets/00164699 [18:29:08]File name is /storage/ofd_packets/00164699 [18:29:08]Write 301 bytes [18:29:08]NVStorageSaveData done [18:29:08]OFDSenderStorePacket done [18:29:08]KKMCreateOFDPacket done [18:29:08]NVStorageSaveData kkm_last_timestamp [18:29:08]File name is /storage/kkm_last_timestamp [18:29:08]Write 4 bytes [18:29:08]NVStorageSaveData done [18:29:08]OFD Sender: Processing packet 164699 [packets to send 104, broken 103] [18:29:08]ProducePacketName [18:29:08]name=ofd_packets/00164699 [18:29:08]OFD Sender: To server: pG, [18:29:08]CommunicateWithHost lk.salyk.kg:30040 [18:29:08]ConnectInit lk.salyk.kg [18:29:08]ExternCall_PrintAddStr [18:29:08]wPrintStart [18:29:08]Write to MH i2c: 01 00 00 5D 03 60 [18:29:08]Write i2c OK [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: 01 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: 01 07 00 [18:29:08]MH_I2C_Read... [18:29:08]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [18:29:08]RasterBufferAndPrint [18:29:08]line Счет N : (1)458793 [18:29:08]line ИНН: 02508201610067 [18:29:08]line Контрольно-Кассовый Чек [18:29:08]line ПРОДАЖА [18:29:08]line ТРК (МРК, ГНК) : 12 [18:29:08]line Товар: 2710124130 [18:29:08]line Аи-92-К-5 [18:29:08]line 9.430 * 65.80 [18:29:08]line = 620.49 [18:29:08]line НДС 12% НСП 1% [18:29:08]line > о реализуемом товаре [18:29:08]line ОКРУГЛЕНИЕ: -0.49 [18:29:08]line ИТОГО: 620.00 [18:29:08]line Внесено: 620.00 [18:29:08]line СДАЧА: 0.00 [18:29:08]line НСП 1% : 5.49 [18:29:08]line НДС 12% : 65.89 [18:29:08]line Наличными: 620.00 [18:29:08]line Безнал.: 0.00 [18:29:08]line Место: АЗС № 72 "Партнер Нефть" [18:29:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:29:08]line СНО: Общий режим [18:29:08]line Чек 259 13.07.2024 18:29 [18:29:08]line Смена: 446 ФФД: 1.0 [18:29:08]line ЗНМ: 0300000160 [18:29:08]line РНМ: 0000000000090829 [18:29:08]line Версия ККМ: 001 [18:29:08]line ФМ: 0000000000874718 [18:29:08]line ФД: 164699 [18:29:08]line ФПД: 4970717026807 [18:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164699&fm=4970717026807&tin=02508201610067®Number=0000000000090829&sum=62000 [18:29:08]Connected sock=10 [18:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 97 D9 07 01 D5 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 24 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 73 C7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 83 02 00 35 04 06 00 04 85 55 D2 99 F7 12 43 FD 08 86 26 3C C9 [18:29:08]written 0, free lines is 4095 [18:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 D3 47 00 90 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 83 02 00 F4 03 04 00 03 6E 92 66 B6 04 01 00 00 F6 84 34 A7 F1 51 F9 6C [18:29:08]CommunicateWithHost err = 0 [18:29:08]CheckOFDResponse [18:29:08]1017 (14) - 77093643461234 [18:29:08]1041 (16) - 0000000000874718 [18:29:08]1040 (4) - 164699 [18:29:08]1012 (4) - 13.07.2024 12:07 [18:29:08]1206 (1) - 0 [18:29:08]OFD Sender: Remove packet 164699 [18:29:08]ProducePacketName [18:29:08]name=ofd_packets/00164699 [18:29:08]NVStorageDeleteData [18:29:09]Write to MH i2c: 01 00 00 87 03 8A [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 03 0D A1 [18:29:09]RasterBufferAndPrint [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]line [18:29:09]written 0, free lines is 3337 [18:29:09]MH_Cut [18:29:09]Write to MH i2c: D1 01 00 8E 03 01 63 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: D1 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: D1 01 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: D1 01 00 8E 03 00 62 [18:29:09]Write to MH i2c: 01 00 00 8F 03 92 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]OFD Sender: No OFD packet to send [18:29:09]*** Cut start [18:29:09]*** Partial cut [18:29:09]*** CUTSNS_PIN = 1 [18:29:09]*** CUTSNS_PIN = 0 [18:29:10]*** Brake cut motor [18:29:10]Read from MH i2c: 01 [18:29:10]MH_I2C_Read... [18:29:10]*** Stop cut motor [18:29:10]*** Cut end [18:29:10]Read from MH i2c: 01 07 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [18:29:10]process_action close_receipt done [18:29:10]requested_data is exist [18:29:10]produce_requested_data [18:29:10]requested_item fm.sn is exist - process it [18:29:10]wFMCommunicate request_size=4 [18:29:10]MH_SAM_APDU [18:29:10]CAPDU: 80 11 00 00 [18:29:10]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 17 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [18:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:29:10]wFMCommunicate OK [18:29:10]requested_item fd.num is exist - process it [18:29:10]SAM_PROTO_GetFieldsCounters [18:29:10]wFMCommunicate request_size=4 [18:29:10]MH_SAM_APDU [18:29:10]CAPDU: 80 13 00 00 [18:29:10]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 62 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 62 00 91 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:10]wFMCommunicate OK [18:29:10]SAM_PROTO_GetFieldsCounters done [18:29:10]requested_item shift.num is exist - process it [18:29:10]requested_item shift.opened is exist - process it [18:29:10]req_shift_opened [18:29:10]FM_GetShiftState [18:29:10]SAM_PROTO_GetShiftState [18:29:10]wFMCommunicate request_size=4 [18:29:10]MH_SAM_APDU [18:29:10]CAPDU: 80 13 01 00 [18:29:10]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [18:29:10]Write i2c OK [18:29:10]MH_I2C_Read... [18:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:10]Read from MH i2c: E2 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 [18:29:10]MH_I2C_Read... [18:29:10]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F3 [18:29:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:29:10]wFMCommunicate OK [18:29:10]SAM_PROTO_GetShiftState done [18:29:10]FM_GetShiftState done [18:29:10]req_shift_opened done [18:29:10]requested_item shift.open_date is exist - process it [18:29:10]req_shift_open_date [18:29:10]req_shift_open_date done [18:29:10]produce_requested_data done [18:29:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164699,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:29:10]process_action_free close_receipt [18:29:10]json_value_free [18:29:10]json_value_free done [18:29:10]process_json_proto returns [18:29:10]Send response to host [18:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164699,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:29:10]free response buf [18:29:10]execute_script done [18:29:10]execute_script returns [18:29:10]free content buf [18:29:10]Sock 9.Close socket [18:29:10]Sock 9.Thread stoped [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:52]accept exits with 7 [18:42:52]New connection [18:42:52]New thread 3067247972 created [18:42:52]Thread 3067104612 joined [18:42:52]Waiting for new connection... [18:42:52] Sock 7.Parse request [18:42:52]Sock 7.Check first char [18:42:52]Sock 7.First char is OK [18:42:52]request: POST /json_proto HTTP/1.0 [18:42:52]Method: POST [18:42:52]URL: /json_proto [18:42:52]Method is POST - this is cgi request [18:42:52]url: /json_proto [18:42:52]query_string will be loaded in cgi processing [18:42:52]execute_cgi json_proto POST (null) [18:42:52]execute_cgi path=json_proto method=POST [18:42:52]POST find Content-Length [18:42:52]Host: 172.17.56.4:8080 [18:42:52]Content-Length: 679 [18:42:52]Content-Type: application/json [18:42:52] [18:42:52]POST finish read [18:42:52]Found Content-Length = 679 [18:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:52]execute_script... [18:42: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)458794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:52]POST & json_proto [18:42:52]process_json_proto [18:42:52]json parsed OK: [18:42:52]protocol is kg_v1.0 [18:42:52]action value=close_receipt [18:42:52]process_action close_receipt [18:42:52]cmd_close_receipt [18:42:52]MH_GetDate [18:42:52]Write to MH i2c: F0 00 00 93 03 85 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: F0 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: F0 09 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: F0 09 00 93 03 00 AC CA 92 66 C9 DC B2 64 B7 [18:42:52]GetLastDocTimeStamp 1720895347 [18:42:52]current date 1720896172 [18:42:52]FM_GetShiftState [18:42:52]SAM_PROTO_GetShiftState [18:42:52]wFMCommunicate request_size=4 [18:42:52]MH_SAM_APDU [18:42:52]CAPDU: 80 13 01 00 [18:42:52]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:52]Read from MH i2c: E2 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: E2 0E 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F5 [18:42:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:42:52]wFMCommunicate OK [18:42:52]SAM_PROTO_GetShiftState done [18:42:52]FM_GetShiftState done [18:42:52]opened in 1720831249 [18:42:52]opened+sec_in_day 1720917649 [18:42:52]quantity*price = 160049 [18:42:52]sum+1 = 160050 [18:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 260 13.07.2024 18:42 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164700 ФПД: 197011463988328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184252&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164700&fm=197011463988328&tin=02508201610067®Number=0000000000090829&sum=160000 [18:42:53]StoreToDocumentArchive [18:42:53]shift 446 fd 164700 [18:42:53]save to /storage/0446/doc_00164700 [18:42:53]save last doc name /storage/0446/doc_00164700 to /storage/kkm_last_doc_name [18:42:53]save OK [18:42:53]Clear old archive folders... [18:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:42:53]tlvbuf is 01E762C0 [18:42:53]SAM_PROTO_ClearQueue [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 09 00 00 [18:42:53]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [18:42:53]RAPDU: 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_ClearQueue done [18:42:53]KKMCreateOFDPacket [18:42:53]OFDProtocolAddRootSTLVToBuf [18:42:53]FM_MakeSignedData [18:42:53]FM_MakeSignedData [18:42:53]SAM_PROTO_SignData [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 0D 01 02 [18:42:53]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [18:42:53]RAPDU: 90 00 [18:42:53]wFMCommunicate OK [18:42:53]wFMCommunicate request_size=255 [18:42:53]MH_SAM_APDU [18:42: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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AC CA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 83 02 00 35 04 06 00 B3 2E 4E 53 [18:42:53]Write to MH i2c: E2 02 01 A3 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 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AC CA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 83 02 00 35 04 06 00 B3 2E 4E 53 00 00 4F [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [18:42:53]RAPDU: 90 00 [18:42:53]wFMCommunicate OK [18:42:53]wFMCommunicate request_size=7 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 0D 02 02 02 E4 68 [18:42:53]Write to MH i2c: E2 0A 00 A4 03 80 0D 02 02 02 00 E4 68 00 00 71 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [18:42:53]RAPDU: 90 00 [18:42:53]wFMCommunicate OK [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 0D 03 02 [18:42:53]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0B 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 0B 00 A5 03 00 18 72 CF 4C 54 AB D8 A0 90 00 40 [18:42:53]RAPDU: 18 72 CF 4C 54 AB D8 A0 90 00 [18:42:53]wFMCommunicate OK [18:42:53]SAM_PROTO_SignData done [18:42:53]FM_MakeSignedData done [18:42:53]CreateOFDProtocolMessage [18:42:53]wFMCommunicate request_size=4 [18:42:53]MH_SAM_APDU [18:42:53]CAPDU: 80 11 00 00 [18:42:53]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:53]Read from MH i2c: E2 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [18:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:53]wFMCommunicate OK [18:42:53]CreateOFDProtocolMessage done [18:42:53]OFDSenderStorePacket 164700 [18:42:53]StoreOFDPacket docnum=164700 [18:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DD 5A 04 01 86 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AC CA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 83 02 00 35 04 06 00 B3 2E 4E 53 E4 68 18 72 CF 4C 54 AB D8 A0 [18:42:53]CheckFolder [18:42:53]dirname=/storage/ofd_packets [18:42:53]CheckFolder done [18:42:53]ProducePacketName [18:42:53]name=ofd_packets/00164700 [18:42:53]NVStorageSaveData ofd_packets/00164700 [18:42:53]File name is /storage/ofd_packets/00164700 [18:42:53]Write 298 bytes [18:42:53]NVStorageSaveData done [18:42:53]OFDSenderStorePacket done [18:42:53]KKMCreateOFDPacket done [18:42:53]NVStorageSaveData kkm_last_timestamp [18:42:53]File name is /storage/kkm_last_timestamp [18:42:53]Write 4 bytes [18:42:53]NVStorageSaveData done [18:42:53]ExternCall_PrintAddStr [18:42:53]wPrintStart [18:42:53]Write to MH i2c: 01 00 00 A7 03 AA [18:42:53]Write i2c OK [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: 01 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: 01 07 00 [18:42:53]MH_I2C_Read... [18:42:53]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [18:42:53]RasterBufferAndPrint [18:42:53]line Счет N : (1)458794 [18:42:53]line ИНН: 02508201610067 [18:42:53]line Контрольно-Кассовый Чек [18:42:53]line ПРОДАЖА [18:42:53]line ТРК (МРК, ГНК) : 21 [18:42:53]line Товар: 2710194210 [18:42:53]line ДТ-К-5 [18:42:53]line 22.260 * 71.90 [18:42:53]line = 1600.49 [18:42:53]line НДС 12% НСП 1% [18:42:53]line > о реализуемом товаре [18:42:53]line ОКРУГЛЕНИЕ: -0.49 [18:42:53]line ИТОГО: 1600.00 [18:42:53]line Внесено: 1600.00 [18:42:53]line СДАЧА: 0.00 [18:42:53]line НСП 1% : 14.16 [18:42:53]line НДС 12% : 169.96 [18:42:53]line Наличными: 1600.00 [18:42:53]line Безнал.: 0.00 [18:42:53]line Место: АЗС № 72 "Партнер Нефть" [18:42:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:42:53]line СНО: Общий режим [18:42:53]line Чек 260 13.07.2024 18:42 [18:42:53]line Смена: 446 ФФД: 1.0 [18:42:53]line ЗНМ: 0300000160 [18:42:53]line РНМ: 0000000000090829 [18:42:53]line Версия ККМ: 001 [18:42:53]line ФМ: 0000000000874718 [18:42:53]line ФД: 164700 [18:42:53]line ФПД: 197011463988328 [18:42:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184252&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164700&fm=197011463988328&tin=02508201610067®Number=0000000000090829&sum=160000 [18:42:54]OFD Sender: Processing packet 164700 [packets to send 104, broken 103] [18:42:54]ProducePacketName [18:42:54]name=ofd_packets/00164700 [18:42:54]OFD Sender: To server: pG, [18:42:54]CommunicateWithHost lk.salyk.kg:30040 [18:42:54]ConnectInit lk.salyk.kg [18:42:54]written 0, free lines is 4095 [18:42:54]Connected sock=10 [18:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DD 5A 04 01 86 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AC CA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 83 02 00 35 04 06 00 B3 2E 4E 53 E4 68 18 72 CF 4C 54 AB D8 A0 [18:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB CE 47 00 F0 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 83 02 00 F4 03 04 00 3C 71 92 66 B6 04 01 00 00 5F 16 CC 0A CF 20 4C D5 [18:42:54]CommunicateWithHost err = 0 [18:42:54]CheckOFDResponse [18:42:54]1017 (14) - 77093643461234 [18:42:54]1041 (16) - 0000000000874718 [18:42:54]1040 (4) - 164700 [18:42:54]1012 (4) - 13.07.2024 12:21 [18:42:54]1206 (1) - 0 [18:42:54]OFD Sender: Remove packet 164700 [18:42:54]ProducePacketName [18:42:54]name=ofd_packets/00164700 [18:42:54]NVStorageDeleteData [18:42:54]Write to MH i2c: 01 00 00 D1 03 D4 [18:42:54]Write i2c OK [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: 01 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: 01 07 00 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 02 0D EA [18:42:54]RasterBufferAndPrint [18:42:54]line [18:42:54]line [18:42:54]line [18:42:54]line [18:42:54]line [18:42:54]written 0, free lines is 3336 [18:42:54]MH_Cut [18:42:54]Write to MH i2c: D1 01 00 D8 03 01 AD [18:42:54]Write i2c OK [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: D1 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: D1 01 00 [18:42:54]MH_I2C_Read... [18:42:54]Read from MH i2c: D1 01 00 D8 03 00 AC [18:42:54]Write to MH i2c: 01 00 00 D9 03 DC [18:42:54]Write i2c OK [18:42:54]MH_I2C_Read... [18:42:54]OFD Sender: No OFD packet to send [18:42:55]*** Cut start [18:42:55]*** Partial cut [18:42:55]*** CUTSNS_PIN = 1 [18:42:55]*** CUTSNS_PIN = 0 [18:42:55]*** Brake cut motor [18:42:55]Read from MH i2c: 01 [18:42:55]MH_I2C_Read... [18:42:55]*** Stop cut motor [18:42:55]*** Cut end [18:42:55]Read from MH i2c: 01 07 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [18:42:55]process_action close_receipt done [18:42:55]requested_data is exist [18:42:55]produce_requested_data [18:42:55]requested_item fm.sn is exist - process it [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 11 00 00 [18:42:55]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:55]Read from MH i2c: E2 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 17 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [18:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:55]wFMCommunicate OK [18:42:55]requested_item fd.num is exist - process it [18:42:55]SAM_PROTO_GetFieldsCounters [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 13 00 00 [18:42:55]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 62 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 62 00 DB 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [18:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:56]wFMCommunicate OK [18:42:56]SAM_PROTO_GetFieldsCounters done [18:42:56]requested_item shift.num is exist - process it [18:42:56]requested_item shift.opened is exist - process it [18:42:56]req_shift_opened [18:42:56]FM_GetShiftState [18:42:56]SAM_PROTO_GetShiftState [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 13 01 00 [18:42:56]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 0E 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3D [18:42:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:42:56]wFMCommunicate OK [18:42:56]SAM_PROTO_GetShiftState done [18:42:56]FM_GetShiftState done [18:42:56]req_shift_opened done [18:42:56]requested_item shift.open_date is exist - process it [18:42:56]req_shift_open_date [18:42:56]req_shift_open_date done [18:42:56]produce_requested_data done [18:42:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164700,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:42:56]process_action_free close_receipt [18:42:56]json_value_free [18:42:56]json_value_free done [18:42:56]process_json_proto returns [18:42:56]Send response to host [18:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164700,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:42:56]free response buf [18:42:56]execute_script done [18:42:56]execute_script returns [18:42:56]free content buf [18:42:56]Sock 7.Close socket [18:42:56]Sock 7.Thread stoped [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:37]accept exits with 9 [18:48:37]New connection [18:48:37]New thread 3067104612 created [18:48:37]Thread 3067247972 joined [18:48:37]Waiting for new connection... [18:48:37] Sock 9.Parse request [18:48:37]Sock 9.Check first char [18:48:37]Sock 9.First char is OK [18:48:37]request: POST /json_proto HTTP/1.0 [18:48:37]Method: POST [18:48:37]URL: /json_proto [18:48:37]Method is POST - this is cgi request [18:48:37]url: /json_proto [18:48:37]query_string will be loaded in cgi processing [18:48:37]execute_cgi json_proto POST (null) [18:48:37]execute_cgi path=json_proto method=POST [18:48:37]POST find Content-Length [18:48:37]Host: 172.17.56.4:8080 [18:48:37]Content-Length: 677 [18:48:37]Content-Type: application/json [18:48:37] [18:48:37]POST finish read [18:48:37]Found Content-Length = 677 [18:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.780, "sum" : 117.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 117.00, "total" : 117.00, "payments": [ { "type": 0, "sum" : 117.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]execute_script... [18:48: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)458795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.780, "sum" : 117.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 117.00, "total" : 117.00, "payments": [ { "type": 0, "sum" : 117.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]POST & json_proto [18:48:37]process_json_proto [18:48:37]json parsed OK: [18:48:37]protocol is kg_v1.0 [18:48:37]action value=close_receipt [18:48:37]process_action close_receipt [18:48:37]cmd_close_receipt [18:48:37]MH_GetDate [18:48:37]Write to MH i2c: F0 00 00 DD 03 CF [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 DD 03 00 05 CC 92 66 C9 DC B2 64 5C [18:48:37]GetLastDocTimeStamp 1720896172 [18:48:37]current date 1720896517 [18:48:37]FM_GetShiftState [18:48:37]SAM_PROTO_GetShiftState [18:48:37]wFMCommunicate request_size=4 [18:48:37]MH_SAM_APDU [18:48:37]CAPDU: 80 13 01 00 [18:48:37]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:37]Read from MH i2c: E2 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3F [18:48:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:48:37]wFMCommunicate OK [18:48:37]SAM_PROTO_GetShiftState done [18:48:37]FM_GetShiftState done [18:48:37]opened in 1720831249 [18:48:37]opened+sec_in_day 1720917649 [18:48:37]quantity*price = 11712 [18:48:37]sum+1 = 11713 [18:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 117.00 Внесено: 117.00 СДАЧА: 0.00 НСП 1% : 1.04 НДС 12% : 12.44 Наличными: 117.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 261 13.07.2024 18:48 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164701 ФПД: 241341659497107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164701&fm=241341659497107&tin=02508201610067®Number=0000000000090829&sum=11700 [18:48:38]StoreToDocumentArchive [18:48:38]shift 446 fd 164701 [18:48:38]save to /storage/0446/doc_00164701 [18:48:38]save last doc name /storage/0446/doc_00164701 to /storage/kkm_last_doc_name [18:48:38]save OK [18:48:38]Clear old archive folders... [18:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:38]tlvbuf is 01E77BD0 [18:48:38]SAM_PROTO_ClearQueue [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 09 00 00 [18:48:38]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]SAM_PROTO_ClearQueue done [18:48:38]KKMCreateOFDPacket [18:48:38]OFDProtocolAddRootSTLVToBuf [18:48:38]FM_MakeSignedData [18:48:38]FM_MakeSignedData [18:48:38]SAM_PROTO_SignData [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 01 02 [18:48:38]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]wFMCommunicate request_size=255 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 06 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C0 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 04 00 00 00 00 07 04 06 00 B4 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 06 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 83 02 00 35 04 06 00 DB [18:48:38]Write to MH i2c: E2 02 01 ED 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 F4 06 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C0 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 04 00 00 00 00 07 04 06 00 B4 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 06 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 83 02 00 35 04 06 00 DB 00 00 82 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [18:48:39]RAPDU: 90 00 [18:48:39]wFMCommunicate OK [18:48:39]wFMCommunicate request_size=10 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 0D 02 02 05 7F BB E2 42 93 [18:48:39]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 7F BB E2 42 93 00 00 66 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [18:48:39]RAPDU: 90 00 [18:48:39]wFMCommunicate OK [18:48:39]wFMCommunicate request_size=4 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 0D 03 02 [18:48:39]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0B 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 0B 00 EF 03 00 83 26 3A CC CF 4F FF E8 90 00 22 [18:48:39]RAPDU: 83 26 3A CC CF 4F FF E8 90 00 [18:48:39]wFMCommunicate OK [18:48:39]SAM_PROTO_SignData done [18:48:39]FM_MakeSignedData done [18:48:39]CreateOFDProtocolMessage [18:48:39]wFMCommunicate request_size=4 [18:48:39]MH_SAM_APDU [18:48:39]CAPDU: 80 11 00 00 [18:48:39]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:39]Read from MH i2c: E2 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 17 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [18:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:39]wFMCommunicate OK [18:48:39]CreateOFDProtocolMessage done [18:48:39]OFDSenderStorePacket 164701 [18:48:39]StoreOFDPacket docnum=164701 [18:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 DC 07 01 B1 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 06 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C0 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 04 00 00 00 00 07 04 06 00 B4 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 06 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 83 02 00 35 04 06 00 DB 7F BB E2 42 93 83 26 3A CC CF 4F FF E8 [18:48:39]CheckFolder [18:48:39]dirname=/storage/ofd_packets [18:48:39]CheckFolder done [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00164701 [18:48:39]NVStorageSaveData ofd_packets/00164701 [18:48:39]File name is /storage/ofd_packets/00164701 [18:48:39]Write 301 bytes [18:48:39]NVStorageSaveData done [18:48:39]OFDSenderStorePacket done [18:48:39]KKMCreateOFDPacket done [18:48:39]NVStorageSaveData kkm_last_timestamp [18:48:39]File name is /storage/kkm_last_timestamp [18:48:39]Write 4 bytes [18:48:39]NVStorageSaveData done [18:48:39]ExternCall_PrintAddStr [18:48:39]wPrintStart [18:48:39]Write to MH i2c: 01 00 00 F1 03 F4 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [18:48:39]RasterBufferAndPrint [18:48:39]line Счет N : (1)458795 [18:48:39]line ИНН: 02508201610067 [18:48:39]line Контрольно-Кассовый Чек [18:48:39]line ПРОДАЖА [18:48:39]line ТРК (МРК, ГНК) : 22 [18:48:39]line Товар: 2710124130 [18:48:39]line Аи-92-К-5 [18:48:39]line 1.780 * 65.80 [18:48:39]line = 117.12 [18:48:39]line НДС 12% НСП 1% [18:48:39]line > о реализуемом товаре [18:48:39]line ОКРУГЛЕНИЕ: -0.12 [18:48:39]line ИТОГО: 117.00 [18:48:39]line Внесено: 117.00 [18:48:39]line СДАЧА: 0.00 [18:48:39]line НСП 1% : 1.04 [18:48:39]line НДС 12% : 12.44 [18:48:39]line Наличными: 117.00 [18:48:39]line Безнал.: 0.00 [18:48:39]line Место: АЗС № 72 "Партнер Нефть" [18:48:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:48:39]line СНО: Общий режим [18:48:39]line Чек 261 13.07.2024 18:48 [18:48:39]line Смена: 446 ФФД: 1.0 [18:48:39]line ЗНМ: 0300000160 [18:48:39]line РНМ: 0000000000090829 [18:48:39]line Версия ККМ: 001 [18:48:39]line ФМ: 0000000000874718 [18:48:39]line ФД: 164701 [18:48:39]line ФПД: 241341659497107 [18:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164701&fm=241341659497107&tin=02508201610067®Number=0000000000090829&sum=11700 [18:48:39]OFD Sender: Processing packet 164701 [packets to send 104, broken 103] [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00164701 [18:48:39]OFD Sender: To server: pG, [18:48:39]CommunicateWithHost lk.salyk.kg:30040 [18:48:39]ConnectInit lk.salyk.kg [18:48:39]written 0, free lines is 4095 [18:48:39]Connected sock=10 [18:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 DC 07 01 B1 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 06 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C0 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 04 00 00 00 00 07 04 06 00 B4 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 06 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 83 02 00 35 04 06 00 DB 7F BB E2 42 93 83 26 3A CC CF 4F FF E8 [18:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 B9 47 00 9F 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 34 37 31 38 10 04 04 00 5D 83 02 00 F4 03 04 00 96 72 92 66 B6 04 01 00 00 EC 10 78 6E 97 9B 33 B0 [18:48:39]CommunicateWithHost err = 0 [18:48:39]CheckOFDResponse [18:48:39]1017 (14) - 77093643461234 [18:48:39]1041 (16) - 0000000000874718 [18:48:39]1040 (4) - 164701 [18:48:39]1012 (4) - 13.07.2024 12:27 [18:48:39]1206 (1) - 0 [18:48:39]OFD Sender: Remove packet 164701 [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00164701 [18:48:39]NVStorageDeleteData [18:48:40]Write to MH i2c: 01 00 00 1B 04 1F [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 07 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 F2 0C 24 [18:48:40]RasterBufferAndPrint [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]line [18:48:40]written 0, free lines is 3320 [18:48:40]MH_Cut [18:48:40]Write to MH i2c: D1 01 00 22 04 01 F8 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 01 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: D1 01 00 22 04 00 F7 [18:48:40]Write to MH i2c: 01 00 00 23 04 27 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]OFD Sender: No OFD packet to send [18:48:40]*** Cut start [18:48:40]*** Partial cut [18:48:40]*** CUTSNS_PIN = 1 [18:48:40]*** CUTSNS_PIN = 0 [18:48:40]*** Brake cut motor [18:48:41]Read from MH i2c: 01 [18:48:41]MH_I2C_Read... [18:48:41]*** Stop cut motor [18:48:41]*** Cut end [18:48:41]Read from MH i2c: 01 07 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [18:48:41]process_action close_receipt done [18:48:41]requested_data is exist [18:48:41]produce_requested_data [18:48:41]requested_item fm.sn is exist - process it [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 11 00 00 [18:48:41]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 17 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [18:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:41]wFMCommunicate OK [18:48:41]requested_item fd.num is exist - process it [18:48:41]SAM_PROTO_GetFieldsCounters [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 00 00 [18:48:41]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 62 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 62 00 25 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:48: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetFieldsCounters done [18:48:41]requested_item shift.num is exist - process it [18:48:41]requested_item shift.opened is exist - process it [18:48:41]req_shift_opened [18:48:41]FM_GetShiftState [18:48:41]SAM_PROTO_GetShiftState [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 01 00 [18:48:41]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 88 [18:48:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetShiftState done [18:48:41]FM_GetShiftState done [18:48:41]req_shift_opened done [18:48:41]requested_item shift.open_date is exist - process it [18:48:41]req_shift_open_date [18:48:41]req_shift_open_date done [18:48:41]produce_requested_data done [18:48:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164701,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:48:41]process_action_free close_receipt [18:48:41]json_value_free [18:48:41]json_value_free done [18:48:41]process_json_proto returns [18:48:41]Send response to host [18:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164701,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:48:41]free response buf [18:48:41]execute_script done [18:48:41]execute_script returns [18:48:41]free content buf [18:48:41]Sock 9.Close socket [18:48:41]Sock 9.Thread stoped [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:50:58]accept exits with 7 [18:50:58]New connection [18:50:58]New thread 3067247972 created [18:50:58]Thread 3067104612 joined [18:50:58]Waiting for new connection... [18:50:58] Sock 7.Parse request [18:50:58]Sock 7.Check first char [18:50:58]Sock 7.First char is OK [18:50:58]request: POST /json_proto HTTP/1.0 [18:50:58]Method: POST [18:50:58]URL: /json_proto [18:50:58]Method is POST - this is cgi request [18:50:58]url: /json_proto [18:50:58]query_string will be loaded in cgi processing [18:50:58]execute_cgi json_proto POST (null) [18:50:58]execute_cgi path=json_proto method=POST [18:50:58]POST find Content-Length [18:50:58]Host: 172.17.56.4:8080 [18:50:58]Content-Length: 679 [18:50:58]Content-Type: application/json [18:50:58] [18:50:58]POST finish read [18:50:58]Found Content-Length = 679 [18:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 43.120, "sum" : 3100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3100.00, "total" : 3100.00, "payments": [ { "type": 0, "sum" : 3100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:58]execute_script... [18:50: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)458796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 43.120, "sum" : 3100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3100.00, "total" : 3100.00, "payments": [ { "type": 0, "sum" : 3100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:58]POST & json_proto [18:50:58]process_json_proto [18:50:58]json parsed OK: [18:50:58]protocol is kg_v1.0 [18:50:58]action value=close_receipt [18:50:58]process_action close_receipt [18:50:58]cmd_close_receipt [18:50:58]MH_GetDate [18:50:58]Write to MH i2c: F0 00 00 27 04 1A [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: F0 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: F0 09 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: F0 09 00 27 04 00 93 CC 92 66 C9 DC B2 64 35 [18:50:58]GetLastDocTimeStamp 1720896518 [18:50:58]current date 1720896659 [18:50:58]FM_GetShiftState [18:50:58]SAM_PROTO_GetShiftState [18:50:58]wFMCommunicate request_size=4 [18:50:58]MH_SAM_APDU [18:50:58]CAPDU: 80 13 01 00 [18:50:58]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:58]Read from MH i2c: E2 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 0E 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8A [18:50:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:50:58]wFMCommunicate OK [18:50:58]SAM_PROTO_GetShiftState done [18:50:58]FM_GetShiftState done [18:50:58]opened in 1720831249 [18:50:58]opened+sec_in_day 1720917649 [18:50:58]quantity*price = 310032 [18:50:58]sum+1 = 310034 [18:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3100.00 Внесено: 3100.00 СДАЧА: 0.00 НСП 1% : 27.44 НДС 12% : 329.24 Наличными: 3100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 262 13.07.2024 18:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164702 ФПД: 118291136180270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164702&fm=118291136180270&tin=02508201610067®Number=0000000000090829&sum=310000 [18:50:59]StoreToDocumentArchive [18:50:59]shift 446 fd 164702 [18:50:59]save to /storage/0446/doc_00164702 [18:50:59]save last doc name /storage/0446/doc_00164702 to /storage/kkm_last_doc_name [18:50:59]save OK [18:50:59]Clear old archive folders... [18:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:59]tlvbuf is 01E6D240 [18:50:59]SAM_PROTO_ClearQueue [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 09 00 00 [18:50:59]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [18:50:59]RAPDU: 90 00 [18:50:59]wFMCommunicate OK [18:50:59]SAM_PROTO_ClearQueue done [18:50:59]KKMCreateOFDPacket [18:50:59]OFDProtocolAddRootSTLVToBuf [18:50:59]FM_MakeSignedData [18:50:59]FM_MakeSignedData [18:50:59]SAM_PROTO_SignData [18:50:59]wFMCommunicate request_size=4 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 0D 01 02 [18:50:59]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:59]Read from MH i2c: E2 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [18:50:59]RAPDU: 90 00 [18:50:59]wFMCommunicate OK [18:50:59]wFMCommunicate request_size=255 [18:50:59]MH_SAM_APDU [18:50:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 93 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 83 02 00 35 04 06 00 6B 95 CD 26 [18:50:59]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 93 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 83 02 00 35 04 06 00 6B 95 CD 26 00 00 5D [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 03 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [18:51:00]RAPDU: 90 00 [18:51:00]wFMCommunicate OK [18:51:00]wFMCommunicate request_size=7 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 0D 02 02 02 F0 2E [18:51:00]Write to MH i2c: E2 0A 00 38 04 80 0D 02 02 02 00 F0 2E 00 00 D8 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 03 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [18:51:00]RAPDU: 90 00 [18:51:00]wFMCommunicate OK [18:51:00]wFMCommunicate request_size=4 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 0D 03 02 [18:51:00]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 0B 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 0B 00 39 04 00 5A 41 C9 79 E8 26 D5 5B 90 00 D4 [18:51:00]RAPDU: 5A 41 C9 79 E8 26 D5 5B 90 00 [18:51:00]wFMCommunicate OK [18:51:00]SAM_PROTO_SignData done [18:51:00]FM_MakeSignedData done [18:51:00]CreateOFDProtocolMessage [18:51:00]wFMCommunicate request_size=4 [18:51:00]MH_SAM_APDU [18:51:00]CAPDU: 80 11 00 00 [18:51:00]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:00]Read from MH i2c: E2 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 17 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [18:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:51:00]wFMCommunicate OK [18:51:00]CreateOFDProtocolMessage done [18:51:00]OFDSenderStorePacket 164702 [18:51:00]StoreOFDPacket docnum=164702 [18:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D5 10 04 01 F1 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 93 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 83 02 00 35 04 06 00 6B 95 CD 26 F0 2E 5A 41 C9 79 E8 26 D5 5B [18:51:00]CheckFolder [18:51:00]dirname=/storage/ofd_packets [18:51:00]CheckFolder done [18:51:00]ProducePacketName [18:51:00]name=ofd_packets/00164702 [18:51:00]NVStorageSaveData ofd_packets/00164702 [18:51:00]File name is /storage/ofd_packets/00164702 [18:51:00]Write 298 bytes [18:51:00]NVStorageSaveData done [18:51:00]OFDSenderStorePacket done [18:51:00]KKMCreateOFDPacket done [18:51:00]NVStorageSaveData kkm_last_timestamp [18:51:00]File name is /storage/kkm_last_timestamp [18:51:00]Write 4 bytes [18:51:00]NVStorageSaveData done [18:51:00]ExternCall_PrintAddStr [18:51:00]wPrintStart [18:51:00]Write to MH i2c: 01 00 00 3B 04 3F [18:51:00]Write i2c OK [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 [18:51:00]MH_I2C_Read... [18:51:00]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [18:51:00]RasterBufferAndPrint [18:51:00]line Счет N : (1)458796 [18:51:00]line ИНН: 02508201610067 [18:51:00]line Контрольно-Кассовый Чек [18:51:00]line ПРОДАЖА [18:51:00]line ТРК (МРК, ГНК) : 11 [18:51:00]line Товар: 2710194210 [18:51:00]line ДТ-К-5 [18:51:00]line 43.120 * 71.90 [18:51:00]line = 3100.33 [18:51:00]line НДС 12% НСП 1% [18:51:00]line > о реализуемом товаре [18:51:00]line ОКРУГЛЕНИЕ: -0.33 [18:51:00]line ИТОГО: 3100.00 [18:51:00]line Внесено: 3100.00 [18:51:00]line СДАЧА: 0.00 [18:51:00]line НСП 1% : 27.44 [18:51:00]line НДС 12% : 329.24 [18:51:00]line Наличными: 3100.00 [18:51:00]line Безнал.: 0.00 [18:51:00]line Место: АЗС № 72 "Партнер Нефть" [18:51:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:51:00]line СНО: Общий режим [18:51:00]line Чек 262 13.07.2024 18:50 [18:51:00]line Смена: 446 ФФД: 1.0 [18:51:00]line ЗНМ: 0300000160 [18:51:00]line РНМ: 0000000000090829 [18:51:00]line Версия ККМ: 001 [18:51:00]line ФМ: 0000000000874718 [18:51:00]line ФД: 164702 [18:51:00]line ФПД: 118291136180270 [18:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164702&fm=118291136180270&tin=02508201610067®Number=0000000000090829&sum=310000 [18:51:00]OFD Sender: Processing packet 164702 [packets to send 104, broken 103] [18:51:00]ProducePacketName [18:51:00]name=ofd_packets/00164702 [18:51:00]OFD Sender: To server: pG, [18:51:00]CommunicateWithHost lk.salyk.kg:30040 [18:51:00]ConnectInit lk.salyk.kg [18:51:00]written 0, free lines is 4095 [18:51:00]Connected sock=9 [18:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D5 10 04 01 F1 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 A8 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 11 BB 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 BA 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 80 00 00 00 00 07 04 06 00 F0 BA 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 93 CC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 83 02 00 35 04 06 00 6B 95 CD 26 F0 2E 5A 41 C9 79 E8 26 D5 5B [18:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DF 89 47 00 DE 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 34 37 31 38 10 04 04 00 5E 83 02 00 F4 03 04 00 23 73 92 66 B6 04 01 00 00 0E E1 29 27 20 33 E1 EF [18:51:00]CommunicateWithHost err = 0 [18:51:00]CheckOFDResponse [18:51:00]1017 (14) - 77093643461234 [18:51:00]1041 (16) - 0000000000874718 [18:51:00]1040 (4) - 164702 [18:51:00]1012 (4) - 13.07.2024 12:29 [18:51:00]1206 (1) - 0 [18:51:00]OFD Sender: Remove packet 164702 [18:51:00]ProducePacketName [18:51:00]name=ofd_packets/00164702 [18:51:00]NVStorageDeleteData [18:51:01]Write to MH i2c: 01 00 00 65 04 69 [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: 01 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: 01 07 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 02 0D 7F [18:51:01]RasterBufferAndPrint [18:51:01]line [18:51:01]line [18:51:01]line [18:51:01]line [18:51:01]line [18:51:01]written 0, free lines is 3336 [18:51:01]MH_Cut [18:51:01]Write to MH i2c: D1 01 00 6C 04 01 42 [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: D1 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: D1 01 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: D1 01 00 6C 04 00 41 [18:51:01]Write to MH i2c: 01 00 00 6D 04 71 [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]OFD Sender: No OFD packet to send [18:51:01]*** Cut start [18:51:01]*** Partial cut [18:51:01]*** CUTSNS_PIN = 1 [18:51:01]*** CUTSNS_PIN = 0 [18:51:02]*** Brake cut motor [18:51:02]Read from MH i2c: 01 [18:51:02]MH_I2C_Read... [18:51:02]*** Stop cut motor [18:51:02]*** Cut end [18:51:02]Read from MH i2c: 01 07 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [18:51:02]process_action close_receipt done [18:51:02]requested_data is exist [18:51:02]produce_requested_data [18:51:02]requested_item fm.sn is exist - process it [18:51:02]wFMCommunicate request_size=4 [18:51:02]MH_SAM_APDU [18:51:02]CAPDU: 80 11 00 00 [18:51:02]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [18:51:02]Write i2c OK [18:51:02]MH_I2C_Read... [18:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:02]Read from MH i2c: E2 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 17 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [18:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:51:02]wFMCommunicate OK [18:51:02]requested_item fd.num is exist - process it [18:51:02]SAM_PROTO_GetFieldsCounters [18:51:02]wFMCommunicate request_size=4 [18:51:02]MH_SAM_APDU [18:51:02]CAPDU: 80 13 00 00 [18:51:02]Write to MH i2c: E2 08 00 6F 04 80 13 00 00 00 00 00 00 EF [18:51:02]Write i2c OK [18:51:02]MH_I2C_Read... [18:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:02]Read from MH i2c: E2 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 62 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 62 00 6F 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:02]wFMCommunicate OK [18:51:02]SAM_PROTO_GetFieldsCounters done [18:51:02]requested_item shift.num is exist - process it [18:51:02]requested_item shift.opened is exist - process it [18:51:02]req_shift_opened [18:51:02]FM_GetShiftState [18:51:02]SAM_PROTO_GetShiftState [18:51:02]wFMCommunicate request_size=4 [18:51:02]MH_SAM_APDU [18:51:02]CAPDU: 80 13 01 00 [18:51:02]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [18:51:02]Write i2c OK [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 [18:51:02]MH_I2C_Read... [18:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:02]Read from MH i2c: E2 0E 00 [18:51:02]MH_I2C_Read... [18:51:02]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D2 [18:51:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:51:02]wFMCommunicate OK [18:51:02]SAM_PROTO_GetShiftState done [18:51:02]FM_GetShiftState done [18:51:02]req_shift_opened done [18:51:02]requested_item shift.open_date is exist - process it [18:51:02]req_shift_open_date [18:51:02]req_shift_open_date done [18:51:02]produce_requested_data done [18:51:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164702,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:51:02]process_action_free close_receipt [18:51:02]json_value_free [18:51:02]json_value_free done [18:51:02]process_json_proto returns [18:51:02]Send response to host [18:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164702,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:51:02]free response buf [18:51:02]execute_script done [18:51:02]execute_script returns [18:51:02]free content buf [18:51:02]Sock 7.Close socket [18:51:02]Sock 7.Thread stoped [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:44]accept exits with 10 [18:53:44]New connection [18:53:44]New thread 3067104612 created [18:53:44]Thread 3067247972 joined [18:53:44]Waiting for new connection... [18:53:44] Sock 10.Parse request [18:53:44]Sock 10.Check first char [18:53:44]Sock 10.First char is OK [18:53:44]request: POST /json_proto HTTP/1.0 [18:53:44]Method: POST [18:53:44]URL: /json_proto [18:53:44]Method is POST - this is cgi request [18:53:44]url: /json_proto [18:53:44]query_string will be loaded in cgi processing [18:53:44]execute_cgi json_proto POST (null) [18:53:44]execute_cgi path=json_proto method=POST [18:53:44]POST find Content-Length [18:53:44]Host: 172.17.56.4:8080 [18:53:44]Content-Length: 677 [18:53:44]Content-Type: application/json [18:53:44] [18:53:44]POST finish read [18:53:44]Found Content-Length = 677 [18:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [18:53:44]execute_script... [18:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [18:53:44]POST & json_proto [18:53:44]process_json_proto [18:53:44]json parsed OK: [18:53:44]protocol is kg_v1.0 [18:53:44]action value=close_receipt [18:53:44]process_action close_receipt [18:53:44]cmd_close_receipt [18:53:44]MH_GetDate [18:53:44]Write to MH i2c: F0 00 00 71 04 64 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: F0 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: F0 09 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: F0 09 00 71 04 00 38 CD 92 66 C9 DC B2 64 25 [18:53:44]GetLastDocTimeStamp 1720896659 [18:53:44]current date 1720896824 [18:53:44]FM_GetShiftState [18:53:44]SAM_PROTO_GetShiftState [18:53:44]wFMCommunicate request_size=4 [18:53:44]MH_SAM_APDU [18:53:44]CAPDU: 80 13 01 00 [18:53:44]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [18:53:44]Write i2c OK [18:53:44]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0E 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D4 [18:53:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_GetShiftState done [18:53:44]FM_GetShiftState done [18:53:44]opened in 1720831249 [18:53:44]opened+sec_in_day 1720917649 [18:53:44]quantity*price = 30004 [18:53:44]sum+1 = 30006 [18:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 263 13.07.2024 18:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164703 ФПД: 59286718792058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164703&fm=59286718792058&tin=02508201610067®Number=0000000000090829&sum=30000 [18:53:45]StoreToDocumentArchive [18:53:45]shift 446 fd 164703 [18:53:45]save to /storage/0446/doc_00164703 [18:53:45]save last doc name /storage/0446/doc_00164703 to /storage/kkm_last_doc_name [18:53:45]save OK [18:53:45]Clear old archive folders... [18:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:45]tlvbuf is 01E6BF70 [18:53:45]SAM_PROTO_ClearQueue [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 09 00 00 [18:53:45]Write to MH i2c: E2 08 00 7F 04 80 09 00 00 00 00 00 00 F5 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [18:53:45]RAPDU: 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_ClearQueue done [18:53:45]KKMCreateOFDPacket [18:53:45]OFDProtocolAddRootSTLVToBuf [18:53:45]FM_MakeSignedData [18:53:45]FM_MakeSignedData [18:53:45]SAM_PROTO_SignData [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 0D 01 02 [18:53:45]Write to MH i2c: E2 08 00 80 04 80 0D 01 02 00 00 00 00 FD [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [18:53:45]RAPDU: 90 00 [18:53:45]wFMCommunicate OK [18:53:45]wFMCommunicate request_size=255 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 07 01 00 00 F4 03 04 00 38 CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 83 02 00 35 04 06 00 35 [18:53:45]Write to MH i2c: E2 02 01 81 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 07 01 00 00 F4 03 04 00 38 CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 83 02 00 35 04 06 00 35 00 00 14 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [18:53:45]RAPDU: 90 00 [18:53:45]wFMCommunicate OK [18:53:45]wFMCommunicate request_size=10 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 0D 02 02 05 EB C3 D0 41 7A [18:53:45]Write to MH i2c: E2 0D 00 82 04 80 0D 02 02 05 00 EB C3 D0 41 7A 00 00 43 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [18:53:45]RAPDU: 90 00 [18:53:45]wFMCommunicate OK [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 0D 03 02 [18:53:45]Write to MH i2c: E2 08 00 83 04 80 0D 03 02 00 00 00 00 02 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0B 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0B 00 83 04 00 80 64 BF D1 13 C9 F3 54 90 00 9A [18:53:45]RAPDU: 80 64 BF D1 13 C9 F3 54 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_SignData done [18:53:45]FM_MakeSignedData done [18:53:45]CreateOFDProtocolMessage [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 11 00 00 [18:53:45]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [18:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:53:45]wFMCommunicate OK [18:53:45]CreateOFDProtocolMessage done [18:53:45]OFDSenderStorePacket 164703 [18:53:45]StoreOFDPacket docnum=164703 [18:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 87 07 01 B3 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 07 01 00 00 F4 03 04 00 38 CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 83 02 00 35 04 06 00 35 EB C3 D0 41 7A 80 64 BF D1 13 C9 F3 54 [18:53:45]CheckFolder [18:53:45]dirname=/storage/ofd_packets [18:53:45]CheckFolder done [18:53:45]ProducePacketName [18:53:45]name=ofd_packets/00164703 [18:53:45]NVStorageSaveData ofd_packets/00164703 [18:53:45]File name is /storage/ofd_packets/00164703 [18:53:45]Write 301 bytes [18:53:45]NVStorageSaveData done [18:53:45]OFDSenderStorePacket done [18:53:45]KKMCreateOFDPacket done [18:53:45]NVStorageSaveData kkm_last_timestamp [18:53:45]File name is /storage/kkm_last_timestamp [18:53:45]Write 4 bytes [18:53:45]NVStorageSaveData done [18:53:45]ExternCall_PrintAddStr [18:53:45]wPrintStart [18:53:45]Write to MH i2c: 01 00 00 85 04 89 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 07 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [18:53:45]RasterBufferAndPrint [18:53:45]line Счет N : (1)458797 [18:53:45]line ИНН: 02508201610067 [18:53:45]line Контрольно-Кассовый Чек [18:53:45]line ПРОДАЖА [18:53:45]line ТРК (МРК, ГНК) : 22 [18:53:45]line Товар: 2710124130 [18:53:45]line Аи-92-К-5 [18:53:45]line 4.560 * 65.80 [18:53:45]line = 300.05 [18:53:45]line НДС 12% НСП 1% [18:53:45]line > о реализуемом товаре [18:53:45]line ОКРУГЛЕНИЕ: -0.05 [18:53:45]line ИТОГО: 300.00 [18:53:45]line Внесено: 300.00 [18:53:45]line СДАЧА: 0.00 [18:53:45]line НСП 1% : 2.65 [18:53:45]line НДС 12% : 31.86 [18:53:45]line Наличными: 300.00 [18:53:45]line Безнал.: 0.00 [18:53:45]line Место: АЗС № 72 "Партнер Нефть" [18:53:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:53:45]line СНО: Общий режим [18:53:45]line Чек 263 13.07.2024 18:53 [18:53:45]line Смена: 446 ФФД: 1.0 [18:53:45]line ЗНМ: 0300000160 [18:53:45]line РНМ: 0000000000090829 [18:53:45]line Версия ККМ: 001 [18:53:45]line ФМ: 0000000000874718 [18:53:45]line ФД: 164703 [18:53:45]line ФПД: 59286718792058 [18:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164703&fm=59286718792058&tin=02508201610067®Number=0000000000090829&sum=30000 [18:53:45]written 0, free lines is 4095 [18:53:45]OFD Sender: Processing packet 164703 [packets to send 104, broken 103] [18:53:45]ProducePacketName [18:53:45]name=ofd_packets/00164703 [18:53:45]OFD Sender: To server: pG, [18:53:45]CommunicateWithHost lk.salyk.kg:30040 [18:53:45]ConnectInit lk.salyk.kg [18:53:45]Connected sock=9 [18:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A 87 07 01 B3 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 07 01 00 00 F4 03 04 00 38 CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 83 02 00 35 04 06 00 35 EB C3 D0 41 7A 80 64 BF D1 13 C9 F3 54 [18:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F 84 47 00 9C 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 34 37 31 38 10 04 04 00 5F 83 02 00 F4 03 04 00 C8 73 92 66 B6 04 01 00 00 82 FD 81 A0 0A 5F D0 84 [18:53:46]CommunicateWithHost err = 0 [18:53:46]CheckOFDResponse [18:53:46]1017 (14) - 77093643461234 [18:53:46]1041 (16) - 0000000000874718 [18:53:46]1040 (4) - 164703 [18:53:46]1012 (4) - 13.07.2024 12:32 [18:53:46]1206 (1) - 0 [18:53:46]OFD Sender: Remove packet 164703 [18:53:46]ProducePacketName [18:53:46]name=ofd_packets/00164703 [18:53:46]NVStorageDeleteData [18:53:46]Write to MH i2c: 01 00 00 AF 04 B3 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: 01 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: 01 07 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 02 0D C9 [18:53:46]RasterBufferAndPrint [18:53:46]line [18:53:46]line [18:53:46]line [18:53:46]line [18:53:46]line [18:53:46]written 0, free lines is 3336 [18:53:46]MH_Cut [18:53:46]Write to MH i2c: D1 01 00 B6 04 01 8C [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: D1 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: D1 01 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: D1 01 00 B6 04 00 8B [18:53:46]Write to MH i2c: 01 00 00 B7 04 BB [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]OFD Sender: No OFD packet to send [18:53:46]*** Cut start [18:53:46]*** Partial cut [18:53:46]*** CUTSNS_PIN = 1 [18:53:46]*** CUTSNS_PIN = 0 [18:53:47]*** Brake cut motor [18:53:47]Read from MH i2c: 01 [18:53:47]MH_I2C_Read... [18:53:47]*** Stop cut motor [18:53:47]*** Cut end [18:53:47]Read from MH i2c: 01 07 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [18:53:47]process_action close_receipt done [18:53:47]requested_data is exist [18:53:47]produce_requested_data [18:53:47]requested_item fm.sn is exist - process it [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 11 00 00 [18:53:47]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 17 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [18:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:53:47]wFMCommunicate OK [18:53:47]requested_item fd.num is exist - process it [18:53:47]SAM_PROTO_GetFieldsCounters [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 13 00 00 [18:53:47]Write to MH i2c: E2 08 00 B9 04 80 13 00 00 00 00 00 00 39 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 62 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 62 00 B9 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:47]wFMCommunicate OK [18:53:47]SAM_PROTO_GetFieldsCounters done [18:53:47]requested_item shift.num is exist - process it [18:53:47]requested_item shift.opened is exist - process it [18:53:47]req_shift_opened [18:53:47]FM_GetShiftState [18:53:47]SAM_PROTO_GetShiftState [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 13 01 00 [18:53:47]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 0E 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1C [18:53:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:53:47]wFMCommunicate OK [18:53:47]SAM_PROTO_GetShiftState done [18:53:47]FM_GetShiftState done [18:53:47]req_shift_opened done [18:53:47]requested_item shift.open_date is exist - process it [18:53:47]req_shift_open_date [18:53:47]req_shift_open_date done [18:53:47]produce_requested_data done [18:53:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164703,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:53:47]process_action_free close_receipt [18:53:47]json_value_free [18:53:47]json_value_free done [18:53:47]process_json_proto returns [18:53:47]Send response to host [18:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164703,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:53:47]free response buf [18:53:47]execute_script done [18:53:47]execute_script returns [18:53:47]free content buf [18:53:47]Sock 10.Close socket [18:53:47]Sock 10.Thread stoped [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:54]accept exits with 7 [18:55:54]New connection [18:55:54]New thread 3067247972 created [18:55:54]Thread 3067104612 joined [18:55:54]Waiting for new connection... [18:55:54] Sock 7.Parse request [18:55:54]Sock 7.Check first char [18:55:54]Sock 7.First char is OK [18:55:54]request: POST /json_proto HTTP/1.0 [18:55:54]Method: POST [18:55:54]URL: /json_proto [18:55:54]Method is POST - this is cgi request [18:55:54]url: /json_proto [18:55:54]query_string will be loaded in cgi processing [18:55:54]execute_cgi json_proto POST (null) [18:55:54]execute_cgi path=json_proto method=POST [18:55:54]POST find Content-Length [18:55:54]Host: 172.17.56.4:8080 [18:55:54]Content-Length: 679 [18:55:54]Content-Type: application/json [18:55:54] [18:55:54]POST finish read [18:55:54]Found Content-Length = 679 [18:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:54]execute_script... [18: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)458798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:54]POST & json_proto [18:55:54]process_json_proto [18:55:54]json parsed OK: [18:55:54]protocol is kg_v1.0 [18:55:54]action value=close_receipt [18:55:54]process_action close_receipt [18:55:54]cmd_close_receipt [18:55:54]MH_GetDate [18:55:54]Write to MH i2c: F0 00 00 BB 04 AE [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 09 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: F0 09 00 BB 04 00 BA CD 92 66 C9 DC B2 64 F1 [18:55:54]GetLastDocTimeStamp 1720896824 [18:55:54]current date 1720896954 [18:55:54]FM_GetShiftState [18:55:54]SAM_PROTO_GetShiftState [18:55:54]wFMCommunicate request_size=4 [18:55:54]MH_SAM_APDU [18:55:54]CAPDU: 80 13 01 00 [18:55:54]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [18:55:54]Write i2c OK [18:55:54]MH_I2C_Read... [18:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:54]Read from MH i2c: E2 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 0E 00 [18:55:54]MH_I2C_Read... [18:55:54]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1E [18:55:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:55:54]wFMCommunicate OK [18:55:54]SAM_PROTO_GetShiftState done [18:55:54]FM_GetShiftState done [18:55:54]opened in 1720831249 [18:55:54]opened+sec_in_day 1720917649 [18:55:54]quantity*price = 100012 [18:55:54]sum+1 = 100014 [18:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 264 13.07.2024 18:55 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164704 ФПД: 206668242948817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164704&fm=206668242948817&tin=02508201610067®Number=0000000000090829&sum=100000 [18:55:55]StoreToDocumentArchive [18:55:55]shift 446 fd 164704 [18:55:55]save to /storage/0446/doc_00164704 [18:55:55]save last doc name /storage/0446/doc_00164704 to /storage/kkm_last_doc_name [18:55:55]save OK [18:55:55]Clear old archive folders... [18:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:55]tlvbuf is 01E6C550 [18:55:55]SAM_PROTO_ClearQueue [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 09 00 00 [18:55:55]Write to MH i2c: E2 08 00 C9 04 80 09 00 00 00 00 00 00 3F [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]SAM_PROTO_ClearQueue done [18:55:55]KKMCreateOFDPacket [18:55:55]OFDProtocolAddRootSTLVToBuf [18:55:55]FM_MakeSignedData [18:55:55]FM_MakeSignedData [18:55:55]SAM_PROTO_SignData [18:55:55]wFMCommunicate request_size=4 [18:55:55]MH_SAM_APDU [18:55:55]CAPDU: 80 0D 01 02 [18:55:55]Write to MH i2c: E2 08 00 CA 04 80 0D 01 02 00 00 00 00 47 [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:55]Read from MH i2c: E2 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 [18:55:55]MH_I2C_Read... [18:55:55]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [18:55:55]RAPDU: 90 00 [18:55:55]wFMCommunicate OK [18:55:55]wFMCommunicate request_size=255 [18:55:55]MH_SAM_APDU [18:55: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 BB CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 83 02 00 35 04 06 00 BB F6 B3 35 [18:55:55]Write to MH i2c: E2 02 01 CB 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 BB CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 83 02 00 35 04 06 00 BB F6 B3 35 00 00 CE [18:55:55]Write i2c OK [18:55:55]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [18:55:56]RAPDU: 90 00 [18:55:56]wFMCommunicate OK [18:55:56]wFMCommunicate request_size=7 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 0D 02 02 02 12 D1 [18:55:56]Write to MH i2c: E2 0A 00 CC 04 80 0D 02 02 02 00 12 D1 00 00 31 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [18:55:56]RAPDU: 90 00 [18:55:56]wFMCommunicate OK [18:55:56]wFMCommunicate request_size=4 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 0D 03 02 [18:55:56]Write to MH i2c: E2 08 00 CD 04 80 0D 03 02 00 00 00 00 4C [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 0B 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 0B 00 CD 04 00 E0 00 94 2F 5F 42 75 01 90 00 07 [18:55:56]RAPDU: E0 00 94 2F 5F 42 75 01 90 00 [18:55:56]wFMCommunicate OK [18:55:56]SAM_PROTO_SignData done [18:55:56]FM_MakeSignedData done [18:55:56]CreateOFDProtocolMessage [18:55:56]wFMCommunicate request_size=4 [18:55:56]MH_SAM_APDU [18:55:56]CAPDU: 80 11 00 00 [18:55:56]Write to MH i2c: E2 08 00 CE 04 80 11 00 00 00 00 00 00 4C [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:56]Read from MH i2c: E2 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 17 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: E2 17 00 CE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [18:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:56]wFMCommunicate OK [18:55:56]CreateOFDProtocolMessage done [18:55:56]OFDSenderStorePacket 164704 [18:55:56]StoreOFDPacket docnum=164704 [18:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 43 38 04 01 9A 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 BB CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 83 02 00 35 04 06 00 BB F6 B3 35 12 D1 E0 00 94 2F 5F 42 75 01 [18:55:56]CheckFolder [18:55:56]dirname=/storage/ofd_packets [18:55:56]CheckFolder done [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00164704 [18:55:56]NVStorageSaveData ofd_packets/00164704 [18:55:56]File name is /storage/ofd_packets/00164704 [18:55:56]Write 298 bytes [18:55:56]NVStorageSaveData done [18:55:56]OFDSenderStorePacket done [18:55:56]KKMCreateOFDPacket done [18:55:56]NVStorageSaveData kkm_last_timestamp [18:55:56]File name is /storage/kkm_last_timestamp [18:55:56]Write 4 bytes [18:55:56]NVStorageSaveData done [18:55:56]ExternCall_PrintAddStr [18:55:56]wPrintStart [18:55:56]Write to MH i2c: 01 00 00 CF 04 D3 [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [18:55:56]RasterBufferAndPrint [18:55:56]line Счет N : (1)458798 [18:55:56]line ИНН: 02508201610067 [18:55:56]line Контрольно-Кассовый Чек [18:55:56]line ПРОДАЖА [18:55:56]line ТРК (МРК, ГНК) : 21 [18:55:56]line Товар: 2710194210 [18:55:56]line ДТ-К-5 [18:55:56]line 13.910 * 71.90 [18:55:56]line = 1000.13 [18:55:56]line НДС 12% НСП 1% [18:55:56]line > о реализуемом товаре [18:55:56]line ОКРУГЛЕНИЕ: -0.13 [18:55:56]line ИТОГО: 1000.00 [18:55:56]line Внесено: 1000.00 [18:55:56]line СДАЧА: 0.00 [18:55:56]line НСП 1% : 8.85 [18:55:56]line НДС 12% : 106.21 [18:55:56]line Наличными: 1000.00 [18:55:56]line Безнал.: 0.00 [18:55:56]line Место: АЗС № 72 "Партнер Нефть" [18:55:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:55:56]line СНО: Общий режим [18:55:56]line Чек 264 13.07.2024 18:55 [18:55:56]line Смена: 446 ФФД: 1.0 [18:55:56]line ЗНМ: 0300000160 [18:55:56]line РНМ: 0000000000090829 [18:55:56]line Версия ККМ: 001 [18:55:56]line ФМ: 0000000000874718 [18:55:56]line ФД: 164704 [18:55:56]line ФПД: 206668242948817 [18:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164704&fm=206668242948817&tin=02508201610067®Number=0000000000090829&sum=100000 [18:55:56]OFD Sender: Processing packet 164704 [packets to send 104, broken 103] [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00164704 [18:55:56]OFD Sender: To server: pG, [18:55:56]CommunicateWithHost lk.salyk.kg:30040 [18:55:56]ConnectInit lk.salyk.kg [18:55:56]written 0, free lines is 4095 [18:55:56]Connected sock=10 [18:55:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 43 38 04 01 9A 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 08 01 00 00 F4 03 04 00 BB CD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 83 02 00 35 04 06 00 BB F6 B3 35 12 D1 E0 00 94 2F 5F 42 75 01 [18:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 50 47 00 1B DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 83 02 00 F4 03 04 00 4B 74 92 66 B6 04 01 00 00 99 BB EB B5 6B 2E 86 5E [18:55:56]CommunicateWithHost err = 0 [18:55:56]CheckOFDResponse [18:55:56]1017 (14) - 77093643461234 [18:55:56]1041 (16) - 0000000000874718 [18:55:56]1040 (4) - 164704 [18:55:56]1012 (4) - 13.07.2024 12:34 [18:55:56]1206 (1) - 0 [18:55:56]OFD Sender: Remove packet 164704 [18:55:56]ProducePacketName [18:55:56]name=ofd_packets/00164704 [18:55:56]NVStorageDeleteData [18:55:56]Write to MH i2c: 01 00 00 F9 04 FD [18:55:56]Write i2c OK [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 [18:55:56]MH_I2C_Read... [18:55:56]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 0B 0D 1C [18:55:56]RasterBufferAndPrint [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]line [18:55:56]written 0, free lines is 3345 [18:55:57]MH_Cut [18:55:57]Write to MH i2c: D1 01 00 00 05 01 D7 [18:55:57]Write i2c OK [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: D1 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: D1 01 00 [18:55:57]MH_I2C_Read... [18:55:57]Read from MH i2c: D1 01 00 00 05 00 D6 [18:55:57]Write to MH i2c: 01 00 00 01 05 06 [18:55:57]Write i2c OK [18:55:57]MH_I2C_Read... [18:55:57]OFD Sender: No OFD packet to send [18:55:57]*** Cut start [18:55:57]*** Partial cut [18:55:57]*** CUTSNS_PIN = 1 [18:55:57]*** CUTSNS_PIN = 0 [18:55:57]*** Brake cut motor [18:55:58]Read from MH i2c: 01 [18:55:58]MH_I2C_Read... [18:55:58]*** Stop cut motor [18:55:58]*** Cut end [18:55:58]Read from MH i2c: 01 07 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [18:55:58]process_action close_receipt done [18:55:58]requested_data is exist [18:55:58]produce_requested_data [18:55:58]requested_item fm.sn is exist - process it [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 11 00 00 [18:55:58]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [18:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:58]wFMCommunicate OK [18:55:58]requested_item fd.num is exist - process it [18:55:58]SAM_PROTO_GetFieldsCounters [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 00 00 [18:55:58]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 62 00 03 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [18:55: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetFieldsCounters done [18:55:58]requested_item shift.num is exist - process it [18:55:58]requested_item shift.opened is exist - process it [18:55:58]req_shift_opened [18:55:58]FM_GetShiftState [18:55:58]SAM_PROTO_GetShiftState [18:55:58]wFMCommunicate request_size=4 [18:55:58]MH_SAM_APDU [18:55:58]CAPDU: 80 13 01 00 [18:55:58]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [18:55:58]Write i2c OK [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 [18:55:58]MH_I2C_Read... [18:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:58]Read from MH i2c: E2 0E 00 [18:55:58]MH_I2C_Read... [18:55:58]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 67 [18:55:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [18:55:58]wFMCommunicate OK [18:55:58]SAM_PROTO_GetShiftState done [18:55:58]FM_GetShiftState done [18:55:58]req_shift_opened done [18:55:58]requested_item shift.open_date is exist - process it [18:55:58]req_shift_open_date [18:55:58]req_shift_open_date done [18:55:58]produce_requested_data done [18:55:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164704,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [18:55:58]process_action_free close_receipt [18:55:58]json_value_free [18:55:58]json_value_free done [18:55:58]process_json_proto returns [18:55:58]Send response to host [18:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164704,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [18:55:58]free response buf [18:55:58]execute_script done [18:55:58]execute_script returns [18:55:58]free content buf [18:55:58]Sock 7.Close socket [18:55:58]Sock 7.Thread stoped [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:42]accept exits with 9 [19:02:42]New connection [19:02:42]New thread 3067104612 created [19:02:42]Thread 3067247972 joined [19:02:42]Waiting for new connection... [19:02:42] Sock 9.Parse request [19:02:42]Sock 9.Check first char [19:02:42]Sock 9.First char is OK [19:02:42]request: POST /json_proto HTTP/1.0 [19:02:42]Method: POST [19:02:42]URL: /json_proto [19:02:42]Method is POST - this is cgi request [19:02:42]url: /json_proto [19:02:42]query_string will be loaded in cgi processing [19:02:42]execute_cgi json_proto POST (null) [19:02:42]execute_cgi path=json_proto method=POST [19:02:42]POST find Content-Length [19:02:42]Host: 172.17.56.4:8080 [19:02:42]Content-Length: 677 [19:02:42]Content-Type: application/json [19:02:42] [19:02:42]POST finish read [19:02:42]Found Content-Length = 677 [19:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:42]execute_script... [19:02: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)458799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:42]POST & json_proto [19:02:42]process_json_proto [19:02:42]json parsed OK: [19:02:42]protocol is kg_v1.0 [19:02:42]action value=close_receipt [19:02:42]process_action close_receipt [19:02:42]cmd_close_receipt [19:02:42]MH_GetDate [19:02:42]Write to MH i2c: F0 00 00 05 05 F9 [19:02:42]Write i2c OK [19:02:42]MH_I2C_Read... [19:02:42]Read from MH i2c: F0 [19:02:42]MH_I2C_Read... [19:02:42]Read from MH i2c: F0 09 00 [19:02:42]MH_I2C_Read... [19:02:42]Read from MH i2c: F0 09 00 05 05 00 53 CF 92 66 C9 DC B2 64 D7 [19:02:42]GetLastDocTimeStamp 1720896955 [19:02:42]current date 1720897363 [19:02:42]FM_GetShiftState [19:02:42]SAM_PROTO_GetShiftState [19:02:42]wFMCommunicate request_size=4 [19:02:42]MH_SAM_APDU [19:02:42]CAPDU: 80 13 01 00 [19:02:42]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [19:02:42]Write i2c OK [19:02:42]MH_I2C_Read... [19:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:42]Read from MH i2c: E2 [19:02:42]MH_I2C_Read... [19:02:42]Read from MH i2c: E2 0E 00 [19:02:42]MH_I2C_Read... [19:02:42]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 69 [19:02:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:02:42]wFMCommunicate OK [19:02:42]SAM_PROTO_GetShiftState done [19:02:42]FM_GetShiftState done [19:02:42]opened in 1720831249 [19:02:42]opened+sec_in_day 1720917649 [19:02:42]quantity*price = 30004 [19:02:42]sum+1 = 30006 [19:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 265 13.07.2024 19:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164705 ФПД: 101796633500071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164705&fm=101796633500071&tin=02508201610067®Number=0000000000090829&sum=30000 [19:02:44]StoreToDocumentArchive [19:02:44]shift 446 fd 164705 [19:02:44]save to /storage/0446/doc_00164705 [19:02:44]save last doc name /storage/0446/doc_00164705 to /storage/kkm_last_doc_name [19:02:44]save OK [19:02:44]Clear old archive folders... [19:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:44]tlvbuf is 01E6F4E0 [19:02:44]SAM_PROTO_ClearQueue [19:02:44]wFMCommunicate request_size=4 [19:02:44]MH_SAM_APDU [19:02:44]CAPDU: 80 09 00 00 [19:02:44]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [19:02:44]RAPDU: 90 00 [19:02:44]wFMCommunicate OK [19:02:44]SAM_PROTO_ClearQueue done [19:02:44]KKMCreateOFDPacket [19:02:44]OFDProtocolAddRootSTLVToBuf [19:02:44]FM_MakeSignedData [19:02:44]FM_MakeSignedData [19:02:44]SAM_PROTO_SignData [19:02:44]wFMCommunicate request_size=4 [19:02:44]MH_SAM_APDU [19:02:44]CAPDU: 80 0D 01 02 [19:02:44]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [19:02:44]RAPDU: 90 00 [19:02:44]wFMCommunicate OK [19:02:44]wFMCommunicate request_size=255 [19:02:44]MH_SAM_APDU [19:02: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 09 01 00 00 F4 03 04 00 53 CF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 83 02 00 35 04 06 00 5C [19:02:44]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 09 01 00 00 F4 03 04 00 53 CF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 83 02 00 35 04 06 00 5C 00 00 F1 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:02:44]RAPDU: 90 00 [19:02:44]wFMCommunicate OK [19:02:44]wFMCommunicate request_size=10 [19:02:44]MH_SAM_APDU [19:02:44]CAPDU: 80 0D 02 02 05 95 60 2D D9 A7 [19:02:44]Write to MH i2c: E2 0D 00 16 05 80 0D 02 02 05 00 95 60 2D D9 A7 00 00 41 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [19:02:44]RAPDU: 90 00 [19:02:44]wFMCommunicate OK [19:02:44]wFMCommunicate request_size=4 [19:02:44]MH_SAM_APDU [19:02:44]CAPDU: 80 0D 03 02 [19:02:44]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 0B 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 0B 00 17 05 00 AE 4E A0 07 83 05 5C 3E 90 00 5D [19:02:44]RAPDU: AE 4E A0 07 83 05 5C 3E 90 00 [19:02:44]wFMCommunicate OK [19:02:44]SAM_PROTO_SignData done [19:02:44]FM_MakeSignedData done [19:02:44]CreateOFDProtocolMessage [19:02:44]wFMCommunicate request_size=4 [19:02:44]MH_SAM_APDU [19:02:44]CAPDU: 80 11 00 00 [19:02:44]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:44]Read from MH i2c: E2 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 17 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [19:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:02:44]wFMCommunicate OK [19:02:44]CreateOFDProtocolMessage done [19:02:44]OFDSenderStorePacket 164705 [19:02:44]StoreOFDPacket docnum=164705 [19:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 6B 07 01 CA 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 09 01 00 00 F4 03 04 00 53 CF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 83 02 00 35 04 06 00 5C 95 60 2D D9 A7 AE 4E A0 07 83 05 5C 3E [19:02:44]CheckFolder [19:02:44]dirname=/storage/ofd_packets [19:02:44]CheckFolder done [19:02:44]ProducePacketName [19:02:44]name=ofd_packets/00164705 [19:02:44]NVStorageSaveData ofd_packets/00164705 [19:02:44]File name is /storage/ofd_packets/00164705 [19:02:44]Write 301 bytes [19:02:44]NVStorageSaveData done [19:02:44]OFDSenderStorePacket done [19:02:44]KKMCreateOFDPacket done [19:02:44]NVStorageSaveData kkm_last_timestamp [19:02:44]File name is /storage/kkm_last_timestamp [19:02:44]Write 4 bytes [19:02:44]NVStorageSaveData done [19:02:44]OFD Sender: Processing packet 164705 [packets to send 104, broken 103] [19:02:44]ProducePacketName [19:02:44]name=ofd_packets/00164705 [19:02:44]OFD Sender: To server: pG, [19:02:44]CommunicateWithHost lk.salyk.kg:30040 [19:02:44]ConnectInit lk.salyk.kg [19:02:44]ExternCall_PrintAddStr [19:02:44]wPrintStart [19:02:44]Write to MH i2c: 01 00 00 19 05 1E [19:02:44]Write i2c OK [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 07 00 [19:02:44]MH_I2C_Read... [19:02:44]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [19:02:44]RasterBufferAndPrint [19:02:44]line Счет N : (1)458799 [19:02:44]line ИНН: 02508201610067 [19:02:44]line Контрольно-Кассовый Чек [19:02:44]line ПРОДАЖА [19:02:44]line ТРК (МРК, ГНК) : 12 [19:02:44]line Товар: 2710124130 [19:02:44]line Аи-92-К-5 [19:02:44]line 4.560 * 65.80 [19:02:44]line = 300.05 [19:02:44]line НДС 12% НСП 1% [19:02:44]line > о реализуемом товаре [19:02:44]line ОКРУГЛЕНИЕ: -0.05 [19:02:44]line ИТОГО: 300.00 [19:02:44]line Внесено: 300.00 [19:02:44]line СДАЧА: 0.00 [19:02:44]line НСП 1% : 2.65 [19:02:44]line НДС 12% : 31.86 [19:02:44]line Наличными: 300.00 [19:02:44]line Безнал.: 0.00 [19:02:44]line Место: АЗС № 72 "Партнер Нефть" [19:02:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:02:44]line СНО: Общий режим [19:02:44]line Чек 265 13.07.2024 19:02 [19:02:44]line Смена: 446 ФФД: 1.0 [19:02:44]line ЗНМ: 0300000160 [19:02:44]line РНМ: 0000000000090829 [19:02:44]line Версия ККМ: 001 [19:02:44]line ФМ: 0000000000874718 [19:02:44]line ФД: 164705 [19:02:44]line ФПД: 101796633500071 [19:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164705&fm=101796633500071&tin=02508201610067®Number=0000000000090829&sum=30000 [19:02:44]Connected sock=11 [19:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 6B 07 01 CA 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 09 01 00 00 F4 03 04 00 53 CF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 83 02 00 35 04 06 00 5C 95 60 2D D9 A7 AE 4E A0 07 83 05 5C 3E [19:02:44]written 0, free lines is 4095 [19:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 DC 47 00 6A 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 34 37 31 38 10 04 04 00 61 83 02 00 F4 03 04 00 E3 75 92 66 B6 04 01 00 00 12 5C F5 37 25 05 71 D7 [19:02:45]CommunicateWithHost err = 0 [19:02:45]CheckOFDResponse [19:02:45]1017 (14) - 77093643461234 [19:02:45]1041 (16) - 0000000000874718 [19:02:45]1040 (4) - 164705 [19:02:45]1012 (4) - 13.07.2024 12:41 [19:02:45]1206 (1) - 0 [19:02:45]OFD Sender: Remove packet 164705 [19:02:45]ProducePacketName [19:02:45]name=ofd_packets/00164705 [19:02:45]NVStorageDeleteData [19:02:45]Write to MH i2c: 01 00 00 43 05 48 [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: 01 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: 01 07 00 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 FD 0C 58 [19:02:45]RasterBufferAndPrint [19:02:45]line [19:02:45]line [19:02:45]line [19:02:45]line [19:02:45]line [19:02:45]written 0, free lines is 3331 [19:02:45]MH_Cut [19:02:45]Write to MH i2c: D1 01 00 4A 05 01 21 [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: D1 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: D1 01 00 [19:02:45]MH_I2C_Read... [19:02:45]Read from MH i2c: D1 01 00 4A 05 00 20 [19:02:45]Write to MH i2c: 01 00 00 4B 05 50 [19:02:45]Write i2c OK [19:02:45]MH_I2C_Read... [19:02:45]OFD Sender: No OFD packet to send [19:02:46]*** Cut start [19:02:46]*** Partial cut [19:02:46]*** CUTSNS_PIN = 1 [19:02:46]*** CUTSNS_PIN = 0 [19:02:46]*** Brake cut motor [19:02:46]Read from MH i2c: 01 [19:02:46]MH_I2C_Read... [19:02:46]*** Stop cut motor [19:02:46]*** Cut end [19:02:46]Read from MH i2c: 01 07 00 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [19:02:46]process_action close_receipt done [19:02:46]requested_data is exist [19:02:46]produce_requested_data [19:02:46]requested_item fm.sn is exist - process it [19:02:46]wFMCommunicate request_size=4 [19:02:46]MH_SAM_APDU [19:02:46]CAPDU: 80 11 00 00 [19:02:46]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [19:02:46]Write i2c OK [19:02:46]MH_I2C_Read... [19:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:46]Read from MH i2c: E2 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 17 00 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [19:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:02:46]wFMCommunicate OK [19:02:46]requested_item fd.num is exist - process it [19:02:46]SAM_PROTO_GetFieldsCounters [19:02:46]wFMCommunicate request_size=4 [19:02:46]MH_SAM_APDU [19:02:46]CAPDU: 80 13 00 00 [19:02:46]Write to MH i2c: E2 08 00 4D 05 80 13 00 00 00 00 00 00 CE [19:02:46]Write i2c OK [19:02:46]MH_I2C_Read... [19:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:46]Read from MH i2c: E2 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 62 00 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 62 00 4D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [19:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:46]wFMCommunicate OK [19:02:46]SAM_PROTO_GetFieldsCounters done [19:02:46]requested_item shift.num is exist - process it [19:02:46]requested_item shift.opened is exist - process it [19:02:46]req_shift_opened [19:02:46]FM_GetShiftState [19:02:46]SAM_PROTO_GetShiftState [19:02:46]wFMCommunicate request_size=4 [19:02:46]MH_SAM_APDU [19:02:46]CAPDU: 80 13 01 00 [19:02:46]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [19:02:46]Write i2c OK [19:02:46]MH_I2C_Read... [19:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:46]Read from MH i2c: E2 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 0E 00 [19:02:46]MH_I2C_Read... [19:02:46]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B1 [19:02:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:02:46]wFMCommunicate OK [19:02:46]SAM_PROTO_GetShiftState done [19:02:46]FM_GetShiftState done [19:02:46]req_shift_opened done [19:02:46]requested_item shift.open_date is exist - process it [19:02:46]req_shift_open_date [19:02:46]req_shift_open_date done [19:02:46]produce_requested_data done [19:02:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164705,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:02:46]process_action_free close_receipt [19:02:46]json_value_free [19:02:46]json_value_free done [19:02:46]process_json_proto returns [19:02:46]Send response to host [19:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164705,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:02:46]free response buf [19:02:46]execute_script done [19:02:46]execute_script returns [19:02:46]free content buf [19:02:46]Sock 9.Close socket [19:02:46]Sock 9.Thread stoped [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:38]accept exits with 7 [19:07:38]New connection [19:07:38]New thread 3067247972 created [19:07:38]Thread 3067104612 joined [19:07:38]Waiting for new connection... [19:07:38] Sock 7.Parse request [19:07:38]Sock 7.Check first char [19:07:38]Sock 7.First char is OK [19:07:38]request: POST /json_proto HTTP/1.0 [19:07:38]Method: POST [19:07:38]URL: /json_proto [19:07:38]Method is POST - this is cgi request [19:07:38]url: /json_proto [19:07:38]query_string will be loaded in cgi processing [19:07:38]execute_cgi json_proto POST (null) [19:07:38]execute_cgi path=json_proto method=POST [19:07:38]POST find Content-Length [19:07:38]Host: 172.17.56.4:8080 [19:07:38]Content-Length: 675 [19:07:38]Content-Type: application/json [19:07:38] [19:07:38]POST finish read [19:07:38]Found Content-Length = 675 [19:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:38]execute_script... [19:07: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)458800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:38]POST & json_proto [19:07:38]process_json_proto [19:07:38]json parsed OK: [19:07:38]protocol is kg_v1.0 [19:07:38]action value=close_receipt [19:07:38]process_action close_receipt [19:07:38]cmd_close_receipt [19:07:38]MH_GetDate [19:07:38]Write to MH i2c: F0 00 00 4F 05 43 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: F0 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: F0 09 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: F0 09 00 4F 05 00 7A D0 92 66 C9 DC B2 64 49 [19:07:38]GetLastDocTimeStamp 1720897363 [19:07:38]current date 1720897658 [19:07:38]FM_GetShiftState [19:07:38]SAM_PROTO_GetShiftState [19:07:38]wFMCommunicate request_size=4 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 13 01 00 [19:07:38]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 0E 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B3 [19:07:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:07:38]wFMCommunicate OK [19:07:38]SAM_PROTO_GetShiftState done [19:07:38]FM_GetShiftState done [19:07:38]opened in 1720831249 [19:07:38]opened+sec_in_day 1720917649 [19:07:38]quantity*price = 72043 [19:07:38]sum+1 = 72045 [19:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 266 13.07.2024 19:07 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164706 ФПД: 170800370751862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190738&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164706&fm=170800370751862&tin=02508201610067®Number=0000000000090829&sum=72000 [19:07:39]StoreToDocumentArchive [19:07:39]shift 446 fd 164706 [19:07:39]save to /storage/0446/doc_00164706 [19:07:39]save last doc name /storage/0446/doc_00164706 to /storage/kkm_last_doc_name [19:07:39]save OK [19:07:39]Clear old archive folders... [19:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:07:39]tlvbuf is 01E3F020 [19:07:39]SAM_PROTO_ClearQueue [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 09 00 00 [19:07:39]Write to MH i2c: E2 08 00 5D 05 80 09 00 00 00 00 00 00 D4 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [19:07:39]RAPDU: 90 00 [19:07:39]wFMCommunicate OK [19:07:39]SAM_PROTO_ClearQueue done [19:07:39]KKMCreateOFDPacket [19:07:39]OFDProtocolAddRootSTLVToBuf [19:07:39]FM_MakeSignedData [19:07:39]FM_MakeSignedData [19:07:39]SAM_PROTO_SignData [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 0D 01 02 [19:07:39]Write to MH i2c: E2 08 00 5E 05 80 0D 01 02 00 00 00 00 DC [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [19:07:39]RAPDU: 90 00 [19:07:39]wFMCommunicate OK [19:07:39]wFMCommunicate request_size=255 [19:07:39]MH_SAM_APDU [19:07: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 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7A D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 83 02 00 35 04 06 00 9B 57 8F 6D [19:07:39]Write to MH i2c: E2 02 01 5F 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 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7A D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 83 02 00 35 04 06 00 9B 57 8F 6D 00 00 57 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [19:07:39]RAPDU: 90 00 [19:07:39]wFMCommunicate OK [19:07:39]wFMCommunicate request_size=7 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 0D 02 02 02 19 76 [19:07:39]Write to MH i2c: E2 0A 00 60 05 80 0D 02 02 02 00 19 76 00 00 72 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [19:07:39]RAPDU: 90 00 [19:07:39]wFMCommunicate OK [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 0D 03 02 [19:07:39]Write to MH i2c: E2 08 00 61 05 80 0D 03 02 00 00 00 00 E1 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0B 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0B 00 61 05 00 57 61 DA 54 B7 01 23 69 90 00 0C [19:07:39]RAPDU: 57 61 DA 54 B7 01 23 69 90 00 [19:07:39]wFMCommunicate OK [19:07:39]SAM_PROTO_SignData done [19:07:39]FM_MakeSignedData done [19:07:39]CreateOFDProtocolMessage [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 11 00 00 [19:07:39]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 17 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [19:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:07:39]wFMCommunicate OK [19:07:39]CreateOFDProtocolMessage done [19:07:39]OFDSenderStorePacket 164706 [19:07:39]StoreOFDPacket docnum=164706 [19:07:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9A 1B 04 01 25 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7A D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 83 02 00 35 04 06 00 9B 57 8F 6D 19 76 57 61 DA 54 B7 01 23 69 [19:07:39]CheckFolder [19:07:39]dirname=/storage/ofd_packets [19:07:39]CheckFolder done [19:07:39]ProducePacketName [19:07:39]name=ofd_packets/00164706 [19:07:39]NVStorageSaveData ofd_packets/00164706 [19:07:39]File name is /storage/ofd_packets/00164706 [19:07:39]Write 298 bytes [19:07:39]NVStorageSaveData done [19:07:39]OFDSenderStorePacket done [19:07:39]KKMCreateOFDPacket done [19:07:39]NVStorageSaveData kkm_last_timestamp [19:07:39]File name is /storage/kkm_last_timestamp [19:07:39]Write 4 bytes [19:07:39]NVStorageSaveData done [19:07:39]ExternCall_PrintAddStr [19:07:39]wPrintStart [19:07:39]Write to MH i2c: 01 00 00 63 05 68 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 07 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [19:07:39]RasterBufferAndPrint [19:07:39]line Счет N : (1)458800 [19:07:39]line ИНН: 02508201610067 [19:07:39]line Контрольно-Кассовый Чек [19:07:39]line ПРОДАЖА [19:07:39]line ТРК (МРК, ГНК) : 11 [19:07:39]line Товар: 2710194210 [19:07:39]line ДТ-К-5 [19:07:39]line 10.020 * 71.90 [19:07:39]line = 720.44 [19:07:39]line НДС 12% НСП 1% [19:07:39]line > о реализуемом товаре [19:07:39]line ОКРУГЛЕНИЕ: -0.44 [19:07:39]line ИТОГО: 720.00 [19:07:39]line Внесено: 720.00 [19:07:39]line СДАЧА: 0.00 [19:07:39]line НСП 1% : 6.38 [19:07:39]line НДС 12% : 76.51 [19:07:39]line Наличными: 720.00 [19:07:39]line Безнал.: 0.00 [19:07:39]line Место: АЗС № 72 "Партнер Нефть" [19:07:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:07:39]line СНО: Общий режим [19:07:39]line Чек 266 13.07.2024 19:07 [19:07:39]line Смена: 446 ФФД: 1.0 [19:07:39]line ЗНМ: 0300000160 [19:07:39]line РНМ: 0000000000090829 [19:07:39]line Версия ККМ: 001 [19:07:39]line ФМ: 0000000000874718 [19:07:39]line ФД: 164706 [19:07:39]line ФПД: 170800370751862 [19:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190738&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164706&fm=170800370751862&tin=02508201610067®Number=0000000000090829&sum=72000 [19:07:40]OFD Sender: Processing packet 164706 [packets to send 104, broken 103] [19:07:40]ProducePacketName [19:07:40]name=ofd_packets/00164706 [19:07:40]OFD Sender: To server: pG, [19:07:40]CommunicateWithHost lk.salyk.kg:30040 [19:07:40]ConnectInit lk.salyk.kg [19:07:40]written 0, free lines is 4095 [19:07:40]Connected sock=10 [19:07:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9A 1B 04 01 25 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 7A D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 83 02 00 35 04 06 00 9B 57 8F 6D 19 76 57 61 DA 54 B7 01 23 69 [19:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 55 0A 47 00 9F 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 34 37 31 38 10 04 04 00 62 83 02 00 F4 03 04 00 0A 77 92 66 B6 04 01 00 00 60 FD C6 21 FF 81 D3 96 [19:07:40]CommunicateWithHost err = 0 [19:07:40]CheckOFDResponse [19:07:40]1017 (14) - 77093643461234 [19:07:40]1041 (16) - 0000000000874718 [19:07:40]1040 (4) - 164706 [19:07:40]1012 (4) - 13.07.2024 12:46 [19:07:40]1206 (1) - 0 [19:07:40]OFD Sender: Remove packet 164706 [19:07:40]ProducePacketName [19:07:40]name=ofd_packets/00164706 [19:07:40]NVStorageDeleteData [19:07:40]Write to MH i2c: 01 00 00 8D 05 92 [19:07:40]Write i2c OK [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: 01 [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: 01 07 00 [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 02 0D A8 [19:07:40]RasterBufferAndPrint [19:07:40]line [19:07:40]line [19:07:40]line [19:07:40]line [19:07:40]line [19:07:40]written 0, free lines is 3336 [19:07:40]MH_Cut [19:07:40]Write to MH i2c: D1 01 00 94 05 01 6B [19:07:40]Write i2c OK [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: D1 [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: D1 01 00 [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: D1 01 00 94 05 00 6A [19:07:40]Write to MH i2c: 01 00 00 95 05 9A [19:07:40]Write i2c OK [19:07:40]MH_I2C_Read... [19:07:40]OFD Sender: No OFD packet to send [19:07:41]*** Cut start [19:07:41]*** Partial cut [19:07:41]*** CUTSNS_PIN = 1 [19:07:41]*** CUTSNS_PIN = 0 [19:07:41]*** Brake cut motor [19:07:41]Read from MH i2c: 01 [19:07:41]MH_I2C_Read... [19:07:41]*** Stop cut motor [19:07:41]*** Cut end [19:07:41]Read from MH i2c: 01 07 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [19:07:41]process_action close_receipt done [19:07:41]requested_data is exist [19:07:41]produce_requested_data [19:07:41]requested_item fm.sn is exist - process it [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 11 00 00 [19:07:41]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [19:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:07:41]wFMCommunicate OK [19:07:41]requested_item fd.num is exist - process it [19:07:41]SAM_PROTO_GetFieldsCounters [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 13 00 00 [19:07:41]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:42]Read from MH i2c: E2 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: E2 62 00 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: E2 62 00 97 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:42]wFMCommunicate OK [19:07:42]SAM_PROTO_GetFieldsCounters done [19:07:42]requested_item shift.num is exist - process it [19:07:42]requested_item shift.opened is exist - process it [19:07:42]req_shift_opened [19:07:42]FM_GetShiftState [19:07:42]SAM_PROTO_GetShiftState [19:07:42]wFMCommunicate request_size=4 [19:07:42]MH_SAM_APDU [19:07:42]CAPDU: 80 13 01 00 [19:07:42]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [19:07:42]Write i2c OK [19:07:42]MH_I2C_Read... [19:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:42]Read from MH i2c: E2 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: E2 0E 00 [19:07:42]MH_I2C_Read... [19:07:42]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FB [19:07:42]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:07:42]wFMCommunicate OK [19:07:42]SAM_PROTO_GetShiftState done [19:07:42]FM_GetShiftState done [19:07:42]req_shift_opened done [19:07:42]requested_item shift.open_date is exist - process it [19:07:42]req_shift_open_date [19:07:42]req_shift_open_date done [19:07:42]produce_requested_data done [19:07:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164706,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:07:42]process_action_free close_receipt [19:07:42]json_value_free [19:07:42]json_value_free done [19:07:42]process_json_proto returns [19:07:42]Send response to host [19:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164706,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:07:42]free response buf [19:07:42]execute_script done [19:07:42]execute_script returns [19:07:42]free content buf [19:07:42]Sock 7.Close socket [19:07:42]Sock 7.Thread stoped [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:01]accept exits with 9 [19:09:01]New connection [19:09:01]New thread 3067104612 created [19:09:01]Thread 3067247972 joined [19:09:01]Waiting for new connection... [19:09:01] Sock 9.Parse request [19:09:01]Sock 9.Check first char [19:09:01]Sock 9.First char is OK [19:09:01]request: POST /json_proto HTTP/1.0 [19:09:01]Method: POST [19:09:01]URL: /json_proto [19:09:01]Method is POST - this is cgi request [19:09:01]url: /json_proto [19:09:01]query_string will be loaded in cgi processing [19:09:01]execute_cgi json_proto POST (null) [19:09:01]execute_cgi path=json_proto method=POST [19:09:01]POST find Content-Length [19:09:01]Host: 172.17.56.4:8080 [19:09:01]Content-Length: 678 [19:09:01]Content-Type: application/json [19:09:01] [19:09:01]POST finish read [19:09:01]Found Content-Length = 678 [19:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [19:09:01]execute_script... [19:09: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)458801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [19:09:01]POST & json_proto [19:09:01]process_json_proto [19:09:01]json parsed OK: [19:09:01]protocol is kg_v1.0 [19:09:01]action value=close_receipt [19:09:01]process_action close_receipt [19:09:01]cmd_close_receipt [19:09:01]MH_GetDate [19:09:01]Write to MH i2c: F0 00 00 99 05 8D [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 09 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: F0 09 00 99 05 00 CD D0 92 66 C9 DC B2 64 E6 [19:09:01]GetLastDocTimeStamp 1720897658 [19:09:01]current date 1720897741 [19:09:01]FM_GetShiftState [19:09:01]SAM_PROTO_GetShiftState [19:09:01]wFMCommunicate request_size=4 [19:09:01]MH_SAM_APDU [19:09:01]CAPDU: 80 13 01 00 [19:09:01]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [19:09:01]Write i2c OK [19:09:01]MH_I2C_Read... [19:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:01]Read from MH i2c: E2 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0E 00 [19:09:01]MH_I2C_Read... [19:09:01]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FD [19:09:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:09:01]wFMCommunicate OK [19:09:01]SAM_PROTO_GetShiftState done [19:09:01]FM_GetShiftState done [19:09:01]opened in 1720831249 [19:09:01]opened+sec_in_day 1720917649 [19:09:01]quantity*price = 70011 [19:09:01]sum+1 = 70012 [19:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 267 13.07.2024 19:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164707 ФПД: 110800834727353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164707&fm=110800834727353&tin=02508201610067®Number=0000000000090829&sum=70000 [19:09:02]StoreToDocumentArchive [19:09:02]shift 446 fd 164707 [19:09:02]save to /storage/0446/doc_00164707 [19:09:02]save last doc name /storage/0446/doc_00164707 to /storage/kkm_last_doc_name [19:09:02]save OK [19:09:02]Clear old archive folders... [19:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:02]tlvbuf is 01E56270 [19:09:02]SAM_PROTO_ClearQueue [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 09 00 00 [19:09:02]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [19:09:02]RAPDU: 90 00 [19:09:02]wFMCommunicate OK [19:09:02]SAM_PROTO_ClearQueue done [19:09:02]KKMCreateOFDPacket [19:09:02]OFDProtocolAddRootSTLVToBuf [19:09:02]FM_MakeSignedData [19:09:02]FM_MakeSignedData [19:09:02]SAM_PROTO_SignData [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 0D 01 02 [19:09:02]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [19:09:02]RAPDU: 90 00 [19:09:02]wFMCommunicate OK [19:09:02]wFMCommunicate request_size=255 [19:09:02]MH_SAM_APDU [19:09: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 CD D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 83 02 00 35 04 06 00 64 [19:09:02]Write to MH i2c: E2 02 01 A9 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 CD D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 83 02 00 35 04 06 00 64 00 00 8F [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [19:09:02]RAPDU: 90 00 [19:09:02]wFMCommunicate OK [19:09:02]wFMCommunicate request_size=10 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 0D 02 02 05 C5 D4 65 0D B9 [19:09:02]Write to MH i2c: E2 0D 00 AA 05 80 0D 02 02 05 00 C5 D4 65 0D B9 00 00 F7 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [19:09:02]RAPDU: 90 00 [19:09:02]wFMCommunicate OK [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 0D 03 02 [19:09:02]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0B 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 0B 00 AB 05 00 57 E1 31 BB 60 E5 B1 EC 90 00 32 [19:09:02]RAPDU: 57 E1 31 BB 60 E5 B1 EC 90 00 [19:09:02]wFMCommunicate OK [19:09:02]SAM_PROTO_SignData done [19:09:02]FM_MakeSignedData done [19:09:02]CreateOFDProtocolMessage [19:09:02]wFMCommunicate request_size=4 [19:09:02]MH_SAM_APDU [19:09:02]CAPDU: 80 11 00 00 [19:09:02]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:02]Read from MH i2c: E2 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 17 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [19:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:09:02]wFMCommunicate OK [19:09:02]CreateOFDProtocolMessage done [19:09:02]OFDSenderStorePacket 164707 [19:09:02]StoreOFDPacket docnum=164707 [19:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B A0 07 01 2C 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 CD D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 83 02 00 35 04 06 00 64 C5 D4 65 0D B9 57 E1 31 BB 60 E5 B1 EC [19:09:02]CheckFolder [19:09:02]dirname=/storage/ofd_packets [19:09:02]CheckFolder done [19:09:02]ProducePacketName [19:09:02]name=ofd_packets/00164707 [19:09:02]NVStorageSaveData ofd_packets/00164707 [19:09:02]File name is /storage/ofd_packets/00164707 [19:09:02]Write 301 bytes [19:09:02]NVStorageSaveData done [19:09:02]OFDSenderStorePacket done [19:09:02]KKMCreateOFDPacket done [19:09:02]NVStorageSaveData kkm_last_timestamp [19:09:02]File name is /storage/kkm_last_timestamp [19:09:02]Write 4 bytes [19:09:02]NVStorageSaveData done [19:09:02]OFD Sender: Processing packet 164707 [packets to send 104, broken 103] [19:09:02]ProducePacketName [19:09:02]name=ofd_packets/00164707 [19:09:02]OFD Sender: To server: pG, [19:09:02]CommunicateWithHost lk.salyk.kg:30040 [19:09:02]ConnectInit lk.salyk.kg [19:09:02]ExternCall_PrintAddStr [19:09:02]wPrintStart [19:09:02]Write to MH i2c: 01 00 00 AD 05 B2 [19:09:02]Write i2c OK [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 07 00 [19:09:02]MH_I2C_Read... [19:09:02]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [19:09:02]RasterBufferAndPrint [19:09:02]line Счет N : (1)458801 [19:09:02]line ИНН: 02508201610067 [19:09:02]line Контрольно-Кассовый Чек [19:09:02]line ПРОДАЖА [19:09:02]line ТРК (МРК, ГНК) : 22 [19:09:02]line Товар: 2710124130 [19:09:02]line Аи-92-К-5 [19:09:02]line 10.640 * 65.80 [19:09:02]line = 700.11 [19:09:02]line НДС 12% НСП 1% [19:09:02]line > о реализуемом товаре [19:09:02]line ОКРУГЛЕНИЕ: -0.11 [19:09:02]line ИТОГО: 700.00 [19:09:02]line Внесено: 700.00 [19:09:02]line СДАЧА: 0.00 [19:09:02]line НСП 1% : 6.20 [19:09:02]line НДС 12% : 74.35 [19:09:02]line Наличными: 700.00 [19:09:02]line Безнал.: 0.00 [19:09:02]line Место: АЗС № 72 "Партнер Нефть" [19:09:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:09:02]line СНО: Общий режим [19:09:02]line Чек 267 13.07.2024 19:09 [19:09:02]line Смена: 446 ФФД: 1.0 [19:09:02]line ЗНМ: 0300000160 [19:09:02]line РНМ: 0000000000090829 [19:09:02]line Версия ККМ: 001 [19:09:02]line ФМ: 0000000000874718 [19:09:02]line ФД: 164707 [19:09:02]line ФПД: 110800834727353 [19:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164707&fm=110800834727353&tin=02508201610067®Number=0000000000090829&sum=70000 [19:09:03]Connected sock=11 [19:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B A0 07 01 2C 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 CD D0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 83 02 00 35 04 06 00 64 C5 D4 65 0D B9 57 E1 31 BB 60 E5 B1 EC [19:09:03]written 0, free lines is 4095 [19:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 3F 47 00 23 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 83 02 00 F4 03 04 00 5D 77 92 66 B6 04 01 00 00 55 FF 92 A8 14 96 4C F8 [19:09:03]CommunicateWithHost err = 0 [19:09:03]CheckOFDResponse [19:09:03]1017 (14) - 77093643461234 [19:09:03]1041 (16) - 0000000000874718 [19:09:03]1040 (4) - 164707 [19:09:03]1012 (4) - 13.07.2024 12:47 [19:09:03]1206 (1) - 0 [19:09:03]OFD Sender: Remove packet 164707 [19:09:03]ProducePacketName [19:09:03]name=ofd_packets/00164707 [19:09:03]NVStorageDeleteData [19:09:03]Write to MH i2c: 01 00 00 D7 05 DC [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 07 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 F7 0C E6 [19:09:03]RasterBufferAndPrint [19:09:03]line [19:09:03]line [19:09:03]line [19:09:03]line [19:09:03]line [19:09:03]written 0, free lines is 3326 [19:09:03]MH_Cut [19:09:03]Write to MH i2c: D1 01 00 DE 05 01 B5 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: D1 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: D1 01 00 [19:09:03]MH_I2C_Read... [19:09:03]Read from MH i2c: D1 01 00 DE 05 00 B4 [19:09:03]Write to MH i2c: 01 00 00 DF 05 E4 [19:09:03]Write i2c OK [19:09:03]MH_I2C_Read... [19:09:03]OFD Sender: No OFD packet to send [19:09:04]*** Cut start [19:09:04]*** Partial cut [19:09:04]*** CUTSNS_PIN = 1 [19:09:04]*** CUTSNS_PIN = 0 [19:09:04]*** Brake cut motor [19:09:04]Read from MH i2c: 01 [19:09:04]MH_I2C_Read... [19:09:04]*** Stop cut motor [19:09:04]*** Cut end [19:09:04]Read from MH i2c: 01 07 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [19:09:04]process_action close_receipt done [19:09:04]requested_data is exist [19:09:04]produce_requested_data [19:09:04]requested_item fm.sn is exist - process it [19:09:04]wFMCommunicate request_size=4 [19:09:04]MH_SAM_APDU [19:09:04]CAPDU: 80 11 00 00 [19:09:04]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:04]Read from MH i2c: E2 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 17 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [19:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:09:04]wFMCommunicate OK [19:09:04]requested_item fd.num is exist - process it [19:09:04]SAM_PROTO_GetFieldsCounters [19:09:04]wFMCommunicate request_size=4 [19:09:04]MH_SAM_APDU [19:09:04]CAPDU: 80 13 00 00 [19:09:04]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 62 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 62 00 E1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [19:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:05]wFMCommunicate OK [19:09:05]SAM_PROTO_GetFieldsCounters done [19:09:05]requested_item shift.num is exist - process it [19:09:05]requested_item shift.opened is exist - process it [19:09:05]req_shift_opened [19:09:05]FM_GetShiftState [19:09:05]SAM_PROTO_GetShiftState [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 13 01 00 [19:09:05]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 0E 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 45 [19:09:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:09:05]wFMCommunicate OK [19:09:05]SAM_PROTO_GetShiftState done [19:09:05]FM_GetShiftState done [19:09:05]req_shift_opened done [19:09:05]requested_item shift.open_date is exist - process it [19:09:05]req_shift_open_date [19:09:05]req_shift_open_date done [19:09:05]produce_requested_data done [19:09:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164707,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:09:05]process_action_free close_receipt [19:09:05]json_value_free [19:09:05]json_value_free done [19:09:05]process_json_proto returns [19:09:05]Send response to host [19:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164707,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:09:05]free response buf [19:09:05]execute_script done [19:09:05]execute_script returns [19:09:05]free content buf [19:09:05]Sock 9.Close socket [19:09:05]Sock 9.Thread stoped [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:26]accept exits with 7 [19:16:26]New connection [19:16:26]New thread 3067247972 created [19:16:26]Thread 3067104612 joined [19:16:26]Waiting for new connection... [19:16:26] Sock 7.Parse request [19:16:26]Sock 7.Check first char [19:16:26]Sock 7.First char is OK [19:16:26]request: POST /json_proto HTTP/1.0 [19:16:26]Method: POST [19:16:26]URL: /json_proto [19:16:26]Method is POST - this is cgi request [19:16:26]url: /json_proto [19:16:26]query_string will be loaded in cgi processing [19:16:26]execute_cgi json_proto POST (null) [19:16:26]execute_cgi path=json_proto method=POST [19:16:26]POST find Content-Length [19:16:26]Host: 172.17.56.4:8080 [19:16:26]Content-Length: 677 [19:16:26]Content-Type: application/json [19:16:26] [19:16:26]POST finish read [19:16:26]Found Content-Length = 677 [19:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:26]execute_script... [19:16: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)458802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:26]POST & json_proto [19:16:26]process_json_proto [19:16:26]json parsed OK: [19:16:26]protocol is kg_v1.0 [19:16:26]action value=close_receipt [19:16:26]process_action close_receipt [19:16:26]cmd_close_receipt [19:16:26]MH_GetDate [19:16:26]Write to MH i2c: F0 00 00 E3 05 D7 [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: F0 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: F0 09 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: F0 09 00 E3 05 00 8A D2 92 66 C9 DC B2 64 EF [19:16:26]GetLastDocTimeStamp 1720897741 [19:16:26]current date 1720898186 [19:16:26]FM_GetShiftState [19:16:26]SAM_PROTO_GetShiftState [19:16:26]wFMCommunicate request_size=4 [19:16:26]MH_SAM_APDU [19:16:26]CAPDU: 80 13 01 00 [19:16:26]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [19:16:26]Write i2c OK [19:16:26]MH_I2C_Read... [19:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:26]Read from MH i2c: E2 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 0E 00 [19:16:26]MH_I2C_Read... [19:16:26]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 47 [19:16:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:16:26]wFMCommunicate OK [19:16:26]SAM_PROTO_GetShiftState done [19:16:26]FM_GetShiftState done [19:16:26]opened in 1720831249 [19:16:26]opened+sec_in_day 1720917649 [19:16:26]quantity*price = 50008 [19:16:26]sum+1 = 50009 [19:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 268 13.07.2024 19:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164708 ФПД: 20868419103907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191626&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164708&fm=20868419103907&tin=02508201610067®Number=0000000000090829&sum=50000 [19:16:27]StoreToDocumentArchive [19:16:27]shift 446 fd 164708 [19:16:27]save to /storage/0446/doc_00164708 [19:16:27]save last doc name /storage/0446/doc_00164708 to /storage/kkm_last_doc_name [19:16:27]save OK [19:16:27]Clear old archive folders... [19:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:27]tlvbuf is 01E3E230 [19:16:27]SAM_PROTO_ClearQueue [19:16:27]wFMCommunicate request_size=4 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 09 00 00 [19:16:27]Write to MH i2c: E2 08 00 F1 05 80 09 00 00 00 00 00 00 68 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [19:16:27]RAPDU: 90 00 [19:16:27]wFMCommunicate OK [19:16:27]SAM_PROTO_ClearQueue done [19:16:27]KKMCreateOFDPacket [19:16:27]OFDProtocolAddRootSTLVToBuf [19:16:27]FM_MakeSignedData [19:16:27]FM_MakeSignedData [19:16:27]SAM_PROTO_SignData [19:16:27]wFMCommunicate request_size=4 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 0D 01 02 [19:16:27]Write to MH i2c: E2 08 00 F2 05 80 0D 01 02 00 00 00 00 70 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [19:16:27]RAPDU: 90 00 [19:16:27]wFMCommunicate OK [19:16:27]wFMCommunicate request_size=255 [19:16:27]MH_SAM_APDU [19:16: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 8A D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 83 02 00 35 04 06 00 12 [19:16:27]Write to MH i2c: E2 02 01 F3 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 8A D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 83 02 00 35 04 06 00 12 00 00 04 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [19:16:27]RAPDU: 90 00 [19:16:27]wFMCommunicate OK [19:16:27]wFMCommunicate request_size=10 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 0D 02 02 05 FA CE B5 2C A3 [19:16:27]Write to MH i2c: E2 0D 00 F4 05 80 0D 02 02 05 00 FA CE B5 2C A3 00 00 C9 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [19:16:27]RAPDU: 90 00 [19:16:27]wFMCommunicate OK [19:16:27]wFMCommunicate request_size=4 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 0D 03 02 [19:16:27]Write to MH i2c: E2 08 00 F5 05 80 0D 03 02 00 00 00 00 75 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 0B 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 0B 00 F5 05 00 44 68 0F 74 CC 55 58 EF 90 00 0D [19:16:27]RAPDU: 44 68 0F 74 CC 55 58 EF 90 00 [19:16:27]wFMCommunicate OK [19:16:27]SAM_PROTO_SignData done [19:16:27]FM_MakeSignedData done [19:16:27]CreateOFDProtocolMessage [19:16:27]wFMCommunicate request_size=4 [19:16:27]MH_SAM_APDU [19:16:27]CAPDU: 80 11 00 00 [19:16:27]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:27]Read from MH i2c: E2 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 17 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [19:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:16:27]wFMCommunicate OK [19:16:27]CreateOFDProtocolMessage done [19:16:27]OFDSenderStorePacket 164708 [19:16:27]StoreOFDPacket docnum=164708 [19:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 84 1D 07 01 0C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 8A D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 83 02 00 35 04 06 00 12 FA CE B5 2C A3 44 68 0F 74 CC 55 58 EF [19:16:27]CheckFolder [19:16:27]dirname=/storage/ofd_packets [19:16:27]CheckFolder done [19:16:27]ProducePacketName [19:16:27]name=ofd_packets/00164708 [19:16:27]NVStorageSaveData ofd_packets/00164708 [19:16:27]File name is /storage/ofd_packets/00164708 [19:16:27]Write 301 bytes [19:16:27]NVStorageSaveData done [19:16:27]OFDSenderStorePacket done [19:16:27]KKMCreateOFDPacket done [19:16:27]NVStorageSaveData kkm_last_timestamp [19:16:27]File name is /storage/kkm_last_timestamp [19:16:27]Write 4 bytes [19:16:27]NVStorageSaveData done [19:16:27]ExternCall_PrintAddStr [19:16:27]wPrintStart [19:16:27]Write to MH i2c: 01 00 00 F7 05 FC [19:16:27]Write i2c OK [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 07 00 [19:16:27]MH_I2C_Read... [19:16:27]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [19:16:27]RasterBufferAndPrint [19:16:27]line Счет N : (1)458802 [19:16:27]line ИНН: 02508201610067 [19:16:27]line Контрольно-Кассовый Чек [19:16:27]line ПРОДАЖА [19:16:27]line ТРК (МРК, ГНК) : 12 [19:16:27]line Товар: 2710124130 [19:16:27]line Аи-92-К-5 [19:16:27]line 7.600 * 65.80 [19:16:27]line = 500.08 [19:16:27]line НДС 12% НСП 1% [19:16:27]line > о реализуемом товаре [19:16:27]line ОКРУГЛЕНИЕ: -0.08 [19:16:27]line ИТОГО: 500.00 [19:16:27]line Внесено: 500.00 [19:16:27]line СДАЧА: 0.00 [19:16:27]line НСП 1% : 4.42 [19:16:27]line НДС 12% : 53.11 [19:16:27]line Наличными: 500.00 [19:16:27]line Безнал.: 0.00 [19:16:27]line Место: АЗС № 72 "Партнер Нефть" [19:16:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:16:27]line СНО: Общий режим [19:16:27]line Чек 268 13.07.2024 19:16 [19:16:27]line Смена: 446 ФФД: 1.0 [19:16:27]line ЗНМ: 0300000160 [19:16:27]line РНМ: 0000000000090829 [19:16:27]line Версия ККМ: 001 [19:16:27]line ФМ: 0000000000874718 [19:16:27]line ФД: 164708 [19:16:27]line ФПД: 20868419103907 [19:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191626&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164708&fm=20868419103907&tin=02508201610067®Number=0000000000090829&sum=50000 [19:16:28]written 0, free lines is 4095 [19:16:28]OFD Sender: Processing packet 164708 [packets to send 104, broken 103] [19:16:28]ProducePacketName [19:16:28]name=ofd_packets/00164708 [19:16:28]OFD Sender: To server: pG, [19:16:28]CommunicateWithHost lk.salyk.kg:30040 [19:16:28]ConnectInit lk.salyk.kg [19:16:28]Connected sock=10 [19:16:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 84 1D 07 01 0C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 8A D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 83 02 00 35 04 06 00 12 FA CE B5 2C A3 44 68 0F 74 CC 55 58 EF [19:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9F 2D 47 00 ED 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 34 37 31 38 10 04 04 00 64 83 02 00 F4 03 04 00 1B 79 92 66 B6 04 01 00 00 EA 5C D4 43 B1 33 A6 37 [19:16:28]CommunicateWithHost err = 0 [19:16:28]CheckOFDResponse [19:16:28]1017 (14) - 77093643461234 [19:16:28]1041 (16) - 0000000000874718 [19:16:28]1040 (4) - 164708 [19:16:28]1012 (4) - 13.07.2024 12:54 [19:16:28]1206 (1) - 0 [19:16:28]OFD Sender: Remove packet 164708 [19:16:28]ProducePacketName [19:16:28]name=ofd_packets/00164708 [19:16:28]NVStorageDeleteData [19:16:28]Write to MH i2c: 01 00 00 21 06 27 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: 01 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: 01 07 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 F3 0C 2D [19:16:28]RasterBufferAndPrint [19:16:28]line [19:16:28]line [19:16:28]line [19:16:28]line [19:16:28]line [19:16:28]written 0, free lines is 3323 [19:16:28]MH_Cut [19:16:28]Write to MH i2c: D1 01 00 28 06 01 00 [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: D1 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: D1 01 00 [19:16:28]MH_I2C_Read... [19:16:28]Read from MH i2c: D1 01 00 28 06 00 FF [19:16:28]Write to MH i2c: 01 00 00 29 06 2F [19:16:28]Write i2c OK [19:16:28]MH_I2C_Read... [19:16:29]OFD Sender: No OFD packet to send [19:16:29]*** Cut start [19:16:29]*** Partial cut [19:16:29]*** CUTSNS_PIN = 1 [19:16:29]*** CUTSNS_PIN = 0 [19:16:29]*** Brake cut motor [19:16:29]Read from MH i2c: 01 [19:16:29]MH_I2C_Read... [19:16:29]*** Stop cut motor [19:16:29]*** Cut end [19:16:29]Read from MH i2c: 01 07 00 [19:16:29]MH_I2C_Read... [19:16:29]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [19:16:29]process_action close_receipt done [19:16:29]requested_data is exist [19:16:29]produce_requested_data [19:16:29]requested_item fm.sn is exist - process it [19:16:29]wFMCommunicate request_size=4 [19:16:29]MH_SAM_APDU [19:16:29]CAPDU: 80 11 00 00 [19:16:29]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [19:16:29]Write i2c OK [19:16:29]MH_I2C_Read... [19:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:30]Read from MH i2c: E2 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 17 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [19:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:16:30]wFMCommunicate OK [19:16:30]requested_item fd.num is exist - process it [19:16:30]SAM_PROTO_GetFieldsCounters [19:16:30]wFMCommunicate request_size=4 [19:16:30]MH_SAM_APDU [19:16:30]CAPDU: 80 13 00 00 [19:16:30]Write to MH i2c: E2 08 00 2B 06 80 13 00 00 00 00 00 00 AD [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:30]Read from MH i2c: E2 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 62 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 62 00 2B 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [19:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:30]wFMCommunicate OK [19:16:30]SAM_PROTO_GetFieldsCounters done [19:16:30]requested_item shift.num is exist - process it [19:16:30]requested_item shift.opened is exist - process it [19:16:30]req_shift_opened [19:16:30]FM_GetShiftState [19:16:30]SAM_PROTO_GetShiftState [19:16:30]wFMCommunicate request_size=4 [19:16:30]MH_SAM_APDU [19:16:30]CAPDU: 80 13 01 00 [19:16:30]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [19:16:30]Write i2c OK [19:16:30]MH_I2C_Read... [19:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:30]Read from MH i2c: E2 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 0E 00 [19:16:30]MH_I2C_Read... [19:16:30]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 90 [19:16:30]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:16:30]wFMCommunicate OK [19:16:30]SAM_PROTO_GetShiftState done [19:16:30]FM_GetShiftState done [19:16:30]req_shift_opened done [19:16:30]requested_item shift.open_date is exist - process it [19:16:30]req_shift_open_date [19:16:30]req_shift_open_date done [19:16:30]produce_requested_data done [19:16:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164708,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:16:30]process_action_free close_receipt [19:16:30]json_value_free [19:16:30]json_value_free done [19:16:30]process_json_proto returns [19:16:30]Send response to host [19:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164708,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:16:30]free response buf [19:16:30]execute_script done [19:16:30]execute_script returns [19:16:30]free content buf [19:16:30]Sock 7.Close socket [19:16:30]Sock 7.Thread stoped [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:22]accept exits with 9 [19:17:22]New connection [19:17:22]New thread 3067104612 created [19:17:22]Thread 3067247972 joined [19:17:22]Waiting for new connection... [19:17:22] Sock 9.Parse request [19:17:22]Sock 9.Check first char [19:17:22]Sock 9.First char is OK [19:17:22]request: POST /json_proto HTTP/1.0 [19:17:22]Method: POST [19:17:22]URL: /json_proto [19:17:22]Method is POST - this is cgi request [19:17:22]url: /json_proto [19:17:22]query_string will be loaded in cgi processing [19:17:22]execute_cgi json_proto POST (null) [19:17:22]execute_cgi path=json_proto method=POST [19:17:22]POST find Content-Length [19:17:22]Host: 172.17.56.4:8080 [19:17:22]Content-Length: 677 [19:17:22]Content-Type: application/json [19:17:22] [19:17:22]POST finish read [19:17:22]Found Content-Length = 677 [19:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:22]execute_script... [19:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:22]POST & json_proto [19:17:22]process_json_proto [19:17:22]json parsed OK: [19:17:22]protocol is kg_v1.0 [19:17:22]action value=close_receipt [19:17:22]process_action close_receipt [19:17:22]cmd_close_receipt [19:17:22]MH_GetDate [19:17:22]Write to MH i2c: F0 00 00 2D 06 22 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 2D 06 00 C2 D2 92 66 C9 DC B2 64 72 [19:17:22]GetLastDocTimeStamp 1720898186 [19:17:22]current date 1720898242 [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [19:17:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetShiftState done [19:17:22]FM_GetShiftState done [19:17:22]opened in 1720831249 [19:17:22]opened+sec_in_day 1720917649 [19:17:22]quantity*price = 30004 [19:17:22]sum+1 = 30006 [19:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 269 13.07.2024 19:17 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164709 ФПД: 101241085749769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164709&fm=101241085749769&tin=02508201610067®Number=0000000000090829&sum=30000 [19:17:23]StoreToDocumentArchive [19:17:23]shift 446 fd 164709 [19:17:23]save to /storage/0446/doc_00164709 [19:17:23]save last doc name /storage/0446/doc_00164709 to /storage/kkm_last_doc_name [19:17:23]save OK [19:17:23]Clear old archive folders... [19:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:23]tlvbuf is 01E22C40 [19:17:23]SAM_PROTO_ClearQueue [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 09 00 00 [19:17:23]Write to MH i2c: E2 08 00 3B 06 80 09 00 00 00 00 00 00 B3 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_ClearQueue done [19:17:23]KKMCreateOFDPacket [19:17:23]OFDProtocolAddRootSTLVToBuf [19:17:23]FM_MakeSignedData [19:17:23]FM_MakeSignedData [19:17:23]SAM_PROTO_SignData [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 01 02 [19:17:23]Write to MH i2c: E2 08 00 3C 06 80 0D 01 02 00 00 00 00 BB [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=255 [19:17:23]MH_SAM_APDU [19:17: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 C2 D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 83 02 00 35 04 06 00 5C [19:17:23]Write to MH i2c: E2 02 01 3D 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 C2 D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 83 02 00 35 04 06 00 5C 00 00 94 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=10 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 02 02 05 14 06 F3 EA 09 [19:17:23]Write to MH i2c: E2 0D 00 3E 06 80 0D 02 02 05 00 14 06 F3 EA 09 00 00 C8 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 03 02 [19:17:23]Write to MH i2c: E2 08 00 3F 06 80 0D 03 02 00 00 00 00 C0 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0B 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0B 00 3F 06 00 66 D1 26 05 91 9C 3F D0 90 00 5F [19:17:23]RAPDU: 66 D1 26 05 91 9C 3F D0 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_SignData done [19:17:23]FM_MakeSignedData done [19:17:23]CreateOFDProtocolMessage [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 11 00 00 [19:17:23]Write to MH i2c: E2 08 00 40 06 80 11 00 00 00 00 00 00 C0 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 17 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 17 00 40 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [19:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:24]wFMCommunicate OK [19:17:24]CreateOFDProtocolMessage done [19:17:24]OFDSenderStorePacket 164709 [19:17:24]StoreOFDPacket docnum=164709 [19:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 0F 07 01 BB 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 C2 D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 83 02 00 35 04 06 00 5C 14 06 F3 EA 09 66 D1 26 05 91 9C 3F D0 [19:17:24]CheckFolder [19:17:24]dirname=/storage/ofd_packets [19:17:24]CheckFolder done [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00164709 [19:17:24]NVStorageSaveData ofd_packets/00164709 [19:17:24]File name is /storage/ofd_packets/00164709 [19:17:24]Write 301 bytes [19:17:24]NVStorageSaveData done [19:17:24]OFDSenderStorePacket done [19:17:24]KKMCreateOFDPacket done [19:17:24]NVStorageSaveData kkm_last_timestamp [19:17:24]File name is /storage/kkm_last_timestamp [19:17:24]Write 4 bytes [19:17:24]NVStorageSaveData done [19:17:24]ExternCall_PrintAddStr [19:17:24]wPrintStart [19:17:24]Write to MH i2c: 01 00 00 41 06 47 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 FF 0F 5C [19:17:24]RasterBufferAndPrint [19:17:24]line Счет N : (1)458803 [19:17:24]line ИНН: 02508201610067 [19:17:24]line Контрольно-Кассовый Чек [19:17:24]line ПРОДАЖА [19:17:24]line ТРК (МРК, ГНК) : 22 [19:17:24]line Товар: 2710124130 [19:17:24]line Аи-92-К-5 [19:17:24]line 4.560 * 65.80 [19:17:24]line = 300.05 [19:17:24]line НДС 12% НСП 1% [19:17:24]line > о реализуемом товаре [19:17:24]line ОКРУГЛЕНИЕ: -0.05 [19:17:24]line ИТОГО: 300.00 [19:17:24]line Внесено: 300.00 [19:17:24]line СДАЧА: 0.00 [19:17:24]line НСП 1% : 2.65 [19:17:24]line НДС 12% : 31.86 [19:17:24]line Наличными: 300.00 [19:17:24]line Безнал.: 0.00 [19:17:24]line Место: АЗС № 72 "Партнер Нефть" [19:17:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:17:24]line СНО: Общий режим [19:17:24]line Чек 269 13.07.2024 19:17 [19:17:24]line Смена: 446 ФФД: 1.0 [19:17:24]line ЗНМ: 0300000160 [19:17:24]line РНМ: 0000000000090829 [19:17:24]line Версия ККМ: 001 [19:17:24]line ФМ: 0000000000874718 [19:17:24]line ФД: 164709 [19:17:24]line ФПД: 101241085749769 [19:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164709&fm=101241085749769&tin=02508201610067®Number=0000000000090829&sum=30000 [19:17:24]written 0, free lines is 4095 [19:17:24]OFD Sender: Processing packet 164709 [packets to send 104, broken 103] [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00164709 [19:17:24]OFD Sender: To server: pG, [19:17:24]CommunicateWithHost lk.salyk.kg:30040 [19:17:24]ConnectInit lk.salyk.kg [19:17:24]Connected sock=10 [19:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 0F 07 01 BB 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 C2 D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 83 02 00 35 04 06 00 5C 14 06 F3 EA 09 66 D1 26 05 91 9C 3F D0 [19:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 BF 47 00 36 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 34 37 31 38 10 04 04 00 65 83 02 00 F4 03 04 00 53 79 92 66 B6 04 01 00 00 26 07 64 B9 3D 36 3D E0 [19:17:24]CommunicateWithHost err = 0 [19:17:24]CheckOFDResponse [19:17:24]1017 (14) - 77093643461234 [19:17:24]1041 (16) - 0000000000874718 [19:17:24]1040 (4) - 164709 [19:17:24]1012 (4) - 13.07.2024 12:55 [19:17:24]1206 (1) - 0 [19:17:24]OFD Sender: Remove packet 164709 [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00164709 [19:17:24]NVStorageDeleteData [19:17:24]Write to MH i2c: 01 00 00 6B 06 71 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 F5 0C 79 [19:17:24]RasterBufferAndPrint [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]written 0, free lines is 3323 [19:17:24]MH_Cut [19:17:24]Write to MH i2c: D1 01 00 72 06 01 4A [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 01 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 01 00 72 06 00 49 [19:17:24]Write to MH i2c: 01 00 00 73 06 79 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:25]OFD Sender: No OFD packet to send [19:17:25]*** Cut start [19:17:25]*** Partial cut [19:17:25]*** CUTSNS_PIN = 1 [19:17:25]*** CUTSNS_PIN = 0 [19:17:25]*** Brake cut motor [19:17:26]Read from MH i2c: 01 [19:17:26]MH_I2C_Read... [19:17:26]*** Stop cut motor [19:17:26]*** Cut end [19:17:26]Read from MH i2c: 01 07 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 FF 0F 8E [19:17:26]process_action close_receipt done [19:17:26]requested_data is exist [19:17:26]produce_requested_data [19:17:26]requested_item fm.sn is exist - process it [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 11 00 00 [19:17:26]Write to MH i2c: E2 08 00 74 06 80 11 00 00 00 00 00 00 F4 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 74 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [19:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:17:26]wFMCommunicate OK [19:17:26]requested_item fd.num is exist - process it [19:17:26]SAM_PROTO_GetFieldsCounters [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 00 00 [19:17:26]Write to MH i2c: E2 08 00 75 06 80 13 00 00 00 00 00 00 F7 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 75 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [19:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetFieldsCounters done [19:17:26]requested_item shift.num is exist - process it [19:17:26]requested_item shift.opened is exist - process it [19:17:26]req_shift_opened [19:17:26]FM_GetShiftState [19:17:26]SAM_PROTO_GetShiftState [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 01 00 [19:17:26]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DA [19:17:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetShiftState done [19:17:26]FM_GetShiftState done [19:17:26]req_shift_opened done [19:17:26]requested_item shift.open_date is exist - process it [19:17:26]req_shift_open_date [19:17:26]req_shift_open_date done [19:17:26]produce_requested_data done [19:17:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164709,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:17:26]process_action_free close_receipt [19:17:26]json_value_free [19:17:26]json_value_free done [19:17:26]process_json_proto returns [19:17:26]Send response to host [19:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164709,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:17:26]free response buf [19:17:26]execute_script done [19:17:26]execute_script returns [19:17:26]free content buf [19:17:26]Sock 9.Close socket [19:17:26]Sock 9.Thread stoped [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:06]accept exits with 7 [19:18:06]New connection [19:18:06]New thread 3067247972 created [19:18:06]Thread 3067104612 joined [19:18:06]Waiting for new connection... [19:18:06] Sock 7.Parse request [19:18:06]Sock 7.Check first char [19:18:06]Sock 7.First char is OK [19:18:06]request: POST /json_proto HTTP/1.0 [19:18:06]Method: POST [19:18:06]URL: /json_proto [19:18:06]Method is POST - this is cgi request [19:18:06]url: /json_proto [19:18:06]query_string will be loaded in cgi processing [19:18:06]execute_cgi json_proto POST (null) [19:18:06]execute_cgi path=json_proto method=POST [19:18:06]POST find Content-Length [19:18:06]Host: 172.17.56.4:8080 [19:18:06]Content-Length: 677 [19:18:06]Content-Type: application/json [19:18:06] [19:18:06]POST finish read [19:18:06]Found Content-Length = 677 [19:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:06]execute_script... [19:18: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)458804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:06]POST & json_proto [19:18:06]process_json_proto [19:18:06]json parsed OK: [19:18:06]protocol is kg_v1.0 [19:18:06]action value=close_receipt [19:18:06]process_action close_receipt [19:18:06]cmd_close_receipt [19:18:06]MH_GetDate [19:18:06]Write to MH i2c: F0 00 00 77 06 6C [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: F0 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: F0 09 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: F0 09 00 77 06 00 EE D2 92 66 C9 DC B2 64 E8 [19:18:06]GetLastDocTimeStamp 1720898242 [19:18:06]current date 1720898286 [19:18:06]FM_GetShiftState [19:18:06]SAM_PROTO_GetShiftState [19:18:06]wFMCommunicate request_size=4 [19:18:06]MH_SAM_APDU [19:18:06]CAPDU: 80 13 01 00 [19:18:06]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:06]Read from MH i2c: E2 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 0E 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DC [19:18:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:18:06]wFMCommunicate OK [19:18:06]SAM_PROTO_GetShiftState done [19:18:06]FM_GetShiftState done [19:18:06]opened in 1720831249 [19:18:06]opened+sec_in_day 1720917649 [19:18:06]quantity*price = 20003 [19:18:06]sum+1 = 20004 [19:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 270 13.07.2024 19:18 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164710 ФПД: 123574134792269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164710&fm=123574134792269&tin=02508201610067®Number=0000000000090829&sum=20000 [19:18:07]StoreToDocumentArchive [19:18:07]shift 446 fd 164710 [19:18:07]save to /storage/0446/doc_00164710 [19:18:07]save last doc name /storage/0446/doc_00164710 to /storage/kkm_last_doc_name [19:18:07]save OK [19:18:07]Clear old archive folders... [19:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:07]tlvbuf is 01E235A0 [19:18:07]SAM_PROTO_ClearQueue [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 09 00 00 [19:18:07]Write to MH i2c: E2 08 00 85 06 80 09 00 00 00 00 00 00 FD [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [19:18:07]RAPDU: 90 00 [19:18:07]wFMCommunicate OK [19:18:07]SAM_PROTO_ClearQueue done [19:18:07]KKMCreateOFDPacket [19:18:07]OFDProtocolAddRootSTLVToBuf [19:18:07]FM_MakeSignedData [19:18:07]FM_MakeSignedData [19:18:07]SAM_PROTO_SignData [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 0D 01 02 [19:18:07]Write to MH i2c: E2 08 00 86 06 80 0D 01 02 00 00 00 00 05 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [19:18:07]RAPDU: 90 00 [19:18:07]wFMCommunicate OK [19:18:07]wFMCommunicate request_size=255 [19:18:07]MH_SAM_APDU [19:18: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 EE D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 83 02 00 35 04 06 00 70 [19:18:07]Write to MH i2c: E2 02 01 87 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 EE D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 83 02 00 35 04 06 00 70 00 00 00 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [19:18:07]RAPDU: 90 00 [19:18:07]wFMCommunicate OK [19:18:07]wFMCommunicate request_size=10 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 0D 02 02 05 63 D8 68 60 4D [19:18:07]Write to MH i2c: E2 0D 00 88 06 80 0D 02 02 05 00 63 D8 68 60 4D 00 00 62 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [19:18:07]RAPDU: 90 00 [19:18:07]wFMCommunicate OK [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 0D 03 02 [19:18:07]Write to MH i2c: E2 08 00 89 06 80 0D 03 02 00 00 00 00 0A [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 0B 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 0B 00 89 06 00 4F FE 0C 95 B0 B6 C9 31 90 00 59 [19:18:07]RAPDU: 4F FE 0C 95 B0 B6 C9 31 90 00 [19:18:07]wFMCommunicate OK [19:18:07]SAM_PROTO_SignData done [19:18:07]FM_MakeSignedData done [19:18:07]CreateOFDProtocolMessage [19:18:07]wFMCommunicate request_size=4 [19:18:07]MH_SAM_APDU [19:18:07]CAPDU: 80 11 00 00 [19:18:07]Write to MH i2c: E2 08 00 8A 06 80 11 00 00 00 00 00 00 0A [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:07]Read from MH i2c: E2 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: E2 17 00 8A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [19:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:18:07]wFMCommunicate OK [19:18:07]CreateOFDProtocolMessage done [19:18:07]OFDSenderStorePacket 164710 [19:18:07]StoreOFDPacket docnum=164710 [19:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA 10 07 01 C9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 EE D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 83 02 00 35 04 06 00 70 63 D8 68 60 4D 4F FE 0C 95 B0 B6 C9 31 [19:18:07]CheckFolder [19:18:07]dirname=/storage/ofd_packets [19:18:07]CheckFolder done [19:18:07]ProducePacketName [19:18:07]name=ofd_packets/00164710 [19:18:07]NVStorageSaveData ofd_packets/00164710 [19:18:07]File name is /storage/ofd_packets/00164710 [19:18:07]Write 301 bytes [19:18:07]NVStorageSaveData done [19:18:07]OFDSenderStorePacket done [19:18:07]KKMCreateOFDPacket done [19:18:07]NVStorageSaveData kkm_last_timestamp [19:18:07]File name is /storage/kkm_last_timestamp [19:18:07]Write 4 bytes [19:18:07]NVStorageSaveData done [19:18:07]ExternCall_PrintAddStr [19:18:07]wPrintStart [19:18:07]Write to MH i2c: 01 00 00 8B 06 91 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 FF 0F A6 [19:18:07]RasterBufferAndPrint [19:18:07]line Счет N : (1)458804 [19:18:07]line ИНН: 02508201610067 [19:18:07]line Контрольно-Кассовый Чек [19:18:07]line ПРОДАЖА [19:18:07]line ТРК (МРК, ГНК) : 12 [19:18:07]line Товар: 2710124130 [19:18:07]line Аи-92-К-5 [19:18:07]line 3.040 * 65.80 [19:18:07]line = 200.03 [19:18:07]line НДС 12% НСП 1% [19:18:07]line > о реализуемом товаре [19:18:07]line ОКРУГЛЕНИЕ: -0.03 [19:18:07]line ИТОГО: 200.00 [19:18:07]line Внесено: 200.00 [19:18:07]line СДАЧА: 0.00 [19:18:07]line НСП 1% : 1.77 [19:18:07]line НДС 12% : 21.24 [19:18:07]line Наличными: 200.00 [19:18:07]line Безнал.: 0.00 [19:18:07]line Место: АЗС № 72 "Партнер Нефть" [19:18:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:18:07]line СНО: Общий режим [19:18:07]line Чек 270 13.07.2024 19:18 [19:18:07]line Смена: 446 ФФД: 1.0 [19:18:07]line ЗНМ: 0300000160 [19:18:07]line РНМ: 0000000000090829 [19:18:07]line Версия ККМ: 001 [19:18:07]line ФМ: 0000000000874718 [19:18:07]line ФД: 164710 [19:18:07]line ФПД: 123574134792269 [19:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164710&fm=123574134792269&tin=02508201610067®Number=0000000000090829&sum=20000 [19:18:08]written 0, free lines is 4095 [19:18:08]OFD Sender: Processing packet 164710 [packets to send 104, broken 103] [19:18:08]ProducePacketName [19:18:08]name=ofd_packets/00164710 [19:18:08]OFD Sender: To server: pG, [19:18:08]CommunicateWithHost lk.salyk.kg:30040 [19:18:08]ConnectInit lk.salyk.kg [19:18:08]Connected sock=10 [19:18:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA 10 07 01 C9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 EE D2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 83 02 00 35 04 06 00 70 63 D8 68 60 4D 4F FE 0C 95 B0 B6 C9 31 [19:18:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 30 39 47 00 33 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 83 02 00 F4 03 04 00 7E 79 92 66 B6 04 01 00 00 69 84 E8 29 7B FA EB 1C [19:18:08]CommunicateWithHost err = 0 [19:18:08]CheckOFDResponse [19:18:08]1017 (14) - 77093643461234 [19:18:08]1041 (16) - 0000000000874718 [19:18:08]1040 (4) - 164710 [19:18:08]1012 (4) - 13.07.2024 12:56 [19:18:08]1206 (1) - 0 [19:18:08]OFD Sender: Remove packet 164710 [19:18:08]ProducePacketName [19:18:08]name=ofd_packets/00164710 [19:18:08]NVStorageDeleteData [19:18:08]Write to MH i2c: 01 00 00 B5 06 BB [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: 01 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: 01 07 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 F6 0C C4 [19:18:08]RasterBufferAndPrint [19:18:08]line [19:18:08]line [19:18:08]line [19:18:08]line [19:18:08]line [19:18:08]written 0, free lines is 3324 [19:18:08]MH_Cut [19:18:08]Write to MH i2c: D1 01 00 BC 06 01 94 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: D1 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: D1 01 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: D1 01 00 BC 06 00 93 [19:18:08]Write to MH i2c: 01 00 00 BD 06 C3 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:09]OFD Sender: No OFD packet to send [19:18:09]*** Cut start [19:18:09]*** Partial cut [19:18:09]*** CUTSNS_PIN = 1 [19:18:09]*** CUTSNS_PIN = 0 [19:18:09]*** Brake cut motor [19:18:09]Read from MH i2c: 01 [19:18:09]MH_I2C_Read... [19:18:09]*** Stop cut motor [19:18:09]*** Cut end [19:18:09]Read from MH i2c: 01 07 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [19:18:09]process_action close_receipt done [19:18:09]requested_data is exist [19:18:09]produce_requested_data [19:18:09]requested_item fm.sn is exist - process it [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 11 00 00 [19:18:09]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 17 00 [19:18:09]MH_I2C_Read... [19:18:09]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 34 37 31 38 90 00 94 [19:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:18:09]wFMCommunicate OK [19:18:09]requested_item fd.num is exist - process it [19:18:09]SAM_PROTO_GetFieldsCounters [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 13 00 00 [19:18:09]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 62 00 [19:18:10]MH_I2C_Read... [19:18:10]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:18: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_GetFieldsCounters done [19:18:10]requested_item shift.num is exist - process it [19:18:10]requested_item shift.opened is exist - process it [19:18:10]req_shift_opened [19:18:10]FM_GetShiftState [19:18:10]SAM_PROTO_GetShiftState [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 13 01 00 [19:18:10]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0E 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 24 [19:18:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_GetShiftState done [19:18:10]FM_GetShiftState done [19:18:10]req_shift_opened done [19:18:10]requested_item shift.open_date is exist - process it [19:18:10]req_shift_open_date [19:18:10]req_shift_open_date done [19:18:10]produce_requested_data done [19:18:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164710,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:18:10]process_action_free close_receipt [19:18:10]json_value_free [19:18:10]json_value_free done [19:18:10]process_json_proto returns [19:18:10]Send response to host [19:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164710,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:18:10]free response buf [19:18:10]execute_script done [19:18:10]execute_script returns [19:18:10]free content buf [19:18:10]Sock 7.Close socket [19:18:10]Sock 7.Thread stoped [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:58]accept exits with 9 [19:18:58]New connection [19:18:58]New thread 3067104612 created [19:18:58]Thread 3067247972 joined [19:18:58]Waiting for new connection... [19:18:58] Sock 9.Parse request [19:18:58]Sock 9.Check first char [19:18:58]Sock 9.First char is OK [19:18:58]request: POST /json_proto HTTP/1.0 [19:18:58]Method: POST [19:18:58]URL: /json_proto [19:18:58]Method is POST - this is cgi request [19:18:58]url: /json_proto [19:18:58]query_string will be loaded in cgi processing [19:18:58]execute_cgi json_proto POST (null) [19:18:58]execute_cgi path=json_proto method=POST [19:18:58]POST find Content-Length [19:18:58]Host: 172.17.56.4:8080 [19:18:58]Content-Length: 677 [19:18:58]Content-Type: application/json [19:18:58] [19:18:58]POST finish read [19:18:58]Found Content-Length = 677 [19:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:58]execute_script... [19:18: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)458805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:58]POST & json_proto [19:18:58]process_json_proto [19:18:58]json parsed OK: [19:18:58]protocol is kg_v1.0 [19:18:58]action value=close_receipt [19:18:58]process_action close_receipt [19:18:58]cmd_close_receipt [19:18:58]MH_GetDate [19:18:58]Write to MH i2c: F0 00 00 C1 06 B6 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 09 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: F0 09 00 C1 06 00 23 D3 92 66 C9 DC B2 64 68 [19:18:58]GetLastDocTimeStamp 1720898286 [19:18:58]current date 1720898339 [19:18:58]FM_GetShiftState [19:18:58]SAM_PROTO_GetShiftState [19:18:58]wFMCommunicate request_size=4 [19:18:58]MH_SAM_APDU [19:18:58]CAPDU: 80 13 01 00 [19:18:58]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:58]Read from MH i2c: E2 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: E2 0E 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 26 [19:18:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:18:58]wFMCommunicate OK [19:18:58]SAM_PROTO_GetShiftState done [19:18:58]FM_GetShiftState done [19:18:58]opened in 1720831249 [19:18:58]opened+sec_in_day 1720917649 [19:18:58]quantity*price = 50008 [19:18:58]sum+1 = 50009 [19:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 271 13.07.2024 19:18 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164711 ФПД: 158085953526078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164711&fm=158085953526078&tin=02508201610067®Number=0000000000090829&sum=50000 [19:19:00]StoreToDocumentArchive [19:19:00]shift 446 fd 164711 [19:19:00]save to /storage/0446/doc_00164711 [19:19:00]save last doc name /storage/0446/doc_00164711 to /storage/kkm_last_doc_name [19:19:00]save OK [19:19:00]Clear old archive folders... [19:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:00]tlvbuf is 01E68140 [19:19:00]SAM_PROTO_ClearQueue [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 09 00 00 [19:19:00]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_ClearQueue done [19:19:00]KKMCreateOFDPacket [19:19:00]OFDProtocolAddRootSTLVToBuf [19:19:00]FM_MakeSignedData [19:19:00]FM_MakeSignedData [19:19:00]SAM_PROTO_SignData [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 01 02 [19:19:00]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]wFMCommunicate request_size=255 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0F 01 00 00 F4 03 04 00 23 D3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 83 02 00 35 04 06 00 8F [19:19:00]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0F 01 00 00 F4 03 04 00 23 D3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 83 02 00 35 04 06 00 8F 00 00 00 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]wFMCommunicate request_size=10 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 02 02 05 C7 41 1A 99 3E [19:19:00]Write to MH i2c: E2 0D 00 D2 06 80 0D 02 02 05 00 C7 41 1A 99 3E 00 00 55 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [19:19:00]RAPDU: 90 00 [19:19:00]wFMCommunicate OK [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 0D 03 02 [19:19:00]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0B 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0B 00 D3 06 00 6D B9 D8 8A F3 62 8E 83 90 00 43 [19:19:00]RAPDU: 6D B9 D8 8A F3 62 8E 83 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_SignData done [19:19:00]FM_MakeSignedData done [19:19:00]CreateOFDProtocolMessage [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 11 00 00 [19:19:00]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 17 00 [19:19:00]MH_I2C_Read... [19:19:00]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 34 37 31 38 90 00 AA [19:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:00]wFMCommunicate OK [19:19:00]CreateOFDProtocolMessage done [19:19:00]OFDSenderStorePacket 164711 [19:19:00]StoreOFDPacket docnum=164711 [19:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF DF 07 01 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0F 01 00 00 F4 03 04 00 23 D3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 83 02 00 35 04 06 00 8F C7 41 1A 99 3E 6D B9 D8 8A F3 62 8E 83 [19:19:00]CheckFolder [19:19:00]dirname=/storage/ofd_packets [19:19:00]CheckFolder done [19:19:00]ProducePacketName [19:19:00]name=ofd_packets/00164711 [19:19:00]NVStorageSaveData ofd_packets/00164711 [19:19:00]File name is /storage/ofd_packets/00164711 [19:19:00]Write 301 bytes [19:19:00]NVStorageSaveData done [19:19:00]OFDSenderStorePacket done [19:19:00]KKMCreateOFDPacket done [19:19:00]NVStorageSaveData kkm_last_timestamp [19:19:00]File name is /storage/kkm_last_timestamp [19:19:00]Write 4 bytes [19:19:00]NVStorageSaveData done [19:19:00]ExternCall_PrintAddStr [19:19:00]wPrintStart [19:19:00]Write to MH i2c: 01 00 00 D5 06 DB [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 07 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [19:19:00]RasterBufferAndPrint [19:19:00]line Счет N : (1)458805 [19:19:00]line ИНН: 02508201610067 [19:19:00]line Контрольно-Кассовый Чек [19:19:00]line ПРОДАЖА [19:19:00]line ТРК (МРК, ГНК) : 22 [19:19:00]line Товар: 2710124130 [19:19:00]line Аи-92-К-5 [19:19:00]line 7.600 * 65.80 [19:19:00]line = 500.08 [19:19:00]line НДС 12% НСП 1% [19:19:00]line > о реализуемом товаре [19:19:00]line ОКРУГЛЕНИЕ: -0.08 [19:19:00]line ИТОГО: 500.00 [19:19:00]line Внесено: 500.00 [19:19:00]line СДАЧА: 0.00 [19:19:00]line НСП 1% : 4.42 [19:19:00]line НДС 12% : 53.11 [19:19:00]line Наличными: 500.00 [19:19:00]line Безнал.: 0.00 [19:19:00]line Место: АЗС № 72 "Партнер Нефть" [19:19:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:19:00]line СНО: Общий режим [19:19:00]line Чек 271 13.07.2024 19:18 [19:19:00]line Смена: 446 ФФД: 1.0 [19:19:00]line ЗНМ: 0300000160 [19:19:00]line РНМ: 0000000000090829 [19:19:00]line Версия ККМ: 001 [19:19:00]line ФМ: 0000000000874718 [19:19:00]line ФД: 164711 [19:19:00]line ФПД: 158085953526078 [19:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164711&fm=158085953526078&tin=02508201610067®Number=0000000000090829&sum=50000 [19:19:00]OFD Sender: Processing packet 164711 [packets to send 104, broken 103] [19:19:00]ProducePacketName [19:19:00]name=ofd_packets/00164711 [19:19:00]OFD Sender: To server: pG, [19:19:00]CommunicateWithHost lk.salyk.kg:30040 [19:19:00]ConnectInit lk.salyk.kg [19:19:00]written 0, free lines is 4095 [19:19:01]Connected sock=10 [19:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF DF 07 01 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0F 01 00 00 F4 03 04 00 23 D3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 83 02 00 35 04 06 00 8F C7 41 1A 99 3E 6D B9 D8 8A F3 62 8E 83 [19:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 80 47 00 6B 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 83 02 00 F4 03 04 00 B3 79 92 66 B6 04 01 00 00 0C 79 87 5B 85 95 BB B4 [19:19:01]CommunicateWithHost err = 0 [19:19:01]CheckOFDResponse [19:19:01]1017 (14) - 77093643461234 [19:19:01]1041 (16) - 0000000000874718 [19:19:01]1040 (4) - 164711 [19:19:01]1012 (4) - 13.07.2024 12:57 [19:19:01]1206 (1) - 0 [19:19:01]OFD Sender: Remove packet 164711 [19:19:01]ProducePacketName [19:19:01]name=ofd_packets/00164711 [19:19:01]NVStorageDeleteData [19:19:01]Write to MH i2c: 01 00 00 FF 06 05 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 F3 0C 0B [19:19:01]RasterBufferAndPrint [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]line [19:19:01]written 0, free lines is 3322 [19:19:01]MH_Cut [19:19:01]Write to MH i2c: D1 01 00 06 07 01 DF [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 01 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: D1 01 00 06 07 00 DE [19:19:01]Write to MH i2c: 01 00 00 07 07 0E [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]OFD Sender: No OFD packet to send [19:19:02]*** Cut start [19:19:02]*** Partial cut [19:19:02]*** CUTSNS_PIN = 1 [19:19:02]*** CUTSNS_PIN = 0 [19:19:02]*** Brake cut motor [19:19:02]Read from MH i2c: 01 [19:19:02]MH_I2C_Read... [19:19:02]*** Stop cut motor [19:19:02]*** Cut end [19:19:02]Read from MH i2c: 01 07 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [19:19:02]process_action close_receipt done [19:19:02]requested_data is exist [19:19:02]produce_requested_data [19:19:02]requested_item fm.sn is exist - process it [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 11 00 00 [19:19:02]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [19:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:02]wFMCommunicate OK [19:19:02]requested_item fd.num is exist - process it [19:19:02]SAM_PROTO_GetFieldsCounters [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 00 00 [19:19:02]Write to MH i2c: E2 08 00 09 07 80 13 00 00 00 00 00 00 8C [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 62 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 62 00 09 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetFieldsCounters done [19:19:02]requested_item shift.num is exist - process it [19:19:02]requested_item shift.opened is exist - process it [19:19:02]req_shift_opened [19:19:02]FM_GetShiftState [19:19:02]SAM_PROTO_GetShiftState [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 01 00 [19:19:02]Write to MH i2c: E2 08 00 0A 07 80 13 01 00 00 00 00 00 8E [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 0A 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6F [19:19:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetShiftState done [19:19:02]FM_GetShiftState done [19:19:02]req_shift_opened done [19:19:02]requested_item shift.open_date is exist - process it [19:19:02]req_shift_open_date [19:19:02]req_shift_open_date done [19:19:02]produce_requested_data done [19:19:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164711,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:19:02]process_action_free close_receipt [19:19:02]json_value_free [19:19:02]json_value_free done [19:19:02]process_json_proto returns [19:19:02]Send response to host [19:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164711,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:19:02]free response buf [19:19:02]execute_script done [19:19:02]execute_script returns [19:19:02]free content buf [19:19:02]Sock 9.Close socket [19:19:02]Sock 9.Thread stoped [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:13]accept exits with 7 [19:24:13]New connection [19:24:13]New thread 3067247972 created [19:24:13]Thread 3067104612 joined [19:24:13]Waiting for new connection... [19:24:13] Sock 7.Parse request [19:24:13]Sock 7.Check first char [19:24:13]Sock 7.First char is OK [19:24:13]request: POST /json_proto HTTP/1.0 [19:24:13]Method: POST [19:24:13]URL: /json_proto [19:24:13]Method is POST - this is cgi request [19:24:13]url: /json_proto [19:24:13]query_string will be loaded in cgi processing [19:24:13]execute_cgi json_proto POST (null) [19:24:13]execute_cgi path=json_proto method=POST [19:24:13]POST find Content-Length [19:24:13]Host: 172.17.56.4:8080 [19:24:13]Content-Length: 639 [19:24:13]Content-Type: application/json [19:24:13] [19:24:13]POST finish read [19:24:13]Found Content-Length = 639 [19:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:13]execute_script... [19:24: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)458806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:13]POST & json_proto [19:24:13]process_json_proto [19:24:13]json parsed OK: [19:24:13]protocol is kg_v1.0 [19:24:13]action value=close_receipt [19:24:13]process_action close_receipt [19:24:13]cmd_close_receipt [19:24:13]MH_GetDate [19:24:13]Write to MH i2c: F0 00 00 0B 07 01 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: F0 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: F0 09 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: F0 09 00 0B 07 00 5E D4 92 66 C9 DC B2 64 EF [19:24:13]GetLastDocTimeStamp 1720898339 [19:24:13]current date 1720898654 [19:24:13]FM_GetShiftState [19:24:13]SAM_PROTO_GetShiftState [19:24:13]wFMCommunicate request_size=4 [19:24:13]MH_SAM_APDU [19:24:13]CAPDU: 80 13 01 00 [19:24:13]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [19:24:13]Write i2c OK [19:24:13]MH_I2C_Read... [19:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:13]Read from MH i2c: E2 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 0E 00 [19:24:13]MH_I2C_Read... [19:24:13]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 71 [19:24:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:24:13]wFMCommunicate OK [19:24:13]SAM_PROTO_GetShiftState done [19:24:13]FM_GetShiftState done [19:24:13]opened in 1720831249 [19:24:13]opened+sec_in_day 1720917649 [19:24:13]quantity*price = 32900 [19:24:13]sum+1 = 32901 [19:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 272 13.07.2024 19:24 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164712 ФПД: 65587343290233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164712&fm=65587343290233&tin=02508201610067®Number=0000000000090829&sum=32900 [19:24:14]StoreToDocumentArchive [19:24:14]shift 446 fd 164712 [19:24:14]save to /storage/0446/doc_00164712 [19:24:14]save last doc name /storage/0446/doc_00164712 to /storage/kkm_last_doc_name [19:24:14]save OK [19:24:14]Clear old archive folders... [19:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:14]tlvbuf is 01E238A0 [19:24:14]SAM_PROTO_ClearQueue [19:24:14]wFMCommunicate request_size=4 [19:24:14]MH_SAM_APDU [19:24:14]CAPDU: 80 09 00 00 [19:24:14]Write to MH i2c: E2 08 00 19 07 80 09 00 00 00 00 00 00 92 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:14]Read from MH i2c: E2 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 03 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [19:24:14]RAPDU: 90 00 [19:24:14]wFMCommunicate OK [19:24:14]SAM_PROTO_ClearQueue done [19:24:14]KKMCreateOFDPacket [19:24:14]OFDProtocolAddRootSTLVToBuf [19:24:14]FM_MakeSignedData [19:24:14]FM_MakeSignedData [19:24:14]SAM_PROTO_SignData [19:24:14]wFMCommunicate request_size=4 [19:24:14]MH_SAM_APDU [19:24:14]CAPDU: 80 0D 01 02 [19:24:14]Write to MH i2c: E2 08 00 1A 07 80 0D 01 02 00 00 00 00 9A [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:14]Read from MH i2c: E2 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 03 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [19:24:14]RAPDU: 90 00 [19:24:14]wFMCommunicate OK [19:24:14]wFMCommunicate request_size=255 [19:24:14]MH_SAM_APDU [19:24: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 5E D4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 83 02 00 35 04 06 00 3B [19:24:14]Write to MH i2c: E2 02 01 1B 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 5E D4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 83 02 00 35 04 06 00 3B 00 00 17 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 03 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [19:24:15]RAPDU: 90 00 [19:24:15]wFMCommunicate OK [19:24:15]wFMCommunicate request_size=10 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 0D 02 02 05 A6 BE 4C 6F 79 [19:24:15]Write to MH i2c: E2 0D 00 1C 07 80 0D 02 02 05 00 A6 BE 4C 6F 79 00 00 3F [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 03 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [19:24:15]RAPDU: 90 00 [19:24:15]wFMCommunicate OK [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 0D 03 02 [19:24:15]Write to MH i2c: E2 08 00 1D 07 80 0D 03 02 00 00 00 00 9F [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0B 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0B 00 1D 07 00 6F 51 CD C0 63 69 8B 31 90 00 75 [19:24:15]RAPDU: 6F 51 CD C0 63 69 8B 31 90 00 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_SignData done [19:24:15]FM_MakeSignedData done [19:24:15]CreateOFDProtocolMessage [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 11 00 00 [19:24:15]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [19:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:24:15]wFMCommunicate OK [19:24:15]CreateOFDProtocolMessage done [19:24:15]OFDSenderStorePacket 164712 [19:24:15]StoreOFDPacket docnum=164712 [19:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C B8 07 01 5A 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 5E D4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 83 02 00 35 04 06 00 3B A6 BE 4C 6F 79 6F 51 CD C0 63 69 8B 31 [19:24:15]CheckFolder [19:24:15]dirname=/storage/ofd_packets [19:24:15]CheckFolder done [19:24:15]ProducePacketName [19:24:15]name=ofd_packets/00164712 [19:24:15]NVStorageSaveData ofd_packets/00164712 [19:24:15]File name is /storage/ofd_packets/00164712 [19:24:15]Write 301 bytes [19:24:15]NVStorageSaveData done [19:24:15]OFDSenderStorePacket done [19:24:15]KKMCreateOFDPacket done [19:24:15]NVStorageSaveData kkm_last_timestamp [19:24:15]File name is /storage/kkm_last_timestamp [19:24:15]Write 4 bytes [19:24:15]NVStorageSaveData done [19:24:15]ExternCall_PrintAddStr [19:24:15]wPrintStart [19:24:15]Write to MH i2c: 01 00 00 1F 07 26 [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: 01 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: 01 07 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [19:24:15]RasterBufferAndPrint [19:24:15]line Счет N : (1)458806 [19:24:15]line ИНН: 02508201610067 [19:24:15]line Контрольно-Кассовый Чек [19:24:15]line ПРОДАЖА [19:24:15]line ТРК (МРК, ГНК) : 12 [19:24:15]line Товар: 2710124130 [19:24:15]line Аи-92-К-5 [19:24:15]line 5.000 * 65.80 [19:24:15]line = 329.00 [19:24:15]line НДС 12% НСП 1% [19:24:15]line > о реализуемом товаре [19:24:15]line ИТОГО: 329.00 [19:24:15]line НСП 1% : 2.91 [19:24:15]line НДС 12% : 34.94 [19:24:15]line Наличными: 329.00 [19:24:15]line Безнал.: 0.00 [19:24:15]line Место: АЗС № 72 "Партнер Нефть" [19:24:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:24:15]line СНО: Общий режим [19:24:15]line Чек 272 13.07.2024 19:24 [19:24:15]line Смена: 446 ФФД: 1.0 [19:24:15]line ЗНМ: 0300000160 [19:24:15]line РНМ: 0000000000090829 [19:24:15]line Версия ККМ: 001 [19:24:15]line ФМ: 0000000000874718 [19:24:15]line ФД: 164712 [19:24:15]line ФПД: 65587343290233 [19:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164712&fm=65587343290233&tin=02508201610067®Number=0000000000090829&sum=32900 [19:24:15]written 0, free lines is 4095 [19:24:15]OFD Sender: Processing packet 164712 [packets to send 104, broken 103] [19:24:15]ProducePacketName [19:24:15]name=ofd_packets/00164712 [19:24:15]OFD Sender: To server: pG, [19:24:15]CommunicateWithHost lk.salyk.kg:30040 [19:24:15]ConnectInit lk.salyk.kg [19:24:15]Connected sock=10 [19:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C B8 07 01 5A 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 5E D4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 83 02 00 35 04 06 00 3B A6 BE 4C 6F 79 6F 51 CD C0 63 69 8B 31 [19:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F A0 47 00 DD 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 83 02 00 F4 03 04 00 EE 7A 92 66 B6 04 01 00 00 CB B6 19 78 8D 2C 0E 36 [19:24:16]CommunicateWithHost err = 0 [19:24:16]CheckOFDResponse [19:24:16]1017 (14) - 77093643461234 [19:24:16]1041 (16) - 0000000000874718 [19:24:16]1040 (4) - 164712 [19:24:16]1012 (4) - 13.07.2024 13:02 [19:24:16]1206 (1) - 0 [19:24:16]OFD Sender: Remove packet 164712 [19:24:16]ProducePacketName [19:24:16]name=ofd_packets/00164712 [19:24:16]NVStorageDeleteData [19:24:16]Write to MH i2c: 01 00 00 46 07 4D [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: 01 07 00 46 07 00 00 00 00 00 21 0D 82 [19:24:16]RasterBufferAndPrint [19:24:16]line [19:24:16]line [19:24:16]line [19:24:16]line [19:24:16]line [19:24:16]written 0, free lines is 3367 [19:24:16]MH_Cut [19:24:16]Write to MH i2c: D1 01 00 4D 07 01 26 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D1 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D1 01 00 [19:24:16]MH_I2C_Read... [19:24:16]Read from MH i2c: D1 01 00 4D 07 00 25 [19:24:16]Write to MH i2c: 01 00 00 4E 07 55 [19:24:16]Write i2c OK [19:24:16]MH_I2C_Read... [19:24:16]OFD Sender: No OFD packet to send [19:24:16]*** Cut start [19:24:16]*** Partial cut [19:24:16]*** CUTSNS_PIN = 1 [19:24:16]*** CUTSNS_PIN = 0 [19:24:17]*** Brake cut motor [19:24:17]Read from MH i2c: 01 [19:24:17]MH_I2C_Read... [19:24:17]*** Stop cut motor [19:24:17]*** Cut end [19:24:17]Read from MH i2c: 01 07 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: 01 07 00 4E 07 00 00 00 00 00 FF 0F 6A [19:24:17]process_action close_receipt done [19:24:17]requested_data is exist [19:24:17]produce_requested_data [19:24:17]requested_item fm.sn is exist - process it [19:24:17]wFMCommunicate request_size=4 [19:24:17]MH_SAM_APDU [19:24:17]CAPDU: 80 11 00 00 [19:24:17]Write to MH i2c: E2 08 00 4F 07 80 11 00 00 00 00 00 00 D0 [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:17]Read from MH i2c: E2 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 17 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 17 00 4F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [19:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:24:17]wFMCommunicate OK [19:24:17]requested_item fd.num is exist - process it [19:24:17]SAM_PROTO_GetFieldsCounters [19:24:17]wFMCommunicate request_size=4 [19:24:17]MH_SAM_APDU [19:24:17]CAPDU: 80 13 00 00 [19:24:17]Write to MH i2c: E2 08 00 50 07 80 13 00 00 00 00 00 00 D3 [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:17]Read from MH i2c: E2 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 62 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 62 00 50 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [19:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:17]wFMCommunicate OK [19:24:17]SAM_PROTO_GetFieldsCounters done [19:24:17]requested_item shift.num is exist - process it [19:24:17]requested_item shift.opened is exist - process it [19:24:17]req_shift_opened [19:24:17]FM_GetShiftState [19:24:17]SAM_PROTO_GetShiftState [19:24:17]wFMCommunicate request_size=4 [19:24:17]MH_SAM_APDU [19:24:17]CAPDU: 80 13 01 00 [19:24:17]Write to MH i2c: E2 08 00 51 07 80 13 01 00 00 00 00 00 D5 [19:24:17]Write i2c OK [19:24:17]MH_I2C_Read... [19:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:17]Read from MH i2c: E2 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 0E 00 [19:24:17]MH_I2C_Read... [19:24:17]Read from MH i2c: E2 0E 00 51 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B6 [19:24:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:24:17]wFMCommunicate OK [19:24:17]SAM_PROTO_GetShiftState done [19:24:17]FM_GetShiftState done [19:24:17]req_shift_opened done [19:24:17]requested_item shift.open_date is exist - process it [19:24:17]req_shift_open_date [19:24:17]req_shift_open_date done [19:24:17]produce_requested_data done [19:24:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164712,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:24:17]process_action_free close_receipt [19:24:17]json_value_free [19:24:17]json_value_free done [19:24:17]process_json_proto returns [19:24:17]Send response to host [19:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164712,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:24:17]free response buf [19:24:17]execute_script done [19:24:17]execute_script returns [19:24:17]free content buf [19:24:17]Sock 7.Close socket [19:24:17]Sock 7.Thread stoped [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:44]accept exits with 9 [19:27:44]New connection [19:27:44]New thread 3067104612 created [19:27:44]Thread 3067247972 joined [19:27:44]Waiting for new connection... [19:27:44] Sock 9.Parse request [19:27:44]Sock 9.Check first char [19:27:44]Sock 9.First char is OK [19:27:44]request: POST /json_proto HTTP/1.0 [19:27:44]Method: POST [19:27:44]URL: /json_proto [19:27:44]Method is POST - this is cgi request [19:27:44]url: /json_proto [19:27:44]query_string will be loaded in cgi processing [19:27:44]execute_cgi json_proto POST (null) [19:27:44]execute_cgi path=json_proto method=POST [19:27:44]POST find Content-Length [19:27:44]Host: 172.17.56.4:8080 [19:27:44]Content-Length: 677 [19:27:44]Content-Type: application/json [19:27:44] [19:27:44]POST finish read [19:27:44]Found Content-Length = 677 [19:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:44]execute_script... [19:27:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:44]POST & json_proto [19:27:44]process_json_proto [19:27:44]json parsed OK: [19:27:44]protocol is kg_v1.0 [19:27:44]action value=close_receipt [19:27:44]process_action close_receipt [19:27:44]cmd_close_receipt [19:27:44]MH_GetDate [19:27:44]Write to MH i2c: F0 00 00 52 07 48 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 09 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 09 00 52 07 00 30 D5 92 66 C9 DC B2 64 09 [19:27:44]GetLastDocTimeStamp 1720898654 [19:27:44]current date 1720898864 [19:27:44]FM_GetShiftState [19:27:44]SAM_PROTO_GetShiftState [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 01 00 [19:27:44]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B8 [19:27:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetShiftState done [19:27:44]FM_GetShiftState done [19:27:44]opened in 1720831249 [19:27:44]opened+sec_in_day 1720917649 [19:27:44]quantity*price = 30004 [19:27:44]sum+1 = 30006 [19:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 273 13.07.2024 19:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164713 ФПД: 127960771615964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164713&fm=127960771615964&tin=02508201610067®Number=0000000000090829&sum=30000 [19:27:45]StoreToDocumentArchive [19:27:45]shift 446 fd 164713 [19:27:45]save to /storage/0446/doc_00164713 [19:27:45]save last doc name /storage/0446/doc_00164713 to /storage/kkm_last_doc_name [19:27:45]save OK [19:27:45]Clear old archive folders... [19:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:45]tlvbuf is 01E233D0 [19:27:45]SAM_PROTO_ClearQueue [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 09 00 00 [19:27:45]Write to MH i2c: E2 08 00 60 07 80 09 00 00 00 00 00 00 D9 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_ClearQueue done [19:27:45]KKMCreateOFDPacket [19:27:45]OFDProtocolAddRootSTLVToBuf [19:27:45]FM_MakeSignedData [19:27:45]FM_MakeSignedData [19:27:45]SAM_PROTO_SignData [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 01 02 [19:27:45]Write to MH i2c: E2 08 00 61 07 80 0D 01 02 00 00 00 00 E1 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]wFMCommunicate request_size=255 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 01 00 00 F4 03 04 00 30 D5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 83 02 00 35 04 06 00 74 [19:27:45]Write to MH i2c: E2 02 01 62 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 01 00 00 F4 03 04 00 30 D5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 83 02 00 35 04 06 00 74 00 00 4B [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]wFMCommunicate request_size=10 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 02 02 05 61 30 56 5C DC [19:27:45]Write to MH i2c: E2 0D 00 63 07 80 0D 02 02 05 00 61 30 56 5C DC 00 00 0D [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 03 02 [19:27:45]Write to MH i2c: E2 08 00 64 07 80 0D 03 02 00 00 00 00 E6 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0B 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 0B 00 64 07 00 66 DF 60 C9 77 6F 1C 16 90 00 6D [19:27:45]RAPDU: 66 DF 60 C9 77 6F 1C 16 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_SignData done [19:27:45]FM_MakeSignedData done [19:27:45]CreateOFDProtocolMessage [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 11 00 00 [19:27:45]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 17 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [19:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:46]wFMCommunicate OK [19:27:46]CreateOFDProtocolMessage done [19:27:46]OFDSenderStorePacket 164713 [19:27:46]StoreOFDPacket docnum=164713 [19:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 7A 07 01 E2 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 01 00 00 F4 03 04 00 30 D5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 83 02 00 35 04 06 00 74 61 30 56 5C DC 66 DF 60 C9 77 6F 1C 16 [19:27:46]CheckFolder [19:27:46]dirname=/storage/ofd_packets [19:27:46]CheckFolder done [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00164713 [19:27:46]NVStorageSaveData ofd_packets/00164713 [19:27:46]File name is /storage/ofd_packets/00164713 [19:27:46]Write 301 bytes [19:27:46]NVStorageSaveData done [19:27:46]OFDSenderStorePacket done [19:27:46]KKMCreateOFDPacket done [19:27:46]NVStorageSaveData kkm_last_timestamp [19:27:46]File name is /storage/kkm_last_timestamp [19:27:46]Write 4 bytes [19:27:46]NVStorageSaveData done [19:27:46]ExternCall_PrintAddStr [19:27:46]wPrintStart [19:27:46]Write to MH i2c: 01 00 00 66 07 6D [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [19:27:46]RasterBufferAndPrint [19:27:46]line Счет N : (1)458807 [19:27:46]line ИНН: 02508201610067 [19:27:46]line Контрольно-Кассовый Чек [19:27:46]line ПРОДАЖА [19:27:46]line ТРК (МРК, ГНК) : 22 [19:27:46]line Товар: 2710124130 [19:27:46]line Аи-92-К-5 [19:27:46]line 4.560 * 65.80 [19:27:46]line = 300.05 [19:27:46]line НДС 12% НСП 1% [19:27:46]line > о реализуемом товаре [19:27:46]line ОКРУГЛЕНИЕ: -0.05 [19:27:46]line ИТОГО: 300.00 [19:27:46]line Внесено: 300.00 [19:27:46]line СДАЧА: 0.00 [19:27:46]line НСП 1% : 2.65 [19:27:46]line НДС 12% : 31.86 [19:27:46]line Наличными: 300.00 [19:27:46]line Безнал.: 0.00 [19:27:46]line Место: АЗС № 72 "Партнер Нефть" [19:27:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:27:46]line СНО: Общий режим [19:27:46]line Чек 273 13.07.2024 19:27 [19:27:46]line Смена: 446 ФФД: 1.0 [19:27:46]line ЗНМ: 0300000160 [19:27:46]line РНМ: 0000000000090829 [19:27:46]line Версия ККМ: 001 [19:27:46]line ФМ: 0000000000874718 [19:27:46]line ФД: 164713 [19:27:46]line ФПД: 127960771615964 [19:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164713&fm=127960771615964&tin=02508201610067®Number=0000000000090829&sum=30000 [19:27:46]OFD Sender: Processing packet 164713 [packets to send 104, broken 103] [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00164713 [19:27:46]OFD Sender: To server: pG, [19:27:46]CommunicateWithHost lk.salyk.kg:30040 [19:27:46]ConnectInit lk.salyk.kg [19:27:46]written 0, free lines is 4095 [19:27:46]Connected sock=10 [19:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 7A 07 01 E2 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 11 01 00 00 F4 03 04 00 30 D5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 83 02 00 35 04 06 00 74 61 30 56 5C DC 66 DF 60 C9 77 6F 1C 16 [19:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 C0 47 00 4D 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 34 37 31 38 10 04 04 00 69 83 02 00 F4 03 04 00 C1 7B 92 66 B6 04 01 00 00 50 E8 46 11 A6 23 F7 EC [19:27:46]CommunicateWithHost err = 0 [19:27:46]CheckOFDResponse [19:27:46]1017 (14) - 77093643461234 [19:27:46]1041 (16) - 0000000000874718 [19:27:46]1040 (4) - 164713 [19:27:46]1012 (4) - 13.07.2024 13:06 [19:27:46]1206 (1) - 0 [19:27:46]OFD Sender: Remove packet 164713 [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00164713 [19:27:46]NVStorageDeleteData [19:27:46]Write to MH i2c: 01 00 00 90 07 97 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 F4 0C 9E [19:27:46]RasterBufferAndPrint [19:27:46]line [19:27:46]line [19:27:46]line [19:27:46]line [19:27:46]line [19:27:46]written 0, free lines is 3323 [19:27:46]MH_Cut [19:27:46]Write to MH i2c: D1 01 00 97 07 01 70 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: D1 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: D1 01 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: D1 01 00 97 07 00 6F [19:27:46]Write to MH i2c: 01 00 00 98 07 9F [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:47]OFD Sender: No OFD packet to send [19:27:47]*** Cut start [19:27:47]*** Partial cut [19:27:47]*** CUTSNS_PIN = 1 [19:27:47]*** CUTSNS_PIN = 0 [19:27:47]*** Brake cut motor [19:27:48]Read from MH i2c: 01 [19:27:48]MH_I2C_Read... [19:27:48]*** Stop cut motor [19:27:48]*** Cut end [19:27:48]Read from MH i2c: 01 07 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 98 07 00 00 00 00 00 FF 0F B4 [19:27:48]process_action close_receipt done [19:27:48]requested_data is exist [19:27:48]produce_requested_data [19:27:48]requested_item fm.sn is exist - process it [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 11 00 00 [19:27:48]Write to MH i2c: E2 08 00 99 07 80 11 00 00 00 00 00 00 1A [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 99 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [19:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:48]wFMCommunicate OK [19:27:48]requested_item fd.num is exist - process it [19:27:48]SAM_PROTO_GetFieldsCounters [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 13 00 00 [19:27:48]Write to MH i2c: E2 08 00 9A 07 80 13 00 00 00 00 00 00 1D [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 62 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 62 00 9A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [19:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_GetFieldsCounters done [19:27:48]requested_item shift.num is exist - process it [19:27:48]requested_item shift.opened is exist - process it [19:27:48]req_shift_opened [19:27:48]FM_GetShiftState [19:27:48]SAM_PROTO_GetShiftState [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 13 01 00 [19:27:48]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 00 [19:27:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_GetShiftState done [19:27:48]FM_GetShiftState done [19:27:48]req_shift_opened done [19:27:48]requested_item shift.open_date is exist - process it [19:27:48]req_shift_open_date [19:27:48]req_shift_open_date done [19:27:48]produce_requested_data done [19:27:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164713,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:27:48]process_action_free close_receipt [19:27:48]json_value_free [19:27:48]json_value_free done [19:27:48]process_json_proto returns [19:27:48]Send response to host [19:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164713,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:27:48]free response buf [19:27:48]execute_script done [19:27:48]execute_script returns [19:27:48]free content buf [19:27:48]Sock 9.Close socket [19:27:48]Sock 9.Thread stoped [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:56]accept exits with 7 [19:32:56]New connection [19:32:56]New thread 3067247972 created [19:32:56]Thread 3067104612 joined [19:32:56]Waiting for new connection... [19:32:56] Sock 7.Parse request [19:32:56]Sock 7.Check first char [19:32:56]Sock 7.First char is OK [19:32:56]request: POST /json_proto HTTP/1.0 [19:32:56]Method: POST [19:32:56]URL: /json_proto [19:32:56]Method is POST - this is cgi request [19:32:56]url: /json_proto [19:32:56]query_string will be loaded in cgi processing [19:32:56]execute_cgi json_proto POST (null) [19:32:56]execute_cgi path=json_proto method=POST [19:32:56]POST find Content-Length [19:32:56]Host: 172.17.56.4:8080 [19:32:56]Content-Length: 677 [19:32:56]Content-Type: application/json [19:32:56] [19:32:56]POST finish read [19:32:56]Found Content-Length = 677 [19:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:56]execute_script... [19:32:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:56]POST & json_proto [19:32:56]process_json_proto [19:32:56]json parsed OK: [19:32:56]protocol is kg_v1.0 [19:32:56]action value=close_receipt [19:32:56]process_action close_receipt [19:32:56]cmd_close_receipt [19:32:56]MH_GetDate [19:32:56]Write to MH i2c: F0 00 00 9C 07 92 [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 09 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: F0 09 00 9C 07 00 69 D6 92 66 C9 DC B2 64 8D [19:32:56]GetLastDocTimeStamp 1720898864 [19:32:56]current date 1720899177 [19:32:56]FM_GetShiftState [19:32:56]SAM_PROTO_GetShiftState [19:32:56]wFMCommunicate request_size=4 [19:32:56]MH_SAM_APDU [19:32:56]CAPDU: 80 13 01 00 [19:32:56]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0E 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 02 [19:32:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:32:56]wFMCommunicate OK [19:32:56]SAM_PROTO_GetShiftState done [19:32:56]FM_GetShiftState done [19:32:56]opened in 1720831249 [19:32:56]opened+sec_in_day 1720917649 [19:32:56]quantity*price = 50008 [19:32:56]sum+1 = 50009 [19:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 274 13.07.2024 19:32 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164714 ФПД: 70471479413527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193257&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164714&fm=70471479413527&tin=02508201610067®Number=0000000000090829&sum=50000 [19:32:58]StoreToDocumentArchive [19:32:58]shift 446 fd 164714 [19:32:58]save to /storage/0446/doc_00164714 [19:32:58]save last doc name /storage/0446/doc_00164714 to /storage/kkm_last_doc_name [19:32:58]save OK [19:32:58]Clear old archive folders... [19:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:58]tlvbuf is 01E68020 [19:32:58]SAM_PROTO_ClearQueue [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 09 00 00 [19:32:58]Write to MH i2c: E2 08 00 AA 07 80 09 00 00 00 00 00 00 23 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_ClearQueue done [19:32:58]KKMCreateOFDPacket [19:32:58]OFDProtocolAddRootSTLVToBuf [19:32:58]FM_MakeSignedData [19:32:58]FM_MakeSignedData [19:32:58]SAM_PROTO_SignData [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 0D 01 02 [19:32:58]Write to MH i2c: E2 08 00 AB 07 80 0D 01 02 00 00 00 00 2B [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]wFMCommunicate request_size=255 [19:32:58]MH_SAM_APDU [19:32: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 69 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 83 02 00 35 04 06 00 40 [19:32:58]Write to MH i2c: E2 02 01 AC 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 69 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 83 02 00 35 04 06 00 40 00 00 DC [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]wFMCommunicate request_size=10 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 0D 02 02 05 17 EB 7F 4B 17 [19:32:58]Write to MH i2c: E2 0D 00 AD 07 80 0D 02 02 05 00 17 EB 7F 4B 17 00 00 1B [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [19:32:58]RAPDU: 90 00 [19:32:58]wFMCommunicate OK [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 0D 03 02 [19:32:58]Write to MH i2c: E2 08 00 AE 07 80 0D 03 02 00 00 00 00 30 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0B 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0B 00 AE 07 00 E9 CD 78 39 E0 D8 87 AC 90 00 83 [19:32:58]RAPDU: E9 CD 78 39 E0 D8 87 AC 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_SignData done [19:32:58]FM_MakeSignedData done [19:32:58]CreateOFDProtocolMessage [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 11 00 00 [19:32:58]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [19:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:32:58]wFMCommunicate OK [19:32:58]CreateOFDProtocolMessage done [19:32:58]OFDSenderStorePacket 164714 [19:32:58]StoreOFDPacket docnum=164714 [19:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 29 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 69 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 83 02 00 35 04 06 00 40 17 EB 7F 4B 17 E9 CD 78 39 E0 D8 87 AC [19:32:58]CheckFolder [19:32:58]dirname=/storage/ofd_packets [19:32:58]CheckFolder done [19:32:58]ProducePacketName [19:32:58]name=ofd_packets/00164714 [19:32:58]NVStorageSaveData ofd_packets/00164714 [19:32:58]File name is /storage/ofd_packets/00164714 [19:32:58]Write 301 bytes [19:32:58]NVStorageSaveData done [19:32:58]OFDSenderStorePacket done [19:32:58]KKMCreateOFDPacket done [19:32:58]NVStorageSaveData kkm_last_timestamp [19:32:58]File name is /storage/kkm_last_timestamp [19:32:58]Write 4 bytes [19:32:58]NVStorageSaveData done [19:32:58]ExternCall_PrintAddStr [19:32:58]wPrintStart [19:32:58]Write to MH i2c: 01 00 00 B0 07 B7 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 07 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [19:32:58]RasterBufferAndPrint [19:32:58]line Счет N : (1)458808 [19:32:58]line ИНН: 02508201610067 [19:32:58]line Контрольно-Кассовый Чек [19:32:58]line ПРОДАЖА [19:32:58]line ТРК (МРК, ГНК) : 12 [19:32:58]line Товар: 2710124130 [19:32:58]line Аи-92-К-5 [19:32:58]line 7.600 * 65.80 [19:32:58]line = 500.08 [19:32:58]line НДС 12% НСП 1% [19:32:58]line > о реализуемом товаре [19:32:58]line ОКРУГЛЕНИЕ: -0.08 [19:32:58]line ИТОГО: 500.00 [19:32:58]line Внесено: 500.00 [19:32:58]line СДАЧА: 0.00 [19:32:58]line НСП 1% : 4.42 [19:32:58]line НДС 12% : 53.11 [19:32:58]line Наличными: 500.00 [19:32:58]line Безнал.: 0.00 [19:32:58]line Место: АЗС № 72 "Партнер Нефть" [19:32:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:32:58]line СНО: Общий режим [19:32:58]line Чек 274 13.07.2024 19:32 [19:32:58]line Смена: 446 ФФД: 1.0 [19:32:58]line ЗНМ: 0300000160 [19:32:58]line РНМ: 0000000000090829 [19:32:58]line Версия ККМ: 001 [19:32:58]line ФМ: 0000000000874718 [19:32:58]line ФД: 164714 [19:32:58]line ФПД: 70471479413527 [19:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193257&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164714&fm=70471479413527&tin=02508201610067®Number=0000000000090829&sum=50000 [19:32:58]OFD Sender: Processing packet 164714 [packets to send 104, broken 103] [19:32:58]ProducePacketName [19:32:58]name=ofd_packets/00164714 [19:32:58]OFD Sender: To server: pG, [19:32:58]CommunicateWithHost lk.salyk.kg:30040 [19:32:58]ConnectInit lk.salyk.kg [19:32:58]written 0, free lines is 4095 [19:32:59]Connected sock=10 [19:32:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 23 29 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 12 01 00 00 F4 03 04 00 69 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 83 02 00 35 04 06 00 40 17 EB 7F 4B 17 E9 CD 78 39 E0 D8 87 AC [19:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 02 47 00 15 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 83 02 00 F4 03 04 00 F9 7C 92 66 B6 04 01 00 00 76 8C 3A DD 36 8D CC D9 [19:32:59]CommunicateWithHost err = 0 [19:32:59]CheckOFDResponse [19:32:59]1017 (14) - 77093643461234 [19:32:59]1041 (16) - 0000000000874718 [19:32:59]1040 (4) - 164714 [19:32:59]1012 (4) - 13.07.2024 13:11 [19:32:59]1206 (1) - 0 [19:32:59]OFD Sender: Remove packet 164714 [19:32:59]ProducePacketName [19:32:59]name=ofd_packets/00164714 [19:32:59]NVStorageDeleteData [19:32:59]Write to MH i2c: 01 00 00 DA 07 E1 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 07 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: 01 07 00 DA 07 00 00 00 00 00 F1 0C E5 [19:32:59]RasterBufferAndPrint [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]line [19:32:59]written 0, free lines is 3320 [19:32:59]MH_Cut [19:32:59]Write to MH i2c: D1 01 00 E1 07 01 BA [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 01 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: D1 01 00 E1 07 00 B9 [19:32:59]Write to MH i2c: 01 00 00 E2 07 E9 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]OFD Sender: No OFD packet to send [19:33:00]*** Cut start [19:33:00]*** Partial cut [19:33:00]*** CUTSNS_PIN = 1 [19:33:00]*** CUTSNS_PIN = 0 [19:33:00]*** Brake cut motor [19:33:00]Read from MH i2c: 01 [19:33:00]MH_I2C_Read... [19:33:00]*** Stop cut motor [19:33:00]*** Cut end [19:33:00]Read from MH i2c: 01 07 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 FF 0F FE [19:33:00]process_action close_receipt done [19:33:00]requested_data is exist [19:33:00]produce_requested_data [19:33:00]requested_item fm.sn is exist - process it [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 11 00 00 [19:33:00]Write to MH i2c: E2 08 00 E3 07 80 11 00 00 00 00 00 00 64 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 E3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [19:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:33:00]wFMCommunicate OK [19:33:00]requested_item fd.num is exist - process it [19:33:00]SAM_PROTO_GetFieldsCounters [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 00 00 [19:33:00]Write to MH i2c: E2 08 00 E4 07 80 13 00 00 00 00 00 00 67 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 62 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 62 00 E4 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetFieldsCounters done [19:33:00]requested_item shift.num is exist - process it [19:33:00]requested_item shift.opened is exist - process it [19:33:00]req_shift_opened [19:33:00]FM_GetShiftState [19:33:00]SAM_PROTO_GetShiftState [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 01 00 [19:33:00]Write to MH i2c: E2 08 00 E5 07 80 13 01 00 00 00 00 00 69 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 E5 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4A [19:33:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetShiftState done [19:33:00]FM_GetShiftState done [19:33:00]req_shift_opened done [19:33:00]requested_item shift.open_date is exist - process it [19:33:00]req_shift_open_date [19:33:00]req_shift_open_date done [19:33:00]produce_requested_data done [19:33:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164714,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:33:00]process_action_free close_receipt [19:33:00]json_value_free [19:33:00]json_value_free done [19:33:00]process_json_proto returns [19:33:00]Send response to host [19:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164714,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:33:00]free response buf [19:33:00]execute_script done [19:33:00]execute_script returns [19:33:00]free content buf [19:33:00]Sock 7.Close socket [19:33:00]Sock 7.Thread stoped [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:02]accept exits with 9 [19:34:02]New connection [19:34:02]New thread 3067104612 created [19:34:02]Thread 3067247972 joined [19:34:02]Waiting for new connection... [19:34:02] Sock 9.Parse request [19:34:02]Sock 9.Check first char [19:34:02]Sock 9.First char is OK [19:34:02]request: POST /json_proto HTTP/1.0 [19:34:02]Method: POST [19:34:02]URL: /json_proto [19:34:02]Method is POST - this is cgi request [19:34:02]url: /json_proto [19:34:02]query_string will be loaded in cgi processing [19:34:02]execute_cgi json_proto POST (null) [19:34:02]execute_cgi path=json_proto method=POST [19:34:02]POST find Content-Length [19:34:02]Host: 172.17.56.4:8080 [19:34:02]Content-Length: 679 [19:34:02]Content-Type: application/json [19:34:02] [19:34:02]POST finish read [19:34:02]Found Content-Length = 679 [19:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]execute_script... [19:34: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)458809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]POST & json_proto [19:34:02]process_json_proto [19:34:02]json parsed OK: [19:34:02]protocol is kg_v1.0 [19:34:02]action value=close_receipt [19:34:02]process_action close_receipt [19:34:02]cmd_close_receipt [19:34:02]MH_GetDate [19:34:02]Write to MH i2c: F0 00 00 E6 07 DC [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 E6 07 00 AB D6 92 66 C9 DC B2 64 19 [19:34:02]GetLastDocTimeStamp 1720899177 [19:34:02]current date 1720899243 [19:34:02]FM_GetShiftState [19:34:02]SAM_PROTO_GetShiftState [19:34:02]wFMCommunicate request_size=4 [19:34:02]MH_SAM_APDU [19:34:02]CAPDU: 80 13 01 00 [19:34:02]Write to MH i2c: E2 08 00 E7 07 80 13 01 00 00 00 00 00 6B [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:02]Read from MH i2c: E2 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 E7 07 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4C [19:34:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:34:02]wFMCommunicate OK [19:34:02]SAM_PROTO_GetShiftState done [19:34:02]FM_GetShiftState done [19:34:02]opened in 1720831249 [19:34:02]opened+sec_in_day 1720917649 [19:34:02]quantity*price = 200025 [19:34:02]sum+1 = 200027 [19:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 275 13.07.2024 19:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164715 ФПД: 205784911019035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193403&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164715&fm=205784911019035&tin=02508201610067®Number=0000000000090829&sum=200000 [19:34:04]StoreToDocumentArchive [19:34:04]shift 446 fd 164715 [19:34:04]save to /storage/0446/doc_00164715 [19:34:04]save last doc name /storage/0446/doc_00164715 to /storage/kkm_last_doc_name [19:34:04]save OK [19:34:04]Clear old archive folders... [19:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:04]tlvbuf is 01EA3840 [19:34:04]SAM_PROTO_ClearQueue [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 09 00 00 [19:34:04]Write to MH i2c: E2 08 00 F4 07 80 09 00 00 00 00 00 00 6D [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_ClearQueue done [19:34:04]KKMCreateOFDPacket [19:34:04]OFDProtocolAddRootSTLVToBuf [19:34:04]FM_MakeSignedData [19:34:04]FM_MakeSignedData [19:34:04]SAM_PROTO_SignData [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 01 02 [19:34:04]Write to MH i2c: E2 08 00 F5 07 80 0D 01 02 00 00 00 00 75 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=255 [19:34:04]MH_SAM_APDU [19:34: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AB D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 83 02 00 35 04 06 00 BB 29 08 85 [19:34:04]Write to MH i2c: E2 02 01 F6 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AB D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 83 02 00 35 04 06 00 BB 29 08 85 00 00 15 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=7 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 02 02 02 7C 1B [19:34:04]Write to MH i2c: E2 0A 00 F7 07 80 0D 02 02 02 00 7C 1B 00 00 13 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 03 02 [19:34:04]Write to MH i2c: E2 08 00 F8 07 80 0D 03 02 00 00 00 00 7A [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 F8 07 00 6C F4 18 14 DB 5A AA C1 90 00 A7 [19:34:04]RAPDU: 6C F4 18 14 DB 5A AA C1 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_SignData done [19:34:04]FM_MakeSignedData done [19:34:04]CreateOFDProtocolMessage [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 11 00 00 [19:34:04]Write to MH i2c: E2 08 00 F9 07 80 11 00 00 00 00 00 00 7A [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 F9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [19:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:04]wFMCommunicate OK [19:34:04]CreateOFDProtocolMessage done [19:34:04]OFDSenderStorePacket 164715 [19:34:04]StoreOFDPacket docnum=164715 [19:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E4 35 04 01 F8 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AB D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 83 02 00 35 04 06 00 BB 29 08 85 7C 1B 6C F4 18 14 DB 5A AA C1 [19:34:04]CheckFolder [19:34:04]dirname=/storage/ofd_packets [19:34:04]CheckFolder done [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00164715 [19:34:04]NVStorageSaveData ofd_packets/00164715 [19:34:04]File name is /storage/ofd_packets/00164715 [19:34:04]Write 298 bytes [19:34:04]NVStorageSaveData done [19:34:04]OFDSenderStorePacket done [19:34:04]KKMCreateOFDPacket done [19:34:04]NVStorageSaveData kkm_last_timestamp [19:34:04]File name is /storage/kkm_last_timestamp [19:34:04]Write 4 bytes [19:34:04]NVStorageSaveData done [19:34:04]ExternCall_PrintAddStr [19:34:04]wPrintStart [19:34:04]Write to MH i2c: 01 00 00 FA 07 01 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 FF 0F 16 [19:34:04]RasterBufferAndPrint [19:34:04]line Счет N : (1)458809 [19:34:04]line ИНН: 02508201610067 [19:34:04]line Контрольно-Кассовый Чек [19:34:04]line ПРОДАЖА [19:34:04]line ТРК (МРК, ГНК) : 21 [19:34:04]line Товар: 2710194210 [19:34:04]line ДТ-К-5 [19:34:04]line 27.820 * 71.90 [19:34:04]line = 2000.26 [19:34:04]line НДС 12% НСП 1% [19:34:04]line > о реализуемом товаре [19:34:04]line ОКРУГЛЕНИЕ: -0.26 [19:34:04]line ИТОГО: 2000.00 [19:34:04]line Внесено: 2000.00 [19:34:04]line СДАЧА: 0.00 [19:34:04]line НСП 1% : 17.70 [19:34:04]line НДС 12% : 212.42 [19:34:04]line Наличными: 2000.00 [19:34:04]line Безнал.: 0.00 [19:34:04]line Место: АЗС № 72 "Партнер Нефть" [19:34:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:34:04]line СНО: Общий режим [19:34:04]line Чек 275 13.07.2024 19:34 [19:34:04]line Смена: 446 ФФД: 1.0 [19:34:04]line ЗНМ: 0300000160 [19:34:04]line РНМ: 0000000000090829 [19:34:04]line Версия ККМ: 001 [19:34:04]line ФМ: 0000000000874718 [19:34:04]line ФД: 164715 [19:34:04]line ФПД: 205784911019035 [19:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193403&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164715&fm=205784911019035&tin=02508201610067®Number=0000000000090829&sum=200000 [19:34:04]OFD Sender: Processing packet 164715 [packets to send 104, broken 103] [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00164715 [19:34:04]OFD Sender: To server: pG, [19:34:04]CommunicateWithHost lk.salyk.kg:30040 [19:34:04]ConnectInit lk.salyk.kg [19:34:04]written 0, free lines is 4095 [19:34:05]Connected sock=10 [19:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E4 35 04 01 F8 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 AB D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 83 02 00 35 04 06 00 BB 29 08 85 7C 1B 6C F4 18 14 DB 5A AA C1 [19:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE 4E 47 00 F0 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 83 02 00 F4 03 04 00 3B 7D 92 66 B6 04 01 00 00 AB B7 8E 3C CA EB 98 FA [19:34:05]CommunicateWithHost err = 0 [19:34:05]CheckOFDResponse [19:34:05]1017 (14) - 77093643461234 [19:34:05]1041 (16) - 0000000000874718 [19:34:05]1040 (4) - 164715 [19:34:05]1012 (4) - 13.07.2024 13:12 [19:34:05]1206 (1) - 0 [19:34:05]OFD Sender: Remove packet 164715 [19:34:05]ProducePacketName [19:34:05]name=ofd_packets/00164715 [19:34:05]NVStorageDeleteData [19:34:05]Write to MH i2c: 01 00 00 24 08 2C [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: 01 07 00 24 08 00 00 00 00 00 FC 0C 3B [19:34:05]RasterBufferAndPrint [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]line [19:34:05]written 0, free lines is 3330 [19:34:05]MH_Cut [19:34:05]Write to MH i2c: D1 01 00 2B 08 01 05 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: D1 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: D1 01 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: D1 01 00 2B 08 00 04 [19:34:05]Write to MH i2c: 01 00 00 2C 08 34 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]OFD Sender: No OFD packet to send [19:34:06]*** Cut start [19:34:06]*** Partial cut [19:34:06]*** CUTSNS_PIN = 1 [19:34:06]*** CUTSNS_PIN = 0 [19:34:06]*** Brake cut motor [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]*** Stop cut motor [19:34:06]*** Cut end [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [19:34:06]process_action close_receipt done [19:34:06]requested_data is exist [19:34:06]produce_requested_data [19:34:06]requested_item fm.sn is exist - process it [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 11 00 00 [19:34:06]Write to MH i2c: E2 08 00 2D 08 80 11 00 00 00 00 00 00 AF [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 2D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [19:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:06]wFMCommunicate OK [19:34:06]requested_item fd.num is exist - process it [19:34:06]SAM_PROTO_GetFieldsCounters [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 13 00 00 [19:34:06]Write to MH i2c: E2 08 00 2E 08 80 13 00 00 00 00 00 00 B2 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 62 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 62 00 2E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [19:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:06]wFMCommunicate OK [19:34:06]SAM_PROTO_GetFieldsCounters done [19:34:06]requested_item shift.num is exist - process it [19:34:06]requested_item shift.opened is exist - process it [19:34:06]req_shift_opened [19:34:06]FM_GetShiftState [19:34:06]SAM_PROTO_GetShiftState [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 13 01 00 [19:34:06]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:06]Read from MH i2c: E2 0E 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 95 [19:34:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:34:06]wFMCommunicate OK [19:34:06]SAM_PROTO_GetShiftState done [19:34:06]FM_GetShiftState done [19:34:06]req_shift_opened done [19:34:06]requested_item shift.open_date is exist - process it [19:34:06]req_shift_open_date [19:34:06]req_shift_open_date done [19:34:06]produce_requested_data done [19:34:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164715,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:34:06]process_action_free close_receipt [19:34:06]json_value_free [19:34:06]json_value_free done [19:34:06]process_json_proto returns [19:34:06]Send response to host [19:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164715,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:34:06]free response buf [19:34:06]execute_script done [19:34:06]execute_script returns [19:34:06]free content buf [19:34:06]Sock 9.Close socket [19:34:06]Sock 9.Thread stoped [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:43]accept exits with 7 [19:34:43]New connection [19:34:43]New thread 3067247972 created [19:34:43]Thread 3067104612 joined [19:34:43]Waiting for new connection... [19:34:43] Sock 7.Parse request [19:34:43]Sock 7.Check first char [19:34:43]Sock 7.First char is OK [19:34:43]request: POST /json_proto HTTP/1.0 [19:34:43]Method: POST [19:34:43]URL: /json_proto [19:34:43]Method is POST - this is cgi request [19:34:43]url: /json_proto [19:34:43]query_string will be loaded in cgi processing [19:34:43]execute_cgi json_proto POST (null) [19:34:43]execute_cgi path=json_proto method=POST [19:34:43]POST find Content-Length [19:34:43]Host: 172.17.56.4:8080 [19:34:43]Content-Length: 677 [19:34:43]Content-Type: application/json [19:34:43] [19:34:43]POST finish read [19:34:43]Found Content-Length = 677 [19:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:43]execute_script... [19:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:43]POST & json_proto [19:34:43]process_json_proto [19:34:43]json parsed OK: [19:34:43]protocol is kg_v1.0 [19:34:43]action value=close_receipt [19:34:43]process_action close_receipt [19:34:43]cmd_close_receipt [19:34:43]MH_GetDate [19:34:43]Write to MH i2c: F0 00 00 30 08 27 [19:34:43]Write i2c OK [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 09 00 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 09 00 30 08 00 D4 D6 92 66 C9 DC B2 64 8D [19:34:43]GetLastDocTimeStamp 1720899243 [19:34:43]current date 1720899284 [19:34:43]FM_GetShiftState [19:34:43]SAM_PROTO_GetShiftState [19:34:43]wFMCommunicate request_size=4 [19:34:43]MH_SAM_APDU [19:34:43]CAPDU: 80 13 01 00 [19:34:43]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [19:34:43]Write i2c OK [19:34:43]MH_I2C_Read... [19:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:43]Read from MH i2c: E2 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: E2 0E 00 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 97 [19:34:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:34:43]wFMCommunicate OK [19:34:43]SAM_PROTO_GetShiftState done [19:34:43]FM_GetShiftState done [19:34:43]opened in 1720831249 [19:34:43]opened+sec_in_day 1720917649 [19:34:43]quantity*price = 30004 [19:34:43]sum+1 = 30006 [19:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 276 13.07.2024 19:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164716 ФПД: 109575785725957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193444&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164716&fm=109575785725957&tin=02508201610067®Number=0000000000090829&sum=30000 [19:34:44]StoreToDocumentArchive [19:34:44]shift 446 fd 164716 [19:34:44]save to /storage/0446/doc_00164716 [19:34:44]save last doc name /storage/0446/doc_00164716 to /storage/kkm_last_doc_name [19:34:44]save OK [19:34:44]Clear old archive folders... [19:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:44]tlvbuf is 01E57980 [19:34:44]SAM_PROTO_ClearQueue [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 09 00 00 [19:34:44]Write to MH i2c: E2 08 00 3E 08 80 09 00 00 00 00 00 00 B8 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]SAM_PROTO_ClearQueue done [19:34:44]KKMCreateOFDPacket [19:34:44]OFDProtocolAddRootSTLVToBuf [19:34:44]FM_MakeSignedData [19:34:44]FM_MakeSignedData [19:34:44]SAM_PROTO_SignData [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 01 02 [19:34:44]Write to MH i2c: E2 08 00 3F 08 80 0D 01 02 00 00 00 00 C0 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=255 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D4 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 83 02 00 35 04 06 00 63 [19:34:44]Write to MH i2c: E2 02 01 40 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D4 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 83 02 00 35 04 06 00 63 00 00 C4 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=10 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 02 02 05 A8 99 C8 C0 05 [19:34:44]Write to MH i2c: E2 0D 00 41 08 80 0D 02 02 05 00 A8 99 C8 C0 05 00 00 9B [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 03 02 [19:34:44]Write to MH i2c: E2 08 00 42 08 80 0D 03 02 00 00 00 00 C5 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 0B 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 0B 00 42 08 00 AB 50 C3 74 51 C4 B0 FA 90 00 B7 [19:34:45]RAPDU: AB 50 C3 74 51 C4 B0 FA 90 00 [19:34:45]wFMCommunicate OK [19:34:45]SAM_PROTO_SignData done [19:34:45]FM_MakeSignedData done [19:34:45]CreateOFDProtocolMessage [19:34:45]wFMCommunicate request_size=4 [19:34:45]MH_SAM_APDU [19:34:45]CAPDU: 80 11 00 00 [19:34:45]Write to MH i2c: E2 08 00 43 08 80 11 00 00 00 00 00 00 C5 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 17 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 17 00 43 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [19:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:45]wFMCommunicate OK [19:34:45]CreateOFDProtocolMessage done [19:34:45]OFDSenderStorePacket 164716 [19:34:45]StoreOFDPacket docnum=164716 [19:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 55 07 01 EB 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D4 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 83 02 00 35 04 06 00 63 A8 99 C8 C0 05 AB 50 C3 74 51 C4 B0 FA [19:34:45]CheckFolder [19:34:45]dirname=/storage/ofd_packets [19:34:45]CheckFolder done [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00164716 [19:34:45]NVStorageSaveData ofd_packets/00164716 [19:34:45]File name is /storage/ofd_packets/00164716 [19:34:45]Write 301 bytes [19:34:45]NVStorageSaveData done [19:34:45]OFDSenderStorePacket done [19:34:45]KKMCreateOFDPacket done [19:34:45]NVStorageSaveData kkm_last_timestamp [19:34:45]File name is /storage/kkm_last_timestamp [19:34:45]Write 4 bytes [19:34:45]NVStorageSaveData done [19:34:45]ExternCall_PrintAddStr [19:34:45]wPrintStart [19:34:45]Write to MH i2c: 01 00 00 44 08 4C [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [19:34:45]RasterBufferAndPrint [19:34:45]line Счет N : (1)458810 [19:34:45]line ИНН: 02508201610067 [19:34:45]line Контрольно-Кассовый Чек [19:34:45]line ПРОДАЖА [19:34:45]line ТРК (МРК, ГНК) : 12 [19:34:45]line Товар: 2710124130 [19:34:45]line Аи-92-К-5 [19:34:45]line 4.560 * 65.80 [19:34:45]line = 300.05 [19:34:45]line НДС 12% НСП 1% [19:34:45]line > о реализуемом товаре [19:34:45]line ОКРУГЛЕНИЕ: -0.05 [19:34:45]line ИТОГО: 300.00 [19:34:45]line Внесено: 300.00 [19:34:45]line СДАЧА: 0.00 [19:34:45]line НСП 1% : 2.65 [19:34:45]line НДС 12% : 31.86 [19:34:45]line Наличными: 300.00 [19:34:45]line Безнал.: 0.00 [19:34:45]line Место: АЗС № 72 "Партнер Нефть" [19:34:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:34:45]line СНО: Общий режим [19:34:45]line Чек 276 13.07.2024 19:34 [19:34:45]line Смена: 446 ФФД: 1.0 [19:34:45]line ЗНМ: 0300000160 [19:34:45]line РНМ: 0000000000090829 [19:34:45]line Версия ККМ: 001 [19:34:45]line ФМ: 0000000000874718 [19:34:45]line ФД: 164716 [19:34:45]line ФПД: 109575785725957 [19:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193444&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164716&fm=109575785725957&tin=02508201610067®Number=0000000000090829&sum=30000 [19:34:45]OFD Sender: Processing packet 164716 [packets to send 104, broken 103] [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00164716 [19:34:45]OFD Sender: To server: pG, [19:34:45]CommunicateWithHost lk.salyk.kg:30040 [19:34:45]ConnectInit lk.salyk.kg [19:34:45]written 0, free lines is 4095 [19:34:45]Connected sock=10 [19:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 55 07 01 EB 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D4 D6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 83 02 00 35 04 06 00 63 A8 99 C8 C0 05 AB 50 C3 74 51 C4 B0 FA [19:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 05 47 00 8B 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 83 02 00 F4 03 04 00 64 7D 92 66 B6 04 01 00 00 2B F8 C5 C7 FB 7E 69 21 [19:34:45]CommunicateWithHost err = 0 [19:34:45]CheckOFDResponse [19:34:45]1017 (14) - 77093643461234 [19:34:45]1041 (16) - 0000000000874718 [19:34:45]1040 (4) - 164716 [19:34:45]1012 (4) - 13.07.2024 13:13 [19:34:45]1206 (1) - 0 [19:34:45]OFD Sender: Remove packet 164716 [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00164716 [19:34:45]NVStorageDeleteData [19:34:45]Write to MH i2c: 01 00 00 6E 08 76 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 F7 0C 80 [19:34:45]RasterBufferAndPrint [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]written 0, free lines is 3326 [19:34:45]MH_Cut [19:34:45]Write to MH i2c: D1 01 00 75 08 01 4F [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 01 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 01 00 75 08 00 4E [19:34:45]Write to MH i2c: 01 00 00 76 08 7E [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:46]OFD Sender: No OFD packet to send [19:34:46]*** Cut start [19:34:46]*** Partial cut [19:34:46]*** CUTSNS_PIN = 1 [19:34:46]*** CUTSNS_PIN = 0 [19:34:46]*** Brake cut motor [19:34:47]Read from MH i2c: 01 [19:34:47]MH_I2C_Read... [19:34:47]*** Stop cut motor [19:34:47]*** Cut end [19:34:47]Read from MH i2c: 01 07 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 FF 0F 93 [19:34:47]process_action close_receipt done [19:34:47]requested_data is exist [19:34:47]produce_requested_data [19:34:47]requested_item fm.sn is exist - process it [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 11 00 00 [19:34:47]Write to MH i2c: E2 08 00 77 08 80 11 00 00 00 00 00 00 F9 [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 17 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 17 00 77 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [19:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:47]wFMCommunicate OK [19:34:47]requested_item fd.num is exist - process it [19:34:47]SAM_PROTO_GetFieldsCounters [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 13 00 00 [19:34:47]Write to MH i2c: E2 08 00 78 08 80 13 00 00 00 00 00 00 FC [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 62 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 62 00 78 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:47]wFMCommunicate OK [19:34:47]SAM_PROTO_GetFieldsCounters done [19:34:47]requested_item shift.num is exist - process it [19:34:47]requested_item shift.opened is exist - process it [19:34:47]req_shift_opened [19:34:47]FM_GetShiftState [19:34:47]SAM_PROTO_GetShiftState [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 13 01 00 [19:34:47]Write to MH i2c: E2 08 00 79 08 80 13 01 00 00 00 00 00 FE [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 0E 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 0E 00 79 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DF [19:34:47]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:34:47]wFMCommunicate OK [19:34:47]SAM_PROTO_GetShiftState done [19:34:47]FM_GetShiftState done [19:34:47]req_shift_opened done [19:34:47]requested_item shift.open_date is exist - process it [19:34:47]req_shift_open_date [19:34:47]req_shift_open_date done [19:34:47]produce_requested_data done [19:34:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164716,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:34:47]process_action_free close_receipt [19:34:47]json_value_free [19:34:47]json_value_free done [19:34:47]process_json_proto returns [19:34:47]Send response to host [19:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164716,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:34:47]free response buf [19:34:47]execute_script done [19:34:47]execute_script returns [19:34:47]free content buf [19:34:47]Sock 7.Close socket [19:34:47]Sock 7.Thread stoped [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:03]accept exits with 9 [19:36:03]New connection [19:36:03]New thread 3067104612 created [19:36:03]Thread 3067247972 joined [19:36:03]Waiting for new connection... [19:36:03] Sock 9.Parse request [19:36:03]Sock 9.Check first char [19:36:03]Sock 9.First char is OK [19:36:03]request: POST /json_proto HTTP/1.0 [19:36:03]Method: POST [19:36:03]URL: /json_proto [19:36:03]Method is POST - this is cgi request [19:36:03]url: /json_proto [19:36:03]query_string will be loaded in cgi processing [19:36:03]execute_cgi json_proto POST (null) [19:36:03]execute_cgi path=json_proto method=POST [19:36:03]POST find Content-Length [19:36:03]Host: 172.17.56.4:8080 [19:36:03]Content-Length: 682 [19:36:03]Content-Type: application/json [19:36:03] [19:36:03]POST finish read [19:36:03]Found Content-Length = 682 [19:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:03]execute_script... [19:36: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)458811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:03]POST & json_proto [19:36:03]process_json_proto [19:36:03]json parsed OK: [19:36:03]protocol is kg_v1.0 [19:36:03]action value=close_receipt [19:36:03]process_action close_receipt [19:36:03]cmd_close_receipt [19:36:03]MH_GetDate [19:36:03]Write to MH i2c: F0 00 00 7A 08 71 [19:36:03]Write i2c OK [19:36:03]MH_I2C_Read... [19:36:03]Read from MH i2c: F0 [19:36:03]MH_I2C_Read... [19:36:03]Read from MH i2c: F0 09 00 [19:36:03]MH_I2C_Read... [19:36:03]Read from MH i2c: F0 09 00 7A 08 00 23 D7 92 66 C9 DC B2 64 27 [19:36:03]GetLastDocTimeStamp 1720899284 [19:36:03]current date 1720899363 [19:36:03]FM_GetShiftState [19:36:03]SAM_PROTO_GetShiftState [19:36:03]wFMCommunicate request_size=4 [19:36:03]MH_SAM_APDU [19:36:03]CAPDU: 80 13 01 00 [19:36:03]Write to MH i2c: E2 08 00 7B 08 80 13 01 00 00 00 00 00 00 [19:36:03]Write i2c OK [19:36:03]MH_I2C_Read... [19:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:03]Read from MH i2c: E2 [19:36:03]MH_I2C_Read... [19:36:03]Read from MH i2c: E2 0E 00 [19:36:03]MH_I2C_Read... [19:36:03]Read from MH i2c: E2 0E 00 7B 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E1 [19:36:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:36:03]wFMCommunicate OK [19:36:03]SAM_PROTO_GetShiftState done [19:36:03]FM_GetShiftState done [19:36:03]opened in 1720831249 [19:36:03]opened+sec_in_day 1720917649 [19:36:03]quantity*price = 100016 [19:36:03]sum+1 = 100017 [19:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 277 13.07.2024 19:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164717 ФПД: 122025185716420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164717&fm=122025185716420&tin=02508201610067®Number=0000000000090829&sum=100000 [19:36:04]StoreToDocumentArchive [19:36:04]shift 446 fd 164717 [19:36:04]save to /storage/0446/doc_00164717 [19:36:04]save last doc name /storage/0446/doc_00164717 to /storage/kkm_last_doc_name [19:36:04]save OK [19:36:04]Clear old archive folders... [19:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:04]tlvbuf is 01E5A820 [19:36:04]SAM_PROTO_ClearQueue [19:36:04]wFMCommunicate request_size=4 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 09 00 00 [19:36:04]Write to MH i2c: E2 08 00 88 08 80 09 00 00 00 00 00 00 02 [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [19:36:04]RAPDU: 90 00 [19:36:04]wFMCommunicate OK [19:36:04]SAM_PROTO_ClearQueue done [19:36:04]KKMCreateOFDPacket [19:36:04]OFDProtocolAddRootSTLVToBuf [19:36:04]FM_MakeSignedData [19:36:04]FM_MakeSignedData [19:36:04]SAM_PROTO_SignData [19:36:04]wFMCommunicate request_size=4 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 0D 01 02 [19:36:04]Write to MH i2c: E2 08 00 89 08 80 0D 01 02 00 00 00 00 0A [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [19:36:04]RAPDU: 90 00 [19:36:04]wFMCommunicate OK [19:36:04]wFMCommunicate request_size=255 [19:36:04]MH_SAM_APDU [19:36: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 23 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 83 02 00 35 04 06 00 6E [19:36:04]Write to MH i2c: E2 02 01 8A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 23 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 83 02 00 35 04 06 00 6E 00 00 4C [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [19:36:04]RAPDU: 90 00 [19:36:04]wFMCommunicate OK [19:36:04]wFMCommunicate request_size=10 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 0D 02 02 05 FB 33 D9 28 C4 [19:36:04]Write to MH i2c: E2 0D 00 8B 08 80 0D 02 02 05 00 FB 33 D9 28 C4 00 00 0A [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [19:36:04]RAPDU: 90 00 [19:36:04]wFMCommunicate OK [19:36:04]wFMCommunicate request_size=4 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 0D 03 02 [19:36:04]Write to MH i2c: E2 08 00 8C 08 80 0D 03 02 00 00 00 00 0F [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 0B 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 0B 00 8C 08 00 0B 5B B7 DE 7A B7 9D A0 90 00 79 [19:36:04]RAPDU: 0B 5B B7 DE 7A B7 9D A0 90 00 [19:36:04]wFMCommunicate OK [19:36:04]SAM_PROTO_SignData done [19:36:04]FM_MakeSignedData done [19:36:04]CreateOFDProtocolMessage [19:36:04]wFMCommunicate request_size=4 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 11 00 00 [19:36:04]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 17 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [19:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:36:04]wFMCommunicate OK [19:36:04]CreateOFDProtocolMessage done [19:36:04]OFDSenderStorePacket 164717 [19:36:04]StoreOFDPacket docnum=164717 [19:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 0D 07 01 18 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 23 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 83 02 00 35 04 06 00 6E FB 33 D9 28 C4 0B 5B B7 DE 7A B7 9D A0 [19:36:04]CheckFolder [19:36:04]dirname=/storage/ofd_packets [19:36:04]CheckFolder done [19:36:04]ProducePacketName [19:36:04]name=ofd_packets/00164717 [19:36:04]NVStorageSaveData ofd_packets/00164717 [19:36:04]File name is /storage/ofd_packets/00164717 [19:36:04]Write 301 bytes [19:36:04]NVStorageSaveData done [19:36:04]OFDSenderStorePacket done [19:36:04]KKMCreateOFDPacket done [19:36:04]NVStorageSaveData kkm_last_timestamp [19:36:04]File name is /storage/kkm_last_timestamp [19:36:04]Write 4 bytes [19:36:04]NVStorageSaveData done [19:36:04]ExternCall_PrintAddStr [19:36:04]wPrintStart [19:36:04]Write to MH i2c: 01 00 00 8E 08 96 [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: 01 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: 01 07 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 FF 0F AB [19:36:04]RasterBufferAndPrint [19:36:04]line Счет N : (1)458811 [19:36:04]line ИНН: 02508201610067 [19:36:04]line Контрольно-Кассовый Чек [19:36:04]line ПРОДАЖА [19:36:04]line ТРК (МРК, ГНК) : 12 [19:36:04]line Товар: 2710124130 [19:36:04]line Аи-92-К-5 [19:36:04]line 15.200 * 65.80 [19:36:04]line = 1000.16 [19:36:04]line НДС 12% НСП 1% [19:36:04]line > о реализуемом товаре [19:36:04]line ОКРУГЛЕНИЕ: -0.16 [19:36:04]line ИТОГО: 1000.00 [19:36:04]line Внесено: 1000.00 [19:36:04]line СДАЧА: 0.00 [19:36:04]line НСП 1% : 8.85 [19:36:04]line НДС 12% : 106.21 [19:36:04]line Наличными: 1000.00 [19:36:04]line Безнал.: 0.00 [19:36:04]line Место: АЗС № 72 "Партнер Нефть" [19:36:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:36:04]line СНО: Общий режим [19:36:04]line Чек 277 13.07.2024 19:36 [19:36:04]line Смена: 446 ФФД: 1.0 [19:36:04]line ЗНМ: 0300000160 [19:36:04]line РНМ: 0000000000090829 [19:36:04]line Версия ККМ: 001 [19:36:04]line ФМ: 0000000000874718 [19:36:04]line ФД: 164717 [19:36:04]line ФПД: 122025185716420 [19:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193603&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164717&fm=122025185716420&tin=02508201610067®Number=0000000000090829&sum=100000 [19:36:05]OFD Sender: Processing packet 164717 [packets to send 104, broken 103] [19:36:05]ProducePacketName [19:36:05]name=ofd_packets/00164717 [19:36:05]OFD Sender: To server: pG, [19:36:05]CommunicateWithHost lk.salyk.kg:30040 [19:36:05]ConnectInit lk.salyk.kg [19:36:05]written 0, free lines is 4095 [19:36:05]Connected sock=7 [19:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 0D 07 01 18 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 23 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 83 02 00 35 04 06 00 6E FB 33 D9 28 C4 0B 5B B7 DE 7A B7 9D A0 [19:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 56 47 00 0D 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 34 37 31 38 10 04 04 00 6D 83 02 00 F4 03 04 00 B3 7D 92 66 B6 04 01 00 00 67 52 E8 89 94 3E FE DF [19:36:05]CommunicateWithHost err = 0 [19:36:05]CheckOFDResponse [19:36:05]1017 (14) - 77093643461234 [19:36:05]1041 (16) - 0000000000874718 [19:36:05]1040 (4) - 164717 [19:36:05]1012 (4) - 13.07.2024 13:14 [19:36:05]1206 (1) - 0 [19:36:05]OFD Sender: Remove packet 164717 [19:36:05]ProducePacketName [19:36:05]name=ofd_packets/00164717 [19:36:05]NVStorageDeleteData [19:36:05]Write to MH i2c: 01 00 00 B8 08 C0 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 07 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 F2 0C C5 [19:36:05]RasterBufferAndPrint [19:36:05]line [19:36:05]line [19:36:05]line [19:36:05]line [19:36:05]line [19:36:05]written 0, free lines is 3322 [19:36:05]MH_Cut [19:36:05]Write to MH i2c: D1 01 00 BF 08 01 99 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: D1 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: D1 01 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: D1 01 00 BF 08 00 98 [19:36:05]Write to MH i2c: 01 00 00 C0 08 C8 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:06]OFD Sender: No OFD packet to send [19:36:06]*** Cut start [19:36:06]*** Partial cut [19:36:06]*** CUTSNS_PIN = 1 [19:36:06]*** CUTSNS_PIN = 0 [19:36:06]*** Brake cut motor [19:36:06]Read from MH i2c: 01 [19:36:06]MH_I2C_Read... [19:36:06]*** Stop cut motor [19:36:06]*** Cut end [19:36:06]Read from MH i2c: 01 07 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [19:36:06]process_action close_receipt done [19:36:06]requested_data is exist [19:36:06]produce_requested_data [19:36:06]requested_item fm.sn is exist - process it [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 11 00 00 [19:36:06]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 [19:36:06]MH_I2C_Read... [19:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:06]Read from MH i2c: E2 17 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [19:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:36:06]wFMCommunicate OK [19:36:06]requested_item fd.num is exist - process it [19:36:06]SAM_PROTO_GetFieldsCounters [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 13 00 00 [19:36:06]Write to MH i2c: E2 08 00 C2 08 80 13 00 00 00 00 00 00 46 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 62 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 62 00 C2 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:07]wFMCommunicate OK [19:36:07]SAM_PROTO_GetFieldsCounters done [19:36:07]requested_item shift.num is exist - process it [19:36:07]requested_item shift.opened is exist - process it [19:36:07]req_shift_opened [19:36:07]FM_GetShiftState [19:36:07]SAM_PROTO_GetShiftState [19:36:07]wFMCommunicate request_size=4 [19:36:07]MH_SAM_APDU [19:36:07]CAPDU: 80 13 01 00 [19:36:07]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0E 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 29 [19:36:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:36:07]wFMCommunicate OK [19:36:07]SAM_PROTO_GetShiftState done [19:36:07]FM_GetShiftState done [19:36:07]req_shift_opened done [19:36:07]requested_item shift.open_date is exist - process it [19:36:07]req_shift_open_date [19:36:07]req_shift_open_date done [19:36:07]produce_requested_data done [19:36:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164717,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:36:07]process_action_free close_receipt [19:36:07]json_value_free [19:36:07]json_value_free done [19:36:07]process_json_proto returns [19:36:07]Send response to host [19:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164717,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:36:07]free response buf [19:36:07]execute_script done [19:36:07]execute_script returns [19:36:07]free content buf [19:36:07]Sock 9.Close socket [19:36:07]Sock 9.Thread stoped [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:07]accept exits with 10 [19:39:07]New connection [19:39:07]New thread 3067247972 created [19:39:07]Thread 3067104612 joined [19:39:07]Waiting for new connection... [19:39:07] Sock 10.Parse request [19:39:07]Sock 10.Check first char [19:39:07]Sock 10.First char is OK [19:39:07]request: POST /json_proto HTTP/1.0 [19:39:07]Method: POST [19:39:07]URL: /json_proto [19:39:07]Method is POST - this is cgi request [19:39:07]url: /json_proto [19:39:07]query_string will be loaded in cgi processing [19:39:07]execute_cgi json_proto POST (null) [19:39:07]execute_cgi path=json_proto method=POST [19:39:07]POST find Content-Length [19:39:07]Host: 172.17.56.4:8080 [19:39:07]Content-Length: 674 [19:39:07]Content-Type: application/json [19:39:07] [19:39:07]POST finish read [19:39:07]Found Content-Length = 674 [19:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:07]execute_script... [19:39:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:07]POST & json_proto [19:39:07]process_json_proto [19:39:07]json parsed OK: [19:39:07]protocol is kg_v1.0 [19:39:07]action value=close_receipt [19:39:07]process_action close_receipt [19:39:07]cmd_close_receipt [19:39:07]MH_GetDate [19:39:07]Write to MH i2c: F0 00 00 C4 08 BB [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: F0 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: F0 09 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: F0 09 00 C4 08 00 DC D7 92 66 C9 DC B2 64 2A [19:39:07]GetLastDocTimeStamp 1720899363 [19:39:07]current date 1720899548 [19:39:07]FM_GetShiftState [19:39:07]SAM_PROTO_GetShiftState [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 13 01 00 [19:39:07]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0E 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2B [19:39:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:39:07]wFMCommunicate OK [19:39:07]SAM_PROTO_GetShiftState done [19:39:07]FM_GetShiftState done [19:39:07]opened in 1720831249 [19:39:07]opened+sec_in_day 1720917649 [19:39:07]quantity*price = 50042 [19:39:07]sum+1 = 50043 [19:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 278 13.07.2024 19:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164718 ФПД: 129334395767017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164718&fm=129334395767017&tin=02508201610067®Number=0000000000090829&sum=50000 [19:39:08]StoreToDocumentArchive [19:39:08]shift 446 fd 164718 [19:39:08]save to /storage/0446/doc_00164718 [19:39:08]save last doc name /storage/0446/doc_00164718 to /storage/kkm_last_doc_name [19:39:08]save OK [19:39:08]Clear old archive folders... [19:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:08]tlvbuf is 01E64C30 [19:39:08]SAM_PROTO_ClearQueue [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 09 00 00 [19:39:08]Write to MH i2c: E2 08 00 D2 08 80 09 00 00 00 00 00 00 4C [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [19:39:08]RAPDU: 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_ClearQueue done [19:39:08]KKMCreateOFDPacket [19:39:08]OFDProtocolAddRootSTLVToBuf [19:39:08]FM_MakeSignedData [19:39:08]FM_MakeSignedData [19:39:08]SAM_PROTO_SignData [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 0D 01 02 [19:39:08]Write to MH i2c: E2 08 00 D3 08 80 0D 01 02 00 00 00 00 54 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [19:39:08]RAPDU: 90 00 [19:39:08]wFMCommunicate OK [19:39:08]wFMCommunicate request_size=255 [19:39:08]MH_SAM_APDU [19:39: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DC D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 83 02 00 35 04 06 00 75 A1 02 B7 [19:39:08]Write to MH i2c: E2 02 01 D4 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DC D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 83 02 00 35 04 06 00 75 A1 02 B7 00 00 6C [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [19:39:08]RAPDU: 90 00 [19:39:08]wFMCommunicate OK [19:39:08]wFMCommunicate request_size=7 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 0D 02 02 02 88 E9 [19:39:08]Write to MH i2c: E2 0A 00 D5 08 80 0D 02 02 02 00 88 E9 00 00 CC [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [19:39:08]RAPDU: 90 00 [19:39:08]wFMCommunicate OK [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 0D 03 02 [19:39:08]Write to MH i2c: E2 08 00 D6 08 80 0D 03 02 00 00 00 00 59 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0B 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0B 00 D6 08 00 A6 C7 9F E0 2D 55 25 52 90 00 3F [19:39:08]RAPDU: A6 C7 9F E0 2D 55 25 52 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_SignData done [19:39:08]FM_MakeSignedData done [19:39:08]CreateOFDProtocolMessage [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 11 00 00 [19:39:08]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 D7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [19:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:09]wFMCommunicate OK [19:39:09]CreateOFDProtocolMessage done [19:39:09]OFDSenderStorePacket 164718 [19:39:09]StoreOFDPacket docnum=164718 [19:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2A 04 04 01 BD 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DC D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 83 02 00 35 04 06 00 75 A1 02 B7 88 E9 A6 C7 9F E0 2D 55 25 52 [19:39:09]CheckFolder [19:39:09]dirname=/storage/ofd_packets [19:39:09]CheckFolder done [19:39:09]ProducePacketName [19:39:09]name=ofd_packets/00164718 [19:39:09]NVStorageSaveData ofd_packets/00164718 [19:39:09]File name is /storage/ofd_packets/00164718 [19:39:09]Write 298 bytes [19:39:09]NVStorageSaveData done [19:39:09]OFDSenderStorePacket done [19:39:09]KKMCreateOFDPacket done [19:39:09]NVStorageSaveData kkm_last_timestamp [19:39:09]File name is /storage/kkm_last_timestamp [19:39:09]Write 4 bytes [19:39:09]NVStorageSaveData done [19:39:09]ExternCall_PrintAddStr [19:39:09]wPrintStart [19:39:09]Write to MH i2c: 01 00 00 D8 08 E0 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [19:39:09]RasterBufferAndPrint [19:39:09]line Счет N : (1)458813 [19:39:09]line ИНН: 02508201610067 [19:39:09]line Контрольно-Кассовый Чек [19:39:09]line ПРОДАЖА [19:39:09]line ТРК (МРК, ГНК) : 21 [19:39:09]line Товар: 2710194210 [19:39:09]line ДТ-К-5 [19:39:09]line 6.960 * 71.90 [19:39:09]line = 500.42 [19:39:09]line НДС 12% НСП 1% [19:39:09]line > о реализуемом товаре [19:39:09]line ОКРУГЛЕНИЕ: -0.42 [19:39:09]line ИТОГО: 500.00 [19:39:09]line Внесено: 500.00 [19:39:09]line СДАЧА: 0.00 [19:39:09]line НСП 1% : 4.43 [19:39:09]line НДС 12% : 53.14 [19:39:09]line Наличными: 500.00 [19:39:09]line Безнал.: 0.00 [19:39:09]line Место: АЗС № 72 "Партнер Нефть" [19:39:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:39:09]line СНО: Общий режим [19:39:09]line Чек 278 13.07.2024 19:39 [19:39:09]line Смена: 446 ФФД: 1.0 [19:39:09]line ЗНМ: 0300000160 [19:39:09]line РНМ: 0000000000090829 [19:39:09]line Версия ККМ: 001 [19:39:09]line ФМ: 0000000000874718 [19:39:09]line ФД: 164718 [19:39:09]line ФПД: 129334395767017 [19:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164718&fm=129334395767017&tin=02508201610067®Number=0000000000090829&sum=50000 [19:39:09]OFD Sender: Processing packet 164718 [packets to send 104, broken 103] [19:39:09]ProducePacketName [19:39:09]name=ofd_packets/00164718 [19:39:09]OFD Sender: To server: pG, [19:39:09]CommunicateWithHost lk.salyk.kg:30040 [19:39:09]ConnectInit lk.salyk.kg [19:39:09]written 0, free lines is 4095 [19:39:09]Connected sock=9 [19:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2A 04 04 01 BD 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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DC D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 83 02 00 35 04 06 00 75 A1 02 B7 88 E9 A6 C7 9F E0 2D 55 25 52 [19:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6C 8D 47 00 04 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 83 02 00 F4 03 04 00 6C 7E 92 66 B6 04 01 00 00 3F 5C D0 83 BE 2D 9E 74 [19:39:09]CommunicateWithHost err = 0 [19:39:09]CheckOFDResponse [19:39:09]1017 (14) - 77093643461234 [19:39:09]1041 (16) - 0000000000874718 [19:39:09]1040 (4) - 164718 [19:39:09]1012 (4) - 13.07.2024 13:17 [19:39:09]1206 (1) - 0 [19:39:09]OFD Sender: Remove packet 164718 [19:39:09]ProducePacketName [19:39:09]name=ofd_packets/00164718 [19:39:09]NVStorageDeleteData [19:39:09]Write to MH i2c: 01 00 00 02 09 0B [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 E9 0C 07 [19:39:09]RasterBufferAndPrint [19:39:09]line [19:39:09]line [19:39:09]line [19:39:09]line [19:39:09]line [19:39:09]written 0, free lines is 3312 [19:39:09]MH_Cut [19:39:09]Write to MH i2c: D1 01 00 09 09 01 E4 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: D1 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: D1 01 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: D1 01 00 09 09 00 E3 [19:39:09]Write to MH i2c: 01 00 00 0A 09 13 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:10]OFD Sender: No OFD packet to send [19:39:10]*** Cut start [19:39:10]*** Partial cut [19:39:10]*** CUTSNS_PIN = 1 [19:39:10]*** CUTSNS_PIN = 0 [19:39:10]*** Brake cut motor [19:39:11]Read from MH i2c: 01 [19:39:11]MH_I2C_Read... [19:39:11]*** Stop cut motor [19:39:11]*** Cut end [19:39:11]Read from MH i2c: 01 07 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 FF 0F 28 [19:39:11]process_action close_receipt done [19:39:11]requested_data is exist [19:39:11]produce_requested_data [19:39:11]requested_item fm.sn is exist - process it [19:39:11]wFMCommunicate request_size=4 [19:39:11]MH_SAM_APDU [19:39:11]CAPDU: 80 11 00 00 [19:39:11]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:11]Read from MH i2c: E2 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 17 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 17 00 0B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [19:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:11]wFMCommunicate OK [19:39:11]requested_item fd.num is exist - process it [19:39:11]SAM_PROTO_GetFieldsCounters [19:39:11]wFMCommunicate request_size=4 [19:39:11]MH_SAM_APDU [19:39:11]CAPDU: 80 13 00 00 [19:39:11]Write to MH i2c: E2 08 00 0C 09 80 13 00 00 00 00 00 00 91 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:11]Read from MH i2c: E2 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 62 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 62 00 0C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:11]wFMCommunicate OK [19:39:11]SAM_PROTO_GetFieldsCounters done [19:39:11]requested_item shift.num is exist - process it [19:39:11]requested_item shift.opened is exist - process it [19:39:11]req_shift_opened [19:39:11]FM_GetShiftState [19:39:11]SAM_PROTO_GetShiftState [19:39:11]wFMCommunicate request_size=4 [19:39:11]MH_SAM_APDU [19:39:11]CAPDU: 80 13 01 00 [19:39:11]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:11]Read from MH i2c: E2 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 0E 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 74 [19:39:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:39:11]wFMCommunicate OK [19:39:11]SAM_PROTO_GetShiftState done [19:39:11]FM_GetShiftState done [19:39:11]req_shift_opened done [19:39:11]requested_item shift.open_date is exist - process it [19:39:11]req_shift_open_date [19:39:11]req_shift_open_date done [19:39:11]produce_requested_data done [19:39:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164718,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:39:11]process_action_free close_receipt [19:39:11]json_value_free [19:39:11]json_value_free done [19:39:11]process_json_proto returns [19:39:11]Send response to host [19:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164718,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:39:11]free response buf [19:39:11]execute_script done [19:39:11]execute_script returns [19:39:11]free content buf [19:39:11]Sock 10.Close socket [19:39:11]Sock 10.Thread stoped [19:39:13]accept exits with 7 [19:39:13]New connection [19:39:13]New thread 3067104612 created [19:39:13]Thread 3067247972 joined [19:39:13]Waiting for new connection... [19:39:13] Sock 7.Parse request [19:39:13]Sock 7.Check first char [19:39:13]Sock 7.First char is OK [19:39:13]request: POST /json_proto HTTP/1.0 [19:39:13]Method: POST [19:39:13]URL: /json_proto [19:39:13]Method is POST - this is cgi request [19:39:13]url: /json_proto [19:39:13]query_string will be loaded in cgi processing [19:39:13]execute_cgi json_proto POST (null) [19:39:13]execute_cgi path=json_proto method=POST [19:39:13]POST find Content-Length [19:39:13]Host: 172.17.56.4:8080 [19:39:13]Content-Length: 677 [19:39:13]Content-Type: application/json [19:39:13] [19:39:13]POST finish read [19:39:13]Found Content-Length = 677 [19:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:13]execute_script... [19:39: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)458812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:13]POST & json_proto [19:39:13]process_json_proto [19:39:13]json parsed OK: [19:39:13]protocol is kg_v1.0 [19:39:13]action value=close_receipt [19:39:13]process_action close_receipt [19:39:13]cmd_close_receipt [19:39:13]MH_GetDate [19:39:13]Write to MH i2c: F0 00 00 0E 09 06 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: F0 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: F0 09 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: F0 09 00 0E 09 00 E2 D7 92 66 C9 DC B2 64 7B [19:39:13]GetLastDocTimeStamp 1720899548 [19:39:13]current date 1720899554 [19:39:13]FM_GetShiftState [19:39:13]SAM_PROTO_GetShiftState [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 13 01 00 [19:39:13]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0E 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 76 [19:39:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:39:13]wFMCommunicate OK [19:39:13]SAM_PROTO_GetShiftState done [19:39:13]FM_GetShiftState done [19:39:13]opened in 1720831249 [19:39:13]opened+sec_in_day 1720917649 [19:39:13]quantity*price = 20003 [19:39:13]sum+1 = 20004 [19:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 279 13.07.2024 19:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164719 ФПД: 237654140256708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193914&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164719&fm=237654140256708&tin=02508201610067®Number=0000000000090829&sum=20000 [19:39:14]StoreToDocumentArchive [19:39:14]shift 446 fd 164719 [19:39:14]save to /storage/0446/doc_00164719 [19:39:14]save last doc name /storage/0446/doc_00164719 to /storage/kkm_last_doc_name [19:39:14]save OK [19:39:14]Clear old archive folders... [19:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:14]tlvbuf is 01E4ACC0 [19:39:14]SAM_PROTO_ClearQueue [19:39:14]wFMCommunicate request_size=4 [19:39:14]MH_SAM_APDU [19:39:14]CAPDU: 80 09 00 00 [19:39:14]Write to MH i2c: E2 08 00 1C 09 80 09 00 00 00 00 00 00 97 [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:14]Read from MH i2c: E2 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: E2 03 00 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [19:39:14]RAPDU: 90 00 [19:39:14]wFMCommunicate OK [19:39:14]SAM_PROTO_ClearQueue done [19:39:14]KKMCreateOFDPacket [19:39:14]OFDProtocolAddRootSTLVToBuf [19:39:14]FM_MakeSignedData [19:39:14]FM_MakeSignedData [19:39:14]SAM_PROTO_SignData [19:39:14]wFMCommunicate request_size=4 [19:39:14]MH_SAM_APDU [19:39:14]CAPDU: 80 0D 01 02 [19:39:14]Write to MH i2c: E2 08 00 1D 09 80 0D 01 02 00 00 00 00 9F [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:14]Read from MH i2c: E2 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: E2 03 00 [19:39:14]MH_I2C_Read... [19:39:14]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [19:39:14]RAPDU: 90 00 [19:39:14]wFMCommunicate OK [19:39:14]wFMCommunicate request_size=255 [19:39:14]MH_SAM_APDU [19:39: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 E2 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 83 02 00 35 04 06 00 D8 [19:39:14]Write to MH i2c: E2 02 01 1E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 E2 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 83 02 00 35 04 06 00 D8 00 00 0D [19:39:14]Write i2c OK [19:39:14]MH_I2C_Read... [19:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:15]Read from MH i2c: E2 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 03 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [19:39:15]RAPDU: 90 00 [19:39:15]wFMCommunicate OK [19:39:15]wFMCommunicate request_size=10 [19:39:15]MH_SAM_APDU [19:39:15]CAPDU: 80 0D 02 02 05 25 2A 9C 01 C4 [19:39:15]Write to MH i2c: E2 0D 00 1F 09 80 0D 02 02 05 00 25 2A 9C 01 C4 00 00 5C [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:15]Read from MH i2c: E2 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 03 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [19:39:15]RAPDU: 90 00 [19:39:15]wFMCommunicate OK [19:39:15]wFMCommunicate request_size=4 [19:39:15]MH_SAM_APDU [19:39:15]CAPDU: 80 0D 03 02 [19:39:15]Write to MH i2c: E2 08 00 20 09 80 0D 03 02 00 00 00 00 A4 [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:15]Read from MH i2c: E2 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 0B 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 0B 00 20 09 00 CB A2 5A FC D5 DA AE C3 90 00 88 [19:39:15]RAPDU: CB A2 5A FC D5 DA AE C3 90 00 [19:39:15]wFMCommunicate OK [19:39:15]SAM_PROTO_SignData done [19:39:15]FM_MakeSignedData done [19:39:15]CreateOFDProtocolMessage [19:39:15]wFMCommunicate request_size=4 [19:39:15]MH_SAM_APDU [19:39:15]CAPDU: 80 11 00 00 [19:39:15]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 [19:39:15]MH_I2C_Read... [19:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:15]Read from MH i2c: E2 17 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [19:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:15]wFMCommunicate OK [19:39:15]CreateOFDProtocolMessage done [19:39:15]OFDSenderStorePacket 164719 [19:39:15]StoreOFDPacket docnum=164719 [19:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 71 07 01 22 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 E2 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 83 02 00 35 04 06 00 D8 25 2A 9C 01 C4 CB A2 5A FC D5 DA AE C3 [19:39:15]CheckFolder [19:39:15]dirname=/storage/ofd_packets [19:39:15]CheckFolder done [19:39:15]ProducePacketName [19:39:15]name=ofd_packets/00164719 [19:39:15]NVStorageSaveData ofd_packets/00164719 [19:39:15]File name is /storage/ofd_packets/00164719 [19:39:15]Write 301 bytes [19:39:15]NVStorageSaveData done [19:39:15]OFDSenderStorePacket done [19:39:15]KKMCreateOFDPacket done [19:39:15]NVStorageSaveData kkm_last_timestamp [19:39:15]File name is /storage/kkm_last_timestamp [19:39:15]Write 4 bytes [19:39:15]NVStorageSaveData done [19:39:15]ExternCall_PrintAddStr [19:39:15]wPrintStart [19:39:15]Write to MH i2c: 01 00 00 22 09 2B [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 07 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [19:39:15]RasterBufferAndPrint [19:39:15]line Счет N : (1)458812 [19:39:15]line ИНН: 02508201610067 [19:39:15]line Контрольно-Кассовый Чек [19:39:15]line ПРОДАЖА [19:39:15]line ТРК (МРК, ГНК) : 12 [19:39:15]line Товар: 2710124130 [19:39:15]line Аи-92-К-5 [19:39:15]line 3.040 * 65.80 [19:39:15]line = 200.03 [19:39:15]line НДС 12% НСП 1% [19:39:15]line > о реализуемом товаре [19:39:15]line ОКРУГЛЕНИЕ: -0.03 [19:39:15]line ИТОГО: 200.00 [19:39:15]line Внесено: 200.00 [19:39:15]line СДАЧА: 0.00 [19:39:15]line НСП 1% : 1.77 [19:39:15]line НДС 12% : 21.24 [19:39:15]line Наличными: 200.00 [19:39:15]line Безнал.: 0.00 [19:39:15]line Место: АЗС № 72 "Партнер Нефть" [19:39:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:39:15]line СНО: Общий режим [19:39:15]line Чек 279 13.07.2024 19:39 [19:39:15]line Смена: 446 ФФД: 1.0 [19:39:15]line ЗНМ: 0300000160 [19:39:15]line РНМ: 0000000000090829 [19:39:15]line Версия ККМ: 001 [19:39:15]line ФМ: 0000000000874718 [19:39:15]line ФД: 164719 [19:39:15]line ФПД: 237654140256708 [19:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193914&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164719&fm=237654140256708&tin=02508201610067®Number=0000000000090829&sum=20000 [19:39:15]written 0, free lines is 4095 [19:39:15]OFD Sender: Processing packet 164719 [packets to send 104, broken 103] [19:39:15]ProducePacketName [19:39:15]name=ofd_packets/00164719 [19:39:15]OFD Sender: To server: pG, [19:39:15]CommunicateWithHost lk.salyk.kg:30040 [19:39:15]ConnectInit lk.salyk.kg [19:39:15]Connected sock=10 [19:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 71 07 01 22 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 E2 D7 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 83 02 00 35 04 06 00 D8 25 2A 9C 01 C4 CB A2 5A FC D5 DA AE C3 [19:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 99 EE 47 00 84 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 83 02 00 F4 03 04 00 71 7E 92 66 B6 04 01 00 00 33 5A 70 9C 2E A3 BB DF [19:39:15]CommunicateWithHost err = 0 [19:39:15]CheckOFDResponse [19:39:15]1017 (14) - 77093643461234 [19:39:15]1041 (16) - 0000000000874718 [19:39:15]1040 (4) - 164719 [19:39:15]1012 (4) - 13.07.2024 13:17 [19:39:15]1206 (1) - 0 [19:39:15]OFD Sender: Remove packet 164719 [19:39:15]ProducePacketName [19:39:15]name=ofd_packets/00164719 [19:39:15]NVStorageDeleteData [19:39:15]Write to MH i2c: 01 00 00 4C 09 55 [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 07 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 08 0D 71 [19:39:15]RasterBufferAndPrint [19:39:15]line [19:39:15]line [19:39:15]line [19:39:15]line [19:39:15]line [19:39:15]written 0, free lines is 3348 [19:39:15]MH_Cut [19:39:15]Write to MH i2c: D1 01 00 53 09 01 2E [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: D1 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: D1 01 00 [19:39:15]MH_I2C_Read... [19:39:15]Read from MH i2c: D1 01 00 53 09 00 2D [19:39:15]Write to MH i2c: 01 00 00 54 09 5D [19:39:15]Write i2c OK [19:39:15]MH_I2C_Read... [19:39:16]OFD Sender: No OFD packet to send [19:39:16]*** Cut start [19:39:16]*** Partial cut [19:39:16]*** CUTSNS_PIN = 1 [19:39:16]*** CUTSNS_PIN = 0 [19:39:16]*** Brake cut motor [19:39:16]Read from MH i2c: 01 [19:39:16]MH_I2C_Read... [19:39:16]*** Stop cut motor [19:39:16]*** Cut end [19:39:16]Read from MH i2c: 01 07 00 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [19:39:16]process_action close_receipt done [19:39:16]requested_data is exist [19:39:16]produce_requested_data [19:39:16]requested_item fm.sn is exist - process it [19:39:16]wFMCommunicate request_size=4 [19:39:16]MH_SAM_APDU [19:39:16]CAPDU: 80 11 00 00 [19:39:16]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [19:39:16]Write i2c OK [19:39:16]MH_I2C_Read... [19:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:16]Read from MH i2c: E2 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 17 00 [19:39:16]MH_I2C_Read... [19:39:16]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [19:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:16]wFMCommunicate OK [19:39:16]requested_item fd.num is exist - process it [19:39:16]SAM_PROTO_GetFieldsCounters [19:39:16]wFMCommunicate request_size=4 [19:39:16]MH_SAM_APDU [19:39:16]CAPDU: 80 13 00 00 [19:39:16]Write to MH i2c: E2 08 00 56 09 80 13 00 00 00 00 00 00 DB [19:39:16]Write i2c OK [19:39:16]MH_I2C_Read... [19:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:17]Read from MH i2c: E2 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 62 00 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 62 00 56 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [19:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:17]wFMCommunicate OK [19:39:17]SAM_PROTO_GetFieldsCounters done [19:39:17]requested_item shift.num is exist - process it [19:39:17]requested_item shift.opened is exist - process it [19:39:17]req_shift_opened [19:39:17]FM_GetShiftState [19:39:17]SAM_PROTO_GetShiftState [19:39:17]wFMCommunicate request_size=4 [19:39:17]MH_SAM_APDU [19:39:17]CAPDU: 80 13 01 00 [19:39:17]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [19:39:17]Write i2c OK [19:39:17]MH_I2C_Read... [19:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:17]Read from MH i2c: E2 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 0E 00 [19:39:17]MH_I2C_Read... [19:39:17]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BE [19:39:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:39:17]wFMCommunicate OK [19:39:17]SAM_PROTO_GetShiftState done [19:39:17]FM_GetShiftState done [19:39:17]req_shift_opened done [19:39:17]requested_item shift.open_date is exist - process it [19:39:17]req_shift_open_date [19:39:17]req_shift_open_date done [19:39:17]produce_requested_data done [19:39:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164719,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:39:17]process_action_free close_receipt [19:39:17]json_value_free [19:39:17]json_value_free done [19:39:17]process_json_proto returns [19:39:17]Send response to host [19:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164719,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:39:17]free response buf [19:39:17]execute_script done [19:39:17]execute_script returns [19:39:17]free content buf [19:39:17]Sock 7.Close socket [19:39:17]Sock 7.Thread stoped [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:01]accept exits with 9 [19:40:01]New connection [19:40:01]New thread 3067247972 created [19:40:01]Thread 3067104612 joined [19:40:01]Waiting for new connection... [19:40:01] Sock 9.Parse request [19:40:01]Sock 9.Check first char [19:40:01]Sock 9.First char is OK [19:40:01]request: POST /json_proto HTTP/1.0 [19:40:01]Method: POST [19:40:01]URL: /json_proto [19:40:01]Method is POST - this is cgi request [19:40:01]url: /json_proto [19:40:01]query_string will be loaded in cgi processing [19:40:01]execute_cgi json_proto POST (null) [19:40:01]execute_cgi path=json_proto method=POST [19:40:01]POST find Content-Length [19:40:01]Host: 172.17.56.4:8080 [19:40:01]Content-Length: 677 [19:40:01]Content-Type: application/json [19:40:01] [19:40:01]POST finish read [19:40:01]Found Content-Length = 677 [19:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:01]execute_script... [19: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)458814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:01]POST & json_proto [19:40:01]process_json_proto [19:40:01]json parsed OK: [19:40:01]protocol is kg_v1.0 [19:40:01]action value=close_receipt [19:40:01]process_action close_receipt [19:40:01]cmd_close_receipt [19:40:01]MH_GetDate [19:40:01]Write to MH i2c: F0 00 00 58 09 50 [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 09 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 09 00 58 09 00 11 D8 92 66 C9 DC B2 64 F5 [19:40:01]GetLastDocTimeStamp 1720899554 [19:40:01]current date 1720899601 [19:40:01]FM_GetShiftState [19:40:01]SAM_PROTO_GetShiftState [19:40:01]wFMCommunicate request_size=4 [19:40:01]MH_SAM_APDU [19:40:01]CAPDU: 80 13 01 00 [19:40:01]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:01]Read from MH i2c: E2 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: E2 0E 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C0 [19:40:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:40:01]wFMCommunicate OK [19:40:01]SAM_PROTO_GetShiftState done [19:40:01]FM_GetShiftState done [19:40:01]opened in 1720831249 [19:40:01]opened+sec_in_day 1720917649 [19:40:01]quantity*price = 50008 [19:40:01]sum+1 = 50009 [19:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 280 13.07.2024 19:40 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164720 ФПД: 33572419877503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194002&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164720&fm=33572419877503&tin=02508201610067®Number=0000000000090829&sum=50000 [19:40:02]StoreToDocumentArchive [19:40:02]shift 446 fd 164720 [19:40:02]save to /storage/0446/doc_00164720 [19:40:02]save last doc name /storage/0446/doc_00164720 to /storage/kkm_last_doc_name [19:40:02]save OK [19:40:02]Clear old archive folders... [19:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:02]tlvbuf is 01E5AB10 [19:40:02]SAM_PROTO_ClearQueue [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 09 00 00 [19:40:02]Write to MH i2c: E2 08 00 66 09 80 09 00 00 00 00 00 00 E1 [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [19:40:02]RAPDU: 90 00 [19:40:02]wFMCommunicate OK [19:40:02]SAM_PROTO_ClearQueue done [19:40:02]KKMCreateOFDPacket [19:40:02]OFDProtocolAddRootSTLVToBuf [19:40:02]FM_MakeSignedData [19:40:02]FM_MakeSignedData [19:40:02]SAM_PROTO_SignData [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 0D 01 02 [19:40:02]Write to MH i2c: E2 08 00 67 09 80 0D 01 02 00 00 00 00 E9 [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [19:40:02]RAPDU: 90 00 [19:40:02]wFMCommunicate OK [19:40:02]wFMCommunicate request_size=255 [19:40:02]MH_SAM_APDU [19:40: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 18 01 00 00 F4 03 04 00 12 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 83 02 00 35 04 06 00 1E [19:40:02]Write to MH i2c: E2 02 01 68 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 18 01 00 00 F4 03 04 00 12 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 83 02 00 35 04 06 00 1E 00 00 2F [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [19:40:02]RAPDU: 90 00 [19:40:02]wFMCommunicate OK [19:40:02]wFMCommunicate request_size=10 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 0D 02 02 05 88 B0 29 3A 7F [19:40:02]Write to MH i2c: E2 0D 00 69 09 80 0D 02 02 05 00 88 B0 29 3A 7F 00 00 10 [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [19:40:02]RAPDU: 90 00 [19:40:02]wFMCommunicate OK [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 0D 03 02 [19:40:02]Write to MH i2c: E2 08 00 6A 09 80 0D 03 02 00 00 00 00 EE [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:02]Read from MH i2c: E2 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0B 00 [19:40:02]MH_I2C_Read... [19:40:02]Read from MH i2c: E2 0B 00 6A 09 00 CD CE D9 EC 0C A1 63 84 90 00 E3 [19:40:02]RAPDU: CD CE D9 EC 0C A1 63 84 90 00 [19:40:02]wFMCommunicate OK [19:40:02]SAM_PROTO_SignData done [19:40:02]FM_MakeSignedData done [19:40:02]CreateOFDProtocolMessage [19:40:02]wFMCommunicate request_size=4 [19:40:02]MH_SAM_APDU [19:40:02]CAPDU: 80 11 00 00 [19:40:02]Write to MH i2c: E2 08 00 6B 09 80 11 00 00 00 00 00 00 EE [19:40:02]Write i2c OK [19:40:02]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 6B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [19:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:40:03]wFMCommunicate OK [19:40:03]CreateOFDProtocolMessage done [19:40:03]OFDSenderStorePacket 164720 [19:40:03]StoreOFDPacket docnum=164720 [19:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4F 8F 07 01 74 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 18 01 00 00 F4 03 04 00 12 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 83 02 00 35 04 06 00 1E 88 B0 29 3A 7F CD CE D9 EC 0C A1 63 84 [19:40:03]CheckFolder [19:40:03]dirname=/storage/ofd_packets [19:40:03]CheckFolder done [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00164720 [19:40:03]NVStorageSaveData ofd_packets/00164720 [19:40:03]File name is /storage/ofd_packets/00164720 [19:40:03]Write 301 bytes [19:40:03]NVStorageSaveData done [19:40:03]OFDSenderStorePacket done [19:40:03]KKMCreateOFDPacket done [19:40:03]NVStorageSaveData kkm_last_timestamp [19:40:03]File name is /storage/kkm_last_timestamp [19:40:03]Write 4 bytes [19:40:03]NVStorageSaveData done [19:40:03]OFD Sender: Processing packet 164720 [packets to send 104, broken 103] [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00164720 [19:40:03]OFD Sender: To server: pG, [19:40:03]CommunicateWithHost lk.salyk.kg:30040 [19:40:03]ConnectInit lk.salyk.kg [19:40:03]ExternCall_PrintAddStr [19:40:03]wPrintStart [19:40:03]Write to MH i2c: 01 00 00 6C 09 75 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [19:40:03]RasterBufferAndPrint [19:40:03]line Счет N : (1)458814 [19:40:03]line ИНН: 02508201610067 [19:40:03]line Контрольно-Кассовый Чек [19:40:03]line ПРОДАЖА [19:40:03]line ТРК (МРК, ГНК) : 12 [19:40:03]line Товар: 2710124130 [19:40:03]line Аи-92-К-5 [19:40:03]line 7.600 * 65.80 [19:40:03]line = 500.08 [19:40:03]line НДС 12% НСП 1% [19:40:03]line > о реализуемом товаре [19:40:03]line ОКРУГЛЕНИЕ: -0.08 [19:40:03]line ИТОГО: 500.00 [19:40:03]line Внесено: 500.00 [19:40:03]line СДАЧА: 0.00 [19:40:03]line НСП 1% : 4.42 [19:40:03]line НДС 12% : 53.11 [19:40:03]line Наличными: 500.00 [19:40:03]line Безнал.: 0.00 [19:40:03]line Место: АЗС № 72 "Партнер Нефть" [19:40:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:40:03]line СНО: Общий режим [19:40:03]line Чек 280 13.07.2024 19:40 [19:40:03]line Смена: 446 ФФД: 1.0 [19:40:03]line ЗНМ: 0300000160 [19:40:03]line РНМ: 0000000000090829 [19:40:03]line Версия ККМ: 001 [19:40:03]line ФМ: 0000000000874718 [19:40:03]line ФД: 164720 [19:40:03]line ФПД: 33572419877503 [19:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194002&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164720&fm=33572419877503&tin=02508201610067®Number=0000000000090829&sum=50000 [19:40:03]Connected sock=11 [19:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4F 8F 07 01 74 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 18 01 00 00 F4 03 04 00 12 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 83 02 00 35 04 06 00 1E 88 B0 29 3A 7F CD CE D9 EC 0C A1 63 84 [19:40:03]written 0, free lines is 4095 [19:40:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C6 3A 47 00 EC B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 83 02 00 F4 03 04 00 A2 7E 92 66 B6 04 01 00 00 33 F8 E6 92 F6 E3 F5 D8 [19:40:03]CommunicateWithHost err = 0 [19:40:03]CheckOFDResponse [19:40:03]1017 (14) - 77093643461234 [19:40:03]1041 (16) - 0000000000874718 [19:40:03]1040 (4) - 164720 [19:40:03]1012 (4) - 13.07.2024 13:18 [19:40:03]1206 (1) - 0 [19:40:03]OFD Sender: Remove packet 164720 [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00164720 [19:40:03]NVStorageDeleteData [19:40:03]Write to MH i2c: 01 00 00 96 09 9F [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FB 0C AD [19:40:03]RasterBufferAndPrint [19:40:03]line [19:40:03]line [19:40:03]line [19:40:03]line [19:40:03]line [19:40:03]written 0, free lines is 3329 [19:40:03]MH_Cut [19:40:03]Write to MH i2c: D1 01 00 9D 09 01 78 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: D1 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: D1 01 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: D1 01 00 9D 09 00 77 [19:40:03]Write to MH i2c: 01 00 00 9E 09 A7 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:04]OFD Sender: No OFD packet to send [19:40:04]*** Cut start [19:40:04]*** Partial cut [19:40:04]*** CUTSNS_PIN = 1 [19:40:04]*** CUTSNS_PIN = 0 [19:40:04]*** Brake cut motor [19:40:05]Read from MH i2c: 01 [19:40:05]MH_I2C_Read... [19:40:05]*** Stop cut motor [19:40:05]*** Cut end [19:40:05]Read from MH i2c: 01 07 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [19:40:05]process_action close_receipt done [19:40:05]requested_data is exist [19:40:05]produce_requested_data [19:40:05]requested_item fm.sn is exist - process it [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 11 00 00 [19:40:05]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [19:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:40:05]wFMCommunicate OK [19:40:05]requested_item fd.num is exist - process it [19:40:05]SAM_PROTO_GetFieldsCounters [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 00 00 [19:40:05]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 62 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 62 00 A0 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:05]wFMCommunicate OK [19:40:05]SAM_PROTO_GetFieldsCounters done [19:40:05]requested_item shift.num is exist - process it [19:40:05]requested_item shift.opened is exist - process it [19:40:05]req_shift_opened [19:40:05]FM_GetShiftState [19:40:05]SAM_PROTO_GetShiftState [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 01 00 [19:40:05]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:05]Read from MH i2c: E2 0E 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 08 [19:40:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:40:05]wFMCommunicate OK [19:40:05]SAM_PROTO_GetShiftState done [19:40:05]FM_GetShiftState done [19:40:05]req_shift_opened done [19:40:05]requested_item shift.open_date is exist - process it [19:40:05]req_shift_open_date [19:40:05]req_shift_open_date done [19:40:05]produce_requested_data done [19:40:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164720,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:40:05]process_action_free close_receipt [19:40:05]json_value_free [19:40:05]json_value_free done [19:40:05]process_json_proto returns [19:40:05]Send response to host [19:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164720,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:40:05]free response buf [19:40:05]execute_script done [19:40:05]execute_script returns [19:40:05]free content buf [19:40:05]Sock 9.Close socket [19:40:05]Sock 9.Thread stoped [19:40:06]accept exits with 7 [19:40:06]New connection [19:40:06]New thread 3067104612 created [19:40:06]Thread 3067247972 joined [19:40:06]Waiting for new connection... [19:40:06] Sock 7.Parse request [19:40:06]Sock 7.Check first char [19:40:06]Sock 7.First char is OK [19:40:06]request: POST /json_proto HTTP/1.0 [19:40:06]Method: POST [19:40:06]URL: /json_proto [19:40:06]Method is POST - this is cgi request [19:40:06]url: /json_proto [19:40:06]query_string will be loaded in cgi processing [19:40:06]execute_cgi json_proto POST (null) [19:40:06]execute_cgi path=json_proto method=POST [19:40:06]POST find Content-Length [19:40:06]Host: 172.17.56.4:8080 [19:40:06]Content-Length: 677 [19:40:06]Content-Type: application/json [19:40:06] [19:40:06]POST finish read [19:40:06]Found Content-Length = 677 [19:40:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:06]execute_script... [19:40: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)458815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:06]POST & json_proto [19:40:06]process_json_proto [19:40:06]json parsed OK: [19:40:06]protocol is kg_v1.0 [19:40:06]action value=close_receipt [19:40:06]process_action close_receipt [19:40:06]cmd_close_receipt [19:40:06]MH_GetDate [19:40:06]Write to MH i2c: F0 00 00 A2 09 9A [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: F0 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: F0 09 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: F0 09 00 A2 09 00 17 D8 92 66 C9 DC B2 64 45 [19:40:06]GetLastDocTimeStamp 1720899602 [19:40:06]current date 1720899607 [19:40:06]FM_GetShiftState [19:40:06]SAM_PROTO_GetShiftState [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 13 01 00 [19:40:06]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0E 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0A [19:40:06]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:40:06]wFMCommunicate OK [19:40:06]SAM_PROTO_GetShiftState done [19:40:06]FM_GetShiftState done [19:40:06]opened in 1720831249 [19:40:06]opened+sec_in_day 1720917649 [19:40:06]quantity*price = 20003 [19:40:06]sum+1 = 20004 [19:40:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 281 13.07.2024 19:40 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164721 ФПД: 210633896043004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164721&fm=210633896043004&tin=02508201610067®Number=0000000000090829&sum=20000 [19:40:07]StoreToDocumentArchive [19:40:07]shift 446 fd 164721 [19:40:07]save to /storage/0446/doc_00164721 [19:40:07]save last doc name /storage/0446/doc_00164721 to /storage/kkm_last_doc_name [19:40:07]save OK [19:40:07]Clear old archive folders... [19:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:07]tlvbuf is 01E93EC0 [19:40:07]SAM_PROTO_ClearQueue [19:40:07]wFMCommunicate request_size=4 [19:40:07]MH_SAM_APDU [19:40:07]CAPDU: 80 09 00 00 [19:40:07]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 03 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [19:40:07]RAPDU: 90 00 [19:40:07]wFMCommunicate OK [19:40:07]SAM_PROTO_ClearQueue done [19:40:07]KKMCreateOFDPacket [19:40:07]OFDProtocolAddRootSTLVToBuf [19:40:07]FM_MakeSignedData [19:40:07]FM_MakeSignedData [19:40:07]SAM_PROTO_SignData [19:40:07]wFMCommunicate request_size=4 [19:40:07]MH_SAM_APDU [19:40:07]CAPDU: 80 0D 01 02 [19:40:07]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 03 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [19:40:07]RAPDU: 90 00 [19:40:07]wFMCommunicate OK [19:40:07]wFMCommunicate request_size=255 [19:40:07]MH_SAM_APDU [19:40: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 17 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 83 02 00 35 04 06 00 BF [19:40:07]Write to MH i2c: E2 02 01 B2 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 17 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 83 02 00 35 04 06 00 BF 00 00 C2 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]wFMCommunicate request_size=10 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 0D 02 02 05 92 06 8D 21 FC [19:40:08]Write to MH i2c: E2 0D 00 B3 09 80 0D 02 02 05 00 92 06 8D 21 FC 00 00 82 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 0D 03 02 [19:40:08]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 0B 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 0B 00 B4 09 00 0B 16 CF EF A8 CB F9 C4 90 00 48 [19:40:08]RAPDU: 0B 16 CF EF A8 CB F9 C4 90 00 [19:40:08]wFMCommunicate OK [19:40:08]SAM_PROTO_SignData done [19:40:08]FM_MakeSignedData done [19:40:08]CreateOFDProtocolMessage [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 11 00 00 [19:40:08]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [19:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:40:08]wFMCommunicate OK [19:40:08]CreateOFDProtocolMessage done [19:40:08]OFDSenderStorePacket 164721 [19:40:08]StoreOFDPacket docnum=164721 [19:40:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 51 07 01 20 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 17 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 83 02 00 35 04 06 00 BF 92 06 8D 21 FC 0B 16 CF EF A8 CB F9 C4 [19:40:08]CheckFolder [19:40:08]dirname=/storage/ofd_packets [19:40:08]CheckFolder done [19:40:08]ProducePacketName [19:40:08]name=ofd_packets/00164721 [19:40:08]NVStorageSaveData ofd_packets/00164721 [19:40:08]File name is /storage/ofd_packets/00164721 [19:40:08]Write 301 bytes [19:40:08]NVStorageSaveData done [19:40:08]OFDSenderStorePacket done [19:40:08]KKMCreateOFDPacket done [19:40:08]NVStorageSaveData kkm_last_timestamp [19:40:08]File name is /storage/kkm_last_timestamp [19:40:08]Write 4 bytes [19:40:08]NVStorageSaveData done [19:40:08]ExternCall_PrintAddStr [19:40:08]wPrintStart [19:40:08]Write to MH i2c: 01 00 00 B6 09 BF [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [19:40:08]RasterBufferAndPrint [19:40:08]line Счет N : (1)458815 [19:40:08]line ИНН: 02508201610067 [19:40:08]line Контрольно-Кассовый Чек [19:40:08]line ПРОДАЖА [19:40:08]line ТРК (МРК, ГНК) : 22 [19:40:08]line Товар: 2710124130 [19:40:08]line Аи-92-К-5 [19:40:08]line 3.040 * 65.80 [19:40:08]line = 200.03 [19:40:08]line НДС 12% НСП 1% [19:40:08]line > о реализуемом товаре [19:40:08]line ОКРУГЛЕНИЕ: -0.03 [19:40:08]line ИТОГО: 200.00 [19:40:08]line Внесено: 200.00 [19:40:08]line СДАЧА: 0.00 [19:40:08]line НСП 1% : 1.77 [19:40:08]line НДС 12% : 21.24 [19:40:08]line Наличными: 200.00 [19:40:08]line Безнал.: 0.00 [19:40:08]line Место: АЗС № 72 "Партнер Нефть" [19:40:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:40:08]line СНО: Общий режим [19:40:08]line Чек 281 13.07.2024 19:40 [19:40:08]line Смена: 446 ФФД: 1.0 [19:40:08]line ЗНМ: 0300000160 [19:40:08]line РНМ: 0000000000090829 [19:40:08]line Версия ККМ: 001 [19:40:08]line ФМ: 0000000000874718 [19:40:08]line ФД: 164721 [19:40:08]line ФПД: 210633896043004 [19:40:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164721&fm=210633896043004&tin=02508201610067®Number=0000000000090829&sum=20000 [19:40:08]written 0, free lines is 4095 [19:40:08]OFD Sender: Processing packet 164721 [packets to send 104, broken 103] [19:40:08]ProducePacketName [19:40:08]name=ofd_packets/00164721 [19:40:08]OFD Sender: To server: pG, [19:40:08]CommunicateWithHost lk.salyk.kg:30040 [19:40:08]ConnectInit lk.salyk.kg [19:40:08]Connected sock=10 [19:40:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F4 51 07 01 20 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 17 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 83 02 00 35 04 06 00 BF 92 06 8D 21 FC 0B 16 CF EF A8 CB F9 C4 [19:40:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 60 47 00 98 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 83 02 00 F4 03 04 00 A7 7E 92 66 B6 04 01 00 00 A0 4C 25 B2 1A A8 28 71 [19:40:08]CommunicateWithHost err = 0 [19:40:08]CheckOFDResponse [19:40:08]1017 (14) - 77093643461234 [19:40:08]1041 (16) - 0000000000874718 [19:40:08]1040 (4) - 164721 [19:40:08]1012 (4) - 13.07.2024 13:18 [19:40:08]1206 (1) - 0 [19:40:08]OFD Sender: Remove packet 164721 [19:40:08]ProducePacketName [19:40:08]name=ofd_packets/00164721 [19:40:08]NVStorageDeleteData [19:40:08]Write to MH i2c: 01 00 00 E0 09 E9 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 F2 0C EE [19:40:08]RasterBufferAndPrint [19:40:08]line [19:40:08]line [19:40:08]line [19:40:08]line [19:40:08]line [19:40:08]written 0, free lines is 3327 [19:40:08]MH_Cut [19:40:08]Write to MH i2c: D1 01 00 E7 09 01 C2 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: D1 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: D1 01 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: D1 01 00 E7 09 00 C1 [19:40:08]Write to MH i2c: 01 00 00 E8 09 F1 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:09]OFD Sender: No OFD packet to send [19:40:09]*** Cut start [19:40:09]*** Partial cut [19:40:09]*** CUTSNS_PIN = 1 [19:40:09]*** CUTSNS_PIN = 0 [19:40:09]*** Brake cut motor [19:40:10]Read from MH i2c: 01 [19:40:10]MH_I2C_Read... [19:40:10]*** Stop cut motor [19:40:10]*** Cut end [19:40:10]Read from MH i2c: 01 07 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 FF 0F 06 [19:40:10]process_action close_receipt done [19:40:10]requested_data is exist [19:40:10]produce_requested_data [19:40:10]requested_item fm.sn is exist - process it [19:40:10]wFMCommunicate request_size=4 [19:40:10]MH_SAM_APDU [19:40:10]CAPDU: 80 11 00 00 [19:40:10]Write to MH i2c: E2 08 00 E9 09 80 11 00 00 00 00 00 00 6C [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:10]Read from MH i2c: E2 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 17 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 17 00 E9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [19:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:40:10]wFMCommunicate OK [19:40:10]requested_item fd.num is exist - process it [19:40:10]SAM_PROTO_GetFieldsCounters [19:40:10]wFMCommunicate request_size=4 [19:40:10]MH_SAM_APDU [19:40:10]CAPDU: 80 13 00 00 [19:40:10]Write to MH i2c: E2 08 00 EA 09 80 13 00 00 00 00 00 00 6F [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:10]Read from MH i2c: E2 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 62 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 62 00 EA 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:10]wFMCommunicate OK [19:40:10]SAM_PROTO_GetFieldsCounters done [19:40:10]requested_item shift.num is exist - process it [19:40:10]requested_item shift.opened is exist - process it [19:40:10]req_shift_opened [19:40:10]FM_GetShiftState [19:40:10]SAM_PROTO_GetShiftState [19:40:10]wFMCommunicate request_size=4 [19:40:10]MH_SAM_APDU [19:40:10]CAPDU: 80 13 01 00 [19:40:10]Write to MH i2c: E2 08 00 EB 09 80 13 01 00 00 00 00 00 71 [19:40:10]Write i2c OK [19:40:10]MH_I2C_Read... [19:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:10]Read from MH i2c: E2 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 [19:40:10]MH_I2C_Read... [19:40:10]Read from MH i2c: E2 0E 00 EB 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 52 [19:40:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:40:10]wFMCommunicate OK [19:40:10]SAM_PROTO_GetShiftState done [19:40:10]FM_GetShiftState done [19:40:10]req_shift_opened done [19:40:10]requested_item shift.open_date is exist - process it [19:40:10]req_shift_open_date [19:40:10]req_shift_open_date done [19:40:10]produce_requested_data done [19:40:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164721,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:40:10]process_action_free close_receipt [19:40:10]json_value_free [19:40:10]json_value_free done [19:40:10]process_json_proto returns [19:40:10]Send response to host [19:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164721,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:40:10]free response buf [19:40:10]execute_script done [19:40:10]execute_script returns [19:40:10]free content buf [19:40:10]Sock 7.Close socket [19:40:10]Sock 7.Thread stoped [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:58]accept exits with 9 [19:41:58]New connection [19:41:58]New thread 3067247972 created [19:41:58]Thread 3067104612 joined [19:41:58]Waiting for new connection... [19:41:58] Sock 9.Parse request [19:41:58]Sock 9.Check first char [19:41:58]Sock 9.First char is OK [19:41:58]request: POST /json_proto HTTP/1.0 [19:41:58]Method: POST [19:41:58]URL: /json_proto [19:41:58]Method is POST - this is cgi request [19:41:58]url: /json_proto [19:41:58]query_string will be loaded in cgi processing [19:41:58]execute_cgi json_proto POST (null) [19:41:58]execute_cgi path=json_proto method=POST [19:41:58]POST find Content-Length [19:41:58]Host: 172.17.56.4:8080 [19:41:58]Content-Length: 677 [19:41:58]Content-Type: application/json [19:41:58] [19:41:58]POST finish read [19:41:58]Found Content-Length = 677 [19:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:58]execute_script... [19:41: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)458816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:58]POST & json_proto [19:41:58]process_json_proto [19:41:58]json parsed OK: [19:41:58]protocol is kg_v1.0 [19:41:58]action value=close_receipt [19:41:58]process_action close_receipt [19:41:58]cmd_close_receipt [19:41:58]MH_GetDate [19:41:58]Write to MH i2c: F0 00 00 EC 09 E4 [19:41:58]Write i2c OK [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: F0 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: F0 09 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: F0 09 00 EC 09 00 87 D8 92 66 C9 DC B2 64 FF [19:41:58]GetLastDocTimeStamp 1720899607 [19:41:58]current date 1720899719 [19:41:58]FM_GetShiftState [19:41:58]SAM_PROTO_GetShiftState [19:41:58]wFMCommunicate request_size=4 [19:41:58]MH_SAM_APDU [19:41:58]CAPDU: 80 13 01 00 [19:41:58]Write to MH i2c: E2 08 00 ED 09 80 13 01 00 00 00 00 00 73 [19:41:58]Write i2c OK [19:41:58]MH_I2C_Read... [19:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:58]Read from MH i2c: E2 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 0E 00 [19:41:58]MH_I2C_Read... [19:41:58]Read from MH i2c: E2 0E 00 ED 09 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 54 [19:41:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:41:58]wFMCommunicate OK [19:41:58]SAM_PROTO_GetShiftState done [19:41:58]FM_GetShiftState done [19:41:58]opened in 1720831249 [19:41:58]opened+sec_in_day 1720917649 [19:41:58]quantity*price = 50008 [19:41:58]sum+1 = 50009 [19:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 282 13.07.2024 19:41 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164722 ФПД: 56123376265929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164722&fm=56123376265929&tin=02508201610067®Number=0000000000090829&sum=50000 [19:42:00]StoreToDocumentArchive [19:42:00]shift 446 fd 164722 [19:42:00]save to /storage/0446/doc_00164722 [19:42:00]save last doc name /storage/0446/doc_00164722 to /storage/kkm_last_doc_name [19:42:00]save OK [19:42:00]Clear old archive folders... [19:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:00]tlvbuf is 01E52880 [19:42:00]SAM_PROTO_ClearQueue [19:42:00]wFMCommunicate request_size=4 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 09 00 00 [19:42:00]Write to MH i2c: E2 08 00 FA 09 80 09 00 00 00 00 00 00 75 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [19:42:00]RAPDU: 90 00 [19:42:00]wFMCommunicate OK [19:42:00]SAM_PROTO_ClearQueue done [19:42:00]KKMCreateOFDPacket [19:42:00]OFDProtocolAddRootSTLVToBuf [19:42:00]FM_MakeSignedData [19:42:00]FM_MakeSignedData [19:42:00]SAM_PROTO_SignData [19:42:00]wFMCommunicate request_size=4 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 0D 01 02 [19:42:00]Write to MH i2c: E2 08 00 FB 09 80 0D 01 02 00 00 00 00 7D [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [19:42:00]RAPDU: 90 00 [19:42:00]wFMCommunicate OK [19:42:00]wFMCommunicate request_size=255 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 01 00 00 F4 03 04 00 87 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 83 02 00 35 04 06 00 33 [19:42:00]Write to MH i2c: E2 02 01 FC 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 01 00 00 F4 03 04 00 87 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 83 02 00 35 04 06 00 33 00 00 51 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [19:42:00]RAPDU: 90 00 [19:42:00]wFMCommunicate OK [19:42:00]wFMCommunicate request_size=10 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 0D 02 02 05 0B 3D E7 EA C9 [19:42:00]Write to MH i2c: E2 0D 00 FD 09 80 0D 02 02 05 00 0B 3D E7 EA C9 00 00 6C [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [19:42:00]RAPDU: 90 00 [19:42:00]wFMCommunicate OK [19:42:00]wFMCommunicate request_size=4 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 0D 03 02 [19:42:00]Write to MH i2c: E2 08 00 FE 09 80 0D 03 02 00 00 00 00 82 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 0B 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 0B 00 FE 09 00 B3 A3 70 ED 09 C7 A0 CD 90 00 73 [19:42:00]RAPDU: B3 A3 70 ED 09 C7 A0 CD 90 00 [19:42:00]wFMCommunicate OK [19:42:00]SAM_PROTO_SignData done [19:42:00]FM_MakeSignedData done [19:42:00]CreateOFDProtocolMessage [19:42:00]wFMCommunicate request_size=4 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 11 00 00 [19:42:00]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 17 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [19:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:42:00]wFMCommunicate OK [19:42:00]CreateOFDProtocolMessage done [19:42:00]OFDSenderStorePacket 164722 [19:42:00]StoreOFDPacket docnum=164722 [19:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 99 07 01 8E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 01 00 00 F4 03 04 00 87 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 83 02 00 35 04 06 00 33 0B 3D E7 EA C9 B3 A3 70 ED 09 C7 A0 CD [19:42:00]CheckFolder [19:42:00]dirname=/storage/ofd_packets [19:42:00]CheckFolder done [19:42:00]ProducePacketName [19:42:00]name=ofd_packets/00164722 [19:42:00]NVStorageSaveData ofd_packets/00164722 [19:42:00]File name is /storage/ofd_packets/00164722 [19:42:00]Write 301 bytes [19:42:00]NVStorageSaveData done [19:42:00]OFDSenderStorePacket done [19:42:00]KKMCreateOFDPacket done [19:42:00]NVStorageSaveData kkm_last_timestamp [19:42:00]File name is /storage/kkm_last_timestamp [19:42:00]Write 4 bytes [19:42:00]NVStorageSaveData done [19:42:00]OFD Sender: Processing packet 164722 [packets to send 104, broken 103] [19:42:00]ProducePacketName [19:42:00]name=ofd_packets/00164722 [19:42:00]OFD Sender: To server: pG, [19:42:00]CommunicateWithHost lk.salyk.kg:30040 [19:42:00]ConnectInit lk.salyk.kg [19:42:00]ExternCall_PrintAddStr [19:42:00]wPrintStart [19:42:00]Write to MH i2c: 01 00 00 00 0A 0A [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: 01 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: 01 07 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [19:42:00]RasterBufferAndPrint [19:42:00]line Счет N : (1)458816 [19:42:00]line ИНН: 02508201610067 [19:42:00]line Контрольно-Кассовый Чек [19:42:00]line ПРОДАЖА [19:42:00]line ТРК (МРК, ГНК) : 12 [19:42:00]line Товар: 2710124130 [19:42:00]line Аи-92-К-5 [19:42:00]line 7.600 * 65.80 [19:42:00]line = 500.08 [19:42:00]line НДС 12% НСП 1% [19:42:00]line > о реализуемом товаре [19:42:00]line ОКРУГЛЕНИЕ: -0.08 [19:42:00]line ИТОГО: 500.00 [19:42:00]line Внесено: 500.00 [19:42:00]line СДАЧА: 0.00 [19:42:00]line НСП 1% : 4.42 [19:42:00]line НДС 12% : 53.11 [19:42:00]line Наличными: 500.00 [19:42:00]line Безнал.: 0.00 [19:42:00]line Место: АЗС № 72 "Партнер Нефть" [19:42:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:42:00]line СНО: Общий режим [19:42:00]line Чек 282 13.07.2024 19:41 [19:42:00]line Смена: 446 ФФД: 1.0 [19:42:00]line ЗНМ: 0300000160 [19:42:00]line РНМ: 0000000000090829 [19:42:00]line Версия ККМ: 001 [19:42:00]line ФМ: 0000000000874718 [19:42:00]line ФД: 164722 [19:42:00]line ФПД: 56123376265929 [19:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164722&fm=56123376265929&tin=02508201610067®Number=0000000000090829&sum=50000 [19:42:00]Connected sock=11 [19:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 99 07 01 8E 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 01 00 00 F4 03 04 00 87 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 83 02 00 35 04 06 00 33 0B 3D E7 EA C9 B3 A3 70 ED 09 C7 A0 CD [19:42:00]written 0, free lines is 4095 [19:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D 20 47 00 07 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 34 37 31 38 10 04 04 00 72 83 02 00 F4 03 04 00 17 7F 92 66 B6 04 01 00 00 E4 97 E4 4B 15 DA 91 69 [19:42:01]CommunicateWithHost err = 0 [19:42:01]CheckOFDResponse [19:42:01]1017 (14) - 77093643461234 [19:42:01]1041 (16) - 0000000000874718 [19:42:01]1040 (4) - 164722 [19:42:01]1012 (4) - 13.07.2024 13:20 [19:42:01]1206 (1) - 0 [19:42:01]OFD Sender: Remove packet 164722 [19:42:01]ProducePacketName [19:42:01]name=ofd_packets/00164722 [19:42:01]NVStorageDeleteData [19:42:01]Write to MH i2c: 01 00 00 2A 0A 34 [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: 01 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: 01 07 00 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 F7 0C 3E [19:42:01]RasterBufferAndPrint [19:42:01]line [19:42:01]line [19:42:01]line [19:42:01]line [19:42:01]line [19:42:01]written 0, free lines is 3327 [19:42:01]MH_Cut [19:42:01]Write to MH i2c: D1 01 00 31 0A 01 0D [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: D1 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: D1 01 00 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: D1 01 00 31 0A 00 0C [19:42:01]Write to MH i2c: 01 00 00 32 0A 3C [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:01]OFD Sender: No OFD packet to send [19:42:02]*** Cut start [19:42:02]*** Partial cut [19:42:02]*** CUTSNS_PIN = 1 [19:42:02]*** CUTSNS_PIN = 0 [19:42:02]*** Brake cut motor [19:42:02]Read from MH i2c: 01 [19:42:02]MH_I2C_Read... [19:42:02]*** Stop cut motor [19:42:02]*** Cut end [19:42:02]Read from MH i2c: 01 07 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [19:42:02]process_action close_receipt done [19:42:02]requested_data is exist [19:42:02]produce_requested_data [19:42:02]requested_item fm.sn is exist - process it [19:42:02]wFMCommunicate request_size=4 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 11 00 00 [19:42:02]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 17 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [19:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:42:02]wFMCommunicate OK [19:42:02]requested_item fd.num is exist - process it [19:42:02]SAM_PROTO_GetFieldsCounters [19:42:02]wFMCommunicate request_size=4 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 13 00 00 [19:42:02]Write to MH i2c: E2 08 00 34 0A 80 13 00 00 00 00 00 00 BA [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 62 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 62 00 34 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:02]wFMCommunicate OK [19:42:02]SAM_PROTO_GetFieldsCounters done [19:42:02]requested_item shift.num is exist - process it [19:42:02]requested_item shift.opened is exist - process it [19:42:02]req_shift_opened [19:42:02]FM_GetShiftState [19:42:02]SAM_PROTO_GetShiftState [19:42:02]wFMCommunicate request_size=4 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 13 01 00 [19:42:02]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 0E 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9D [19:42:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:42:02]wFMCommunicate OK [19:42:02]SAM_PROTO_GetShiftState done [19:42:02]FM_GetShiftState done [19:42:02]req_shift_opened done [19:42:02]requested_item shift.open_date is exist - process it [19:42:02]req_shift_open_date [19:42:02]req_shift_open_date done [19:42:02]produce_requested_data done [19:42:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164722,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:42:02]process_action_free close_receipt [19:42:02]json_value_free [19:42:02]json_value_free done [19:42:02]process_json_proto returns [19:42:02]Send response to host [19:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164722,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:42:02]free response buf [19:42:02]execute_script done [19:42:02]execute_script returns [19:42:02]free content buf [19:42:02]Sock 9.Close socket [19:42:02]Sock 9.Thread stoped [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:48]accept exits with 7 [19:42:48]New connection [19:42:48]New thread 3067104612 created [19:42:48]Thread 3067247972 joined [19:42:48]Waiting for new connection... [19:42:48] Sock 7.Parse request [19:42:48]Sock 7.Check first char [19:42:48]Sock 7.First char is OK [19:42:48]request: POST /json_proto HTTP/1.0 [19:42:48]Method: POST [19:42:48]URL: /json_proto [19:42:48]Method is POST - this is cgi request [19:42:48]url: /json_proto [19:42:48]query_string will be loaded in cgi processing [19:42:48]execute_cgi json_proto POST (null) [19:42:48]execute_cgi path=json_proto method=POST [19:42:48]POST find Content-Length [19:42:48]Host: 172.17.56.4:8080 [19:42:48]Content-Length: 677 [19:42:48]Content-Type: application/json [19:42:48] [19:42:48]POST finish read [19:42:48]Found Content-Length = 677 [19:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:48]execute_script... [19:42: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)458817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:48]POST & json_proto [19:42:48]process_json_proto [19:42:48]json parsed OK: [19:42:48]protocol is kg_v1.0 [19:42:48]action value=close_receipt [19:42:48]process_action close_receipt [19:42:48]cmd_close_receipt [19:42:48]MH_GetDate [19:42:48]Write to MH i2c: F0 00 00 36 0A 2F [19:42:48]Write i2c OK [19:42:48]MH_I2C_Read... [19:42:48]Read from MH i2c: F0 [19:42:48]MH_I2C_Read... [19:42:48]Read from MH i2c: F0 09 00 [19:42:48]MH_I2C_Read... [19:42:48]Read from MH i2c: F0 09 00 36 0A 00 B8 D8 92 66 C9 DC B2 64 7B [19:42:48]GetLastDocTimeStamp 1720899719 [19:42:48]current date 1720899768 [19:42:48]FM_GetShiftState [19:42:48]SAM_PROTO_GetShiftState [19:42:48]wFMCommunicate request_size=4 [19:42:48]MH_SAM_APDU [19:42:48]CAPDU: 80 13 01 00 [19:42:48]Write to MH i2c: E2 08 00 37 0A 80 13 01 00 00 00 00 00 BE [19:42:48]Write i2c OK [19:42:48]MH_I2C_Read... [19:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:48]Read from MH i2c: E2 [19:42:48]MH_I2C_Read... [19:42:48]Read from MH i2c: E2 0E 00 [19:42:48]MH_I2C_Read... [19:42:48]Read from MH i2c: E2 0E 00 37 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9F [19:42:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:42:48]wFMCommunicate OK [19:42:48]SAM_PROTO_GetShiftState done [19:42:48]FM_GetShiftState done [19:42:48]opened in 1720831249 [19:42:48]opened+sec_in_day 1720917649 [19:42:48]quantity*price = 50008 [19:42:48]sum+1 = 50009 [19:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 283 13.07.2024 19:42 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164723 ФПД: 142316020953766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164723&fm=142316020953766&tin=02508201610067®Number=0000000000090829&sum=50000 [19:42:49]StoreToDocumentArchive [19:42:49]shift 446 fd 164723 [19:42:49]save to /storage/0446/doc_00164723 [19:42:49]save last doc name /storage/0446/doc_00164723 to /storage/kkm_last_doc_name [19:42:49]save OK [19:42:49]Clear old archive folders... [19:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:49]tlvbuf is B6FA03E0 [19:42:49]SAM_PROTO_ClearQueue [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 09 00 00 [19:42:49]Write to MH i2c: E2 08 00 44 0A 80 09 00 00 00 00 00 00 C0 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [19:42:49]RAPDU: 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_ClearQueue done [19:42:49]KKMCreateOFDPacket [19:42:49]OFDProtocolAddRootSTLVToBuf [19:42:49]FM_MakeSignedData [19:42:49]FM_MakeSignedData [19:42:49]SAM_PROTO_SignData [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 0D 01 02 [19:42:49]Write to MH i2c: E2 08 00 45 0A 80 0D 01 02 00 00 00 00 C8 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [19:42:49]RAPDU: 90 00 [19:42:49]wFMCommunicate OK [19:42:49]wFMCommunicate request_size=255 [19:42:49]MH_SAM_APDU [19:42: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1B 01 00 00 F4 03 04 00 B8 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 83 02 00 35 04 06 00 81 [19:42:49]Write to MH i2c: E2 02 01 46 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1B 01 00 00 F4 03 04 00 B8 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 83 02 00 35 04 06 00 81 00 00 1D [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [19:42:49]RAPDU: 90 00 [19:42:49]wFMCommunicate OK [19:42:49]wFMCommunicate request_size=10 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 0D 02 02 05 6F 87 DF F2 A6 [19:42:49]Write to MH i2c: E2 0D 00 47 0A 80 0D 02 02 05 00 6F 87 DF F2 A6 00 00 42 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [19:42:49]RAPDU: 90 00 [19:42:49]wFMCommunicate OK [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 0D 03 02 [19:42:49]Write to MH i2c: E2 08 00 48 0A 80 0D 03 02 00 00 00 00 CD [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0B 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0B 00 48 0A 00 26 56 F6 E7 E1 CF 22 49 90 00 42 [19:42:49]RAPDU: 26 56 F6 E7 E1 CF 22 49 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_SignData done [19:42:49]FM_MakeSignedData done [19:42:49]CreateOFDProtocolMessage [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 11 00 00 [19:42:49]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 17 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [19:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:42:49]wFMCommunicate OK [19:42:49]CreateOFDProtocolMessage done [19:42:49]OFDSenderStorePacket 164723 [19:42:49]StoreOFDPacket docnum=164723 [19:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 E4 07 01 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1B 01 00 00 F4 03 04 00 B8 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 83 02 00 35 04 06 00 81 6F 87 DF F2 A6 26 56 F6 E7 E1 CF 22 49 [19:42:49]CheckFolder [19:42:49]dirname=/storage/ofd_packets [19:42:49]CheckFolder done [19:42:49]ProducePacketName [19:42:49]name=ofd_packets/00164723 [19:42:49]NVStorageSaveData ofd_packets/00164723 [19:42:49]File name is /storage/ofd_packets/00164723 [19:42:49]Write 301 bytes [19:42:49]NVStorageSaveData done [19:42:49]OFDSenderStorePacket done [19:42:49]KKMCreateOFDPacket done [19:42:49]NVStorageSaveData kkm_last_timestamp [19:42:49]File name is /storage/kkm_last_timestamp [19:42:49]Write 4 bytes [19:42:49]NVStorageSaveData done [19:42:49]ExternCall_PrintAddStr [19:42:49]wPrintStart [19:42:49]Write to MH i2c: 01 00 00 4A 0A 54 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: 01 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: 01 07 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [19:42:49]RasterBufferAndPrint [19:42:49]line Счет N : (1)458817 [19:42:49]line ИНН: 02508201610067 [19:42:49]line Контрольно-Кассовый Чек [19:42:49]line ПРОДАЖА [19:42:49]line ТРК (МРК, ГНК) : 22 [19:42:49]line Товар: 2710124130 [19:42:49]line Аи-92-К-5 [19:42:49]line 7.600 * 65.80 [19:42:49]line = 500.08 [19:42:49]line НДС 12% НСП 1% [19:42:49]line > о реализуемом товаре [19:42:49]line ОКРУГЛЕНИЕ: -0.08 [19:42:49]line ИТОГО: 500.00 [19:42:49]line Внесено: 500.00 [19:42:49]line СДАЧА: 0.00 [19:42:49]line НСП 1% : 4.42 [19:42:49]line НДС 12% : 53.11 [19:42:49]line Наличными: 500.00 [19:42:49]line Безнал.: 0.00 [19:42:49]line Место: АЗС № 72 "Партнер Нефть" [19:42:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:42:49]line СНО: Общий режим [19:42:49]line Чек 283 13.07.2024 19:42 [19:42:49]line Смена: 446 ФФД: 1.0 [19:42:49]line ЗНМ: 0300000160 [19:42:49]line РНМ: 0000000000090829 [19:42:49]line Версия ККМ: 001 [19:42:49]line ФМ: 0000000000874718 [19:42:49]line ФД: 164723 [19:42:49]line ФПД: 142316020953766 [19:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T194248&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164723&fm=142316020953766&tin=02508201610067®Number=0000000000090829&sum=50000 [19:42:50]OFD Sender: Processing packet 164723 [packets to send 104, broken 103] [19:42:50]ProducePacketName [19:42:50]name=ofd_packets/00164723 [19:42:50]OFD Sender: To server: pG, [19:42:50]CommunicateWithHost lk.salyk.kg:30040 [19:42:50]ConnectInit lk.salyk.kg [19:42:50]written 0, free lines is 4095 [19:42:50]Connected sock=10 [19:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 E4 07 01 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1B 01 00 00 F4 03 04 00 B8 D8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 83 02 00 35 04 06 00 81 6F 87 DF F2 A6 26 56 F6 E7 E1 CF 22 49 [19:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4D AF 47 00 02 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 83 02 00 F4 03 04 00 48 7F 92 66 B6 04 01 00 00 27 2C 77 51 9A A8 82 51 [19:42:50]CommunicateWithHost err = 0 [19:42:50]CheckOFDResponse [19:42:50]1017 (14) - 77093643461234 [19:42:50]1041 (16) - 0000000000874718 [19:42:50]1040 (4) - 164723 [19:42:50]1012 (4) - 13.07.2024 13:21 [19:42:50]1206 (1) - 0 [19:42:50]OFD Sender: Remove packet 164723 [19:42:50]ProducePacketName [19:42:50]name=ofd_packets/00164723 [19:42:50]NVStorageDeleteData [19:42:50]Write to MH i2c: 01 00 00 74 0A 7E [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: 01 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: 01 07 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 F4 0C 85 [19:42:50]RasterBufferAndPrint [19:42:50]line [19:42:50]line [19:42:50]line [19:42:50]line [19:42:50]line [19:42:50]written 0, free lines is 3323 [19:42:50]MH_Cut [19:42:50]Write to MH i2c: D1 01 00 7B 0A 01 57 [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: D1 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: D1 01 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: D1 01 00 7B 0A 00 56 [19:42:50]Write to MH i2c: 01 00 00 7C 0A 86 [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]OFD Sender: No OFD packet to send [19:42:51]*** Cut start [19:42:51]*** Partial cut [19:42:51]*** CUTSNS_PIN = 1 [19:42:51]*** CUTSNS_PIN = 0 [19:42:51]*** Brake cut motor [19:42:51]Read from MH i2c: 01 [19:42:51]MH_I2C_Read... [19:42:51]*** Stop cut motor [19:42:51]*** Cut end [19:42:51]Read from MH i2c: 01 07 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [19:42:51]process_action close_receipt done [19:42:51]requested_data is exist [19:42:51]produce_requested_data [19:42:51]requested_item fm.sn is exist - process it [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 11 00 00 [19:42:51]Write to MH i2c: E2 08 00 7D 0A 80 11 00 00 00 00 00 00 01 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 7D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [19:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:42:51]wFMCommunicate OK [19:42:51]requested_item fd.num is exist - process it [19:42:51]SAM_PROTO_GetFieldsCounters [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 13 00 00 [19:42:51]Write to MH i2c: E2 08 00 7E 0A 80 13 00 00 00 00 00 00 04 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 62 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 62 00 7E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:42: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:52]wFMCommunicate OK [19:42:52]SAM_PROTO_GetFieldsCounters done [19:42:52]requested_item shift.num is exist - process it [19:42:52]requested_item shift.opened is exist - process it [19:42:52]req_shift_opened [19:42:52]FM_GetShiftState [19:42:52]SAM_PROTO_GetShiftState [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 13 01 00 [19:42:52]Write to MH i2c: E2 08 00 7F 0A 80 13 01 00 00 00 00 00 06 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0E 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0E 00 7F 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E7 [19:42:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:42:52]wFMCommunicate OK [19:42:52]SAM_PROTO_GetShiftState done [19:42:52]FM_GetShiftState done [19:42:52]req_shift_opened done [19:42:52]requested_item shift.open_date is exist - process it [19:42:52]req_shift_open_date [19:42:52]req_shift_open_date done [19:42:52]produce_requested_data done [19:42:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164723,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:42:52]process_action_free close_receipt [19:42:52]json_value_free [19:42:52]json_value_free done [19:42:52]process_json_proto returns [19:42:52]Send response to host [19:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164723,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:42:52]free response buf [19:42:52]execute_script done [19:42:52]execute_script returns [19:42:52]free content buf [19:42:52]Sock 7.Close socket [19:42:52]Sock 7.Thread stoped [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:00]accept exits with 9 [19:50:00]New connection [19:50:00]New thread 3067247972 created [19:50:00]Thread 3067104612 joined [19:50:00]Waiting for new connection... [19:50:00] Sock 9.Parse request [19:50:00]Sock 9.Check first char [19:50:00]Sock 9.First char is OK [19:50:00]request: POST /json_proto HTTP/1.0 [19:50:00]Method: POST [19:50:00]URL: /json_proto [19:50:00]Method is POST - this is cgi request [19:50:00]url: /json_proto [19:50:00]query_string will be loaded in cgi processing [19:50:00]execute_cgi json_proto POST (null) [19:50:00]execute_cgi path=json_proto method=POST [19:50:00]POST find Content-Length [19:50:00]Host: 172.17.56.4:8080 [19:50:00]Content-Length: 674 [19:50:00]Content-Type: application/json [19:50:00] [19:50:00]POST finish read [19:50:00]Found Content-Length = 674 [19:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:00]execute_script... [19:50: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)458818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:00]POST & json_proto [19:50:00]process_json_proto [19:50:00]json parsed OK: [19:50:00]protocol is kg_v1.0 [19:50:00]action value=close_receipt [19:50:00]process_action close_receipt [19:50:00]cmd_close_receipt [19:50:00]MH_GetDate [19:50:00]Write to MH i2c: F0 00 00 80 0A 79 [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: F0 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: F0 09 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: F0 09 00 80 0A 00 69 DA 92 66 C9 DC B2 64 78 [19:50:00]GetLastDocTimeStamp 1720899768 [19:50:00]current date 1720900201 [19:50:00]FM_GetShiftState [19:50:00]SAM_PROTO_GetShiftState [19:50:00]wFMCommunicate request_size=4 [19:50:00]MH_SAM_APDU [19:50:00]CAPDU: 80 13 01 00 [19:50:00]Write to MH i2c: E2 08 00 81 0A 80 13 01 00 00 00 00 00 08 [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:00]Read from MH i2c: E2 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 0E 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 0E 00 81 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E9 [19:50:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:50:00]wFMCommunicate OK [19:50:00]SAM_PROTO_GetShiftState done [19:50:00]FM_GetShiftState done [19:50:00]opened in 1720831249 [19:50:00]opened+sec_in_day 1720917649 [19:50:00]quantity*price = 50042 [19:50:00]sum+1 = 50043 [19:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 284 13.07.2024 19:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164724 ФПД: 212009965924698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164724&fm=212009965924698&tin=02508201610067®Number=0000000000090829&sum=50000 [19:50:01]StoreToDocumentArchive [19:50:01]shift 446 fd 164724 [19:50:01]save to /storage/0446/doc_00164724 [19:50:01]save last doc name /storage/0446/doc_00164724 to /storage/kkm_last_doc_name [19:50:01]save OK [19:50:01]Clear old archive folders... [19:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:50:01]tlvbuf is 01E7A000 [19:50:01]SAM_PROTO_ClearQueue [19:50:01]wFMCommunicate request_size=4 [19:50:01]MH_SAM_APDU [19:50:01]CAPDU: 80 09 00 00 [19:50:01]Write to MH i2c: E2 08 00 8E 0A 80 09 00 00 00 00 00 00 0A [19:50:01]Write i2c OK [19:50:01]MH_I2C_Read... [19:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:01]Read from MH i2c: E2 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 03 00 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [19:50:01]RAPDU: 90 00 [19:50:01]wFMCommunicate OK [19:50:01]SAM_PROTO_ClearQueue done [19:50:01]KKMCreateOFDPacket [19:50:01]OFDProtocolAddRootSTLVToBuf [19:50:01]FM_MakeSignedData [19:50:01]FM_MakeSignedData [19:50:01]SAM_PROTO_SignData [19:50:01]wFMCommunicate request_size=4 [19:50:01]MH_SAM_APDU [19:50:01]CAPDU: 80 0D 01 02 [19:50:01]Write to MH i2c: E2 08 00 8F 0A 80 0D 01 02 00 00 00 00 12 [19:50:01]Write i2c OK [19:50:01]MH_I2C_Read... [19:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:01]Read from MH i2c: E2 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 03 00 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [19:50:01]RAPDU: 90 00 [19:50:01]wFMCommunicate OK [19:50:01]wFMCommunicate request_size=255 [19:50:01]MH_SAM_APDU [19:50: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 69 DA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 83 02 00 35 04 06 00 C0 D2 6A B5 [19:50:01]Write to MH i2c: E2 02 01 90 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 69 DA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 83 02 00 35 04 06 00 C0 D2 6A B5 00 00 A8 [19:50:01]Write i2c OK [19:50:01]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 03 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [19:50:02]RAPDU: 90 00 [19:50:02]wFMCommunicate OK [19:50:02]wFMCommunicate request_size=7 [19:50:02]MH_SAM_APDU [19:50:02]CAPDU: 80 0D 02 02 02 31 5A [19:50:02]Write to MH i2c: E2 0A 00 91 0A 80 0D 02 02 02 00 31 5A 00 00 A4 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 03 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [19:50:02]RAPDU: 90 00 [19:50:02]wFMCommunicate OK [19:50:02]wFMCommunicate request_size=4 [19:50:02]MH_SAM_APDU [19:50:02]CAPDU: 80 0D 03 02 [19:50:02]Write to MH i2c: E2 08 00 92 0A 80 0D 03 02 00 00 00 00 17 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 0B 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 0B 00 92 0A 00 49 73 2B C0 DD 37 24 0E 90 00 05 [19:50:02]RAPDU: 49 73 2B C0 DD 37 24 0E 90 00 [19:50:02]wFMCommunicate OK [19:50:02]SAM_PROTO_SignData done [19:50:02]FM_MakeSignedData done [19:50:02]CreateOFDProtocolMessage [19:50:02]wFMCommunicate request_size=4 [19:50:02]MH_SAM_APDU [19:50:02]CAPDU: 80 11 00 00 [19:50:02]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 17 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [19:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:02]wFMCommunicate OK [19:50:02]CreateOFDProtocolMessage done [19:50:02]OFDSenderStorePacket 164724 [19:50:02]StoreOFDPacket docnum=164724 [19:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 96 B4 04 01 84 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 69 DA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 83 02 00 35 04 06 00 C0 D2 6A B5 31 5A 49 73 2B C0 DD 37 24 0E [19:50:02]CheckFolder [19:50:02]dirname=/storage/ofd_packets [19:50:02]CheckFolder done [19:50:02]ProducePacketName [19:50:02]name=ofd_packets/00164724 [19:50:02]NVStorageSaveData ofd_packets/00164724 [19:50:02]File name is /storage/ofd_packets/00164724 [19:50:02]Write 298 bytes [19:50:02]NVStorageSaveData done [19:50:02]OFDSenderStorePacket done [19:50:02]KKMCreateOFDPacket done [19:50:02]NVStorageSaveData kkm_last_timestamp [19:50:02]File name is /storage/kkm_last_timestamp [19:50:02]Write 4 bytes [19:50:02]NVStorageSaveData done [19:50:02]ExternCall_PrintAddStr [19:50:02]wPrintStart [19:50:02]Write to MH i2c: 01 00 00 94 0A 9E [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 07 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 FF 0F B3 [19:50:02]RasterBufferAndPrint [19:50:02]line Счет N : (1)458818 [19:50:02]line ИНН: 02508201610067 [19:50:02]line Контрольно-Кассовый Чек [19:50:02]line ПРОДАЖА [19:50:02]line ТРК (МРК, ГНК) : 11 [19:50:02]line Товар: 2710194210 [19:50:02]line ДТ-К-5 [19:50:02]line 6.960 * 71.90 [19:50:02]line = 500.42 [19:50:02]line НДС 12% НСП 1% [19:50:02]line > о реализуемом товаре [19:50:02]line ОКРУГЛЕНИЕ: -0.42 [19:50:02]line ИТОГО: 500.00 [19:50:02]line Внесено: 500.00 [19:50:02]line СДАЧА: 0.00 [19:50:02]line НСП 1% : 4.43 [19:50:02]line НДС 12% : 53.14 [19:50:02]line Наличными: 500.00 [19:50:02]line Безнал.: 0.00 [19:50:02]line Место: АЗС № 72 "Партнер Нефть" [19:50:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:02]line СНО: Общий режим [19:50:02]line Чек 284 13.07.2024 19:50 [19:50:02]line Смена: 446 ФФД: 1.0 [19:50:02]line ЗНМ: 0300000160 [19:50:02]line РНМ: 0000000000090829 [19:50:02]line Версия ККМ: 001 [19:50:02]line ФМ: 0000000000874718 [19:50:02]line ФД: 164724 [19:50:02]line ФПД: 212009965924698 [19:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164724&fm=212009965924698&tin=02508201610067®Number=0000000000090829&sum=50000 [19:50:02]OFD Sender: Processing packet 164724 [packets to send 104, broken 103] [19:50:02]ProducePacketName [19:50:02]name=ofd_packets/00164724 [19:50:02]OFD Sender: To server: pG, [19:50:02]CommunicateWithHost lk.salyk.kg:30040 [19:50:02]ConnectInit lk.salyk.kg [19:50:02]written 0, free lines is 4095 [19:50:02]Connected sock=10 [19:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 96 B4 04 01 84 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 69 DA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 83 02 00 35 04 06 00 C0 D2 6A B5 31 5A 49 73 2B C0 DD 37 24 0E [19:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 29 47 00 B1 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 34 37 31 38 10 04 04 00 74 83 02 00 F4 03 04 00 F9 80 92 66 B6 04 01 00 00 0E DA 66 29 51 50 8C A0 [19:50:02]CommunicateWithHost err = 0 [19:50:02]CheckOFDResponse [19:50:02]1017 (14) - 77093643461234 [19:50:02]1041 (16) - 0000000000874718 [19:50:02]1040 (4) - 164724 [19:50:02]1012 (4) - 13.07.2024 13:28 [19:50:02]1206 (1) - 0 [19:50:02]OFD Sender: Remove packet 164724 [19:50:02]ProducePacketName [19:50:02]name=ofd_packets/00164724 [19:50:02]NVStorageDeleteData [19:50:03]Write to MH i2c: 01 00 00 BE 0A C8 [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 EF 0C CA [19:50:03]RasterBufferAndPrint [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]written 0, free lines is 3317 [19:50:03]MH_Cut [19:50:03]Write to MH i2c: D1 01 00 C5 0A 01 A1 [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 01 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 01 00 C5 0A 00 A0 [19:50:03]Write to MH i2c: 01 00 00 C6 0A D0 [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]OFD Sender: No OFD packet to send [19:50:03]*** Cut start [19:50:03]*** Partial cut [19:50:03]*** CUTSNS_PIN = 1 [19:50:03]*** CUTSNS_PIN = 0 [19:50:03]*** Brake cut motor [19:50:04]Read from MH i2c: 01 [19:50:04]MH_I2C_Read... [19:50:04]*** Stop cut motor [19:50:04]*** Cut end [19:50:04]Read from MH i2c: 01 07 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 FF 0F E5 [19:50:04]process_action close_receipt done [19:50:04]requested_data is exist [19:50:04]produce_requested_data [19:50:04]requested_item fm.sn is exist - process it [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 11 00 00 [19:50:04]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [19:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:04]wFMCommunicate OK [19:50:04]requested_item fd.num is exist - process it [19:50:04]SAM_PROTO_GetFieldsCounters [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 13 00 00 [19:50:04]Write to MH i2c: E2 08 00 C8 0A 80 13 00 00 00 00 00 00 4E [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 62 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 62 00 C8 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [19:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_GetFieldsCounters done [19:50:04]requested_item shift.num is exist - process it [19:50:04]requested_item shift.opened is exist - process it [19:50:04]req_shift_opened [19:50:04]FM_GetShiftState [19:50:04]SAM_PROTO_GetShiftState [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 13 01 00 [19:50:04]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0E 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 31 [19:50:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_GetShiftState done [19:50:04]FM_GetShiftState done [19:50:04]req_shift_opened done [19:50:04]requested_item shift.open_date is exist - process it [19:50:04]req_shift_open_date [19:50:04]req_shift_open_date done [19:50:04]produce_requested_data done [19:50:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164724,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:50:04]process_action_free close_receipt [19:50:04]json_value_free [19:50:04]json_value_free done [19:50:04]process_json_proto returns [19:50:04]Send response to host [19:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164724,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:50:04]free response buf [19:50:04]execute_script done [19:50:04]execute_script returns [19:50:04]free content buf [19:50:04]Sock 9.Close socket [19:50:04]Sock 9.Thread stoped [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:10]accept exits with 7 [19:57:10]New connection [19:57:10]New thread 3067104612 created [19:57:10]Thread 3067247972 joined [19:57:10]Waiting for new connection... [19:57:10] Sock 7.Parse request [19:57:10]Sock 7.Check first char [19:57:10]Sock 7.First char is OK [19:57:10]request: POST /json_proto HTTP/1.0 [19:57:10]Method: POST [19:57:10]URL: /json_proto [19:57:10]Method is POST - this is cgi request [19:57:10]url: /json_proto [19:57:10]query_string will be loaded in cgi processing [19:57:10]execute_cgi json_proto POST (null) [19:57:10]execute_cgi path=json_proto method=POST [19:57:10]POST find Content-Length [19:57:10]Host: 172.17.56.4:8080 [19:57:10]Content-Length: 677 [19:57:10]Content-Type: application/json [19:57:10] [19:57:10]POST finish read [19:57:10]Found Content-Length = 677 [19:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [19:57:10]execute_script... [19:57: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)458819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [19:57:10]POST & json_proto [19:57:10]process_json_proto [19:57:10]json parsed OK: [19:57:10]protocol is kg_v1.0 [19:57:10]action value=close_receipt [19:57:10]process_action close_receipt [19:57:10]cmd_close_receipt [19:57:10]MH_GetDate [19:57:10]Write to MH i2c: F0 00 00 CA 0A C3 [19:57:10]Write i2c OK [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: F0 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: F0 09 00 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: F0 09 00 CA 0A 00 16 DC 92 66 C9 DC B2 64 71 [19:57:10]GetLastDocTimeStamp 1720900201 [19:57:10]current date 1720900630 [19:57:10]FM_GetShiftState [19:57:10]SAM_PROTO_GetShiftState [19:57:10]wFMCommunicate request_size=4 [19:57:10]MH_SAM_APDU [19:57:10]CAPDU: 80 13 01 00 [19:57:10]Write to MH i2c: E2 08 00 CB 0A 80 13 01 00 00 00 00 00 52 [19:57:10]Write i2c OK [19:57:10]MH_I2C_Read... [19:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:10]Read from MH i2c: E2 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 0E 00 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 0E 00 CB 0A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 33 [19:57:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:57:10]wFMCommunicate OK [19:57:10]SAM_PROTO_GetShiftState done [19:57:10]FM_GetShiftState done [19:57:10]opened in 1720831249 [19:57:10]opened+sec_in_day 1720917649 [19:57:10]quantity*price = 10001 [19:57:10]sum+1 = 10003 [19:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 285 13.07.2024 19:57 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164725 ФПД: 160579084296687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164725&fm=160579084296687&tin=02508201610067®Number=0000000000090829&sum=10000 [19:57:11]StoreToDocumentArchive [19:57:11]shift 446 fd 164725 [19:57:11]save to /storage/0446/doc_00164725 [19:57:11]save last doc name /storage/0446/doc_00164725 to /storage/kkm_last_doc_name [19:57:11]save OK [19:57:11]Clear old archive folders... [19:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:11]tlvbuf is 01E521C0 [19:57:11]SAM_PROTO_ClearQueue [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 09 00 00 [19:57:11]Write to MH i2c: E2 08 00 D8 0A 80 09 00 00 00 00 00 00 54 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]SAM_PROTO_ClearQueue done [19:57:11]KKMCreateOFDPacket [19:57:11]OFDProtocolAddRootSTLVToBuf [19:57:11]FM_MakeSignedData [19:57:11]FM_MakeSignedData [19:57:11]SAM_PROTO_SignData [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 0D 01 02 [19:57:11]Write to MH i2c: E2 08 00 D9 0A 80 0D 01 02 00 00 00 00 5C [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]wFMCommunicate request_size=255 [19:57:11]MH_SAM_APDU [19:57: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 83 02 00 35 04 06 00 92 [19:57:11]Write to MH i2c: E2 02 01 DA 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 83 02 00 35 04 06 00 92 00 00 AA [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]wFMCommunicate request_size=10 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 0D 02 02 05 0B BB 47 21 EF [19:57:11]Write to MH i2c: E2 0D 00 DB 0A 80 0D 02 02 05 00 0B BB 47 21 EF 00 00 86 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 0D 03 02 [19:57:11]Write to MH i2c: E2 08 00 DC 0A 80 0D 03 02 00 00 00 00 61 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 0B 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 0B 00 DC 0A 00 41 55 CD 36 9A 41 CC 97 90 00 39 [19:57:11]RAPDU: 41 55 CD 36 9A 41 CC 97 90 00 [19:57:11]wFMCommunicate OK [19:57:11]SAM_PROTO_SignData done [19:57:11]FM_MakeSignedData done [19:57:11]CreateOFDProtocolMessage [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 11 00 00 [19:57:11]Write to MH i2c: E2 08 00 DD 0A 80 11 00 00 00 00 00 00 61 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 17 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 17 00 DD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [19:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:57:11]wFMCommunicate OK [19:57:11]CreateOFDProtocolMessage done [19:57:11]OFDSenderStorePacket 164725 [19:57:11]StoreOFDPacket docnum=164725 [19:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 7F 07 01 A4 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 83 02 00 35 04 06 00 92 0B BB 47 21 EF 41 55 CD 36 9A 41 CC 97 [19:57:11]CheckFolder [19:57:11]dirname=/storage/ofd_packets [19:57:11]CheckFolder done [19:57:11]ProducePacketName [19:57:11]name=ofd_packets/00164725 [19:57:11]NVStorageSaveData ofd_packets/00164725 [19:57:11]File name is /storage/ofd_packets/00164725 [19:57:11]Write 301 bytes [19:57:11]NVStorageSaveData done [19:57:11]OFDSenderStorePacket done [19:57:11]KKMCreateOFDPacket done [19:57:11]NVStorageSaveData kkm_last_timestamp [19:57:11]File name is /storage/kkm_last_timestamp [19:57:11]Write 4 bytes [19:57:11]NVStorageSaveData done [19:57:11]ExternCall_PrintAddStr [19:57:11]wPrintStart [19:57:11]Write to MH i2c: 01 00 00 DE 0A E8 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 FF 0F FD [19:57:11]RasterBufferAndPrint [19:57:11]line Счет N : (1)458819 [19:57:11]line ИНН: 02508201610067 [19:57:11]line Контрольно-Кассовый Чек [19:57:11]line ПРОДАЖА [19:57:11]line ТРК (МРК, ГНК) : 12 [19:57:11]line Товар: 2710124130 [19:57:11]line Аи-92-К-5 [19:57:11]line 1.520 * 65.80 [19:57:11]line = 100.02 [19:57:11]line НДС 12% НСП 1% [19:57:11]line > о реализуемом товаре [19:57:11]line ОКРУГЛЕНИЕ: -0.02 [19:57:11]line ИТОГО: 100.00 [19:57:11]line Внесено: 100.00 [19:57:11]line СДАЧА: 0.00 [19:57:11]line НСП 1% : 0.88 [19:57:11]line НДС 12% : 10.62 [19:57:11]line Наличными: 100.00 [19:57:11]line Безнал.: 0.00 [19:57:11]line Место: АЗС № 72 "Партнер Нефть" [19:57:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:57:11]line СНО: Общий режим [19:57:11]line Чек 285 13.07.2024 19:57 [19:57:11]line Смена: 446 ФФД: 1.0 [19:57:11]line ЗНМ: 0300000160 [19:57:11]line РНМ: 0000000000090829 [19:57:11]line Версия ККМ: 001 [19:57:11]line ФМ: 0000000000874718 [19:57:11]line ФД: 164725 [19:57:11]line ФПД: 160579084296687 [19:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164725&fm=160579084296687&tin=02508201610067®Number=0000000000090829&sum=10000 [19:57:12]written 0, free lines is 4095 [19:57:12]OFD Sender: Processing packet 164725 [packets to send 104, broken 103] [19:57:12]ProducePacketName [19:57:12]name=ofd_packets/00164725 [19:57:12]OFD Sender: To server: pG, [19:57:12]CommunicateWithHost lk.salyk.kg:30040 [19:57:12]ConnectInit lk.salyk.kg [19:57:12]Connected sock=10 [19:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 7F 07 01 A4 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 16 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 83 02 00 35 04 06 00 92 0B BB 47 21 EF 41 55 CD 36 9A 41 CC 97 [19:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 7B 47 00 ED B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 83 02 00 F4 03 04 00 A6 82 92 66 B6 04 01 00 00 EA DE F4 40 19 61 00 18 [19:57:12]CommunicateWithHost err = 0 [19:57:12]CheckOFDResponse [19:57:12]1017 (14) - 77093643461234 [19:57:12]1041 (16) - 0000000000874718 [19:57:12]1040 (4) - 164725 [19:57:12]1012 (4) - 13.07.2024 13:35 [19:57:12]1206 (1) - 0 [19:57:12]OFD Sender: Remove packet 164725 [19:57:12]ProducePacketName [19:57:12]name=ofd_packets/00164725 [19:57:12]NVStorageDeleteData [19:57:12]Write to MH i2c: 01 00 00 08 0B 13 [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 F3 0C 19 [19:57:12]RasterBufferAndPrint [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]written 0, free lines is 3321 [19:57:12]MH_Cut [19:57:12]Write to MH i2c: D1 01 00 0F 0B 01 EC [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 01 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 01 00 0F 0B 00 EB [19:57:12]Write to MH i2c: 01 00 00 10 0B 1B [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]OFD Sender: No OFD packet to send [19:57:13]*** Cut start [19:57:13]*** Partial cut [19:57:13]*** CUTSNS_PIN = 1 [19:57:13]*** CUTSNS_PIN = 0 [19:57:13]*** Brake cut motor [19:57:13]Read from MH i2c: 01 [19:57:13]MH_I2C_Read... [19:57:13]*** Stop cut motor [19:57:13]*** Cut end [19:57:13]Read from MH i2c: 01 07 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [19:57:13]process_action close_receipt done [19:57:13]requested_data is exist [19:57:13]produce_requested_data [19:57:13]requested_item fm.sn is exist - process it [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 11 00 00 [19:57:13]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:13]Read from MH i2c: E2 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 17 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [19:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:57:13]wFMCommunicate OK [19:57:13]requested_item fd.num is exist - process it [19:57:13]SAM_PROTO_GetFieldsCounters [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 13 00 00 [19:57:13]Write to MH i2c: E2 08 00 12 0B 80 13 00 00 00 00 00 00 99 [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:13]Read from MH i2c: E2 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 62 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 62 00 12 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [19:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:13]wFMCommunicate OK [19:57:13]SAM_PROTO_GetFieldsCounters done [19:57:13]requested_item shift.num is exist - process it [19:57:13]requested_item shift.opened is exist - process it [19:57:13]req_shift_opened [19:57:13]FM_GetShiftState [19:57:13]SAM_PROTO_GetShiftState [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 13 01 00 [19:57:13]Write to MH i2c: E2 08 00 13 0B 80 13 01 00 00 00 00 00 9B [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 0E 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 0E 00 13 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [19:57:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:57:14]wFMCommunicate OK [19:57:14]SAM_PROTO_GetShiftState done [19:57:14]FM_GetShiftState done [19:57:14]req_shift_opened done [19:57:14]requested_item shift.open_date is exist - process it [19:57:14]req_shift_open_date [19:57:14]req_shift_open_date done [19:57:14]produce_requested_data done [19:57:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164725,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:57:14]process_action_free close_receipt [19:57:14]json_value_free [19:57:14]json_value_free done [19:57:14]process_json_proto returns [19:57:14]Send response to host [19:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164725,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:57:14]free response buf [19:57:14]execute_script done [19:57:14]execute_script returns [19:57:14]free content buf [19:57:14]Sock 7.Close socket [19:57:14]Sock 7.Thread stoped [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:40]accept exits with 9 [19:57:40]New connection [19:57:40]New thread 3067247972 created [19:57:40]Thread 3067104612 joined [19:57:40]Waiting for new connection... [19:57:40] Sock 9.Parse request [19:57:40]Sock 9.Check first char [19:57:40]Sock 9.First char is OK [19:57:40]request: POST /json_proto HTTP/1.0 [19:57:40]Method: POST [19:57:40]URL: /json_proto [19:57:40]Method is POST - this is cgi request [19:57:40]url: /json_proto [19:57:40]query_string will be loaded in cgi processing [19:57:40]execute_cgi json_proto POST (null) [19:57:40]execute_cgi path=json_proto method=POST [19:57:40]POST find Content-Length [19:57:40]Host: 172.17.56.4:8080 [19:57:40]Content-Length: 677 [19:57:40]Content-Type: application/json [19:57:40] [19:57:40]POST finish read [19:57:40]Found Content-Length = 677 [19:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:40]execute_script... [19:57: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)458820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:40]POST & json_proto [19:57:40]process_json_proto [19:57:40]json parsed OK: [19:57:40]protocol is kg_v1.0 [19:57:40]action value=close_receipt [19:57:40]process_action close_receipt [19:57:40]cmd_close_receipt [19:57:40]MH_GetDate [19:57:40]Write to MH i2c: F0 00 00 14 0B 0E [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: F0 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: F0 09 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: F0 09 00 14 0B 00 35 DC 92 66 C9 DC B2 64 DB [19:57:40]GetLastDocTimeStamp 1720900630 [19:57:40]current date 1720900661 [19:57:40]FM_GetShiftState [19:57:40]SAM_PROTO_GetShiftState [19:57:40]wFMCommunicate request_size=4 [19:57:40]MH_SAM_APDU [19:57:40]CAPDU: 80 13 01 00 [19:57:40]Write to MH i2c: E2 08 00 15 0B 80 13 01 00 00 00 00 00 9D [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:40]Read from MH i2c: E2 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 0E 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 0E 00 15 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7E [19:57:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:57:40]wFMCommunicate OK [19:57:40]SAM_PROTO_GetShiftState done [19:57:40]FM_GetShiftState done [19:57:40]opened in 1720831249 [19:57:40]opened+sec_in_day 1720917649 [19:57:40]quantity*price = 50008 [19:57:40]sum+1 = 50009 [19:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 286 13.07.2024 19:57 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164726 ФПД: 222030119142815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195741&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164726&fm=222030119142815&tin=02508201610067®Number=0000000000090829&sum=50000 [19:57:41]StoreToDocumentArchive [19:57:41]shift 446 fd 164726 [19:57:41]save to /storage/0446/doc_00164726 [19:57:41]save last doc name /storage/0446/doc_00164726 to /storage/kkm_last_doc_name [19:57:41]save OK [19:57:41]Clear old archive folders... [19:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:41]tlvbuf is 01E720C0 [19:57:41]SAM_PROTO_ClearQueue [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 09 00 00 [19:57:41]Write to MH i2c: E2 08 00 22 0B 80 09 00 00 00 00 00 00 9F [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 03 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [19:57:41]RAPDU: 90 00 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_ClearQueue done [19:57:41]KKMCreateOFDPacket [19:57:41]OFDProtocolAddRootSTLVToBuf [19:57:41]FM_MakeSignedData [19:57:41]FM_MakeSignedData [19:57:41]SAM_PROTO_SignData [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 0D 01 02 [19:57:41]Write to MH i2c: E2 08 00 23 0B 80 0D 01 02 00 00 00 00 A7 [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 03 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [19:57:41]RAPDU: 90 00 [19:57:41]wFMCommunicate OK [19:57:41]wFMCommunicate request_size=255 [19:57:41]MH_SAM_APDU [19:57: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1E 01 00 00 F4 03 04 00 35 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 83 02 00 35 04 06 00 C9 [19:57:41]Write to MH i2c: E2 02 01 24 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1E 01 00 00 F4 03 04 00 35 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 83 02 00 35 04 06 00 C9 00 00 CB [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:42]Read from MH i2c: E2 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 03 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [19:57:42]RAPDU: 90 00 [19:57:42]wFMCommunicate OK [19:57:42]wFMCommunicate request_size=10 [19:57:42]MH_SAM_APDU [19:57:42]CAPDU: 80 0D 02 02 05 EF 6A 61 85 9F [19:57:42]Write to MH i2c: E2 0D 00 25 0B 80 0D 02 02 05 00 EF 6A 61 85 9F 00 00 92 [19:57:42]Write i2c OK [19:57:42]MH_I2C_Read... [19:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:42]Read from MH i2c: E2 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 03 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [19:57:42]RAPDU: 90 00 [19:57:42]wFMCommunicate OK [19:57:42]wFMCommunicate request_size=4 [19:57:42]MH_SAM_APDU [19:57:42]CAPDU: 80 0D 03 02 [19:57:42]Write to MH i2c: E2 08 00 26 0B 80 0D 03 02 00 00 00 00 AC [19:57:42]Write i2c OK [19:57:42]MH_I2C_Read... [19:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:42]Read from MH i2c: E2 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 0B 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 0B 00 26 0B 00 CD 67 B3 43 FC 95 A6 87 90 00 95 [19:57:42]RAPDU: CD 67 B3 43 FC 95 A6 87 90 00 [19:57:42]wFMCommunicate OK [19:57:42]SAM_PROTO_SignData done [19:57:42]FM_MakeSignedData done [19:57:42]CreateOFDProtocolMessage [19:57:42]wFMCommunicate request_size=4 [19:57:42]MH_SAM_APDU [19:57:42]CAPDU: 80 11 00 00 [19:57:42]Write to MH i2c: E2 08 00 27 0B 80 11 00 00 00 00 00 00 AC [19:57:42]Write i2c OK [19:57:42]MH_I2C_Read... [19:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:42]Read from MH i2c: E2 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 17 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: E2 17 00 27 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [19:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:57:42]wFMCommunicate OK [19:57:42]CreateOFDProtocolMessage done [19:57:42]OFDSenderStorePacket 164726 [19:57:42]StoreOFDPacket docnum=164726 [19:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 25 07 01 6E 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1E 01 00 00 F4 03 04 00 35 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 83 02 00 35 04 06 00 C9 EF 6A 61 85 9F CD 67 B3 43 FC 95 A6 87 [19:57:42]CheckFolder [19:57:42]dirname=/storage/ofd_packets [19:57:42]CheckFolder done [19:57:42]ProducePacketName [19:57:42]name=ofd_packets/00164726 [19:57:42]NVStorageSaveData ofd_packets/00164726 [19:57:42]File name is /storage/ofd_packets/00164726 [19:57:42]Write 301 bytes [19:57:42]NVStorageSaveData done [19:57:42]OFDSenderStorePacket done [19:57:42]KKMCreateOFDPacket done [19:57:42]NVStorageSaveData kkm_last_timestamp [19:57:42]File name is /storage/kkm_last_timestamp [19:57:42]Write 4 bytes [19:57:42]NVStorageSaveData done [19:57:42]ExternCall_PrintAddStr [19:57:42]wPrintStart [19:57:42]Write to MH i2c: 01 00 00 28 0B 33 [19:57:42]Write i2c OK [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: 01 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: 01 07 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: 01 07 00 28 0B 00 00 00 00 00 FF 0F 48 [19:57:42]RasterBufferAndPrint [19:57:42]line Счет N : (1)458820 [19:57:42]line ИНН: 02508201610067 [19:57:42]line Контрольно-Кассовый Чек [19:57:42]line ПРОДАЖА [19:57:42]line ТРК (МРК, ГНК) : 22 [19:57:42]line Товар: 2710124130 [19:57:42]line Аи-92-К-5 [19:57:42]line 7.600 * 65.80 [19:57:42]line = 500.08 [19:57:42]line НДС 12% НСП 1% [19:57:42]line > о реализуемом товаре [19:57:42]line ОКРУГЛЕНИЕ: -0.08 [19:57:42]line ИТОГО: 500.00 [19:57:42]line Внесено: 500.00 [19:57:42]line СДАЧА: 0.00 [19:57:42]line НСП 1% : 4.42 [19:57:42]line НДС 12% : 53.11 [19:57:42]line Наличными: 500.00 [19:57:42]line Безнал.: 0.00 [19:57:42]line Место: АЗС № 72 "Партнер Нефть" [19:57:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:57:42]line СНО: Общий режим [19:57:42]line Чек 286 13.07.2024 19:57 [19:57:42]line Смена: 446 ФФД: 1.0 [19:57:42]line ЗНМ: 0300000160 [19:57:42]line РНМ: 0000000000090829 [19:57:42]line Версия ККМ: 001 [19:57:42]line ФМ: 0000000000874718 [19:57:42]line ФД: 164726 [19:57:42]line ФПД: 222030119142815 [19:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195741&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164726&fm=222030119142815&tin=02508201610067®Number=0000000000090829&sum=50000 [19:57:42]OFD Sender: Processing packet 164726 [packets to send 104, broken 103] [19:57:42]ProducePacketName [19:57:42]name=ofd_packets/00164726 [19:57:42]OFD Sender: To server: pG, [19:57:42]CommunicateWithHost lk.salyk.kg:30040 [19:57:42]ConnectInit lk.salyk.kg [19:57:42]written 0, free lines is 4095 [19:57:42]Connected sock=10 [19:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 25 07 01 6E 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1E 01 00 00 F4 03 04 00 35 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 83 02 00 35 04 06 00 C9 EF 6A 61 85 9F CD 67 B3 43 FC 95 A6 87 [19:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2A 0B 47 00 F5 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 34 37 31 38 10 04 04 00 76 83 02 00 F4 03 04 00 C5 82 92 66 B6 04 01 00 00 09 A8 06 80 3E 34 94 8B [19:57:42]CommunicateWithHost err = 0 [19:57:42]CheckOFDResponse [19:57:42]1017 (14) - 77093643461234 [19:57:42]1041 (16) - 0000000000874718 [19:57:42]1040 (4) - 164726 [19:57:42]1012 (4) - 13.07.2024 13:36 [19:57:42]1206 (1) - 0 [19:57:42]OFD Sender: Remove packet 164726 [19:57:42]ProducePacketName [19:57:42]name=ofd_packets/00164726 [19:57:42]NVStorageDeleteData [19:57:43]Write to MH i2c: 01 00 00 52 0B 5D [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 F3 0C 63 [19:57:43]RasterBufferAndPrint [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]written 0, free lines is 3322 [19:57:43]MH_Cut [19:57:43]Write to MH i2c: D1 01 00 59 0B 01 36 [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 01 00 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 01 00 59 0B 00 35 [19:57:43]Write to MH i2c: 01 00 00 5A 0B 65 [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]OFD Sender: No OFD packet to send [19:57:43]*** Cut start [19:57:43]*** Partial cut [19:57:43]*** CUTSNS_PIN = 1 [19:57:43]*** CUTSNS_PIN = 0 [19:57:43]*** Brake cut motor [19:57:44]Read from MH i2c: 01 [19:57:44]MH_I2C_Read... [19:57:44]*** Stop cut motor [19:57:44]*** Cut end [19:57:44]Read from MH i2c: 01 07 00 [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [19:57:44]process_action close_receipt done [19:57:44]requested_data is exist [19:57:44]produce_requested_data [19:57:44]requested_item fm.sn is exist - process it [19:57:44]wFMCommunicate request_size=4 [19:57:44]MH_SAM_APDU [19:57:44]CAPDU: 80 11 00 00 [19:57:44]Write to MH i2c: E2 08 00 5B 0B 80 11 00 00 00 00 00 00 E0 [19:57:44]Write i2c OK [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 [19:57:44]MH_I2C_Read... [19:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:44]Read from MH i2c: E2 17 00 [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 17 00 5B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [19:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:57:44]wFMCommunicate OK [19:57:44]requested_item fd.num is exist - process it [19:57:44]SAM_PROTO_GetFieldsCounters [19:57:44]wFMCommunicate request_size=4 [19:57:44]MH_SAM_APDU [19:57:44]CAPDU: 80 13 00 00 [19:57:44]Write to MH i2c: E2 08 00 5C 0B 80 13 00 00 00 00 00 00 E3 [19:57:44]Write i2c OK [19:57:44]MH_I2C_Read... [19:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:44]Read from MH i2c: E2 [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 62 00 [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 62 00 5C 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [19:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:44]wFMCommunicate OK [19:57:44]SAM_PROTO_GetFieldsCounters done [19:57:44]requested_item shift.num is exist - process it [19:57:44]requested_item shift.opened is exist - process it [19:57:44]req_shift_opened [19:57:44]FM_GetShiftState [19:57:44]SAM_PROTO_GetShiftState [19:57:44]wFMCommunicate request_size=4 [19:57:44]MH_SAM_APDU [19:57:44]CAPDU: 80 13 01 00 [19:57:44]Write to MH i2c: E2 08 00 5D 0B 80 13 01 00 00 00 00 00 E5 [19:57:44]Write i2c OK [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 [19:57:44]MH_I2C_Read... [19:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:44]Read from MH i2c: E2 0E 00 [19:57:44]MH_I2C_Read... [19:57:44]Read from MH i2c: E2 0E 00 5D 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [19:57:44]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:57:44]wFMCommunicate OK [19:57:44]SAM_PROTO_GetShiftState done [19:57:44]FM_GetShiftState done [19:57:44]req_shift_opened done [19:57:44]requested_item shift.open_date is exist - process it [19:57:44]req_shift_open_date [19:57:44]req_shift_open_date done [19:57:44]produce_requested_data done [19:57:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164726,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:57:44]process_action_free close_receipt [19:57:44]json_value_free [19:57:44]json_value_free done [19:57:44]process_json_proto returns [19:57:44]Send response to host [19:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164726,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:57:44]free response buf [19:57:44]execute_script done [19:57:44]execute_script returns [19:57:44]free content buf [19:57:44]Sock 9.Close socket [19:57:44]Sock 9.Thread stoped [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:17]accept exits with 7 [19:58:17]New connection [19:58:17]New thread 3067104612 created [19:58:17]Thread 3067247972 joined [19:58:17]Waiting for new connection... [19:58:17] Sock 7.Parse request [19:58:17]Sock 7.Check first char [19:58:17]Sock 7.First char is OK [19:58:17]request: POST /json_proto HTTP/1.0 [19:58:17]Method: POST [19:58:17]URL: /json_proto [19:58:17]Method is POST - this is cgi request [19:58:17]url: /json_proto [19:58:17]query_string will be loaded in cgi processing [19:58:17]execute_cgi json_proto POST (null) [19:58:17]execute_cgi path=json_proto method=POST [19:58:17]POST find Content-Length [19:58:17]Host: 172.17.56.4:8080 [19:58:17]Content-Length: 682 [19:58:17]Content-Type: application/json [19:58:17] [19:58:17]POST finish read [19:58:17]Found Content-Length = 682 [19:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:17]execute_script... [19:58: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)458821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:17]POST & json_proto [19:58:17]process_json_proto [19:58:17]json parsed OK: [19:58:17]protocol is kg_v1.0 [19:58:17]action value=close_receipt [19:58:17]process_action close_receipt [19:58:17]cmd_close_receipt [19:58:17]MH_GetDate [19:58:17]Write to MH i2c: F0 00 00 5E 0B 58 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: F0 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: F0 09 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: F0 09 00 5E 0B 00 5A DC 92 66 C9 DC B2 64 4A [19:58:17]GetLastDocTimeStamp 1720900661 [19:58:17]current date 1720900698 [19:58:17]FM_GetShiftState [19:58:17]SAM_PROTO_GetShiftState [19:58:17]wFMCommunicate request_size=4 [19:58:17]MH_SAM_APDU [19:58:17]CAPDU: 80 13 01 00 [19:58:17]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [19:58:17]Write i2c OK [19:58:17]MH_I2C_Read... [19:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:17]Read from MH i2c: E2 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 0E 00 [19:58:17]MH_I2C_Read... [19:58:17]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C8 [19:58:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:58:17]wFMCommunicate OK [19:58:17]SAM_PROTO_GetShiftState done [19:58:17]FM_GetShiftState done [19:58:17]opened in 1720831249 [19:58:17]opened+sec_in_day 1720917649 [19:58:17]quantity*price = 120019 [19:58:17]sum+1 = 120020 [19:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 287 13.07.2024 19:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164727 ФПД: 131609265944765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164727&fm=131609265944765&tin=02508201610067®Number=0000000000090829&sum=120000 [19:58:18]StoreToDocumentArchive [19:58:18]shift 446 fd 164727 [19:58:18]save to /storage/0446/doc_00164727 [19:58:18]save last doc name /storage/0446/doc_00164727 to /storage/kkm_last_doc_name [19:58:18]save OK [19:58:18]Clear old archive folders... [19:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:18]tlvbuf is 01E59FA0 [19:58:18]SAM_PROTO_ClearQueue [19:58:18]wFMCommunicate request_size=4 [19:58:18]MH_SAM_APDU [19:58:18]CAPDU: 80 09 00 00 [19:58:18]Write to MH i2c: E2 08 00 6C 0B 80 09 00 00 00 00 00 00 E9 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_ClearQueue done [19:58:19]KKMCreateOFDPacket [19:58:19]OFDProtocolAddRootSTLVToBuf [19:58:19]FM_MakeSignedData [19:58:19]FM_MakeSignedData [19:58:19]SAM_PROTO_SignData [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 01 02 [19:58:19]Write to MH i2c: E2 08 00 6D 0B 80 0D 01 02 00 00 00 00 F1 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=255 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5A DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 83 02 00 35 04 06 00 77 [19:58:19]Write to MH i2c: E2 02 01 6E 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5A DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 83 02 00 35 04 06 00 77 00 00 CB [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=10 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 02 02 05 B2 AB 8B B8 BD [19:58:19]Write to MH i2c: E2 0D 00 6F 0B 80 0D 02 02 05 00 B2 AB 8B B8 BD 00 00 5B [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 03 02 [19:58:19]Write to MH i2c: E2 08 00 70 0B 80 0D 03 02 00 00 00 00 F6 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0B 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0B 00 70 0B 00 A1 79 27 F6 8F 6E 4B FC 90 00 72 [19:58:19]RAPDU: A1 79 27 F6 8F 6E 4B FC 90 00 [19:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_SignData done [19:58:19]FM_MakeSignedData done [19:58:19]CreateOFDProtocolMessage [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 11 00 00 [19:58:19]Write to MH i2c: E2 08 00 71 0B 80 11 00 00 00 00 00 00 F6 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 17 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 17 00 71 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [19:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:58:19]wFMCommunicate OK [19:58:19]CreateOFDProtocolMessage done [19:58:19]OFDSenderStorePacket 164727 [19:58:19]StoreOFDPacket docnum=164727 [19:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 7A 07 01 9D 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5A DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 83 02 00 35 04 06 00 77 B2 AB 8B B8 BD A1 79 27 F6 8F 6E 4B FC [19:58:19]CheckFolder [19:58:19]dirname=/storage/ofd_packets [19:58:19]CheckFolder done [19:58:19]ProducePacketName [19:58:19]name=ofd_packets/00164727 [19:58:19]NVStorageSaveData ofd_packets/00164727 [19:58:19]File name is /storage/ofd_packets/00164727 [19:58:19]Write 301 bytes [19:58:19]NVStorageSaveData done [19:58:19]OFDSenderStorePacket done [19:58:19]KKMCreateOFDPacket done [19:58:19]NVStorageSaveData kkm_last_timestamp [19:58:19]File name is /storage/kkm_last_timestamp [19:58:19]Write 4 bytes [19:58:19]NVStorageSaveData done [19:58:19]OFD Sender: Processing packet 164727 [packets to send 104, broken 103] [19:58:19]ProducePacketName [19:58:19]name=ofd_packets/00164727 [19:58:19]OFD Sender: To server: pG, [19:58:19]CommunicateWithHost lk.salyk.kg:30040 [19:58:19]ConnectInit lk.salyk.kg [19:58:19]ExternCall_PrintAddStr [19:58:19]wPrintStart [19:58:19]Write to MH i2c: 01 00 00 72 0B 7D [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 07 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 FF 0F 92 [19:58:19]RasterBufferAndPrint [19:58:19]line Счет N : (1)458821 [19:58:19]line ИНН: 02508201610067 [19:58:19]line Контрольно-Кассовый Чек [19:58:19]line ПРОДАЖА [19:58:19]line ТРК (МРК, ГНК) : 12 [19:58:19]line Товар: 2710124130 [19:58:19]line Аи-92-К-5 [19:58:19]line 18.240 * 65.80 [19:58:19]line = 1200.19 [19:58:19]line НДС 12% НСП 1% [19:58:19]line > о реализуемом товаре [19:58:19]line ОКРУГЛЕНИЕ: -0.19 [19:58:19]line ИТОГО: 1200.00 [19:58:19]line Внесено: 1200.00 [19:58:19]line СДАЧА: 0.00 [19:58:19]line НСП 1% : 10.62 [19:58:19]line НДС 12% : 127.45 [19:58:19]line Наличными: 1200.00 [19:58:19]line Безнал.: 0.00 [19:58:19]line Место: АЗС № 72 "Партнер Нефть" [19:58:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:58:19]line СНО: Общий режим [19:58:19]line Чек 287 13.07.2024 19:58 [19:58:19]line Смена: 446 ФФД: 1.0 [19:58:19]line ЗНМ: 0300000160 [19:58:19]line РНМ: 0000000000090829 [19:58:19]line Версия ККМ: 001 [19:58:19]line ФМ: 0000000000874718 [19:58:19]line ФД: 164727 [19:58:19]line ФПД: 131609265944765 [19:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164727&fm=131609265944765&tin=02508201610067®Number=0000000000090829&sum=120000 [19:58:19]Connected sock=11 [19:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 7A 07 01 9D 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5A DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 83 02 00 35 04 06 00 77 B2 AB 8B B8 BD A1 79 27 F6 8F 6E 4B FC [19:58:19]written 0, free lines is 4095 [19:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B ED 47 00 63 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 83 02 00 F4 03 04 00 EA 82 92 66 B6 04 01 00 00 7F F9 8B 58 35 8D C2 80 [19:58:20]CommunicateWithHost err = 0 [19:58:20]CheckOFDResponse [19:58:20]1017 (14) - 77093643461234 [19:58:20]1041 (16) - 0000000000874718 [19:58:20]1040 (4) - 164727 [19:58:20]1012 (4) - 13.07.2024 13:36 [19:58:20]1206 (1) - 0 [19:58:20]OFD Sender: Remove packet 164727 [19:58:20]ProducePacketName [19:58:20]name=ofd_packets/00164727 [19:58:20]NVStorageDeleteData [19:58:20]Write to MH i2c: 01 00 00 9C 0B A7 [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 07 00 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 07 00 9C 0B 00 00 00 00 00 FD 0C B7 [19:58:20]RasterBufferAndPrint [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]written 0, free lines is 3331 [19:58:20]MH_Cut [19:58:20]Write to MH i2c: D1 01 00 A3 0B 01 80 [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 01 00 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 01 00 A3 0B 00 7F [19:58:20]Write to MH i2c: 01 00 00 A4 0B AF [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:20]OFD Sender: No OFD packet to send [19:58:20]*** Cut start [19:58:20]*** Partial cut [19:58:20]*** CUTSNS_PIN = 1 [19:58:21]*** CUTSNS_PIN = 0 [19:58:21]*** Brake cut motor [19:58:21]Read from MH i2c: 01 [19:58:21]MH_I2C_Read... [19:58:21]*** Stop cut motor [19:58:21]*** Cut end [19:58:21]Read from MH i2c: 01 07 00 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [19:58:21]process_action close_receipt done [19:58:21]requested_data is exist [19:58:21]produce_requested_data [19:58:21]requested_item fm.sn is exist - process it [19:58:21]wFMCommunicate request_size=4 [19:58:21]MH_SAM_APDU [19:58:21]CAPDU: 80 11 00 00 [19:58:21]Write to MH i2c: E2 08 00 A5 0B 80 11 00 00 00 00 00 00 2A [19:58:21]Write i2c OK [19:58:21]MH_I2C_Read... [19:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:21]Read from MH i2c: E2 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 17 00 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 17 00 A5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [19:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:58:21]wFMCommunicate OK [19:58:21]requested_item fd.num is exist - process it [19:58:21]SAM_PROTO_GetFieldsCounters [19:58:21]wFMCommunicate request_size=4 [19:58:21]MH_SAM_APDU [19:58:21]CAPDU: 80 13 00 00 [19:58:21]Write to MH i2c: E2 08 00 A6 0B 80 13 00 00 00 00 00 00 2D [19:58:21]Write i2c OK [19:58:21]MH_I2C_Read... [19:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:21]Read from MH i2c: E2 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 62 00 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 62 00 A6 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:21]wFMCommunicate OK [19:58:21]SAM_PROTO_GetFieldsCounters done [19:58:21]requested_item shift.num is exist - process it [19:58:21]requested_item shift.opened is exist - process it [19:58:21]req_shift_opened [19:58:21]FM_GetShiftState [19:58:21]SAM_PROTO_GetShiftState [19:58:21]wFMCommunicate request_size=4 [19:58:21]MH_SAM_APDU [19:58:21]CAPDU: 80 13 01 00 [19:58:21]Write to MH i2c: E2 08 00 A7 0B 80 13 01 00 00 00 00 00 2F [19:58:21]Write i2c OK [19:58:21]MH_I2C_Read... [19:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:21]Read from MH i2c: E2 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 0E 00 [19:58:21]MH_I2C_Read... [19:58:21]Read from MH i2c: E2 0E 00 A7 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [19:58:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [19:58:21]wFMCommunicate OK [19:58:21]SAM_PROTO_GetShiftState done [19:58:21]FM_GetShiftState done [19:58:21]req_shift_opened done [19:58:21]requested_item shift.open_date is exist - process it [19:58:21]req_shift_open_date [19:58:21]req_shift_open_date done [19:58:21]produce_requested_data done [19:58:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164727,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [19:58:21]process_action_free close_receipt [19:58:21]json_value_free [19:58:21]json_value_free done [19:58:21]process_json_proto returns [19:58:21]Send response to host [19:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164727,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [19:58:21]free response buf [19:58:21]execute_script done [19:58:21]execute_script returns [19:58:21]free content buf [19:58:21]Sock 7.Close socket [19:58:21]Sock 7.Thread stoped [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:36]accept exits with 9 [20:00:36]New connection [20:00:36]New thread 3067247972 created [20:00:36]Thread 3067104612 joined [20:00:36]Waiting for new connection... [20:00:36] Sock 9.Parse request [20:00:36]Sock 9.Check first char [20:00:36]Sock 9.First char is OK [20:00:36]request: POST /json_proto HTTP/1.0 [20:00:36]Method: POST [20:00:36]URL: /json_proto [20:00:36]Method is POST - this is cgi request [20:00:36]url: /json_proto [20:00:36]query_string will be loaded in cgi processing [20:00:36]execute_cgi json_proto POST (null) [20:00:36]execute_cgi path=json_proto method=POST [20:00:36]POST find Content-Length [20:00:36]Host: 172.17.56.4:8080 [20:00:36]Content-Length: 677 [20:00:36]Content-Type: application/json [20:00:36] [20:00:36]POST finish read [20:00:36]Found Content-Length = 677 [20:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:36]execute_script... [20:00:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:36]POST & json_proto [20:00:36]process_json_proto [20:00:36]json parsed OK: [20:00:36]protocol is kg_v1.0 [20:00:36]action value=close_receipt [20:00:36]process_action close_receipt [20:00:36]cmd_close_receipt [20:00:36]MH_GetDate [20:00:36]Write to MH i2c: F0 00 00 A8 0B A2 [20:00:36]Write i2c OK [20:00:36]MH_I2C_Read... [20:00:36]Read from MH i2c: F0 [20:00:36]MH_I2C_Read... [20:00:36]Read from MH i2c: F0 09 00 [20:00:36]MH_I2C_Read... [20:00:36]Read from MH i2c: F0 09 00 A8 0B 00 E5 DC 92 66 C9 DC B2 64 1F [20:00:36]GetLastDocTimeStamp 1720900698 [20:00:36]current date 1720900837 [20:00:36]FM_GetShiftState [20:00:36]SAM_PROTO_GetShiftState [20:00:36]wFMCommunicate request_size=4 [20:00:36]MH_SAM_APDU [20:00:36]CAPDU: 80 13 01 00 [20:00:36]Write to MH i2c: E2 08 00 A9 0B 80 13 01 00 00 00 00 00 31 [20:00:36]Write i2c OK [20:00:36]MH_I2C_Read... [20:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:36]Read from MH i2c: E2 [20:00:36]MH_I2C_Read... [20:00:36]Read from MH i2c: E2 0E 00 [20:00:36]MH_I2C_Read... [20:00:36]Read from MH i2c: E2 0E 00 A9 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 12 [20:00:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:00:36]wFMCommunicate OK [20:00:36]SAM_PROTO_GetShiftState done [20:00:36]FM_GetShiftState done [20:00:36]opened in 1720831249 [20:00:36]opened+sec_in_day 1720917649 [20:00:36]quantity*price = 50008 [20:00:36]sum+1 = 50009 [20:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 288 13.07.2024 20:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164728 ФПД: 210077866696987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164728&fm=210077866696987&tin=02508201610067®Number=0000000000090829&sum=50000 [20:00:37]StoreToDocumentArchive [20:00:37]shift 446 fd 164728 [20:00:37]save to /storage/0446/doc_00164728 [20:00:37]save last doc name /storage/0446/doc_00164728 to /storage/kkm_last_doc_name [20:00:37]save OK [20:00:37]Clear old archive folders... [20:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:37]tlvbuf is 01E63F60 [20:00:37]SAM_PROTO_ClearQueue [20:00:37]wFMCommunicate request_size=4 [20:00:37]MH_SAM_APDU [20:00:37]CAPDU: 80 09 00 00 [20:00:37]Write to MH i2c: E2 08 00 B6 0B 80 09 00 00 00 00 00 00 33 [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:37]Read from MH i2c: E2 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [20:00:37]RAPDU: 90 00 [20:00:37]wFMCommunicate OK [20:00:37]SAM_PROTO_ClearQueue done [20:00:37]KKMCreateOFDPacket [20:00:37]OFDProtocolAddRootSTLVToBuf [20:00:37]FM_MakeSignedData [20:00:37]FM_MakeSignedData [20:00:37]SAM_PROTO_SignData [20:00:37]wFMCommunicate request_size=4 [20:00:37]MH_SAM_APDU [20:00:37]CAPDU: 80 0D 01 02 [20:00:37]Write to MH i2c: E2 08 00 B7 0B 80 0D 01 02 00 00 00 00 3B [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:37]Read from MH i2c: E2 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [20:00:37]RAPDU: 90 00 [20:00:37]wFMCommunicate OK [20:00:37]wFMCommunicate request_size=255 [20:00:37]MH_SAM_APDU [20:00:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 01 00 00 F4 03 04 00 E5 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 83 02 00 35 04 06 00 BF [20:00:37]Write to MH i2c: E2 02 01 B8 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 01 00 00 F4 03 04 00 E5 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 83 02 00 35 04 06 00 BF 00 00 09 [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:37]Read from MH i2c: E2 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [20:00:37]RAPDU: 90 00 [20:00:37]wFMCommunicate OK [20:00:37]wFMCommunicate request_size=10 [20:00:37]MH_SAM_APDU [20:00:37]CAPDU: 80 0D 02 02 05 10 90 9E A1 1B [20:00:37]Write to MH i2c: E2 0D 00 B9 0B 80 0D 02 02 05 00 10 90 9E A1 1B 00 00 42 [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [20:00:38]RAPDU: 90 00 [20:00:38]wFMCommunicate OK [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 0D 03 02 [20:00:38]Write to MH i2c: E2 08 00 BA 0B 80 0D 03 02 00 00 00 00 40 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0B 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0B 00 BA 0B 00 CA C2 96 CA D5 80 3B 20 90 00 DD [20:00:38]RAPDU: CA C2 96 CA D5 80 3B 20 90 00 [20:00:38]wFMCommunicate OK [20:00:38]SAM_PROTO_SignData done [20:00:38]FM_MakeSignedData done [20:00:38]CreateOFDProtocolMessage [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 11 00 00 [20:00:38]Write to MH i2c: E2 08 00 BB 0B 80 11 00 00 00 00 00 00 40 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 BB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [20:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:00:38]wFMCommunicate OK [20:00:38]CreateOFDProtocolMessage done [20:00:38]OFDSenderStorePacket 164728 [20:00:38]StoreOFDPacket docnum=164728 [20:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 6F 07 01 E6 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 01 00 00 F4 03 04 00 E5 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 83 02 00 35 04 06 00 BF 10 90 9E A1 1B CA C2 96 CA D5 80 3B 20 [20:00:38]CheckFolder [20:00:38]dirname=/storage/ofd_packets [20:00:38]CheckFolder done [20:00:38]ProducePacketName [20:00:38]name=ofd_packets/00164728 [20:00:38]NVStorageSaveData ofd_packets/00164728 [20:00:38]File name is /storage/ofd_packets/00164728 [20:00:38]Write 301 bytes [20:00:38]NVStorageSaveData done [20:00:38]OFDSenderStorePacket done [20:00:38]KKMCreateOFDPacket done [20:00:38]NVStorageSaveData kkm_last_timestamp [20:00:38]File name is /storage/kkm_last_timestamp [20:00:38]Write 4 bytes [20:00:38]NVStorageSaveData done [20:00:38]ExternCall_PrintAddStr [20:00:38]wPrintStart [20:00:38]Write to MH i2c: 01 00 00 BC 0B C7 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 FF 0F DC [20:00:38]RasterBufferAndPrint [20:00:38]line Счет N : (1)458822 [20:00:38]line ИНН: 02508201610067 [20:00:38]line Контрольно-Кассовый Чек [20:00:38]line ПРОДАЖА [20:00:38]line ТРК (МРК, ГНК) : 12 [20:00:38]line Товар: 2710124130 [20:00:38]line Аи-92-К-5 [20:00:38]line 7.600 * 65.80 [20:00:38]line = 500.08 [20:00:38]line НДС 12% НСП 1% [20:00:38]line > о реализуемом товаре [20:00:38]line ОКРУГЛЕНИЕ: -0.08 [20:00:38]line ИТОГО: 500.00 [20:00:38]line Внесено: 500.00 [20:00:38]line СДАЧА: 0.00 [20:00:38]line НСП 1% : 4.42 [20:00:38]line НДС 12% : 53.11 [20:00:38]line Наличными: 500.00 [20:00:38]line Безнал.: 0.00 [20:00:38]line Место: АЗС № 72 "Партнер Нефть" [20:00:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:00:38]line СНО: Общий режим [20:00:38]line Чек 288 13.07.2024 20:00 [20:00:38]line Смена: 446 ФФД: 1.0 [20:00:38]line ЗНМ: 0300000160 [20:00:38]line РНМ: 0000000000090829 [20:00:38]line Версия ККМ: 001 [20:00:38]line ФМ: 0000000000874718 [20:00:38]line ФД: 164728 [20:00:38]line ФПД: 210077866696987 [20:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164728&fm=210077866696987&tin=02508201610067®Number=0000000000090829&sum=50000 [20:00:38]OFD Sender: Processing packet 164728 [packets to send 104, broken 103] [20:00:38]ProducePacketName [20:00:38]name=ofd_packets/00164728 [20:00:38]OFD Sender: To server: pG, [20:00:38]CommunicateWithHost lk.salyk.kg:30040 [20:00:38]ConnectInit lk.salyk.kg [20:00:38]written 0, free lines is 4095 [20:00:38]Connected sock=10 [20:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 6F 07 01 E6 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 01 00 00 F4 03 04 00 E5 DC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 83 02 00 35 04 06 00 BF 10 90 9E A1 1B CA C2 96 CA D5 80 3B 20 [20:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 7C 47 00 3F 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 34 37 31 38 10 04 04 00 78 83 02 00 F4 03 04 00 75 83 92 66 B6 04 01 00 00 08 9C 7B E3 C7 58 73 01 [20:00:38]CommunicateWithHost err = 0 [20:00:38]CheckOFDResponse [20:00:38]1017 (14) - 77093643461234 [20:00:38]1041 (16) - 0000000000874718 [20:00:38]1040 (4) - 164728 [20:00:38]1012 (4) - 13.07.2024 13:39 [20:00:38]1206 (1) - 0 [20:00:38]OFD Sender: Remove packet 164728 [20:00:38]ProducePacketName [20:00:38]name=ofd_packets/00164728 [20:00:38]NVStorageDeleteData [20:00:38]Write to MH i2c: 01 00 00 E6 0B F1 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 E6 0B 00 00 00 00 00 FA 0C FE [20:00:38]RasterBufferAndPrint [20:00:38]line [20:00:38]line [20:00:38]line [20:00:38]line [20:00:38]line [20:00:38]written 0, free lines is 3328 [20:00:38]MH_Cut [20:00:38]Write to MH i2c: D1 01 00 ED 0B 01 CA [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: D1 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: D1 01 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: D1 01 00 ED 0B 00 C9 [20:00:38]Write to MH i2c: 01 00 00 EE 0B F9 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:39]OFD Sender: No OFD packet to send [20:00:39]*** Cut start [20:00:39]*** Partial cut [20:00:39]*** CUTSNS_PIN = 1 [20:00:39]*** CUTSNS_PIN = 0 [20:00:39]*** Brake cut motor [20:00:40]Read from MH i2c: 01 [20:00:40]MH_I2C_Read... [20:00:40]*** Stop cut motor [20:00:40]*** Cut end [20:00:40]Read from MH i2c: 01 07 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 FF 0F 0E [20:00:40]process_action close_receipt done [20:00:40]requested_data is exist [20:00:40]produce_requested_data [20:00:40]requested_item fm.sn is exist - process it [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 11 00 00 [20:00:40]Write to MH i2c: E2 08 00 EF 0B 80 11 00 00 00 00 00 00 74 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 17 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 17 00 EF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [20:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:00:40]wFMCommunicate OK [20:00:40]requested_item fd.num is exist - process it [20:00:40]SAM_PROTO_GetFieldsCounters [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 13 00 00 [20:00:40]Write to MH i2c: E2 08 00 F0 0B 80 13 00 00 00 00 00 00 77 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 62 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 62 00 F0 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:00:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:40]wFMCommunicate OK [20:00:40]SAM_PROTO_GetFieldsCounters done [20:00:40]requested_item shift.num is exist - process it [20:00:40]requested_item shift.opened is exist - process it [20:00:40]req_shift_opened [20:00:40]FM_GetShiftState [20:00:40]SAM_PROTO_GetShiftState [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 13 01 00 [20:00:40]Write to MH i2c: E2 08 00 F1 0B 80 13 01 00 00 00 00 00 79 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 F1 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5A [20:00:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:00:40]wFMCommunicate OK [20:00:40]SAM_PROTO_GetShiftState done [20:00:40]FM_GetShiftState done [20:00:40]req_shift_opened done [20:00:40]requested_item shift.open_date is exist - process it [20:00:40]req_shift_open_date [20:00:40]req_shift_open_date done [20:00:40]produce_requested_data done [20:00:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164728,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:00:40]process_action_free close_receipt [20:00:40]json_value_free [20:00:40]json_value_free done [20:00:40]process_json_proto returns [20:00:40]Send response to host [20:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164728,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:00:40]free response buf [20:00:40]execute_script done [20:00:40]execute_script returns [20:00:40]free content buf [20:00:40]Sock 9.Close socket [20:00:40]Sock 9.Thread stoped [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:22]accept exits with 7 [20:01:22]New connection [20:01:22]New thread 3067104612 created [20:01:22]Thread 3067247972 joined [20:01:22]Waiting for new connection... [20:01:22] Sock 7.Parse request [20:01:22]Sock 7.Check first char [20:01:22]Sock 7.First char is OK [20:01:22]request: POST /json_proto HTTP/1.0 [20:01:22]Method: POST [20:01:22]URL: /json_proto [20:01:22]Method is POST - this is cgi request [20:01:22]url: /json_proto [20:01:22]query_string will be loaded in cgi processing [20:01:22]execute_cgi json_proto POST (null) [20:01:22]execute_cgi path=json_proto method=POST [20:01:22]POST find Content-Length [20:01:22]Host: 172.17.56.4:8080 [20:01:22]Content-Length: 674 [20:01:22]Content-Type: application/json [20:01:22] [20:01:22]POST finish read [20:01:22]Found Content-Length = 674 [20:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:22]execute_script... [20:01: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)458823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:22]POST & json_proto [20:01:22]process_json_proto [20:01:22]json parsed OK: [20:01:22]protocol is kg_v1.0 [20:01:22]action value=close_receipt [20:01:22]process_action close_receipt [20:01:22]cmd_close_receipt [20:01:22]MH_GetDate [20:01:22]Write to MH i2c: F0 00 00 F2 0B EC [20:01:22]Write i2c OK [20:01:22]MH_I2C_Read... [20:01:22]Read from MH i2c: F0 [20:01:22]MH_I2C_Read... [20:01:22]Read from MH i2c: F0 09 00 [20:01:22]MH_I2C_Read... [20:01:22]Read from MH i2c: F0 09 00 F2 0B 00 13 DD 92 66 C9 DC B2 64 98 [20:01:22]GetLastDocTimeStamp 1720900837 [20:01:22]current date 1720900883 [20:01:22]FM_GetShiftState [20:01:22]SAM_PROTO_GetShiftState [20:01:22]wFMCommunicate request_size=4 [20:01:22]MH_SAM_APDU [20:01:22]CAPDU: 80 13 01 00 [20:01:22]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [20:01:22]Write i2c OK [20:01:22]MH_I2C_Read... [20:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:22]Read from MH i2c: E2 [20:01:22]MH_I2C_Read... [20:01:22]Read from MH i2c: E2 0E 00 [20:01:22]MH_I2C_Read... [20:01:22]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5C [20:01:22]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:01:22]wFMCommunicate OK [20:01:22]SAM_PROTO_GetShiftState done [20:01:22]FM_GetShiftState done [20:01:22]opened in 1720831249 [20:01:22]opened+sec_in_day 1720917649 [20:01:22]quantity*price = 40048 [20:01:22]sum+1 = 40049 [20:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 289 13.07.2024 20:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164729 ФПД: 34818707946925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164729&fm=34818707946925&tin=02508201610067®Number=0000000000090829&sum=40000 [20:01:23]StoreToDocumentArchive [20:01:23]shift 446 fd 164729 [20:01:23]save to /storage/0446/doc_00164729 [20:01:23]save last doc name /storage/0446/doc_00164729 to /storage/kkm_last_doc_name [20:01:23]save OK [20:01:23]Clear old archive folders... [20:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:01:23]tlvbuf is 01E40040 [20:01:23]SAM_PROTO_ClearQueue [20:01:23]wFMCommunicate request_size=4 [20:01:23]MH_SAM_APDU [20:01:23]CAPDU: 80 09 00 00 [20:01:23]Write to MH i2c: E2 08 00 00 0C 80 09 00 00 00 00 00 00 7E [20:01:23]Write i2c OK [20:01:23]MH_I2C_Read... [20:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:23]Read from MH i2c: E2 [20:01:23]MH_I2C_Read... [20:01:23]Read from MH i2c: E2 03 00 [20:01:23]MH_I2C_Read... [20:01:23]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [20:01:23]RAPDU: 90 00 [20:01:23]wFMCommunicate OK [20:01:23]SAM_PROTO_ClearQueue done [20:01:23]KKMCreateOFDPacket [20:01:23]OFDProtocolAddRootSTLVToBuf [20:01:23]FM_MakeSignedData [20:01:23]FM_MakeSignedData [20:01:23]SAM_PROTO_SignData [20:01:23]wFMCommunicate request_size=4 [20:01:23]MH_SAM_APDU [20:01:23]CAPDU: 80 0D 01 02 [20:01:23]Write to MH i2c: E2 08 00 01 0C 80 0D 01 02 00 00 00 00 86 [20:01:23]Write i2c OK [20:01:23]MH_I2C_Read... [20:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:23]Read from MH i2c: E2 [20:01:23]MH_I2C_Read... [20:01:23]Read from MH i2c: E2 03 00 [20:01:23]MH_I2C_Read... [20:01:23]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [20:01:23]RAPDU: 90 00 [20:01:23]wFMCommunicate OK [20:01:23]wFMCommunicate request_size=255 [20:01:23]MH_SAM_APDU [20:01:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 21 01 00 00 F4 03 04 00 13 DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 83 02 00 35 04 06 00 1F AA DC B7 [20:01:23]Write to MH i2c: E2 02 01 02 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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 21 01 00 00 F4 03 04 00 13 DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 83 02 00 35 04 06 00 1F AA DC B7 00 00 E9 [20:01:23]Write i2c OK [20:01:23]MH_I2C_Read... [20:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:24]Read from MH i2c: E2 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 03 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [20:01:24]RAPDU: 90 00 [20:01:24]wFMCommunicate OK [20:01:24]wFMCommunicate request_size=7 [20:01:24]MH_SAM_APDU [20:01:24]CAPDU: 80 0D 02 02 02 FD AD [20:01:24]Write to MH i2c: E2 0A 00 03 0C 80 0D 02 02 02 00 FD AD 00 00 37 [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:24]Read from MH i2c: E2 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 03 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [20:01:24]RAPDU: 90 00 [20:01:24]wFMCommunicate OK [20:01:24]wFMCommunicate request_size=4 [20:01:24]MH_SAM_APDU [20:01:24]CAPDU: 80 0D 03 02 [20:01:24]Write to MH i2c: E2 08 00 04 0C 80 0D 03 02 00 00 00 00 8B [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:24]Read from MH i2c: E2 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 0B 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 0B 00 04 0C 00 9D 8F 67 B4 27 F8 02 3A 90 00 2E [20:01:24]RAPDU: 9D 8F 67 B4 27 F8 02 3A 90 00 [20:01:24]wFMCommunicate OK [20:01:24]SAM_PROTO_SignData done [20:01:24]FM_MakeSignedData done [20:01:24]CreateOFDProtocolMessage [20:01:24]wFMCommunicate request_size=4 [20:01:24]MH_SAM_APDU [20:01:24]CAPDU: 80 11 00 00 [20:01:24]Write to MH i2c: E2 08 00 05 0C 80 11 00 00 00 00 00 00 8B [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:24]Read from MH i2c: E2 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 17 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: E2 17 00 05 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [20:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:01:24]wFMCommunicate OK [20:01:24]CreateOFDProtocolMessage done [20:01:24]OFDSenderStorePacket 164729 [20:01:24]StoreOFDPacket docnum=164729 [20:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 70 04 01 89 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 21 01 00 00 F4 03 04 00 13 DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 83 02 00 35 04 06 00 1F AA DC B7 FD AD 9D 8F 67 B4 27 F8 02 3A [20:01:24]CheckFolder [20:01:24]dirname=/storage/ofd_packets [20:01:24]CheckFolder done [20:01:24]ProducePacketName [20:01:24]name=ofd_packets/00164729 [20:01:24]NVStorageSaveData ofd_packets/00164729 [20:01:24]File name is /storage/ofd_packets/00164729 [20:01:24]Write 298 bytes [20:01:24]NVStorageSaveData done [20:01:24]OFDSenderStorePacket done [20:01:24]KKMCreateOFDPacket done [20:01:24]NVStorageSaveData kkm_last_timestamp [20:01:24]File name is /storage/kkm_last_timestamp [20:01:24]Write 4 bytes [20:01:24]NVStorageSaveData done [20:01:24]ExternCall_PrintAddStr [20:01:24]wPrintStart [20:01:24]Write to MH i2c: 01 00 00 06 0C 12 [20:01:24]Write i2c OK [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: 01 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: 01 07 00 [20:01:24]MH_I2C_Read... [20:01:24]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 FF 0F 27 [20:01:24]RasterBufferAndPrint [20:01:24]line Счет N : (1)458823 [20:01:24]line ИНН: 02508201610067 [20:01:24]line Контрольно-Кассовый Чек [20:01:24]line ПРОДАЖА [20:01:24]line ТРК (МРК, ГНК) : 21 [20:01:24]line Товар: 2710194210 [20:01:24]line ДТ-К-5 [20:01:24]line 5.570 * 71.90 [20:01:24]line = 400.48 [20:01:24]line НДС 12% НСП 1% [20:01:24]line > о реализуемом товаре [20:01:24]line ОКРУГЛЕНИЕ: -0.48 [20:01:24]line ИТОГО: 400.00 [20:01:24]line Внесено: 400.00 [20:01:24]line СДАЧА: 0.00 [20:01:24]line НСП 1% : 3.54 [20:01:24]line НДС 12% : 42.53 [20:01:24]line Наличными: 400.00 [20:01:24]line Безнал.: 0.00 [20:01:24]line Место: АЗС № 72 "Партнер Нефть" [20:01:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:01:24]line СНО: Общий режим [20:01:24]line Чек 289 13.07.2024 20:01 [20:01:24]line Смена: 446 ФФД: 1.0 [20:01:24]line ЗНМ: 0300000160 [20:01:24]line РНМ: 0000000000090829 [20:01:24]line Версия ККМ: 001 [20:01:24]line ФМ: 0000000000874718 [20:01:24]line ФД: 164729 [20:01:24]line ФПД: 34818707946925 [20:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164729&fm=34818707946925&tin=02508201610067®Number=0000000000090829&sum=40000 [20:01:24]OFD Sender: Processing packet 164729 [packets to send 104, broken 103] [20:01:24]ProducePacketName [20:01:24]name=ofd_packets/00164729 [20:01:24]OFD Sender: To server: pG, [20:01:24]CommunicateWithHost lk.salyk.kg:30040 [20:01:24]ConnectInit lk.salyk.kg [20:01:24]written 0, free lines is 4095 [20:01:24]Connected sock=10 [20:01:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1A 70 04 01 89 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 21 01 00 00 F4 03 04 00 13 DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 83 02 00 35 04 06 00 1F AA DC B7 FD AD 9D 8F 67 B4 27 F8 02 3A [20:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A B8 47 00 DF 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 83 02 00 F4 03 04 00 A3 83 92 66 B6 04 01 00 00 5B B3 ED 86 63 B5 D7 81 [20:01:24]CommunicateWithHost err = 0 [20:01:24]CheckOFDResponse [20:01:24]1017 (14) - 77093643461234 [20:01:24]1041 (16) - 0000000000874718 [20:01:24]1040 (4) - 164729 [20:01:24]1012 (4) - 13.07.2024 13:39 [20:01:24]1206 (1) - 0 [20:01:24]OFD Sender: Remove packet 164729 [20:01:24]ProducePacketName [20:01:24]name=ofd_packets/00164729 [20:01:24]NVStorageDeleteData [20:01:25]Write to MH i2c: 01 00 00 30 0C 3C [20:01:25]Write i2c OK [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: 01 [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: 01 07 00 [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 EC 0C 3B [20:01:25]RasterBufferAndPrint [20:01:25]line [20:01:25]line [20:01:25]line [20:01:25]line [20:01:25]line [20:01:25]written 0, free lines is 3315 [20:01:25]MH_Cut [20:01:25]Write to MH i2c: D1 01 00 37 0C 01 15 [20:01:25]Write i2c OK [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: D1 [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: D1 01 00 [20:01:25]MH_I2C_Read... [20:01:25]Read from MH i2c: D1 01 00 37 0C 00 14 [20:01:25]Write to MH i2c: 01 00 00 38 0C 44 [20:01:25]Write i2c OK [20:01:25]MH_I2C_Read... [20:01:25]OFD Sender: No OFD packet to send [20:01:25]*** Cut start [20:01:25]*** Partial cut [20:01:25]*** CUTSNS_PIN = 1 [20:01:25]*** CUTSNS_PIN = 0 [20:01:26]*** Brake cut motor [20:01:26]Read from MH i2c: 01 [20:01:26]MH_I2C_Read... [20:01:26]*** Stop cut motor [20:01:26]*** Cut end [20:01:26]Read from MH i2c: 01 07 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 FF 0F 59 [20:01:26]process_action close_receipt done [20:01:26]requested_data is exist [20:01:26]produce_requested_data [20:01:26]requested_item fm.sn is exist - process it [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 11 00 00 [20:01:26]Write to MH i2c: E2 08 00 39 0C 80 11 00 00 00 00 00 00 BF [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 17 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 17 00 39 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [20:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:01:26]wFMCommunicate OK [20:01:26]requested_item fd.num is exist - process it [20:01:26]SAM_PROTO_GetFieldsCounters [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 13 00 00 [20:01:26]Write to MH i2c: E2 08 00 3A 0C 80 13 00 00 00 00 00 00 C2 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 62 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 62 00 3A 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:01: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:26]wFMCommunicate OK [20:01:26]SAM_PROTO_GetFieldsCounters done [20:01:26]requested_item shift.num is exist - process it [20:01:26]requested_item shift.opened is exist - process it [20:01:26]req_shift_opened [20:01:26]FM_GetShiftState [20:01:26]SAM_PROTO_GetShiftState [20:01:26]wFMCommunicate request_size=4 [20:01:26]MH_SAM_APDU [20:01:26]CAPDU: 80 13 01 00 [20:01:26]Write to MH i2c: E2 08 00 3B 0C 80 13 01 00 00 00 00 00 C4 [20:01:26]Write i2c OK [20:01:26]MH_I2C_Read... [20:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:26]Read from MH i2c: E2 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 0E 00 [20:01:26]MH_I2C_Read... [20:01:26]Read from MH i2c: E2 0E 00 3B 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A5 [20:01:26]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:01:26]wFMCommunicate OK [20:01:26]SAM_PROTO_GetShiftState done [20:01:26]FM_GetShiftState done [20:01:26]req_shift_opened done [20:01:26]requested_item shift.open_date is exist - process it [20:01:26]req_shift_open_date [20:01:26]req_shift_open_date done [20:01:26]produce_requested_data done [20:01:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164729,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:01:26]process_action_free close_receipt [20:01:26]json_value_free [20:01:26]json_value_free done [20:01:26]process_json_proto returns [20:01:26]Send response to host [20:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164729,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:01:26]free response buf [20:01:26]execute_script done [20:01:26]execute_script returns [20:01:26]free content buf [20:01:26]Sock 7.Close socket [20:01:26]Sock 7.Thread stoped [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:20]accept exits with 9 [20:02:20]New connection [20:02:20]New thread 3067247972 created [20:02:20]Thread 3067104612 joined [20:02:20]Waiting for new connection... [20:02:20] Sock 9.Parse request [20:02:20]Sock 9.Check first char [20:02:20]Sock 9.First char is OK [20:02:20]request: POST /json_proto HTTP/1.0 [20:02:20]Method: POST [20:02:20]URL: /json_proto [20:02:20]Method is POST - this is cgi request [20:02:20]url: /json_proto [20:02:20]query_string will be loaded in cgi processing [20:02:20]execute_cgi json_proto POST (null) [20:02:20]execute_cgi path=json_proto method=POST [20:02:20]POST find Content-Length [20:02:20]Host: 172.17.56.4:8080 [20:02:20]Content-Length: 674 [20:02:20]Content-Type: application/json [20:02:20] [20:02:20]POST finish read [20:02:20]Found Content-Length = 674 [20:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:20]execute_script... [20:02: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)458824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:20]POST & json_proto [20:02:20]process_json_proto [20:02:20]json parsed OK: [20:02:20]protocol is kg_v1.0 [20:02:20]action value=close_receipt [20:02:20]process_action close_receipt [20:02:20]cmd_close_receipt [20:02:20]MH_GetDate [20:02:20]Write to MH i2c: F0 00 00 3C 0C 37 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: F0 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: F0 09 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: F0 09 00 3C 0C 00 4D DD 92 66 C9 DC B2 64 1D [20:02:20]GetLastDocTimeStamp 1720900883 [20:02:20]current date 1720900941 [20:02:20]FM_GetShiftState [20:02:20]SAM_PROTO_GetShiftState [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 01 00 [20:02:20]Write to MH i2c: E2 08 00 3D 0C 80 13 01 00 00 00 00 00 C6 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 3D 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A7 [20:02:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetShiftState done [20:02:20]FM_GetShiftState done [20:02:20]opened in 1720831249 [20:02:20]opened+sec_in_day 1720917649 [20:02:20]quantity*price = 40048 [20:02:20]sum+1 = 40049 [20:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 290 13.07.2024 20:02 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164730 ФПД: 253739873029566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164730&fm=253739873029566&tin=02508201610067®Number=0000000000090829&sum=40000 [20:02:21]StoreToDocumentArchive [20:02:21]shift 446 fd 164730 [20:02:21]save to /storage/0446/doc_00164730 [20:02:21]save last doc name /storage/0446/doc_00164730 to /storage/kkm_last_doc_name [20:02:21]save OK [20:02:21]Clear old archive folders... [20:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:02:21]tlvbuf is 01E645F0 [20:02:21]SAM_PROTO_ClearQueue [20:02:21]wFMCommunicate request_size=4 [20:02:21]MH_SAM_APDU [20:02:21]CAPDU: 80 09 00 00 [20:02:21]Write to MH i2c: E2 08 00 4A 0C 80 09 00 00 00 00 00 00 C8 [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:21]Read from MH i2c: E2 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: E2 03 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [20:02:21]RAPDU: 90 00 [20:02:21]wFMCommunicate OK [20:02:21]SAM_PROTO_ClearQueue done [20:02:21]KKMCreateOFDPacket [20:02:21]OFDProtocolAddRootSTLVToBuf [20:02:21]FM_MakeSignedData [20:02:21]FM_MakeSignedData [20:02:21]SAM_PROTO_SignData [20:02:21]wFMCommunicate request_size=4 [20:02:21]MH_SAM_APDU [20:02:21]CAPDU: 80 0D 01 02 [20:02:21]Write to MH i2c: E2 08 00 4B 0C 80 0D 01 02 00 00 00 00 D0 [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:21]Read from MH i2c: E2 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: E2 03 00 [20:02:21]MH_I2C_Read... [20:02:21]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [20:02:21]RAPDU: 90 00 [20:02:21]wFMCommunicate OK [20:02:21]wFMCommunicate request_size=255 [20:02:21]MH_SAM_APDU [20:02:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 22 01 00 00 F4 03 04 00 4D DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 83 02 00 35 04 06 00 E6 C6 6A FF [20:02:21]Write to MH i2c: E2 02 01 4C 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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 22 01 00 00 F4 03 04 00 4D DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 83 02 00 35 04 06 00 E6 C6 6A FF 00 00 28 [20:02:21]Write i2c OK [20:02:21]MH_I2C_Read... [20:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:22]Read from MH i2c: E2 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 03 00 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [20:02:22]RAPDU: 90 00 [20:02:22]wFMCommunicate OK [20:02:22]wFMCommunicate request_size=7 [20:02:22]MH_SAM_APDU [20:02:22]CAPDU: 80 0D 02 02 02 4D BE [20:02:22]Write to MH i2c: E2 0A 00 4D 0C 80 0D 02 02 02 00 4D BE 00 00 E2 [20:02:22]Write i2c OK [20:02:22]MH_I2C_Read... [20:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:22]Read from MH i2c: E2 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 03 00 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [20:02:22]RAPDU: 90 00 [20:02:22]wFMCommunicate OK [20:02:22]wFMCommunicate request_size=4 [20:02:22]MH_SAM_APDU [20:02:22]CAPDU: 80 0D 03 02 [20:02:22]Write to MH i2c: E2 08 00 4E 0C 80 0D 03 02 00 00 00 00 D5 [20:02:22]Write i2c OK [20:02:22]MH_I2C_Read... [20:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:22]Read from MH i2c: E2 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 0B 00 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 0B 00 4E 0C 00 9C D5 4A 85 2C 13 9B 3F 90 00 2F [20:02:22]RAPDU: 9C D5 4A 85 2C 13 9B 3F 90 00 [20:02:22]wFMCommunicate OK [20:02:22]SAM_PROTO_SignData done [20:02:22]FM_MakeSignedData done [20:02:22]CreateOFDProtocolMessage [20:02:22]wFMCommunicate request_size=4 [20:02:22]MH_SAM_APDU [20:02:22]CAPDU: 80 11 00 00 [20:02:22]Write to MH i2c: E2 08 00 4F 0C 80 11 00 00 00 00 00 00 D5 [20:02:22]Write i2c OK [20:02:22]MH_I2C_Read... [20:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:22]Read from MH i2c: E2 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 17 00 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: E2 17 00 4F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [20:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:02:22]wFMCommunicate OK [20:02:22]CreateOFDProtocolMessage done [20:02:22]OFDSenderStorePacket 164730 [20:02:22]StoreOFDPacket docnum=164730 [20:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6E B0 04 01 60 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 22 01 00 00 F4 03 04 00 4D DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 83 02 00 35 04 06 00 E6 C6 6A FF 4D BE 9C D5 4A 85 2C 13 9B 3F [20:02:22]CheckFolder [20:02:22]dirname=/storage/ofd_packets [20:02:22]CheckFolder done [20:02:22]ProducePacketName [20:02:22]name=ofd_packets/00164730 [20:02:22]NVStorageSaveData ofd_packets/00164730 [20:02:22]File name is /storage/ofd_packets/00164730 [20:02:22]Write 298 bytes [20:02:22]NVStorageSaveData done [20:02:22]OFDSenderStorePacket done [20:02:22]KKMCreateOFDPacket done [20:02:22]NVStorageSaveData kkm_last_timestamp [20:02:22]File name is /storage/kkm_last_timestamp [20:02:22]Write 4 bytes [20:02:22]NVStorageSaveData done [20:02:22]ExternCall_PrintAddStr [20:02:22]wPrintStart [20:02:22]Write to MH i2c: 01 00 00 50 0C 5C [20:02:22]Write i2c OK [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: 01 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: 01 07 00 [20:02:22]MH_I2C_Read... [20:02:22]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [20:02:22]RasterBufferAndPrint [20:02:22]line Счет N : (1)458824 [20:02:22]line ИНН: 02508201610067 [20:02:22]line Контрольно-Кассовый Чек [20:02:22]line ПРОДАЖА [20:02:22]line ТРК (МРК, ГНК) : 11 [20:02:22]line Товар: 2710194210 [20:02:22]line ДТ-К-5 [20:02:22]line 5.570 * 71.90 [20:02:22]line = 400.48 [20:02:22]line НДС 12% НСП 1% [20:02:22]line > о реализуемом товаре [20:02:22]line ОКРУГЛЕНИЕ: -0.48 [20:02:22]line ИТОГО: 400.00 [20:02:22]line Внесено: 400.00 [20:02:22]line СДАЧА: 0.00 [20:02:22]line НСП 1% : 3.54 [20:02:22]line НДС 12% : 42.53 [20:02:22]line Наличными: 400.00 [20:02:22]line Безнал.: 0.00 [20:02:22]line Место: АЗС № 72 "Партнер Нефть" [20:02:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:02:22]line СНО: Общий режим [20:02:22]line Чек 290 13.07.2024 20:02 [20:02:22]line Смена: 446 ФФД: 1.0 [20:02:22]line ЗНМ: 0300000160 [20:02:22]line РНМ: 0000000000090829 [20:02:22]line Версия ККМ: 001 [20:02:22]line ФМ: 0000000000874718 [20:02:22]line ФД: 164730 [20:02:22]line ФПД: 253739873029566 [20:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164730&fm=253739873029566&tin=02508201610067®Number=0000000000090829&sum=40000 [20:02:22]OFD Sender: Processing packet 164730 [packets to send 104, broken 103] [20:02:22]ProducePacketName [20:02:22]name=ofd_packets/00164730 [20:02:22]OFD Sender: To server: pG, [20:02:22]CommunicateWithHost lk.salyk.kg:30040 [20:02:22]ConnectInit lk.salyk.kg [20:02:22]written 0, free lines is 4095 [20:02:22]Connected sock=10 [20:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6E B0 04 01 60 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 22 01 00 00 F4 03 04 00 4D DD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 83 02 00 35 04 06 00 E6 C6 6A FF 4D BE 9C D5 4A 85 2C 13 9B 3F [20:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0A EE 47 00 B8 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 83 02 00 F4 03 04 00 DD 83 92 66 B6 04 01 00 00 A5 B8 FA 77 0D 89 D6 EB [20:02:22]CommunicateWithHost err = 0 [20:02:22]CheckOFDResponse [20:02:22]1017 (14) - 77093643461234 [20:02:22]1041 (16) - 0000000000874718 [20:02:22]1040 (4) - 164730 [20:02:22]1012 (4) - 13.07.2024 13:40 [20:02:22]1206 (1) - 0 [20:02:22]OFD Sender: Remove packet 164730 [20:02:22]ProducePacketName [20:02:22]name=ofd_packets/00164730 [20:02:22]NVStorageDeleteData [20:02:23]Write to MH i2c: 01 00 00 7A 0C 86 [20:02:23]Write i2c OK [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: 01 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: 01 07 00 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: 01 07 00 7A 0C 00 00 00 00 00 EC 0C 85 [20:02:23]RasterBufferAndPrint [20:02:23]line [20:02:23]line [20:02:23]line [20:02:23]line [20:02:23]line [20:02:23]written 0, free lines is 3314 [20:02:23]MH_Cut [20:02:23]Write to MH i2c: D1 01 00 81 0C 01 5F [20:02:23]Write i2c OK [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: D1 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: D1 01 00 [20:02:23]MH_I2C_Read... [20:02:23]Read from MH i2c: D1 01 00 81 0C 00 5E [20:02:23]Write to MH i2c: 01 00 00 82 0C 8E [20:02:23]Write i2c OK [20:02:23]MH_I2C_Read... [20:02:23]OFD Sender: No OFD packet to send [20:02:23]*** Cut start [20:02:23]*** Partial cut [20:02:23]*** CUTSNS_PIN = 1 [20:02:23]*** CUTSNS_PIN = 0 [20:02:23]*** Brake cut motor [20:02:24]Read from MH i2c: 01 [20:02:24]MH_I2C_Read... [20:02:24]*** Stop cut motor [20:02:24]*** Cut end [20:02:24]Read from MH i2c: 01 07 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 FF 0F A3 [20:02:24]process_action close_receipt done [20:02:24]requested_data is exist [20:02:24]produce_requested_data [20:02:24]requested_item fm.sn is exist - process it [20:02:24]wFMCommunicate request_size=4 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 11 00 00 [20:02:24]Write to MH i2c: E2 08 00 83 0C 80 11 00 00 00 00 00 00 09 [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:24]Read from MH i2c: E2 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 17 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 17 00 83 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [20:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:02:24]wFMCommunicate OK [20:02:24]requested_item fd.num is exist - process it [20:02:24]SAM_PROTO_GetFieldsCounters [20:02:24]wFMCommunicate request_size=4 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 13 00 00 [20:02:24]Write to MH i2c: E2 08 00 84 0C 80 13 00 00 00 00 00 00 0C [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:24]Read from MH i2c: E2 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 62 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 62 00 84 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [20:02: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:24]wFMCommunicate OK [20:02:24]SAM_PROTO_GetFieldsCounters done [20:02:24]requested_item shift.num is exist - process it [20:02:24]requested_item shift.opened is exist - process it [20:02:24]req_shift_opened [20:02:24]FM_GetShiftState [20:02:24]SAM_PROTO_GetShiftState [20:02:24]wFMCommunicate request_size=4 [20:02:24]MH_SAM_APDU [20:02:24]CAPDU: 80 13 01 00 [20:02:24]Write to MH i2c: E2 08 00 85 0C 80 13 01 00 00 00 00 00 0E [20:02:24]Write i2c OK [20:02:24]MH_I2C_Read... [20:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:24]Read from MH i2c: E2 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 0E 00 [20:02:24]MH_I2C_Read... [20:02:24]Read from MH i2c: E2 0E 00 85 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EF [20:02:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:02:24]wFMCommunicate OK [20:02:24]SAM_PROTO_GetShiftState done [20:02:24]FM_GetShiftState done [20:02:24]req_shift_opened done [20:02:24]requested_item shift.open_date is exist - process it [20:02:24]req_shift_open_date [20:02:24]req_shift_open_date done [20:02:24]produce_requested_data done [20:02:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164730,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:02:24]process_action_free close_receipt [20:02:24]json_value_free [20:02:24]json_value_free done [20:02:24]process_json_proto returns [20:02:24]Send response to host [20:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164730,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:02:24]free response buf [20:02:24]execute_script done [20:02:24]execute_script returns [20:02:24]free content buf [20:02:24]Sock 9.Close socket [20:02:24]Sock 9.Thread stoped [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:52]accept exits with 7 [20:05:52]New connection [20:05:52]New thread 3067104612 created [20:05:52]Thread 3067247972 joined [20:05:52]Waiting for new connection... [20:05:52] Sock 7.Parse request [20:05:52]Sock 7.Check first char [20:05:52]Sock 7.First char is OK [20:05:52]request: POST /json_proto HTTP/1.0 [20:05:52]Method: POST [20:05:52]URL: /json_proto [20:05:52]Method is POST - this is cgi request [20:05:52]url: /json_proto [20:05:52]query_string will be loaded in cgi processing [20:05:52]execute_cgi json_proto POST (null) [20:05:52]execute_cgi path=json_proto method=POST [20:05:52]POST find Content-Length [20:05:52]Host: 172.17.56.4:8080 [20:05:52]Content-Length: 677 [20:05:52]Content-Type: application/json [20:05:52] [20:05:52]POST finish read [20:05:52]Found Content-Length = 677 [20:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.430, "sum" : 554.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 554.00, "payments": [ { "type": 0, "sum" : 554.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:52]execute_script... [20:05: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)458825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.430, "sum" : 554.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 554.00, "payments": [ { "type": 0, "sum" : 554.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:52]POST & json_proto [20:05:52]process_json_proto [20:05:52]json parsed OK: [20:05:52]protocol is kg_v1.0 [20:05:52]action value=close_receipt [20:05:52]process_action close_receipt [20:05:52]cmd_close_receipt [20:05:52]MH_GetDate [20:05:52]Write to MH i2c: F0 00 00 86 0C 81 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: F0 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: F0 09 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: F0 09 00 86 0C 00 21 DE 92 66 C9 DC B2 64 3C [20:05:52]GetLastDocTimeStamp 1720900941 [20:05:52]current date 1720901153 [20:05:52]FM_GetShiftState [20:05:52]SAM_PROTO_GetShiftState [20:05:52]wFMCommunicate request_size=4 [20:05:52]MH_SAM_APDU [20:05:52]CAPDU: 80 13 01 00 [20:05:52]Write to MH i2c: E2 08 00 87 0C 80 13 01 00 00 00 00 00 10 [20:05:52]Write i2c OK [20:05:52]MH_I2C_Read... [20:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:52]Read from MH i2c: E2 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 0E 00 [20:05:52]MH_I2C_Read... [20:05:52]Read from MH i2c: E2 0E 00 87 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F1 [20:05:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:05:52]wFMCommunicate OK [20:05:52]SAM_PROTO_GetShiftState done [20:05:52]FM_GetShiftState done [20:05:52]opened in 1720831249 [20:05:52]opened+sec_in_day 1720917649 [20:05:52]quantity*price = 55469 [20:05:52]sum+1 = 55470 [20:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 554.00 Внесено: 700.00 СДАЧА: 146.00 НСП 1% : 4.91 НДС 12% : 58.90 Наличными: 554.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 291 13.07.2024 20:05 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164731 ФПД: 250703386065794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200553&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164731&fm=250703386065794&tin=02508201610067®Number=0000000000090829&sum=55400 [20:05:54]StoreToDocumentArchive [20:05:54]shift 446 fd 164731 [20:05:54]save to /storage/0446/doc_00164731 [20:05:54]save last doc name /storage/0446/doc_00164731 to /storage/kkm_last_doc_name [20:05:54]save OK [20:05:54]Clear old archive folders... [20:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:54]tlvbuf is 01E40040 [20:05:54]SAM_PROTO_ClearQueue [20:05:54]wFMCommunicate request_size=4 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 09 00 00 [20:05:54]Write to MH i2c: E2 08 00 94 0C 80 09 00 00 00 00 00 00 12 [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [20:05:54]RAPDU: 90 00 [20:05:54]wFMCommunicate OK [20:05:54]SAM_PROTO_ClearQueue done [20:05:54]KKMCreateOFDPacket [20:05:54]OFDProtocolAddRootSTLVToBuf [20:05:54]FM_MakeSignedData [20:05:54]FM_MakeSignedData [20:05:54]SAM_PROTO_SignData [20:05:54]wFMCommunicate request_size=4 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 0D 01 02 [20:05:54]Write to MH i2c: E2 08 00 95 0C 80 0D 01 02 00 00 00 00 1A [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [20:05:54]RAPDU: 90 00 [20:05:54]wFMCommunicate OK [20:05:54]wFMCommunicate request_size=255 [20:05:54]MH_SAM_APDU [20:05: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 EE 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AD D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 17 00 00 00 00 07 04 06 00 68 D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 21 DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 83 02 00 35 04 06 00 E4 [20:05:54]Write to MH i2c: E2 02 01 96 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 EE 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AD D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 17 00 00 00 00 07 04 06 00 68 D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 21 DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 83 02 00 35 04 06 00 E4 00 00 CD [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 96 0C 00 90 00 16 [20:05:54]RAPDU: 90 00 [20:05:54]wFMCommunicate OK [20:05:54]wFMCommunicate request_size=10 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 0D 02 02 05 03 6E 45 3B 82 [20:05:54]Write to MH i2c: E2 0D 00 97 0C 80 0D 02 02 05 00 03 6E 45 3B 82 00 00 9A [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [20:05:54]RAPDU: 90 00 [20:05:54]wFMCommunicate OK [20:05:54]wFMCommunicate request_size=4 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 0D 03 02 [20:05:54]Write to MH i2c: E2 08 00 98 0C 80 0D 03 02 00 00 00 00 1F [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 0B 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 0B 00 98 0C 00 14 98 72 AC 95 B2 2D 89 90 00 E7 [20:05:54]RAPDU: 14 98 72 AC 95 B2 2D 89 90 00 [20:05:54]wFMCommunicate OK [20:05:54]SAM_PROTO_SignData done [20:05:54]FM_MakeSignedData done [20:05:54]CreateOFDProtocolMessage [20:05:54]wFMCommunicate request_size=4 [20:05:54]MH_SAM_APDU [20:05:54]CAPDU: 80 11 00 00 [20:05:54]Write to MH i2c: E2 08 00 99 0C 80 11 00 00 00 00 00 00 1F [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:54]Read from MH i2c: E2 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 17 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: E2 17 00 99 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [20:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:05:54]wFMCommunicate OK [20:05:54]CreateOFDProtocolMessage done [20:05:54]OFDSenderStorePacket 164731 [20:05:54]StoreOFDPacket docnum=164731 [20:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 5F 07 01 5E 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 EE 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AD D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 17 00 00 00 00 07 04 06 00 68 D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 21 DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 83 02 00 35 04 06 00 E4 03 6E 45 3B 82 14 98 72 AC 95 B2 2D 89 [20:05:54]CheckFolder [20:05:54]dirname=/storage/ofd_packets [20:05:54]CheckFolder done [20:05:54]ProducePacketName [20:05:54]name=ofd_packets/00164731 [20:05:54]NVStorageSaveData ofd_packets/00164731 [20:05:54]File name is /storage/ofd_packets/00164731 [20:05:54]Write 301 bytes [20:05:54]NVStorageSaveData done [20:05:54]OFDSenderStorePacket done [20:05:54]KKMCreateOFDPacket done [20:05:54]NVStorageSaveData kkm_last_timestamp [20:05:54]File name is /storage/kkm_last_timestamp [20:05:54]Write 4 bytes [20:05:54]NVStorageSaveData done [20:05:54]OFD Sender: Processing packet 164731 [packets to send 104, broken 103] [20:05:54]ProducePacketName [20:05:54]name=ofd_packets/00164731 [20:05:54]OFD Sender: To server: pG, [20:05:54]CommunicateWithHost lk.salyk.kg:30040 [20:05:54]ConnectInit lk.salyk.kg [20:05:54]ExternCall_PrintAddStr [20:05:54]wPrintStart [20:05:54]Write to MH i2c: 01 00 00 9A 0C A6 [20:05:54]Write i2c OK [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: 01 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: 01 07 00 [20:05:54]MH_I2C_Read... [20:05:54]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [20:05:54]RasterBufferAndPrint [20:05:54]line Счет N : (1)458825 [20:05:54]line ИНН: 02508201610067 [20:05:54]line Контрольно-Кассовый Чек [20:05:54]line ПРОДАЖА [20:05:54]line ТРК (МРК, ГНК) : 22 [20:05:54]line Товар: 2710124130 [20:05:54]line Аи-92-К-5 [20:05:54]line 8.430 * 65.80 [20:05:54]line = 554.69 [20:05:54]line НДС 12% НСП 1% [20:05:54]line > о реализуемом товаре [20:05:54]line ОКРУГЛЕНИЕ: -0.69 [20:05:54]line ИТОГО: 554.00 [20:05:54]line Внесено: 700.00 [20:05:54]line СДАЧА: 146.00 [20:05:54]line НСП 1% : 4.91 [20:05:54]line НДС 12% : 58.90 [20:05:54]line Наличными: 554.00 [20:05:54]line Безнал.: 0.00 [20:05:54]line Место: АЗС № 72 "Партнер Нефть" [20:05:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:05:54]line СНО: Общий режим [20:05:54]line Чек 291 13.07.2024 20:05 [20:05:54]line Смена: 446 ФФД: 1.0 [20:05:54]line ЗНМ: 0300000160 [20:05:54]line РНМ: 0000000000090829 [20:05:54]line Версия ККМ: 001 [20:05:54]line ФМ: 0000000000874718 [20:05:54]line ФД: 164731 [20:05:54]line ФПД: 250703386065794 [20:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200553&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164731&fm=250703386065794&tin=02508201610067®Number=0000000000090829&sum=55400 [20:05:54]Connected sock=11 [20:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D 5F 07 01 5E 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 EE 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AD D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 D8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 17 00 00 00 00 07 04 06 00 68 D8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 21 DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 83 02 00 35 04 06 00 E4 03 6E 45 3B 82 14 98 72 AC 95 B2 2D 89 [20:05:54]written 0, free lines is 4095 [20:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F B2 47 00 A5 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 83 02 00 F4 03 04 00 B1 84 92 66 B6 04 01 00 00 04 FC FD 37 44 CE 31 CB [20:05:55]CommunicateWithHost err = 0 [20:05:55]CheckOFDResponse [20:05:55]1017 (14) - 77093643461234 [20:05:55]1041 (16) - 0000000000874718 [20:05:55]1040 (4) - 164731 [20:05:55]1012 (4) - 13.07.2024 13:44 [20:05:55]1206 (1) - 0 [20:05:55]OFD Sender: Remove packet 164731 [20:05:55]ProducePacketName [20:05:55]name=ofd_packets/00164731 [20:05:55]NVStorageDeleteData [20:05:55]Write to MH i2c: 01 00 00 C4 0C D0 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 07 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: 01 07 00 C4 0C 00 00 00 00 00 02 0D E6 [20:05:55]RasterBufferAndPrint [20:05:55]line [20:05:55]line [20:05:55]line [20:05:55]line [20:05:55]line [20:05:55]written 0, free lines is 3336 [20:05:55]MH_Cut [20:05:55]Write to MH i2c: D1 01 00 CB 0C 01 A9 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: D1 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: D1 01 00 [20:05:55]MH_I2C_Read... [20:05:55]Read from MH i2c: D1 01 00 CB 0C 00 A8 [20:05:55]Write to MH i2c: 01 00 00 CC 0C D8 [20:05:55]Write i2c OK [20:05:55]MH_I2C_Read... [20:05:55]OFD Sender: No OFD packet to send [20:05:56]*** Cut start [20:05:56]*** Partial cut [20:05:56]*** CUTSNS_PIN = 1 [20:05:56]*** CUTSNS_PIN = 0 [20:05:56]*** Brake cut motor [20:05:56]Read from MH i2c: 01 [20:05:56]*** Stop cut motor [20:05:56]*** Cut end [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 07 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [20:05:56]process_action close_receipt done [20:05:56]requested_data is exist [20:05:56]produce_requested_data [20:05:56]requested_item fm.sn is exist - process it [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 11 00 00 [20:05:56]Write to MH i2c: E2 08 00 CD 0C 80 11 00 00 00 00 00 00 53 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 17 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 17 00 CD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [20:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:05:56]wFMCommunicate OK [20:05:56]requested_item fd.num is exist - process it [20:05:56]SAM_PROTO_GetFieldsCounters [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 13 00 00 [20:05:56]Write to MH i2c: E2 08 00 CE 0C 80 13 00 00 00 00 00 00 56 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 62 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 62 00 CE 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [20:05: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:56]wFMCommunicate OK [20:05:56]SAM_PROTO_GetFieldsCounters done [20:05:56]requested_item shift.num is exist - process it [20:05:56]requested_item shift.opened is exist - process it [20:05:56]req_shift_opened [20:05:56]FM_GetShiftState [20:05:56]SAM_PROTO_GetShiftState [20:05:56]wFMCommunicate request_size=4 [20:05:56]MH_SAM_APDU [20:05:56]CAPDU: 80 13 01 00 [20:05:56]Write to MH i2c: E2 08 00 CF 0C 80 13 01 00 00 00 00 00 58 [20:05:56]Write i2c OK [20:05:56]MH_I2C_Read... [20:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:56]Read from MH i2c: E2 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 0E 00 [20:05:56]MH_I2C_Read... [20:05:56]Read from MH i2c: E2 0E 00 CF 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 39 [20:05:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:05:56]wFMCommunicate OK [20:05:56]SAM_PROTO_GetShiftState done [20:05:56]FM_GetShiftState done [20:05:56]req_shift_opened done [20:05:56]requested_item shift.open_date is exist - process it [20:05:56]req_shift_open_date [20:05:56]req_shift_open_date done [20:05:56]produce_requested_data done [20:05:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164731,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:05:56]process_action_free close_receipt [20:05:56]json_value_free [20:05:56]json_value_free done [20:05:56]process_json_proto returns [20:05:56]Send response to host [20:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164731,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:05:56]free response buf [20:05:56]execute_script done [20:05:56]execute_script returns [20:05:56]free content buf [20:05:56]Sock 7.Close socket [20:05:56]Sock 7.Thread stoped [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:34]accept exits with 9 [20:06:34]New connection [20:06:34]New thread 3067247972 created [20:06:34]Thread 3067104612 joined [20:06:34]Waiting for new connection... [20:06:34] Sock 9.Parse request [20:06:34]Sock 9.Check first char [20:06:34]Sock 9.First char is OK [20:06:34]request: POST /json_proto HTTP/1.0 [20:06:34]Method: POST [20:06:34]URL: /json_proto [20:06:34]Method is POST - this is cgi request [20:06:34]url: /json_proto [20:06:34]query_string will be loaded in cgi processing [20:06:34]execute_cgi json_proto POST (null) [20:06:34]execute_cgi path=json_proto method=POST [20:06:34]POST find Content-Length [20:06:34]Host: 172.17.56.4:8080 [20:06:34]Content-Length: 677 [20:06:34]Content-Type: application/json [20:06:34] [20:06:34]POST finish read [20:06:34]Found Content-Length = 677 [20:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:34]execute_script... [20:06: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)458826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:34]POST & json_proto [20:06:34]process_json_proto [20:06:34]json parsed OK: [20:06:34]protocol is kg_v1.0 [20:06:34]action value=close_receipt [20:06:34]process_action close_receipt [20:06:34]cmd_close_receipt [20:06:34]MH_GetDate [20:06:34]Write to MH i2c: F0 00 00 D0 0C CB [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: F0 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: F0 09 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: F0 09 00 D0 0C 00 4B DE 92 66 C9 DC B2 64 B0 [20:06:34]GetLastDocTimeStamp 1720901153 [20:06:34]current date 1720901195 [20:06:34]FM_GetShiftState [20:06:34]SAM_PROTO_GetShiftState [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 13 01 00 [20:06:34]Write to MH i2c: E2 08 00 D1 0C 80 13 01 00 00 00 00 00 5A [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 0E 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 0E 00 D1 0C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3B [20:06:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:06:34]wFMCommunicate OK [20:06:34]SAM_PROTO_GetShiftState done [20:06:34]FM_GetShiftState done [20:06:34]opened in 1720831249 [20:06:34]opened+sec_in_day 1720917649 [20:06:34]quantity*price = 14015 [20:06:34]sum+1 = 14016 [20:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 292 13.07.2024 20:06 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164732 ФПД: 61746348552897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200635&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164732&fm=61746348552897&tin=02508201610067®Number=0000000000090829&sum=14000 [20:06:35]StoreToDocumentArchive [20:06:35]shift 446 fd 164732 [20:06:35]save to /storage/0446/doc_00164732 [20:06:35]save last doc name /storage/0446/doc_00164732 to /storage/kkm_last_doc_name [20:06:35]save OK [20:06:35]Clear old archive folders... [20:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:35]tlvbuf is 01E64580 [20:06:35]SAM_PROTO_ClearQueue [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 09 00 00 [20:06:35]Write to MH i2c: E2 08 00 DE 0C 80 09 00 00 00 00 00 00 5C [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]SAM_PROTO_ClearQueue done [20:06:35]KKMCreateOFDPacket [20:06:35]OFDProtocolAddRootSTLVToBuf [20:06:35]FM_MakeSignedData [20:06:35]FM_MakeSignedData [20:06:35]SAM_PROTO_SignData [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 0D 01 02 [20:06:35]Write to MH i2c: E2 08 00 DF 0C 80 0D 01 02 00 00 00 00 64 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]wFMCommunicate request_size=255 [20:06:35]MH_SAM_APDU [20:06: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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4B DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 83 02 00 35 04 06 00 38 [20:06:35]Write to MH i2c: E2 02 01 E0 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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4B DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 83 02 00 35 04 06 00 38 00 00 EB [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]OFD Sender: No OFD packet to send [20:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]wFMCommunicate request_size=10 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 0D 02 02 05 28 71 2B F2 C1 [20:06:35]Write to MH i2c: E2 0D 00 E1 0C 80 0D 02 02 05 00 28 71 2B F2 C1 00 00 E8 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 0D 03 02 [20:06:35]Write to MH i2c: E2 08 00 E2 0C 80 0D 03 02 00 00 00 00 69 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0B 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0B 00 E2 0C 00 97 CE 14 7F 6C A5 1D ED 90 00 7D [20:06:35]RAPDU: 97 CE 14 7F 6C A5 1D ED 90 00 [20:06:35]wFMCommunicate OK [20:06:35]SAM_PROTO_SignData done [20:06:35]FM_MakeSignedData done [20:06:35]CreateOFDProtocolMessage [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 11 00 00 [20:06:35]Write to MH i2c: E2 08 00 E3 0C 80 11 00 00 00 00 00 00 69 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 17 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 17 00 E3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [20:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:06:35]wFMCommunicate OK [20:06:35]CreateOFDProtocolMessage done [20:06:35]OFDSenderStorePacket 164732 [20:06:35]StoreOFDPacket docnum=164732 [20:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 F7 07 01 16 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4B DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 83 02 00 35 04 06 00 38 28 71 2B F2 C1 97 CE 14 7F 6C A5 1D ED [20:06:35]CheckFolder [20:06:35]dirname=/storage/ofd_packets [20:06:35]CheckFolder done [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00164732 [20:06:35]NVStorageSaveData ofd_packets/00164732 [20:06:35]File name is /storage/ofd_packets/00164732 [20:06:35]Write 301 bytes [20:06:35]NVStorageSaveData done [20:06:35]OFDSenderStorePacket done [20:06:35]KKMCreateOFDPacket done [20:06:35]NVStorageSaveData kkm_last_timestamp [20:06:35]File name is /storage/kkm_last_timestamp [20:06:35]Write 4 bytes [20:06:35]NVStorageSaveData done [20:06:35]ExternCall_PrintAddStr [20:06:35]wPrintStart [20:06:35]Write to MH i2c: 01 00 00 E4 0C F0 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 FF 0F 05 [20:06:35]RasterBufferAndPrint [20:06:35]line Счет N : (1)458826 [20:06:35]line ИНН: 02508201610067 [20:06:35]line Контрольно-Кассовый Чек [20:06:35]line ПРОДАЖА [20:06:35]line ТРК (МРК, ГНК) : 22 [20:06:35]line Товар: 2710124130 [20:06:35]line Аи-92-К-5 [20:06:35]line 2.130 * 65.80 [20:06:35]line = 140.15 [20:06:35]line НДС 12% НСП 1% [20:06:35]line > о реализуемом товаре [20:06:35]line ОКРУГЛЕНИЕ: -0.15 [20:06:35]line ИТОГО: 140.00 [20:06:35]line Внесено: 140.00 [20:06:35]line СДАЧА: 0.00 [20:06:35]line НСП 1% : 1.24 [20:06:35]line НДС 12% : 14.88 [20:06:35]line Наличными: 140.00 [20:06:35]line Безнал.: 0.00 [20:06:35]line Место: АЗС № 72 "Партнер Нефть" [20:06:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:06:35]line СНО: Общий режим [20:06:35]line Чек 292 13.07.2024 20:06 [20:06:35]line Смена: 446 ФФД: 1.0 [20:06:35]line ЗНМ: 0300000160 [20:06:35]line РНМ: 0000000000090829 [20:06:35]line Версия ККМ: 001 [20:06:35]line ФМ: 0000000000874718 [20:06:35]line ФД: 164732 [20:06:35]line ФПД: 61746348552897 [20:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200635&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164732&fm=61746348552897&tin=02508201610067®Number=0000000000090829&sum=14000 [20:06:36]OFD Sender: Processing packet 164732 [packets to send 104, broken 103] [20:06:36]ProducePacketName [20:06:36]name=ofd_packets/00164732 [20:06:36]OFD Sender: To server: pG, [20:06:36]CommunicateWithHost lk.salyk.kg:30040 [20:06:36]ConnectInit lk.salyk.kg [20:06:36]written 0, free lines is 4095 [20:06:36]Connected sock=10 [20:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 F7 07 01 16 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 4B DE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 83 02 00 35 04 06 00 38 28 71 2B F2 C1 97 CE 14 7F 6C A5 1D ED [20:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4E A3 47 00 D8 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 83 02 00 F4 03 04 00 DB 84 92 66 B6 04 01 00 00 9F A4 6A 2D F1 3F 0C 4F [20:06:36]CommunicateWithHost err = 0 [20:06:36]CheckOFDResponse [20:06:36]1017 (14) - 77093643461234 [20:06:36]1041 (16) - 0000000000874718 [20:06:36]1040 (4) - 164732 [20:06:36]1012 (4) - 13.07.2024 13:44 [20:06:36]1206 (1) - 0 [20:06:36]OFD Sender: Remove packet 164732 [20:06:36]ProducePacketName [20:06:36]name=ofd_packets/00164732 [20:06:36]NVStorageDeleteData [20:06:36]Write to MH i2c: 01 00 00 0E 0D 1B [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: 01 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: 01 07 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 EF 0C 1D [20:06:36]RasterBufferAndPrint [20:06:36]line [20:06:36]line [20:06:36]line [20:06:36]line [20:06:36]line [20:06:36]written 0, free lines is 3318 [20:06:36]MH_Cut [20:06:36]Write to MH i2c: D1 01 00 15 0D 01 F4 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 01 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 01 00 15 0D 00 F3 [20:06:36]Write to MH i2c: 01 00 00 16 0D 23 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:37]OFD Sender: No OFD packet to send [20:06:37]*** Cut start [20:06:37]*** Partial cut [20:06:37]*** CUTSNS_PIN = 1 [20:06:37]*** CUTSNS_PIN = 0 [20:06:37]*** Brake cut motor [20:06:37]Read from MH i2c: 01 [20:06:37]MH_I2C_Read... [20:06:37]*** Stop cut motor [20:06:37]*** Cut end [20:06:37]Read from MH i2c: 01 07 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [20:06:37]process_action close_receipt done [20:06:37]requested_data is exist [20:06:37]produce_requested_data [20:06:37]requested_item fm.sn is exist - process it [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 11 00 00 [20:06:37]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 17 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [20:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:06:38]wFMCommunicate OK [20:06:38]requested_item fd.num is exist - process it [20:06:38]SAM_PROTO_GetFieldsCounters [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 13 00 00 [20:06:38]Write to MH i2c: E2 08 00 18 0D 80 13 00 00 00 00 00 00 A1 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 62 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 62 00 18 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [20:06: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_GetFieldsCounters done [20:06:38]requested_item shift.num is exist - process it [20:06:38]requested_item shift.opened is exist - process it [20:06:38]req_shift_opened [20:06:38]FM_GetShiftState [20:06:38]SAM_PROTO_GetShiftState [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 13 01 00 [20:06:38]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0E 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 84 [20:06:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_GetShiftState done [20:06:38]FM_GetShiftState done [20:06:38]req_shift_opened done [20:06:38]requested_item shift.open_date is exist - process it [20:06:38]req_shift_open_date [20:06:38]req_shift_open_date done [20:06:38]produce_requested_data done [20:06:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164732,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:06:38]process_action_free close_receipt [20:06:38]json_value_free [20:06:38]json_value_free done [20:06:38]process_json_proto returns [20:06:38]Send response to host [20:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164732,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:06:38]free response buf [20:06:38]execute_script done [20:06:38]execute_script returns [20:06:38]free content buf [20:06:38]Sock 9.Close socket [20:06:38]Sock 9.Thread stoped [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:14:59]accept exits with 7 [20:14:59]New connection [20:14:59]New thread 3067104612 created [20:14:59]Thread 3067247972 joined [20:14:59]Waiting for new connection... [20:14:59] Sock 7.Parse request [20:14:59]Sock 7.Check first char [20:14:59]Sock 7.First char is OK [20:14:59]request: POST /json_proto HTTP/1.0 [20:14:59]Method: POST [20:14:59]URL: /json_proto [20:14:59]Method is POST - this is cgi request [20:14:59]url: /json_proto [20:14:59]query_string will be loaded in cgi processing [20:14:59]execute_cgi json_proto POST (null) [20:14:59]execute_cgi path=json_proto method=POST [20:14:59]POST find Content-Length [20:14:59]Host: 172.17.56.4:8080 [20:14:59]Content-Length: 674 [20:14:59]Content-Type: application/json [20:14:59] [20:14:59]POST finish read [20:14:59]Found Content-Length = 674 [20:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [20:14:59]execute_script... [20:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [20:14:59]POST & json_proto [20:14:59]process_json_proto [20:14:59]json parsed OK: [20:14:59]protocol is kg_v1.0 [20:14:59]action value=close_receipt [20:14:59]process_action close_receipt [20:14:59]cmd_close_receipt [20:14:59]MH_GetDate [20:14:59]Write to MH i2c: F0 00 00 1A 0D 16 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 09 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: F0 09 00 1A 0D 00 44 E0 92 66 C9 DC B2 64 F6 [20:14:59]GetLastDocTimeStamp 1720901195 [20:14:59]current date 1720901700 [20:14:59]FM_GetShiftState [20:14:59]SAM_PROTO_GetShiftState [20:14:59]wFMCommunicate request_size=4 [20:14:59]MH_SAM_APDU [20:14:59]CAPDU: 80 13 01 00 [20:14:59]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [20:14:59]Write i2c OK [20:14:59]MH_I2C_Read... [20:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:59]Read from MH i2c: E2 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 [20:14:59]MH_I2C_Read... [20:14:59]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 86 [20:14:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:14:59]wFMCommunicate OK [20:14:59]SAM_PROTO_GetShiftState done [20:14:59]FM_GetShiftState done [20:14:59]opened in 1720831249 [20:14:59]opened+sec_in_day 1720917649 [20:14:59]quantity*price = 70030 [20:14:59]sum+1 = 70032 [20:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 293 13.07.2024 20:15 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164733 ФПД: 141893385887221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164733&fm=141893385887221&tin=02508201610067®Number=0000000000090829&sum=70000 [20:15:00]StoreToDocumentArchive [20:15:00]shift 446 fd 164733 [20:15:00]save to /storage/0446/doc_00164733 [20:15:00]save last doc name /storage/0446/doc_00164733 to /storage/kkm_last_doc_name [20:15:00]save OK [20:15:00]Clear old archive folders... [20:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:00]tlvbuf is 01E3FFB0 [20:15:00]SAM_PROTO_ClearQueue [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 09 00 00 [20:15:00]Write to MH i2c: E2 08 00 28 0D 80 09 00 00 00 00 00 00 A7 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 03 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [20:15:00]RAPDU: 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_ClearQueue done [20:15:00]KKMCreateOFDPacket [20:15:00]OFDProtocolAddRootSTLVToBuf [20:15:00]FM_MakeSignedData [20:15:00]FM_MakeSignedData [20:15:00]SAM_PROTO_SignData [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 0D 01 02 [20:15:00]Write to MH i2c: E2 08 00 29 0D 80 0D 01 02 00 00 00 00 AF [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 03 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [20:15:00]RAPDU: 90 00 [20:15:00]wFMCommunicate OK [20:15:00]wFMCommunicate request_size=255 [20:15:00]MH_SAM_APDU [20:15: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 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 44 E0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 83 02 00 35 04 06 00 81 0D 20 DC [20:15:00]Write to MH i2c: E2 02 01 2A 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 44 E0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 83 02 00 35 04 06 00 81 0D 20 DC 00 00 40 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]wFMCommunicate request_size=7 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 02 02 02 9D F5 [20:15:01]Write to MH i2c: E2 0A 00 2B 0D 80 0D 02 02 02 00 9D F5 00 00 48 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [20:15:01]RAPDU: 90 00 [20:15:01]wFMCommunicate OK [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 0D 03 02 [20:15:01]Write to MH i2c: E2 08 00 2C 0D 80 0D 03 02 00 00 00 00 B4 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0B 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0B 00 2C 0D 00 5D 91 FB 33 65 F1 AB EB 90 00 BD [20:15:01]RAPDU: 5D 91 FB 33 65 F1 AB EB 90 00 [20:15:01]wFMCommunicate OK [20:15:01]SAM_PROTO_SignData done [20:15:01]FM_MakeSignedData done [20:15:01]CreateOFDProtocolMessage [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 11 00 00 [20:15:01]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 17 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [20:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:01]wFMCommunicate OK [20:15:01]CreateOFDProtocolMessage done [20:15:01]OFDSenderStorePacket 164733 [20:15:01]StoreOFDPacket docnum=164733 [20:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 33 A5 04 01 E0 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 44 E0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 83 02 00 35 04 06 00 81 0D 20 DC 9D F5 5D 91 FB 33 65 F1 AB EB [20:15:01]CheckFolder [20:15:01]dirname=/storage/ofd_packets [20:15:01]CheckFolder done [20:15:01]ProducePacketName [20:15:01]name=ofd_packets/00164733 [20:15:01]NVStorageSaveData ofd_packets/00164733 [20:15:01]File name is /storage/ofd_packets/00164733 [20:15:01]Write 298 bytes [20:15:01]NVStorageSaveData done [20:15:01]OFDSenderStorePacket done [20:15:01]KKMCreateOFDPacket done [20:15:01]NVStorageSaveData kkm_last_timestamp [20:15:01]File name is /storage/kkm_last_timestamp [20:15:01]Write 4 bytes [20:15:01]NVStorageSaveData done [20:15:01]ExternCall_PrintAddStr [20:15:01]wPrintStart [20:15:01]Write to MH i2c: 01 00 00 2E 0D 3B [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [20:15:01]RasterBufferAndPrint [20:15:01]line Счет N : (1)458827 [20:15:01]line ИНН: 02508201610067 [20:15:01]line Контрольно-Кассовый Чек [20:15:01]line ПРОДАЖА [20:15:01]line ТРК (МРК, ГНК) : 21 [20:15:01]line Товар: 2710194210 [20:15:01]line ДТ-К-5 [20:15:01]line 9.740 * 71.90 [20:15:01]line = 700.31 [20:15:01]line НДС 12% НСП 1% [20:15:01]line > о реализуемом товаре [20:15:01]line ОКРУГЛЕНИЕ: -0.31 [20:15:01]line ИТОГО: 700.00 [20:15:01]line Внесено: 700.00 [20:15:01]line СДАЧА: 0.00 [20:15:01]line НСП 1% : 6.20 [20:15:01]line НДС 12% : 74.37 [20:15:01]line Наличными: 700.00 [20:15:01]line Безнал.: 0.00 [20:15:01]line Место: АЗС № 72 "Партнер Нефть" [20:15:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:15:01]line СНО: Общий режим [20:15:01]line Чек 293 13.07.2024 20:15 [20:15:01]line Смена: 446 ФФД: 1.0 [20:15:01]line ЗНМ: 0300000160 [20:15:01]line РНМ: 0000000000090829 [20:15:01]line Версия ККМ: 001 [20:15:01]line ФМ: 0000000000874718 [20:15:01]line ФД: 164733 [20:15:01]line ФПД: 141893385887221 [20:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164733&fm=141893385887221&tin=02508201610067®Number=0000000000090829&sum=70000 [20:15:01]OFD Sender: Processing packet 164733 [packets to send 104, broken 103] [20:15:01]ProducePacketName [20:15:01]name=ofd_packets/00164733 [20:15:01]OFD Sender: To server: pG, [20:15:01]CommunicateWithHost lk.salyk.kg:30040 [20:15:01]ConnectInit lk.salyk.kg [20:15:01]written 0, free lines is 4095 [20:15:01]Connected sock=10 [20:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 33 A5 04 01 E0 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 44 E0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 83 02 00 35 04 06 00 81 0D 20 DC 9D F5 5D 91 FB 33 65 F1 AB EB [20:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B6 31 47 00 63 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 83 02 00 F4 03 04 00 D4 86 92 66 B6 04 01 00 00 1B 74 D1 9E FA 96 9B 58 [20:15:01]CommunicateWithHost err = 0 [20:15:01]CheckOFDResponse [20:15:01]1017 (14) - 77093643461234 [20:15:01]1041 (16) - 0000000000874718 [20:15:01]1040 (4) - 164733 [20:15:01]1012 (4) - 13.07.2024 13:53 [20:15:01]1206 (1) - 0 [20:15:01]OFD Sender: Remove packet 164733 [20:15:01]ProducePacketName [20:15:01]name=ofd_packets/00164733 [20:15:01]NVStorageDeleteData [20:15:01]Write to MH i2c: 01 00 00 58 0D 65 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: 01 07 00 58 0D 00 00 00 00 00 E9 0C 61 [20:15:01]RasterBufferAndPrint [20:15:01]line [20:15:01]line [20:15:01]line [20:15:01]line [20:15:01]line [20:15:01]written 0, free lines is 3311 [20:15:01]MH_Cut [20:15:01]Write to MH i2c: D1 01 00 5F 0D 01 3E [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: D1 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: D1 01 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: D1 01 00 5F 0D 00 3D [20:15:01]Write to MH i2c: 01 00 00 60 0D 6D [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:02]OFD Sender: No OFD packet to send [20:15:02]*** Cut start [20:15:02]*** Partial cut [20:15:02]*** CUTSNS_PIN = 1 [20:15:02]*** CUTSNS_PIN = 0 [20:15:02]*** Brake cut motor [20:15:03]Read from MH i2c: 01 [20:15:03]MH_I2C_Read... [20:15:03]*** Stop cut motor [20:15:03]*** Cut end [20:15:03]Read from MH i2c: 01 07 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 60 0D 00 00 00 00 00 FF 0F 82 [20:15:03]process_action close_receipt done [20:15:03]requested_data is exist [20:15:03]produce_requested_data [20:15:03]requested_item fm.sn is exist - process it [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 11 00 00 [20:15:03]Write to MH i2c: E2 08 00 61 0D 80 11 00 00 00 00 00 00 E8 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 61 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [20:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:03]wFMCommunicate OK [20:15:03]requested_item fd.num is exist - process it [20:15:03]SAM_PROTO_GetFieldsCounters [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 13 00 00 [20:15:03]Write to MH i2c: E2 08 00 62 0D 80 13 00 00 00 00 00 00 EB [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 62 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 62 00 62 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [20:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:03]wFMCommunicate OK [20:15:03]SAM_PROTO_GetFieldsCounters done [20:15:03]requested_item shift.num is exist - process it [20:15:03]requested_item shift.opened is exist - process it [20:15:03]req_shift_opened [20:15:03]FM_GetShiftState [20:15:03]SAM_PROTO_GetShiftState [20:15:03]wFMCommunicate request_size=4 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 13 01 00 [20:15:03]Write to MH i2c: E2 08 00 63 0D 80 13 01 00 00 00 00 00 ED [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 0E 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 0E 00 63 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CE [20:15:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:15:03]wFMCommunicate OK [20:15:03]SAM_PROTO_GetShiftState done [20:15:03]FM_GetShiftState done [20:15:03]req_shift_opened done [20:15:03]requested_item shift.open_date is exist - process it [20:15:03]req_shift_open_date [20:15:03]req_shift_open_date done [20:15:03]produce_requested_data done [20:15:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164733,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:15:03]process_action_free close_receipt [20:15:03]json_value_free [20:15:03]json_value_free done [20:15:03]process_json_proto returns [20:15:03]Send response to host [20:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164733,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:15:03]free response buf [20:15:03]execute_script done [20:15:03]execute_script returns [20:15:03]free content buf [20:15:03]Sock 7.Close socket [20:15:03]Sock 7.Thread stoped [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:19:57]accept exits with 9 [20:19:57]New connection [20:19:57]New thread 3067247972 created [20:19:57]Thread 3067104612 joined [20:19:57]Waiting for new connection... [20:19:57] Sock 9.Parse request [20:19:57]Sock 9.Check first char [20:19:57]Sock 9.First char is OK [20:19:57]request: POST /json_proto HTTP/1.0 [20:19:57]Method: POST [20:19:57]URL: /json_proto [20:19:57]Method is POST - this is cgi request [20:19:57]url: /json_proto [20:19:57]query_string will be loaded in cgi processing [20:19:57]execute_cgi json_proto POST (null) [20:19:57]execute_cgi path=json_proto method=POST [20:19:57]POST find Content-Length [20:19:57]Host: 172.17.56.4:8080 [20:19:57]Content-Length: 639 [20:19:57]Content-Type: application/json [20:19:57] [20:19:57]POST finish read [20:19:57]Found Content-Length = 639 [20:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:57]execute_script... [20:19: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)458828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:57]POST & json_proto [20:19:57]process_json_proto [20:19:57]json parsed OK: [20:19:57]protocol is kg_v1.0 [20:19:57]action value=close_receipt [20:19:57]process_action close_receipt [20:19:57]cmd_close_receipt [20:19:57]MH_GetDate [20:19:57]Write to MH i2c: F0 00 00 64 0D 60 [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 09 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: F0 09 00 64 0D 00 6E E1 92 66 C9 DC B2 64 6B [20:19:57]GetLastDocTimeStamp 1720901700 [20:19:57]current date 1720901998 [20:19:57]FM_GetShiftState [20:19:57]SAM_PROTO_GetShiftState [20:19:57]wFMCommunicate request_size=4 [20:19:57]MH_SAM_APDU [20:19:57]CAPDU: 80 13 01 00 [20:19:57]Write to MH i2c: E2 08 00 65 0D 80 13 01 00 00 00 00 00 EF [20:19:57]Write i2c OK [20:19:57]MH_I2C_Read... [20:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:57]Read from MH i2c: E2 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: E2 0E 00 [20:19:57]MH_I2C_Read... [20:19:57]Read from MH i2c: E2 0E 00 65 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D0 [20:19:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:19:57]wFMCommunicate OK [20:19:57]SAM_PROTO_GetShiftState done [20:19:57]FM_GetShiftState done [20:19:57]opened in 1720831249 [20:19:57]opened+sec_in_day 1720917649 [20:19:57]quantity*price = 32900 [20:19:57]sum+1 = 32901 [20:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 294 13.07.2024 20:19 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164734 ФПД: 104322394823688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164734&fm=104322394823688&tin=02508201610067®Number=0000000000090829&sum=32900 [20:19:58]StoreToDocumentArchive [20:19:58]shift 446 fd 164734 [20:19:58]save to /storage/0446/doc_00164734 [20:19:58]save last doc name /storage/0446/doc_00164734 to /storage/kkm_last_doc_name [20:19:58]save OK [20:19:58]Clear old archive folders... [20:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:58]tlvbuf is 01E985E0 [20:19:58]SAM_PROTO_ClearQueue [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 09 00 00 [20:19:58]Write to MH i2c: E2 08 00 72 0D 80 09 00 00 00 00 00 00 F1 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 72 0D 00 90 00 F3 [20:19:59]RAPDU: 90 00 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_ClearQueue done [20:19:59]KKMCreateOFDPacket [20:19:59]OFDProtocolAddRootSTLVToBuf [20:19:59]FM_MakeSignedData [20:19:59]FM_MakeSignedData [20:19:59]SAM_PROTO_SignData [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 0D 01 02 [20:19:59]Write to MH i2c: E2 08 00 73 0D 80 0D 01 02 00 00 00 00 F9 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:59]Read from MH i2c: E2 03 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [20:19:59]RAPDU: 90 00 [20:19:59]wFMCommunicate OK [20:19:59]wFMCommunicate request_size=255 [20:19:59]MH_SAM_APDU [20:19: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6E E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 83 02 00 35 04 06 00 5E [20:19:59]Write to MH i2c: E2 02 01 74 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6E E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 83 02 00 35 04 06 00 5E 00 00 E2 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [20:19:59]RAPDU: 90 00 [20:19:59]wFMCommunicate OK [20:19:59]wFMCommunicate request_size=10 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 0D 02 02 05 E1 73 49 1C 08 [20:19:59]Write to MH i2c: E2 0D 00 75 0D 80 0D 02 02 05 00 E1 73 49 1C 08 00 00 C7 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [20:19:59]RAPDU: 90 00 [20:19:59]wFMCommunicate OK [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 0D 03 02 [20:19:59]Write to MH i2c: E2 08 00 76 0D 80 0D 03 02 00 00 00 00 FE [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0B 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 0B 00 76 0D 00 B1 4A 72 56 EF 24 AE 1B 90 00 9E [20:19:59]RAPDU: B1 4A 72 56 EF 24 AE 1B 90 00 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_SignData done [20:19:59]FM_MakeSignedData done [20:19:59]CreateOFDProtocolMessage [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 11 00 00 [20:19:59]Write to MH i2c: E2 08 00 77 0D 80 11 00 00 00 00 00 00 FE [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 17 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 17 00 77 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [20:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:19:59]wFMCommunicate OK [20:19:59]CreateOFDProtocolMessage done [20:19:59]OFDSenderStorePacket 164734 [20:19:59]StoreOFDPacket docnum=164734 [20:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 73 07 01 5B AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6E E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 83 02 00 35 04 06 00 5E E1 73 49 1C 08 B1 4A 72 56 EF 24 AE 1B [20:19:59]CheckFolder [20:19:59]dirname=/storage/ofd_packets [20:19:59]CheckFolder done [20:19:59]ProducePacketName [20:19:59]name=ofd_packets/00164734 [20:19:59]NVStorageSaveData ofd_packets/00164734 [20:19:59]File name is /storage/ofd_packets/00164734 [20:19:59]Write 301 bytes [20:19:59]NVStorageSaveData done [20:19:59]OFDSenderStorePacket done [20:19:59]KKMCreateOFDPacket done [20:19:59]NVStorageSaveData kkm_last_timestamp [20:19:59]File name is /storage/kkm_last_timestamp [20:19:59]Write 4 bytes [20:19:59]NVStorageSaveData done [20:19:59]ExternCall_PrintAddStr [20:19:59]wPrintStart [20:19:59]Write to MH i2c: 01 00 00 78 0D 85 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 07 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 FF 0F 9A [20:19:59]RasterBufferAndPrint [20:19:59]line Счет N : (1)458828 [20:19:59]line ИНН: 02508201610067 [20:19:59]line Контрольно-Кассовый Чек [20:19:59]line ПРОДАЖА [20:19:59]line ТРК (МРК, ГНК) : 22 [20:19:59]line Товар: 2710124130 [20:19:59]line Аи-92-К-5 [20:19:59]line 5.000 * 65.80 [20:19:59]line = 329.00 [20:19:59]line НДС 12% НСП 1% [20:19:59]line > о реализуемом товаре [20:19:59]line ИТОГО: 329.00 [20:19:59]line НСП 1% : 2.91 [20:19:59]line НДС 12% : 34.94 [20:19:59]line Наличными: 329.00 [20:19:59]line Безнал.: 0.00 [20:19:59]line Место: АЗС № 72 "Партнер Нефть" [20:19:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:19:59]line СНО: Общий режим [20:19:59]line Чек 294 13.07.2024 20:19 [20:19:59]line Смена: 446 ФФД: 1.0 [20:19:59]line ЗНМ: 0300000160 [20:19:59]line РНМ: 0000000000090829 [20:19:59]line Версия ККМ: 001 [20:19:59]line ФМ: 0000000000874718 [20:19:59]line ФД: 164734 [20:19:59]line ФПД: 104322394823688 [20:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T201958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164734&fm=104322394823688&tin=02508201610067®Number=0000000000090829&sum=32900 [20:19:59]written 0, free lines is 4095 [20:19:59]OFD Sender: Processing packet 164734 [packets to send 104, broken 103] [20:19:59]ProducePacketName [20:19:59]name=ofd_packets/00164734 [20:19:59]OFD Sender: To server: pG, [20:19:59]CommunicateWithHost lk.salyk.kg:30040 [20:19:59]ConnectInit lk.salyk.kg [20:19:59]Connected sock=10 [20:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 73 07 01 5B AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 6E E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 83 02 00 35 04 06 00 5E E1 73 49 1C 08 B1 4A 72 56 EF 24 AE 1B [20:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 77 50 47 00 D3 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 83 02 00 F4 03 04 00 FE 87 92 66 B6 04 01 00 00 E5 38 E6 F5 13 B0 F8 9D [20:20:00]CommunicateWithHost err = 0 [20:20:00]CheckOFDResponse [20:20:00]1017 (14) - 77093643461234 [20:20:00]1041 (16) - 0000000000874718 [20:20:00]1040 (4) - 164734 [20:20:00]1012 (4) - 13.07.2024 13:58 [20:20:00]1206 (1) - 0 [20:20:00]OFD Sender: Remove packet 164734 [20:20:00]ProducePacketName [20:20:00]name=ofd_packets/00164734 [20:20:00]NVStorageDeleteData [20:20:00]Write to MH i2c: 01 00 00 9F 0D AC [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 07 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 23 0D E3 [20:20:00]RasterBufferAndPrint [20:20:00]line [20:20:00]line [20:20:00]line [20:20:00]line [20:20:00]line [20:20:00]written 0, free lines is 3370 [20:20:00]MH_Cut [20:20:00]Write to MH i2c: D1 01 00 A6 0D 01 85 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: D1 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: D1 01 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: D1 01 00 A6 0D 00 84 [20:20:00]Write to MH i2c: 01 00 00 A7 0D B4 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]OFD Sender: No OFD packet to send [20:20:00]*** Cut start [20:20:00]*** Partial cut [20:20:00]*** CUTSNS_PIN = 1 [20:20:00]*** CUTSNS_PIN = 0 [20:20:01]*** Brake cut motor [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]*** Stop cut motor [20:20:01]*** Cut end [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [20:20:01]process_action close_receipt done [20:20:01]requested_data is exist [20:20:01]produce_requested_data [20:20:01]requested_item fm.sn is exist - process it [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 11 00 00 [20:20:01]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 17 00 [20:20:01]MH_I2C_Read... [20:20:01]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 34 37 31 38 90 00 85 [20:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:20:01]wFMCommunicate OK [20:20:01]requested_item fd.num is exist - process it [20:20:01]SAM_PROTO_GetFieldsCounters [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 13 00 00 [20:20:01]Write to MH i2c: E2 08 00 A9 0D 80 13 00 00 00 00 00 00 32 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 62 00 [20:20:01]MH_I2C_Read... [20:20:01]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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [20:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_GetFieldsCounters done [20:20:01]requested_item shift.num is exist - process it [20:20:01]requested_item shift.opened is exist - process it [20:20:01]req_shift_opened [20:20:01]FM_GetShiftState [20:20:01]SAM_PROTO_GetShiftState [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 13 01 00 [20:20:01]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 15 [20:20:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_GetShiftState done [20:20:01]FM_GetShiftState done [20:20:01]req_shift_opened done [20:20:01]requested_item shift.open_date is exist - process it [20:20:01]req_shift_open_date [20:20:01]req_shift_open_date done [20:20:01]produce_requested_data done [20:20:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164734,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:20:01]process_action_free close_receipt [20:20:01]json_value_free [20:20:01]json_value_free done [20:20:01]process_json_proto returns [20:20:01]Send response to host [20:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164734,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:20:01]free response buf [20:20:01]execute_script done [20:20:01]execute_script returns [20:20:01]free content buf [20:20:01]Sock 9.Close socket [20:20:01]Sock 9.Thread stoped [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]accept exits with 7 [20:20:50]New connection [20:20:50]New thread 3067104612 created [20:20:50]Thread 3067247972 joined [20:20:50]Waiting for new connection... [20:20:50] Sock 7.Parse request [20:20:50]Sock 7.Check first char [20:20:50]Sock 7.First char is OK [20:20:50]request: POST /json_proto HTTP/1.0 [20:20:50]Method: POST [20:20:50]URL: /json_proto [20:20:50]Method is POST - this is cgi request [20:20:50]url: /json_proto [20:20:50]query_string will be loaded in cgi processing [20:20:50]execute_cgi json_proto POST (null) [20:20:50]execute_cgi path=json_proto method=POST [20:20:50]POST find Content-Length [20:20:50]Host: 172.17.56.4:8080 [20:20:50]Content-Length: 677 [20:20:50]Content-Type: application/json [20:20:50] [20:20:50]POST finish read [20:20:50]Found Content-Length = 677 [20:20:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:50]execute_script... [20:20: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)458829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:50]POST & json_proto [20:20:50]process_json_proto [20:20:50]json parsed OK: [20:20:50]protocol is kg_v1.0 [20:20:50]action value=close_receipt [20:20:50]process_action close_receipt [20:20:50]cmd_close_receipt [20:20:50]MH_GetDate [20:20:50]Write to MH i2c: F0 00 00 AB 0D A7 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: F0 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: F0 09 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: F0 09 00 AB 0D 00 A2 E1 92 66 C9 DC B2 64 E6 [20:20:50]GetLastDocTimeStamp 1720901998 [20:20:50]current date 1720902050 [20:20:50]FM_GetShiftState [20:20:50]SAM_PROTO_GetShiftState [20:20:50]wFMCommunicate request_size=4 [20:20:50]MH_SAM_APDU [20:20:50]CAPDU: 80 13 01 00 [20:20:50]Write to MH i2c: E2 08 00 AC 0D 80 13 01 00 00 00 00 00 36 [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:50]Read from MH i2c: E2 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 0E 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: E2 0E 00 AC 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 17 [20:20:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:20:50]wFMCommunicate OK [20:20:50]SAM_PROTO_GetShiftState done [20:20:50]FM_GetShiftState done [20:20:50]opened in 1720831249 [20:20:50]opened+sec_in_day 1720917649 [20:20:50]quantity*price = 40006 [20:20:50]sum+1 = 40007 [20:20:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 295 13.07.2024 20:20 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164735 ФПД: 128677926629515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202050&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164735&fm=128677926629515&tin=02508201610067®Number=0000000000090829&sum=40000 [20:20:51]StoreToDocumentArchive [20:20:51]shift 446 fd 164735 [20:20:51]save to /storage/0446/doc_00164735 [20:20:51]save last doc name /storage/0446/doc_00164735 to /storage/kkm_last_doc_name [20:20:51]save OK [20:20:51]Clear old archive folders... [20:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:51]tlvbuf is 01E3F940 [20:20:51]SAM_PROTO_ClearQueue [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 09 00 00 [20:20:51]Write to MH i2c: E2 08 00 B9 0D 80 09 00 00 00 00 00 00 38 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [20:20:51]RAPDU: 90 00 [20:20:51]wFMCommunicate OK [20:20:51]SAM_PROTO_ClearQueue done [20:20:51]KKMCreateOFDPacket [20:20:51]OFDProtocolAddRootSTLVToBuf [20:20:51]FM_MakeSignedData [20:20:51]FM_MakeSignedData [20:20:51]SAM_PROTO_SignData [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 0D 01 02 [20:20:51]Write to MH i2c: E2 08 00 BA 0D 80 0D 01 02 00 00 00 00 40 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [20:20:51]RAPDU: 90 00 [20:20:51]wFMCommunicate OK [20:20:51]wFMCommunicate request_size=255 [20:20:51]MH_SAM_APDU [20:20: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A2 E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 83 02 00 35 04 06 00 75 [20:20:51]Write to MH i2c: E2 02 01 BB 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A2 E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 83 02 00 35 04 06 00 75 00 00 74 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [20:20:51]RAPDU: 90 00 [20:20:51]wFMCommunicate OK [20:20:51]wFMCommunicate request_size=10 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 0D 02 02 05 08 2A 1B 70 8B [20:20:51]Write to MH i2c: E2 0D 00 BC 0D 80 0D 02 02 05 00 08 2A 1B 70 8B 00 00 95 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [20:20:51]RAPDU: 90 00 [20:20:51]wFMCommunicate OK [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 0D 03 02 [20:20:51]Write to MH i2c: E2 08 00 BD 0D 80 0D 03 02 00 00 00 00 45 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0B 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0B 00 BD 0D 00 DA C6 3D B6 3B 64 6B BE 90 00 A1 [20:20:51]RAPDU: DA C6 3D B6 3B 64 6B BE 90 00 [20:20:51]wFMCommunicate OK [20:20:51]SAM_PROTO_SignData done [20:20:51]FM_MakeSignedData done [20:20:51]CreateOFDProtocolMessage [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 11 00 00 [20:20:51]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 17 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [20:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:20:51]wFMCommunicate OK [20:20:51]CreateOFDProtocolMessage done [20:20:51]OFDSenderStorePacket 164735 [20:20:51]StoreOFDPacket docnum=164735 [20:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF 04 07 01 B1 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A2 E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 83 02 00 35 04 06 00 75 08 2A 1B 70 8B DA C6 3D B6 3B 64 6B BE [20:20:51]CheckFolder [20:20:51]dirname=/storage/ofd_packets [20:20:51]CheckFolder done [20:20:51]ProducePacketName [20:20:51]name=ofd_packets/00164735 [20:20:51]NVStorageSaveData ofd_packets/00164735 [20:20:51]File name is /storage/ofd_packets/00164735 [20:20:51]Write 301 bytes [20:20:51]NVStorageSaveData done [20:20:51]OFDSenderStorePacket done [20:20:51]KKMCreateOFDPacket done [20:20:51]NVStorageSaveData kkm_last_timestamp [20:20:51]File name is /storage/kkm_last_timestamp [20:20:51]Write 4 bytes [20:20:51]NVStorageSaveData done [20:20:51]ExternCall_PrintAddStr [20:20:51]wPrintStart [20:20:51]Write to MH i2c: 01 00 00 BF 0D CC [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [20:20:51]RasterBufferAndPrint [20:20:51]line Счет N : (1)458829 [20:20:51]line ИНН: 02508201610067 [20:20:51]line Контрольно-Кассовый Чек [20:20:51]line ПРОДАЖА [20:20:51]line ТРК (МРК, ГНК) : 12 [20:20:51]line Товар: 2710124130 [20:20:51]line Аи-92-К-5 [20:20:51]line 6.080 * 65.80 [20:20:51]line = 400.06 [20:20:51]line НДС 12% НСП 1% [20:20:51]line > о реализуемом товаре [20:20:51]line ОКРУГЛЕНИЕ: -0.06 [20:20:51]line ИТОГО: 400.00 [20:20:51]line Внесено: 400.00 [20:20:51]line СДАЧА: 0.00 [20:20:51]line НСП 1% : 3.54 [20:20:51]line НДС 12% : 42.48 [20:20:51]line Наличными: 400.00 [20:20:51]line Безнал.: 0.00 [20:20:51]line Место: АЗС № 72 "Партнер Нефть" [20:20:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:20:51]line СНО: Общий режим [20:20:51]line Чек 295 13.07.2024 20:20 [20:20:51]line Смена: 446 ФФД: 1.0 [20:20:51]line ЗНМ: 0300000160 [20:20:51]line РНМ: 0000000000090829 [20:20:51]line Версия ККМ: 001 [20:20:51]line ФМ: 0000000000874718 [20:20:51]line ФД: 164735 [20:20:51]line ФПД: 128677926629515 [20:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202050&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164735&fm=128677926629515&tin=02508201610067®Number=0000000000090829&sum=40000 [20:20:52]written 0, free lines is 4095 [20:20:52]OFD Sender: Processing packet 164735 [packets to send 104, broken 103] [20:20:52]ProducePacketName [20:20:52]name=ofd_packets/00164735 [20:20:52]OFD Sender: To server: pG, [20:20:52]CommunicateWithHost lk.salyk.kg:30040 [20:20:52]ConnectInit lk.salyk.kg [20:20:52]Connected sock=10 [20:20:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF 04 07 01 B1 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A2 E1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 83 02 00 35 04 06 00 75 08 2A 1B 70 8B DA C6 3D B6 3B 64 6B BE [20:20:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 22 66 47 00 7B 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 83 02 00 F4 03 04 00 32 88 92 66 B6 04 01 00 00 62 46 6B 2A A5 B1 7B 94 [20:20:52]CommunicateWithHost err = 0 [20:20:52]CheckOFDResponse [20:20:52]1017 (14) - 77093643461234 [20:20:52]1041 (16) - 0000000000874718 [20:20:52]1040 (4) - 164735 [20:20:52]1012 (4) - 13.07.2024 13:59 [20:20:52]1206 (1) - 0 [20:20:52]OFD Sender: Remove packet 164735 [20:20:52]ProducePacketName [20:20:52]name=ofd_packets/00164735 [20:20:52]NVStorageDeleteData [20:20:52]Write to MH i2c: 01 00 00 E9 0D F6 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: 01 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: 01 07 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 F1 0C FA [20:20:52]RasterBufferAndPrint [20:20:52]line [20:20:52]line [20:20:52]line [20:20:52]line [20:20:52]line [20:20:52]written 0, free lines is 3319 [20:20:52]MH_Cut [20:20:52]Write to MH i2c: D1 01 00 F0 0D 01 CF [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: D1 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: D1 01 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: D1 01 00 F0 0D 00 CE [20:20:52]Write to MH i2c: 01 00 00 F1 0D FE [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]OFD Sender: No OFD packet to send [20:20:53]*** Cut start [20:20:53]*** Partial cut [20:20:53]*** CUTSNS_PIN = 1 [20:20:53]*** CUTSNS_PIN = 0 [20:20:53]*** Brake cut motor [20:20:53]Read from MH i2c: 01 [20:20:53]MH_I2C_Read... [20:20:53]*** Stop cut motor [20:20:53]*** Cut end [20:20:53]Read from MH i2c: 01 07 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [20:20:53]process_action close_receipt done [20:20:53]requested_data is exist [20:20:53]produce_requested_data [20:20:53]requested_item fm.sn is exist - process it [20:20:53]wFMCommunicate request_size=4 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 11 00 00 [20:20:53]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 17 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [20:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:20:53]wFMCommunicate OK [20:20:53]requested_item fd.num is exist - process it [20:20:53]SAM_PROTO_GetFieldsCounters [20:20:53]wFMCommunicate request_size=4 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 13 00 00 [20:20:53]Write to MH i2c: E2 08 00 F3 0D 80 13 00 00 00 00 00 00 7C [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:54]Read from MH i2c: E2 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 62 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 62 00 F3 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [20:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:54]wFMCommunicate OK [20:20:54]SAM_PROTO_GetFieldsCounters done [20:20:54]requested_item shift.num is exist - process it [20:20:54]requested_item shift.opened is exist - process it [20:20:54]req_shift_opened [20:20:54]FM_GetShiftState [20:20:54]SAM_PROTO_GetShiftState [20:20:54]wFMCommunicate request_size=4 [20:20:54]MH_SAM_APDU [20:20:54]CAPDU: 80 13 01 00 [20:20:54]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:54]Read from MH i2c: E2 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 0E 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5F [20:20:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:20:54]wFMCommunicate OK [20:20:54]SAM_PROTO_GetShiftState done [20:20:54]FM_GetShiftState done [20:20:54]req_shift_opened done [20:20:54]requested_item shift.open_date is exist - process it [20:20:54]req_shift_open_date [20:20:54]req_shift_open_date done [20:20:54]produce_requested_data done [20:20:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164735,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:20:54]process_action_free close_receipt [20:20:54]json_value_free [20:20:54]json_value_free done [20:20:54]process_json_proto returns [20:20:54]Send response to host [20:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164735,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:20:54]free response buf [20:20:54]execute_script done [20:20:54]execute_script returns [20:20:54]free content buf [20:20:54]Sock 7.Close socket [20:20:54]Sock 7.Thread stoped [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:52]accept exits with 9 [20:26:52]New connection [20:26:52]New thread 3067247972 created [20:26:52]Thread 3067104612 joined [20:26:52]Waiting for new connection... [20:26:52] Sock 9.Parse request [20:26:52]Sock 9.Check first char [20:26:52]Sock 9.First char is OK [20:26:52]request: POST /json_proto HTTP/1.0 [20:26:52]Method: POST [20:26:52]URL: /json_proto [20:26:52]Method is POST - this is cgi request [20:26:52]url: /json_proto [20:26:52]query_string will be loaded in cgi processing [20:26:52]execute_cgi json_proto POST (null) [20:26:52]execute_cgi path=json_proto method=POST [20:26:52]POST find Content-Length [20:26:52]Host: 172.17.56.4:8080 [20:26:52]Content-Length: 677 [20:26:52]Content-Type: application/json [20:26:52] [20:26:52]POST finish read [20:26:52]Found Content-Length = 677 [20:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:52]execute_script... [20:26: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)458831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:52]POST & json_proto [20:26:52]process_json_proto [20:26:52]json parsed OK: [20:26:52]protocol is kg_v1.0 [20:26:52]action value=close_receipt [20:26:52]process_action close_receipt [20:26:52]cmd_close_receipt [20:26:52]MH_GetDate [20:26:52]Write to MH i2c: F0 00 00 F5 0D F1 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: F0 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: F0 09 00 [20:26:52]MH_I2C_Read... [20:26:52]Read from MH i2c: F0 09 00 F5 0D 00 0D E3 92 66 C9 DC B2 64 9D [20:26:52]GetLastDocTimeStamp 1720902050 [20:26:52]current date 1720902413 [20:26:52]FM_GetShiftState [20:26:52]SAM_PROTO_GetShiftState [20:26:52]wFMCommunicate request_size=4 [20:26:52]MH_SAM_APDU [20:26:52]CAPDU: 80 13 01 00 [20:26:52]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [20:26:52]Write i2c OK [20:26:52]MH_I2C_Read... [20:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:53]Read from MH i2c: E2 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: E2 0E 00 [20:26:53]MH_I2C_Read... [20:26:53]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 61 [20:26:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:26:53]wFMCommunicate OK [20:26:53]SAM_PROTO_GetShiftState done [20:26:53]FM_GetShiftState done [20:26:53]opened in 1720831249 [20:26:53]opened+sec_in_day 1720917649 [20:26:53]quantity*price = 20003 [20:26:53]sum+1 = 20004 [20:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 296 13.07.2024 20:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164736 ФПД: 191290389889488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164736&fm=191290389889488&tin=02508201610067®Number=0000000000090829&sum=20000 [20:26:54]StoreToDocumentArchive [20:26:54]shift 446 fd 164736 [20:26:54]save to /storage/0446/doc_00164736 [20:26:54]save last doc name /storage/0446/doc_00164736 to /storage/kkm_last_doc_name [20:26:54]save OK [20:26:54]Clear old archive folders... [20:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:54]tlvbuf is 01E401E0 [20:26:54]SAM_PROTO_ClearQueue [20:26:54]wFMCommunicate request_size=4 [20:26:54]MH_SAM_APDU [20:26:54]CAPDU: 80 09 00 00 [20:26:54]Write to MH i2c: E2 08 00 03 0E 80 09 00 00 00 00 00 00 83 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [20:26:54]RAPDU: 90 00 [20:26:54]wFMCommunicate OK [20:26:54]SAM_PROTO_ClearQueue done [20:26:54]KKMCreateOFDPacket [20:26:54]OFDProtocolAddRootSTLVToBuf [20:26:54]FM_MakeSignedData [20:26:54]FM_MakeSignedData [20:26:54]SAM_PROTO_SignData [20:26:54]wFMCommunicate request_size=4 [20:26:54]MH_SAM_APDU [20:26:54]CAPDU: 80 0D 01 02 [20:26:54]Write to MH i2c: E2 08 00 04 0E 80 0D 01 02 00 00 00 00 8B [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [20:26:54]RAPDU: 90 00 [20:26:54]wFMCommunicate OK [20:26:54]wFMCommunicate request_size=255 [20:26:54]MH_SAM_APDU [20: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0D E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 83 02 00 35 04 06 00 AD [20:26:54]Write to MH i2c: E2 02 01 05 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0D E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 83 02 00 35 04 06 00 AD 00 00 27 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [20:26:54]RAPDU: 90 00 [20:26:54]wFMCommunicate OK [20:26:54]wFMCommunicate request_size=10 [20:26:54]MH_SAM_APDU [20:26:54]CAPDU: 80 0D 02 02 05 FA 43 BD 01 D0 [20:26:54]Write to MH i2c: E2 0D 00 06 0E 80 0D 02 02 05 00 FA 43 BD 01 D0 00 00 63 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [20:26:54]RAPDU: 90 00 [20:26:54]wFMCommunicate OK [20:26:54]wFMCommunicate request_size=4 [20:26:54]MH_SAM_APDU [20:26:54]CAPDU: 80 0D 03 02 [20:26:54]Write to MH i2c: E2 08 00 07 0E 80 0D 03 02 00 00 00 00 90 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 0B 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 0B 00 07 0E 00 D4 9C 6F B9 73 E3 60 28 90 00 07 [20:26:54]RAPDU: D4 9C 6F B9 73 E3 60 28 90 00 [20:26:54]wFMCommunicate OK [20:26:54]SAM_PROTO_SignData done [20:26:54]FM_MakeSignedData done [20:26:54]CreateOFDProtocolMessage [20:26:54]wFMCommunicate request_size=4 [20:26:54]MH_SAM_APDU [20:26:54]CAPDU: 80 11 00 00 [20:26:54]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:54]Read from MH i2c: E2 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 17 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [20:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:54]wFMCommunicate OK [20:26:54]CreateOFDProtocolMessage done [20:26:54]OFDSenderStorePacket 164736 [20:26:54]StoreOFDPacket docnum=164736 [20:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 6B 07 01 15 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0D E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 83 02 00 35 04 06 00 AD FA 43 BD 01 D0 D4 9C 6F B9 73 E3 60 28 [20:26:54]CheckFolder [20:26:54]dirname=/storage/ofd_packets [20:26:54]CheckFolder done [20:26:54]ProducePacketName [20:26:54]name=ofd_packets/00164736 [20:26:54]NVStorageSaveData ofd_packets/00164736 [20:26:54]File name is /storage/ofd_packets/00164736 [20:26:54]Write 301 bytes [20:26:54]NVStorageSaveData done [20:26:54]OFDSenderStorePacket done [20:26:54]KKMCreateOFDPacket done [20:26:54]NVStorageSaveData kkm_last_timestamp [20:26:54]File name is /storage/kkm_last_timestamp [20:26:54]Write 4 bytes [20:26:54]NVStorageSaveData done [20:26:54]ExternCall_PrintAddStr [20:26:54]wPrintStart [20:26:54]Write to MH i2c: 01 00 00 09 0E 17 [20:26:54]Write i2c OK [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 07 00 [20:26:54]MH_I2C_Read... [20:26:54]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [20:26:54]RasterBufferAndPrint [20:26:54]line Счет N : (1)458831 [20:26:54]line ИНН: 02508201610067 [20:26:54]line Контрольно-Кассовый Чек [20:26:54]line ПРОДАЖА [20:26:54]line ТРК (МРК, ГНК) : 12 [20:26:54]line Товар: 2710124130 [20:26:54]line Аи-92-К-5 [20:26:54]line 3.040 * 65.80 [20:26:54]line = 200.03 [20:26:54]line НДС 12% НСП 1% [20:26:54]line > о реализуемом товаре [20:26:54]line ОКРУГЛЕНИЕ: -0.03 [20:26:54]line ИТОГО: 200.00 [20:26:54]line Внесено: 200.00 [20:26:54]line СДАЧА: 0.00 [20:26:54]line НСП 1% : 1.77 [20:26:54]line НДС 12% : 21.24 [20:26:54]line Наличными: 200.00 [20:26:54]line Безнал.: 0.00 [20:26:54]line Место: АЗС № 72 "Партнер Нефть" [20:26:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:26:54]line СНО: Общий режим [20:26:54]line Чек 296 13.07.2024 20:26 [20:26:54]line Смена: 446 ФФД: 1.0 [20:26:54]line ЗНМ: 0300000160 [20:26:54]line РНМ: 0000000000090829 [20:26:54]line Версия ККМ: 001 [20:26:54]line ФМ: 0000000000874718 [20:26:54]line ФД: 164736 [20:26:54]line ФПД: 191290389889488 [20:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202653&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164736&fm=191290389889488&tin=02508201610067®Number=0000000000090829&sum=20000 [20:26:54]OFD Sender: Processing packet 164736 [packets to send 104, broken 103] [20:26:54]ProducePacketName [20:26:54]name=ofd_packets/00164736 [20:26:54]OFD Sender: To server: pG, [20:26:54]CommunicateWithHost lk.salyk.kg:30040 [20:26:54]ConnectInit lk.salyk.kg [20:26:54]written 0, free lines is 4095 [20:26:55]Connected sock=10 [20: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 34 37 31 38 0F 01 00 00 9E 6B 07 01 15 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 0D E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 83 02 00 35 04 06 00 AD FA 43 BD 01 D0 D4 9C 6F B9 73 E3 60 28 [20:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F 68 47 00 6B F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 83 02 00 F4 03 04 00 9D 89 92 66 B6 04 01 00 00 0A 2E FB AC DF C7 2A 9B [20:26:55]CommunicateWithHost err = 0 [20:26:55]CheckOFDResponse [20:26:55]1017 (14) - 77093643461234 [20:26:55]1041 (16) - 0000000000874718 [20:26:55]1040 (4) - 164736 [20:26:55]1012 (4) - 13.07.2024 14:05 [20:26:55]1206 (1) - 0 [20:26:55]OFD Sender: Remove packet 164736 [20:26:55]ProducePacketName [20:26:55]name=ofd_packets/00164736 [20:26:55]NVStorageDeleteData [20:26:55]Write to MH i2c: 01 00 00 33 0E 41 [20:26:55]Write i2c OK [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: 01 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: 01 07 00 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 FF 0C 53 [20:26:55]RasterBufferAndPrint [20:26:55]line [20:26:55]line [20:26:55]line [20:26:55]line [20:26:55]line [20:26:55]written 0, free lines is 3333 [20:26:55]MH_Cut [20:26:55]Write to MH i2c: D1 01 00 3A 0E 01 1A [20:26:55]Write i2c OK [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: D1 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: D1 01 00 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: D1 01 00 3A 0E 00 19 [20:26:55]Write to MH i2c: 01 00 00 3B 0E 49 [20:26:55]Write i2c OK [20:26:55]MH_I2C_Read... [20:26:55]OFD Sender: No OFD packet to send [20:26:56]*** Cut start [20:26:56]*** Partial cut [20:26:56]*** CUTSNS_PIN = 1 [20:26:56]*** CUTSNS_PIN = 0 [20:26:56]*** Brake cut motor [20:26:56]Read from MH i2c: 01 [20:26:56]MH_I2C_Read... [20:26:56]*** Stop cut motor [20:26:56]*** Cut end [20:26:56]Read from MH i2c: 01 07 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [20:26:56]process_action close_receipt done [20:26:56]requested_data is exist [20:26:56]produce_requested_data [20:26:56]requested_item fm.sn is exist - process it [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 11 00 00 [20:26:56]Write to MH i2c: E2 08 00 3C 0E 80 11 00 00 00 00 00 00 C4 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 3C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [20:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:56]wFMCommunicate OK [20:26:56]requested_item fd.num is exist - process it [20:26:56]SAM_PROTO_GetFieldsCounters [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 00 00 [20:26:56]Write to MH i2c: E2 08 00 3D 0E 80 13 00 00 00 00 00 00 C7 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 62 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 62 00 3D 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [20:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetFieldsCounters done [20:26:56]requested_item shift.num is exist - process it [20:26:56]requested_item shift.opened is exist - process it [20:26:56]req_shift_opened [20:26:56]FM_GetShiftState [20:26:56]SAM_PROTO_GetShiftState [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 13 01 00 [20:26:56]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AA [20:26:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_GetShiftState done [20:26:56]FM_GetShiftState done [20:26:56]req_shift_opened done [20:26:56]requested_item shift.open_date is exist - process it [20:26:56]req_shift_open_date [20:26:56]req_shift_open_date done [20:26:56]produce_requested_data done [20:26:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164736,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:26:56]process_action_free close_receipt [20:26:56]json_value_free [20:26:56]json_value_free done [20:26:56]process_json_proto returns [20:26:56]Send response to host [20:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164736,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:26:56]free response buf [20:26:56]execute_script done [20:26:56]execute_script returns [20:26:56]free content buf [20:26:56]Sock 9.Close socket [20:26:56]Sock 9.Thread stoped [20:26:57]accept exits with 7 [20:26:57]New connection [20:26:57]New thread 3067104612 created [20:26:57]Thread 3067247972 joined [20:26:57]Waiting for new connection... [20:26:57] Sock 7.Parse request [20:26:57]Sock 7.Check first char [20:26:57]Sock 7.First char is OK [20:26:57]request: POST /json_proto HTTP/1.0 [20:26:57]Method: POST [20:26:57]URL: /json_proto [20:26:57]Method is POST - this is cgi request [20:26:57]url: /json_proto [20:26:57]query_string will be loaded in cgi processing [20:26:57]execute_cgi json_proto POST (null) [20:26:57]execute_cgi path=json_proto method=POST [20:26:57]POST find Content-Length [20:26:57]Host: 172.17.56.4:8080 [20:26:57]Content-Length: 677 [20:26:57]Content-Type: application/json [20:26:57] [20:26:57]POST finish read [20:26:57]Found Content-Length = 677 [20:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:57]execute_script... [20:26:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:57]POST & json_proto [20:26:57]process_json_proto [20:26:57]json parsed OK: [20:26:57]protocol is kg_v1.0 [20:26:57]action value=close_receipt [20:26:57]process_action close_receipt [20:26:57]cmd_close_receipt [20:26:57]MH_GetDate [20:26:57]Write to MH i2c: F0 00 00 3F 0E 3C [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: F0 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: F0 09 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: F0 09 00 3F 0E 00 12 E3 92 66 C9 DC B2 64 ED [20:26:57]GetLastDocTimeStamp 1720902413 [20:26:57]current date 1720902418 [20:26:57]FM_GetShiftState [20:26:57]SAM_PROTO_GetShiftState [20:26:57]wFMCommunicate request_size=4 [20:26:57]MH_SAM_APDU [20:26:57]CAPDU: 80 13 01 00 [20:26:57]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:57]Read from MH i2c: E2 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 0E 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [20:26:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:26:57]wFMCommunicate OK [20:26:57]SAM_PROTO_GetShiftState done [20:26:57]FM_GetShiftState done [20:26:57]opened in 1720831249 [20:26:57]opened+sec_in_day 1720917649 [20:26:57]quantity*price = 50008 [20:26:57]sum+1 = 50009 [20:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 297 13.07.2024 20:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164737 ФПД: 146261282799361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202658&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164737&fm=146261282799361&tin=02508201610067®Number=0000000000090829&sum=50000 [20:26:58]StoreToDocumentArchive [20:26:58]shift 446 fd 164737 [20:26:58]save to /storage/0446/doc_00164737 [20:26:58]save last doc name /storage/0446/doc_00164737 to /storage/kkm_last_doc_name [20:26:58]save OK [20:26:58]Clear old archive folders... [20:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:58]tlvbuf is 01E80E90 [20:26:58]SAM_PROTO_ClearQueue [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 09 00 00 [20:26:58]Write to MH i2c: E2 08 00 4D 0E 80 09 00 00 00 00 00 00 CD [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]SAM_PROTO_ClearQueue done [20:26:58]KKMCreateOFDPacket [20:26:58]OFDProtocolAddRootSTLVToBuf [20:26:58]FM_MakeSignedData [20:26:58]FM_MakeSignedData [20:26:58]SAM_PROTO_SignData [20:26:58]wFMCommunicate request_size=4 [20:26:58]MH_SAM_APDU [20:26:58]CAPDU: 80 0D 01 02 [20:26:58]Write to MH i2c: E2 08 00 4E 0E 80 0D 01 02 00 00 00 00 D5 [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:58]Read from MH i2c: E2 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 [20:26:58]MH_I2C_Read... [20:26:58]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [20:26:58]RAPDU: 90 00 [20:26:58]wFMCommunicate OK [20:26:58]wFMCommunicate request_size=255 [20:26:58]MH_SAM_APDU [20:26: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 29 01 00 00 F4 03 04 00 12 E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 83 02 00 35 04 06 00 85 [20:26:58]Write to MH i2c: E2 02 01 4F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 29 01 00 00 F4 03 04 00 12 E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 83 02 00 35 04 06 00 85 00 00 AF [20:26:58]Write i2c OK [20:26:58]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 03 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [20:26:59]RAPDU: 90 00 [20:26:59]wFMCommunicate OK [20:26:59]wFMCommunicate request_size=10 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 0D 02 02 05 06 1B CE 3F 01 [20:26:59]Write to MH i2c: E2 0D 00 50 0E 80 0D 02 02 05 00 06 1B CE 3F 01 00 00 11 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 03 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [20:26:59]RAPDU: 90 00 [20:26:59]wFMCommunicate OK [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 0D 03 02 [20:26:59]Write to MH i2c: E2 08 00 51 0E 80 0D 03 02 00 00 00 00 DA [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0B 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0B 00 51 0E 00 0B 88 B8 90 4A FF F1 19 90 00 09 [20:26:59]RAPDU: 0B 88 B8 90 4A FF F1 19 90 00 [20:26:59]wFMCommunicate OK [20:26:59]SAM_PROTO_SignData done [20:26:59]FM_MakeSignedData done [20:26:59]CreateOFDProtocolMessage [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 11 00 00 [20:26:59]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [20:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:59]wFMCommunicate OK [20:26:59]CreateOFDProtocolMessage done [20:26:59]OFDSenderStorePacket 164737 [20:26:59]StoreOFDPacket docnum=164737 [20:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 40 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 29 01 00 00 F4 03 04 00 12 E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 83 02 00 35 04 06 00 85 06 1B CE 3F 01 0B 88 B8 90 4A FF F1 19 [20:26:59]CheckFolder [20:26:59]dirname=/storage/ofd_packets [20:26:59]CheckFolder done [20:26:59]ProducePacketName [20:26:59]name=ofd_packets/00164737 [20:26:59]NVStorageSaveData ofd_packets/00164737 [20:26:59]File name is /storage/ofd_packets/00164737 [20:26:59]Write 301 bytes [20:26:59]NVStorageSaveData done [20:26:59]OFDSenderStorePacket done [20:26:59]KKMCreateOFDPacket done [20:26:59]NVStorageSaveData kkm_last_timestamp [20:26:59]File name is /storage/kkm_last_timestamp [20:26:59]Write 4 bytes [20:26:59]NVStorageSaveData done [20:26:59]ExternCall_PrintAddStr [20:26:59]wPrintStart [20:26:59]Write to MH i2c: 01 00 00 53 0E 61 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [20:26:59]RasterBufferAndPrint [20:26:59]line Счет N : (1)458830 [20:26:59]line ИНН: 02508201610067 [20:26:59]line Контрольно-Кассовый Чек [20:26:59]line ПРОДАЖА [20:26:59]line ТРК (МРК, ГНК) : 22 [20:26:59]line Товар: 2710124130 [20:26:59]line Аи-92-К-5 [20:26:59]line 7.600 * 65.80 [20:26:59]line = 500.08 [20:26:59]line НДС 12% НСП 1% [20:26:59]line > о реализуемом товаре [20:26:59]line ОКРУГЛЕНИЕ: -0.08 [20:26:59]line ИТОГО: 500.00 [20:26:59]line Внесено: 500.00 [20:26:59]line СДАЧА: 0.00 [20:26:59]line НСП 1% : 4.42 [20:26:59]line НДС 12% : 53.11 [20:26:59]line Наличными: 500.00 [20:26:59]line Безнал.: 0.00 [20:26:59]line Место: АЗС № 72 "Партнер Нефть" [20:26:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:26:59]line СНО: Общий режим [20:26:59]line Чек 297 13.07.2024 20:26 [20:26:59]line Смена: 446 ФФД: 1.0 [20:26:59]line ЗНМ: 0300000160 [20:26:59]line РНМ: 0000000000090829 [20:26:59]line Версия ККМ: 001 [20:26:59]line ФМ: 0000000000874718 [20:26:59]line ФД: 164737 [20:26:59]line ФПД: 146261282799361 [20:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202658&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164737&fm=146261282799361&tin=02508201610067®Number=0000000000090829&sum=50000 [20:26:59]written 0, free lines is 4095 [20:26:59]OFD Sender: Processing packet 164737 [packets to send 104, broken 103] [20:26:59]ProducePacketName [20:26:59]name=ofd_packets/00164737 [20:26:59]OFD Sender: To server: pG, [20:26:59]CommunicateWithHost lk.salyk.kg:30040 [20:26:59]ConnectInit lk.salyk.kg [20:26:59]Connected sock=10 [20:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 40 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 29 01 00 00 F4 03 04 00 12 E3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 83 02 00 35 04 06 00 85 06 1B CE 3F 01 0B 88 B8 90 4A FF F1 19 [20:27:00]Write to MH i2c: 01 00 00 7D 0E 8B [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: 01 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: 01 07 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 08 0D A7 [20:27:00]RasterBufferAndPrint [20:27:00]line [20:27:00]line [20:27:00]line [20:27:00]line [20:27:00]line [20:27:00]written 0, free lines is 3351 [20:27:00]MH_Cut [20:27:00]Write to MH i2c: D1 01 00 84 0E 01 64 [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: D1 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: D1 01 00 [20:27:00]MH_I2C_Read... [20:27:00]Read from MH i2c: D1 01 00 84 0E 00 63 [20:27:00]Write to MH i2c: 01 00 00 85 0E 93 [20:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 BD 47 00 DD 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 83 02 00 F4 03 04 00 A2 89 92 66 B6 04 01 00 00 C0 B0 D6 67 5A 3F 96 A2 [20:27:00]CommunicateWithHost err = 0 [20:27:00]CheckOFDResponse [20:27:00]1017 (14) - 77093643461234 [20:27:00]1041 (16) - 0000000000874718 [20:27:00]1040 (4) - 164737 [20:27:00]1012 (4) - 13.07.2024 14:05 [20:27:00]1206 (1) - 0 [20:27:00]OFD Sender: Remove packet 164737 [20:27:00]ProducePacketName [20:27:00]name=ofd_packets/00164737 [20:27:00]NVStorageDeleteData [20:27:00]Write i2c OK [20:27:00]MH_I2C_Read... [20:27:00]OFD Sender: No OFD packet to send [20:27:00]*** Cut start [20:27:00]*** Partial cut [20:27:00]*** CUTSNS_PIN = 1 [20:27:00]*** CUTSNS_PIN = 0 [20:27:01]*** Brake cut motor [20:27:01]Read from MH i2c: 01 [20:27:01]MH_I2C_Read... [20:27:01]*** Stop cut motor [20:27:01]*** Cut end [20:27:01]Read from MH i2c: 01 07 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [20:27:01]process_action close_receipt done [20:27:01]requested_data is exist [20:27:01]produce_requested_data [20:27:01]requested_item fm.sn is exist - process it [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 11 00 00 [20:27:01]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 17 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [20:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:27:01]wFMCommunicate OK [20:27:01]requested_item fd.num is exist - process it [20:27:01]SAM_PROTO_GetFieldsCounters [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 13 00 00 [20:27:01]Write to MH i2c: E2 08 00 87 0E 80 13 00 00 00 00 00 00 11 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 62 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 62 00 87 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [20:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:01]wFMCommunicate OK [20:27:01]SAM_PROTO_GetFieldsCounters done [20:27:01]requested_item shift.num is exist - process it [20:27:01]requested_item shift.opened is exist - process it [20:27:01]req_shift_opened [20:27:01]FM_GetShiftState [20:27:01]SAM_PROTO_GetShiftState [20:27:01]wFMCommunicate request_size=4 [20:27:01]MH_SAM_APDU [20:27:01]CAPDU: 80 13 01 00 [20:27:01]Write to MH i2c: E2 08 00 88 0E 80 13 01 00 00 00 00 00 13 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:01]Read from MH i2c: E2 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 0E 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: E2 0E 00 88 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F4 [20:27:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:27:01]wFMCommunicate OK [20:27:01]SAM_PROTO_GetShiftState done [20:27:01]FM_GetShiftState done [20:27:01]req_shift_opened done [20:27:01]requested_item shift.open_date is exist - process it [20:27:01]req_shift_open_date [20:27:01]req_shift_open_date done [20:27:01]produce_requested_data done [20:27:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164737,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:27:01]process_action_free close_receipt [20:27:01]json_value_free [20:27:01]json_value_free done [20:27:01]process_json_proto returns [20:27:01]Send response to host [20:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164737,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:27:01]free response buf [20:27:01]execute_script done [20:27:01]execute_script returns [20:27:01]free content buf [20:27:01]Sock 7.Close socket [20:27:01]Sock 7.Thread stoped [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:37]accept exits with 9 [20:32:37]New connection [20:32:37]New thread 3067247972 created [20:32:37]Thread 3067104612 joined [20:32:37]Waiting for new connection... [20:32:37] Sock 9.Parse request [20:32:37]Sock 9.Check first char [20:32:37]Sock 9.First char is OK [20:32:37]request: POST /json_proto HTTP/1.0 [20:32:37]Method: POST [20:32:37]URL: /json_proto [20:32:37]Method is POST - this is cgi request [20:32:37]url: /json_proto [20:32:37]query_string will be loaded in cgi processing [20:32:37]execute_cgi json_proto POST (null) [20:32:37]execute_cgi path=json_proto method=POST [20:32:37]POST find Content-Length [20:32:37]Host: 172.17.56.4:8080 [20:32:37]Content-Length: 677 [20:32:37]Content-Type: application/json [20:32:37] [20:32:37]POST finish read [20:32:37]Found Content-Length = 677 [20:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:37]execute_script... [20:32: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)458832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:37]POST & json_proto [20:32:37]process_json_proto [20:32:37]json parsed OK: [20:32:37]protocol is kg_v1.0 [20:32:37]action value=close_receipt [20:32:37]process_action close_receipt [20:32:37]cmd_close_receipt [20:32:37]MH_GetDate [20:32:37]Write to MH i2c: F0 00 00 89 0E 86 [20:32:37]Write i2c OK [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 09 00 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 09 00 89 0E 00 66 E4 92 66 C9 DC B2 64 8C [20:32:37]GetLastDocTimeStamp 1720902418 [20:32:37]current date 1720902758 [20:32:37]FM_GetShiftState [20:32:37]SAM_PROTO_GetShiftState [20:32:37]wFMCommunicate request_size=4 [20:32:37]MH_SAM_APDU [20:32:37]CAPDU: 80 13 01 00 [20:32:37]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [20:32:37]Write i2c OK [20:32:37]MH_I2C_Read... [20:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:37]Read from MH i2c: E2 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: E2 0E 00 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [20:32:37]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:32:37]wFMCommunicate OK [20:32:37]SAM_PROTO_GetShiftState done [20:32:37]FM_GetShiftState done [20:32:37]opened in 1720831249 [20:32:37]opened+sec_in_day 1720917649 [20:32:37]quantity*price = 50008 [20:32:37]sum+1 = 50009 [20:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 298 13.07.2024 20:32 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164738 ФПД: 251272835632903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164738&fm=251272835632903&tin=02508201610067®Number=0000000000090829&sum=50000 [20:32:39]StoreToDocumentArchive [20:32:39]shift 446 fd 164738 [20:32:39]save to /storage/0446/doc_00164738 [20:32:39]save last doc name /storage/0446/doc_00164738 to /storage/kkm_last_doc_name [20:32:39]save OK [20:32:39]Clear old archive folders... [20:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:39]tlvbuf is 01E98C30 [20:32:39]SAM_PROTO_ClearQueue [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 09 00 00 [20:32:39]Write to MH i2c: E2 08 00 97 0E 80 09 00 00 00 00 00 00 17 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]SAM_PROTO_ClearQueue done [20:32:39]KKMCreateOFDPacket [20:32:39]OFDProtocolAddRootSTLVToBuf [20:32:39]FM_MakeSignedData [20:32:39]FM_MakeSignedData [20:32:39]SAM_PROTO_SignData [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 01 02 [20:32:39]Write to MH i2c: E2 08 00 98 0E 80 0D 01 02 00 00 00 00 1F [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=255 [20:32:39]MH_SAM_APDU [20:32: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 01 00 00 F4 03 04 00 66 E4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 83 02 00 35 04 06 00 E4 [20:32:39]Write to MH i2c: E2 02 01 99 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 01 00 00 F4 03 04 00 66 E4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 83 02 00 35 04 06 00 E4 00 00 AF [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=10 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 02 02 05 88 04 1C 0F 07 [20:32:39]Write to MH i2c: E2 0D 00 9A 0E 80 0D 02 02 05 00 88 04 1C 0F 07 00 00 EA [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 03 02 [20:32:39]Write to MH i2c: E2 08 00 9B 0E 80 0D 03 02 00 00 00 00 24 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0B 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0B 00 9B 0E 00 C7 FB 24 94 00 0D DB 3F 90 00 C6 [20:32:39]RAPDU: C7 FB 24 94 00 0D DB 3F 90 00 [20:32:39]wFMCommunicate OK [20:32:39]SAM_PROTO_SignData done [20:32:39]FM_MakeSignedData done [20:32:39]CreateOFDProtocolMessage [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 11 00 00 [20:32:39]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 17 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [20:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:32:39]wFMCommunicate OK [20:32:39]CreateOFDProtocolMessage done [20:32:39]OFDSenderStorePacket 164738 [20:32:39]StoreOFDPacket docnum=164738 [20:32:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 7C 07 01 F5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 01 00 00 F4 03 04 00 66 E4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 83 02 00 35 04 06 00 E4 88 04 1C 0F 07 C7 FB 24 94 00 0D DB 3F [20:32:39]CheckFolder [20:32:39]dirname=/storage/ofd_packets [20:32:39]CheckFolder done [20:32:39]ProducePacketName [20:32:39]name=ofd_packets/00164738 [20:32:39]NVStorageSaveData ofd_packets/00164738 [20:32:39]File name is /storage/ofd_packets/00164738 [20:32:39]Write 301 bytes [20:32:39]NVStorageSaveData done [20:32:39]OFDSenderStorePacket done [20:32:39]KKMCreateOFDPacket done [20:32:39]NVStorageSaveData kkm_last_timestamp [20:32:39]File name is /storage/kkm_last_timestamp [20:32:39]Write 4 bytes [20:32:39]NVStorageSaveData done [20:32:39]OFD Sender: Processing packet 164738 [packets to send 104, broken 103] [20:32:39]ProducePacketName [20:32:39]name=ofd_packets/00164738 [20:32:39]OFD Sender: To server: pG, [20:32:39]CommunicateWithHost lk.salyk.kg:30040 [20:32:39]ConnectInit lk.salyk.kg [20:32:39]ExternCall_PrintAddStr [20:32:39]wPrintStart [20:32:39]Write to MH i2c: 01 00 00 9D 0E AB [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 07 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 FF 0F C0 [20:32:39]RasterBufferAndPrint [20:32:39]line Счет N : (1)458832 [20:32:39]line ИНН: 02508201610067 [20:32:39]line Контрольно-Кассовый Чек [20:32:39]line ПРОДАЖА [20:32:39]line ТРК (МРК, ГНК) : 22 [20:32:39]line Товар: 2710124130 [20:32:39]line Аи-92-К-5 [20:32:39]line 7.600 * 65.80 [20:32:39]line = 500.08 [20:32:39]line НДС 12% НСП 1% [20:32:39]line > о реализуемом товаре [20:32:39]line ОКРУГЛЕНИЕ: -0.08 [20:32:39]line ИТОГО: 500.00 [20:32:39]line Внесено: 500.00 [20:32:39]line СДАЧА: 0.00 [20:32:39]line НСП 1% : 4.42 [20:32:39]line НДС 12% : 53.11 [20:32:39]line Наличными: 500.00 [20:32:39]line Безнал.: 0.00 [20:32:39]line Место: АЗС № 72 "Партнер Нефть" [20:32:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:32:39]line СНО: Общий режим [20:32:39]line Чек 298 13.07.2024 20:32 [20:32:39]line Смена: 446 ФФД: 1.0 [20:32:39]line ЗНМ: 0300000160 [20:32:39]line РНМ: 0000000000090829 [20:32:39]line Версия ККМ: 001 [20:32:39]line ФМ: 0000000000874718 [20:32:39]line ФД: 164738 [20:32:39]line ФПД: 251272835632903 [20:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164738&fm=251272835632903&tin=02508201610067®Number=0000000000090829&sum=50000 [20:32:39]Connected sock=11 [20:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 7C 07 01 F5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2A 01 00 00 F4 03 04 00 66 E4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 83 02 00 35 04 06 00 E4 88 04 1C 0F 07 C7 FB 24 94 00 0D DB 3F [20:32:40]written 0, free lines is 4095 [20:32:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A 25 47 00 19 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 34 37 31 38 10 04 04 00 82 83 02 00 F4 03 04 00 F6 8A 92 66 B6 04 01 00 00 A4 0B 39 98 11 E9 60 F5 [20:32:40]CommunicateWithHost err = 0 [20:32:40]CheckOFDResponse [20:32:40]1017 (14) - 77093643461234 [20:32:40]1041 (16) - 0000000000874718 [20:32:40]1040 (4) - 164738 [20:32:40]1012 (4) - 13.07.2024 14:11 [20:32:40]1206 (1) - 0 [20:32:40]OFD Sender: Remove packet 164738 [20:32:40]ProducePacketName [20:32:40]name=ofd_packets/00164738 [20:32:40]NVStorageDeleteData [20:32:40]Write to MH i2c: 01 00 00 C7 0E D5 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 FE 0C E6 [20:32:40]RasterBufferAndPrint [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]written 0, free lines is 3332 [20:32:40]MH_Cut [20:32:40]Write to MH i2c: D1 01 00 CE 0E 01 AE [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 01 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 01 00 CE 0E 00 AD [20:32:40]Write to MH i2c: 01 00 00 CF 0E DD [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]OFD Sender: No OFD packet to send [20:32:41]*** Cut start [20:32:41]*** Partial cut [20:32:41]*** CUTSNS_PIN = 1 [20:32:41]*** CUTSNS_PIN = 0 [20:32:41]*** Brake cut motor [20:32:41]Read from MH i2c: 01 [20:32:41]MH_I2C_Read... [20:32:41]*** Stop cut motor [20:32:41]*** Cut end [20:32:41]Read from MH i2c: 01 07 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [20:32:41]process_action close_receipt done [20:32:41]requested_data is exist [20:32:41]produce_requested_data [20:32:41]requested_item fm.sn is exist - process it [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 11 00 00 [20:32:41]Write to MH i2c: E2 08 00 D0 0E 80 11 00 00 00 00 00 00 58 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 17 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 17 00 D0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [20:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:32:41]wFMCommunicate OK [20:32:41]requested_item fd.num is exist - process it [20:32:41]SAM_PROTO_GetFieldsCounters [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 13 00 00 [20:32:41]Write to MH i2c: E2 08 00 D1 0E 80 13 00 00 00 00 00 00 5B [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 62 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 62 00 D1 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:41]wFMCommunicate OK [20:32:41]SAM_PROTO_GetFieldsCounters done [20:32:41]requested_item shift.num is exist - process it [20:32:41]requested_item shift.opened is exist - process it [20:32:41]req_shift_opened [20:32:41]FM_GetShiftState [20:32:41]SAM_PROTO_GetShiftState [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 13 01 00 [20:32:41]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0E 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3E [20:32:41]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:32:41]wFMCommunicate OK [20:32:41]SAM_PROTO_GetShiftState done [20:32:41]FM_GetShiftState done [20:32:41]req_shift_opened done [20:32:41]requested_item shift.open_date is exist - process it [20:32:41]req_shift_open_date [20:32:41]req_shift_open_date done [20:32:41]produce_requested_data done [20:32:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164738,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:32:41]process_action_free close_receipt [20:32:41]json_value_free [20:32:41]json_value_free done [20:32:41]process_json_proto returns [20:32:41]Send response to host [20:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164738,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:32:41]free response buf [20:32:41]execute_script done [20:32:41]execute_script returns [20:32:41]free content buf [20:32:41]Sock 9.Close socket [20:32:41]Sock 9.Thread stoped [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:51]accept exits with 7 [20:36:51]New connection [20:36:51]New thread 3067104612 created [20:36:51]Thread 3067247972 joined [20:36:51]Waiting for new connection... [20:36:51] Sock 7.Parse request [20:36:51]Sock 7.Check first char [20:36:51]Sock 7.First char is OK [20:36:51]request: POST /json_proto HTTP/1.0 [20:36:51]Method: POST [20:36:51]URL: /json_proto [20:36:51]Method is POST - this is cgi request [20:36:51]url: /json_proto [20:36:51]query_string will be loaded in cgi processing [20:36:51]execute_cgi json_proto POST (null) [20:36:51]execute_cgi path=json_proto method=POST [20:36:51]POST find Content-Length [20:36:51]Host: 172.17.56.4:8080 [20:36:51]Content-Length: 788 [20:36:51]Content-Type: application/json [20:36:51] [20:36:51]POST finish read [20:36:51]Found Content-Length = 788 [20:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 1.000, "sum" : 65.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:51]execute_script... [20:36: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)458833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 1.000, "sum" : 65.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:51]POST & json_proto [20:36:51]process_json_proto [20:36:51]json parsed OK: [20:36:51]protocol is kg_v1.0 [20:36:51]action value=close_receipt [20:36:51]process_action close_receipt [20:36:51]cmd_close_receipt [20:36:51]MH_GetDate [20:36:51]Write to MH i2c: F0 00 00 D3 0E D0 [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: F0 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: F0 09 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: F0 09 00 D3 0E 00 64 E5 92 66 C9 DC B2 64 D5 [20:36:51]GetLastDocTimeStamp 1720902758 [20:36:51]current date 1720903012 [20:36:51]FM_GetShiftState [20:36:51]SAM_PROTO_GetShiftState [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 13 01 00 [20:36:51]Write to MH i2c: E2 08 00 D4 0E 80 13 01 00 00 00 00 00 5F [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 0E 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 0E 00 D4 0E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 40 [20:36:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:36:51]wFMCommunicate OK [20:36:51]SAM_PROTO_GetShiftState done [20:36:51]FM_GetShiftState done [20:36:51]opened in 1720831249 [20:36:51]opened+sec_in_day 1720917649 [20:36:51]quantity*price = 6522 [20:36:51]sum+1 = 6523 [20:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.22 НСП 1% : 0.58 НДС 12% : 6.93 Наличными: 0.00 Безнал.: 65.22 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 299 13.07.2024 20:36 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164739 ФПД: 153029433474902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164739&fm=153029433474902&tin=02508201610067®Number=0000000000090829&sum=6522 [20:36:52]StoreToDocumentArchive [20:36:52]shift 446 fd 164739 [20:36:52]save to /storage/0446/doc_00164739 [20:36:52]save last doc name /storage/0446/doc_00164739 to /storage/kkm_last_doc_name [20:36:52]save OK [20:36:52]Clear old archive folders... [20:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:52]tlvbuf is 01E22840 [20:36:52]SAM_PROTO_ClearQueue [20:36:52]wFMCommunicate request_size=4 [20:36:52]MH_SAM_APDU [20:36:52]CAPDU: 80 09 00 00 [20:36:52]Write to MH i2c: E2 08 00 E1 0E 80 09 00 00 00 00 00 00 61 [20:36:52]Write i2c OK [20:36:52]MH_I2C_Read... [20:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:52]Read from MH i2c: E2 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 03 00 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [20:36:52]RAPDU: 90 00 [20:36:52]wFMCommunicate OK [20:36:52]SAM_PROTO_ClearQueue done [20:36:52]KKMCreateOFDPacket [20:36:52]OFDProtocolAddRootSTLVToBuf [20:36:52]FM_MakeSignedData [20:36:52]FM_MakeSignedData [20:36:52]SAM_PROTO_SignData [20:36:52]wFMCommunicate request_size=4 [20:36:52]MH_SAM_APDU [20:36:52]CAPDU: 80 0D 01 02 [20:36:52]Write to MH i2c: E2 08 00 E2 0E 80 0D 01 02 00 00 00 00 69 [20:36:52]Write i2c OK [20:36:52]MH_I2C_Read... [20:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:52]Read from MH i2c: E2 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 03 00 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [20:36:52]RAPDU: 90 00 [20:36:52]wFMCommunicate OK [20:36:52]wFMCommunicate request_size=255 [20:36:52]MH_SAM_APDU [20:36: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 E8 03 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 64 E5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 83 02 00 35 04 06 00 8B [20:36:52]Write to MH i2c: E2 02 01 E3 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 64 E5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 83 02 00 35 04 06 00 8B 00 00 60 [20:36:52]Write i2c OK [20:36:52]MH_I2C_Read... [20:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:53]Read from MH i2c: E2 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 03 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [20:36:53]RAPDU: 90 00 [20:36:53]wFMCommunicate OK [20:36:53]wFMCommunicate request_size=10 [20:36:53]MH_SAM_APDU [20:36:53]CAPDU: 80 0D 02 02 05 2D F1 05 BF 56 [20:36:53]Write to MH i2c: E2 0D 00 E4 0E 80 0D 02 02 05 00 2D F1 05 BF 56 00 00 AE [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:53]Read from MH i2c: E2 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 03 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [20:36:53]RAPDU: 90 00 [20:36:53]wFMCommunicate OK [20:36:53]wFMCommunicate request_size=4 [20:36:53]MH_SAM_APDU [20:36:53]CAPDU: 80 0D 03 02 [20:36:53]Write to MH i2c: E2 08 00 E5 0E 80 0D 03 02 00 00 00 00 6E [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:53]Read from MH i2c: E2 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 0B 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 0B 00 E5 0E 00 87 B1 AB 74 00 60 34 A0 90 00 FA [20:36:53]RAPDU: 87 B1 AB 74 00 60 34 A0 90 00 [20:36:53]wFMCommunicate OK [20:36:53]SAM_PROTO_SignData done [20:36:53]FM_MakeSignedData done [20:36:53]CreateOFDProtocolMessage [20:36:53]wFMCommunicate request_size=4 [20:36:53]MH_SAM_APDU [20:36:53]CAPDU: 80 11 00 00 [20:36:53]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:53]Read from MH i2c: E2 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 17 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [20:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:36:53]wFMCommunicate OK [20:36:53]CreateOFDProtocolMessage done [20:36:53]OFDSenderStorePacket 164739 [20:36:53]StoreOFDPacket docnum=164739 [20:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 5D 07 01 93 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 E8 03 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 64 E5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 83 02 00 35 04 06 00 8B 2D F1 05 BF 56 87 B1 AB 74 00 60 34 A0 [20:36:53]CheckFolder [20:36:53]dirname=/storage/ofd_packets [20:36:53]CheckFolder done [20:36:53]ProducePacketName [20:36:53]name=ofd_packets/00164739 [20:36:53]NVStorageSaveData ofd_packets/00164739 [20:36:53]File name is /storage/ofd_packets/00164739 [20:36:53]Write 301 bytes [20:36:53]NVStorageSaveData done [20:36:53]OFDSenderStorePacket done [20:36:53]KKMCreateOFDPacket done [20:36:53]NVStorageSaveData kkm_last_timestamp [20:36:53]File name is /storage/kkm_last_timestamp [20:36:53]Write 4 bytes [20:36:53]NVStorageSaveData done [20:36:53]ExternCall_PrintAddStr [20:36:53]wPrintStart [20:36:53]Write to MH i2c: 01 00 00 E7 0E F5 [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 07 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 FF 0F 0A [20:36:53]RasterBufferAndPrint [20:36:53]line Счет N : (1)458833 [20:36:53]line ИНН: 02508201610067 [20:36:53]line Контрольно-Кассовый Чек [20:36:53]line ПРОДАЖА [20:36:53]line ТРК (МРК, ГНК) : 12 [20:36:53]line Товар: 2710124130 [20:36:53]line Аи-92-К-5 [20:36:53]line 1.000 * 65.22 [20:36:53]line = 65.22 [20:36:53]line НДС 12% НСП 1% [20:36:53]line > о реализуемом товаре [20:36:53]line ИТОГО: 65.22 [20:36:53]line НСП 1% : 0.58 [20:36:53]line НДС 12% : 6.93 [20:36:53]line Наличными: 0.00 [20:36:53]line Безнал.: 65.22 [20:36:53]line Место: АЗС № 72 "Партнер Нефть" [20:36:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:36:53]line СНО: Общий режим [20:36:53]line Чек 299 13.07.2024 20:36 [20:36:53]line Смена: 446 ФФД: 1.0 [20:36:53]line ЗНМ: 0300000160 [20:36:53]line РНМ: 0000000000090829 [20:36:53]line Версия ККМ: 001 [20:36:53]line Платежная система: KICB Банк [20:36:53]line ФМ: 0000000000874718 [20:36:53]line ФД: 164739 [20:36:53]line ФПД: 153029433474902 [20:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164739&fm=153029433474902&tin=02508201610067®Number=0000000000090829&sum=6522 [20:36:53]written 0, free lines is 4095 [20:36:53]OFD Sender: Processing packet 164739 [packets to send 104, broken 103] [20:36:53]ProducePacketName [20:36:53]name=ofd_packets/00164739 [20:36:53]OFD Sender: To server: pG, [20:36:53]CommunicateWithHost lk.salyk.kg:30040 [20:36:53]ConnectInit lk.salyk.kg [20:36:53]Connected sock=9 [20:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 5D 07 01 93 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 E8 03 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 64 E5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 83 02 00 35 04 06 00 8B 2D F1 05 BF 56 87 B1 AB 74 00 60 34 A0 [20:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B 0F 47 00 01 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 34 37 31 38 10 04 04 00 83 83 02 00 F4 03 04 00 F4 8B 92 66 B6 04 01 00 00 89 AF 11 BC 6A 35 43 CD [20:36:53]CommunicateWithHost err = 0 [20:36:53]CheckOFDResponse [20:36:53]1017 (14) - 77093643461234 [20:36:53]1041 (16) - 0000000000874718 [20:36:53]1040 (4) - 164739 [20:36:53]1012 (4) - 13.07.2024 14:15 [20:36:53]1206 (1) - 0 [20:36:53]OFD Sender: Remove packet 164739 [20:36:53]ProducePacketName [20:36:53]name=ofd_packets/00164739 [20:36:53]NVStorageDeleteData [20:36:53]Write to MH i2c: 01 00 00 10 0F 1F [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 07 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 14 0D 47 [20:36:53]RasterBufferAndPrint [20:36:53]line [20:36:53]line [20:36:53]line [20:36:53]line [20:36:53]line [20:36:53]written 0, free lines is 3354 [20:36:53]MH_Cut [20:36:53]Write to MH i2c: D1 01 00 17 0F 01 F8 [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: D1 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: D1 01 00 [20:36:53]MH_I2C_Read... [20:36:53]Read from MH i2c: D1 01 00 17 0F 00 F7 [20:36:53]Write to MH i2c: 01 00 00 18 0F 27 [20:36:53]Write i2c OK [20:36:53]MH_I2C_Read... [20:36:54]OFD Sender: No OFD packet to send [20:36:54]*** Cut start [20:36:54]*** Partial cut [20:36:54]*** CUTSNS_PIN = 1 [20:36:54]*** CUTSNS_PIN = 0 [20:36:54]*** Brake cut motor [20:36:55]Read from MH i2c: 01 [20:36:55]MH_I2C_Read... [20:36:55]*** Stop cut motor [20:36:55]*** Cut end [20:36:55]Read from MH i2c: 01 07 00 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [20:36:55]process_action close_receipt done [20:36:55]requested_data is exist [20:36:55]produce_requested_data [20:36:55]requested_item fm.sn is exist - process it [20:36:55]wFMCommunicate request_size=4 [20:36:55]MH_SAM_APDU [20:36:55]CAPDU: 80 11 00 00 [20:36:55]Write to MH i2c: E2 08 00 19 0F 80 11 00 00 00 00 00 00 A2 [20:36:55]Write i2c OK [20:36:55]MH_I2C_Read... [20:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:55]Read from MH i2c: E2 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 17 00 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 17 00 19 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [20:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:36:55]wFMCommunicate OK [20:36:55]requested_item fd.num is exist - process it [20:36:55]SAM_PROTO_GetFieldsCounters [20:36:55]wFMCommunicate request_size=4 [20:36:55]MH_SAM_APDU [20:36:55]CAPDU: 80 13 00 00 [20:36:55]Write to MH i2c: E2 08 00 1A 0F 80 13 00 00 00 00 00 00 A5 [20:36:55]Write i2c OK [20:36:55]MH_I2C_Read... [20:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:55]Read from MH i2c: E2 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 62 00 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 62 00 1A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [20:36: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:55]wFMCommunicate OK [20:36:55]SAM_PROTO_GetFieldsCounters done [20:36:55]requested_item shift.num is exist - process it [20:36:55]requested_item shift.opened is exist - process it [20:36:55]req_shift_opened [20:36:55]FM_GetShiftState [20:36:55]SAM_PROTO_GetShiftState [20:36:55]wFMCommunicate request_size=4 [20:36:55]MH_SAM_APDU [20:36:55]CAPDU: 80 13 01 00 [20:36:55]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [20:36:55]Write i2c OK [20:36:55]MH_I2C_Read... [20:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:55]Read from MH i2c: E2 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 0E 00 [20:36:55]MH_I2C_Read... [20:36:55]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 88 [20:36:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:36:55]wFMCommunicate OK [20:36:55]SAM_PROTO_GetShiftState done [20:36:55]FM_GetShiftState done [20:36:55]req_shift_opened done [20:36:55]requested_item shift.open_date is exist - process it [20:36:55]req_shift_open_date [20:36:55]req_shift_open_date done [20:36:55]produce_requested_data done [20:36:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164739,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:36:55]process_action_free close_receipt [20:36:55]json_value_free [20:36:55]json_value_free done [20:36:55]process_json_proto returns [20:36:55]Send response to host [20:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164739,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:36:55]free response buf [20:36:55]execute_script done [20:36:55]execute_script returns [20:36:55]free content buf [20:36:55]Sock 7.Close socket [20:36:55]Sock 7.Thread stoped [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:39]accept exits with 10 [20:54:39]New connection [20:54:39]New thread 3067247972 created [20:54:39]Thread 3067104612 joined [20:54:39]Waiting for new connection... [20:54:39] Sock 10.Parse request [20:54:39]Sock 10.Check first char [20:54:39]Sock 10.First char is OK [20:54:39]request: POST /json_proto HTTP/1.0 [20:54:39]Method: POST [20:54:39]URL: /json_proto [20:54:39]Method is POST - this is cgi request [20:54:39]url: /json_proto [20:54:39]query_string will be loaded in cgi processing [20:54:39]execute_cgi json_proto POST (null) [20:54:39]execute_cgi path=json_proto method=POST [20:54:39]POST find Content-Length [20:54:39]Host: 172.17.56.4:8080 [20:54:39]Content-Length: 793 [20:54:39]Content-Type: application/json [20:54:39] [20:54:39]POST finish read [20:54:39]Found Content-Length = 793 [20:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:39]execute_script... [20:54: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)458834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:39]POST & json_proto [20:54:39]process_json_proto [20:54:39]json parsed OK: [20:54:39]protocol is kg_v1.0 [20:54:39]action value=close_receipt [20:54:39]process_action close_receipt [20:54:39]cmd_close_receipt [20:54:39]MH_GetDate [20:54:39]Write to MH i2c: F0 00 00 1C 0F 1A [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 09 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 09 00 1C 0F 00 90 E9 92 66 C9 DC B2 64 4F [20:54:39]GetLastDocTimeStamp 1720903012 [20:54:39]current date 1720904080 [20:54:39]FM_GetShiftState [20:54:39]SAM_PROTO_GetShiftState [20:54:39]wFMCommunicate request_size=4 [20:54:39]MH_SAM_APDU [20:54:39]CAPDU: 80 13 01 00 [20:54:39]Write to MH i2c: E2 08 00 1D 0F 80 13 01 00 00 00 00 00 A9 [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:39]Read from MH i2c: E2 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: E2 0E 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: E2 0E 00 1D 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8A [20:54:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:54:39]wFMCommunicate OK [20:54:39]SAM_PROTO_GetShiftState done [20:54:39]FM_GetShiftState done [20:54:39]opened in 1720831249 [20:54:39]opened+sec_in_day 1720917649 [20:54:39]quantity*price = 100047 [20:54:39]sum+1 = 100048 [20:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 300 13.07.2024 20:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164740 ФПД: 175444005355258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164740&fm=175444005355258&tin=02508201610067®Number=0000000000090829&sum=100047 [20:54:40]StoreToDocumentArchive [20:54:40]shift 446 fd 164740 [20:54:40]save to /storage/0446/doc_00164740 [20:54:40]save last doc name /storage/0446/doc_00164740 to /storage/kkm_last_doc_name [20:54:40]save OK [20:54:40]Clear old archive folders... [20:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:40]tlvbuf is 01E98930 [20:54:40]SAM_PROTO_ClearQueue [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 09 00 00 [20:54:40]Write to MH i2c: E2 08 00 2A 0F 80 09 00 00 00 00 00 00 AB [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [20:54:41]RAPDU: 90 00 [20:54:41]wFMCommunicate OK [20:54:41]SAM_PROTO_ClearQueue done [20:54:41]KKMCreateOFDPacket [20:54:41]OFDProtocolAddRootSTLVToBuf [20:54:41]FM_MakeSignedData [20:54:41]FM_MakeSignedData [20:54:41]SAM_PROTO_SignData [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 0D 01 02 [20:54:41]Write to MH i2c: E2 08 00 2B 0F 80 0D 01 02 00 00 00 00 B3 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [20:54:41]RAPDU: 90 00 [20:54:41]wFMCommunicate OK [20:54:41]wFMCommunicate request_size=255 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 90 E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 83 02 00 35 04 06 00 9F [20:54:41]Write to MH i2c: E2 02 01 2C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 90 E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 83 02 00 35 04 06 00 9F 00 00 A5 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [20:54:41]RAPDU: 90 00 [20:54:41]wFMCommunicate OK [20:54:41]wFMCommunicate request_size=10 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 0D 02 02 05 90 BD 9D FE FA [20:54:41]Write to MH i2c: E2 0D 00 2D 0F 80 0D 02 02 05 00 90 BD 9D FE FA 00 00 A2 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [20:54:41]RAPDU: 90 00 [20:54:41]wFMCommunicate OK [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 0D 03 02 [20:54:41]Write to MH i2c: E2 08 00 2E 0F 80 0D 03 02 00 00 00 00 B8 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0B 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0B 00 2E 0F 00 15 79 2A DF 95 C1 6A 94 90 00 A4 [20:54:41]RAPDU: 15 79 2A DF 95 C1 6A 94 90 00 [20:54:41]wFMCommunicate OK [20:54:41]SAM_PROTO_SignData done [20:54:41]FM_MakeSignedData done [20:54:41]CreateOFDProtocolMessage [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 11 00 00 [20:54:41]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 17 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [20:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:41]wFMCommunicate OK [20:54:41]CreateOFDProtocolMessage done [20:54:41]OFDSenderStorePacket 164740 [20:54:41]StoreOFDPacket docnum=164740 [20:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7C D5 07 01 9B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 90 E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 83 02 00 35 04 06 00 9F 90 BD 9D FE FA 15 79 2A DF 95 C1 6A 94 [20:54:41]CheckFolder [20:54:41]dirname=/storage/ofd_packets [20:54:41]CheckFolder done [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00164740 [20:54:41]NVStorageSaveData ofd_packets/00164740 [20:54:41]File name is /storage/ofd_packets/00164740 [20:54:41]Write 301 bytes [20:54:41]NVStorageSaveData done [20:54:41]OFDSenderStorePacket done [20:54:41]KKMCreateOFDPacket done [20:54:41]NVStorageSaveData kkm_last_timestamp [20:54:41]File name is /storage/kkm_last_timestamp [20:54:41]Write 4 bytes [20:54:41]NVStorageSaveData done [20:54:41]ExternCall_PrintAddStr [20:54:41]wPrintStart [20:54:41]Write to MH i2c: 01 00 00 30 0F 3F [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [20:54:41]RasterBufferAndPrint [20:54:41]line Счет N : (1)458834 [20:54:41]line ИНН: 02508201610067 [20:54:41]line Контрольно-Кассовый Чек [20:54:41]line ПРОДАЖА [20:54:41]line ТРК (МРК, ГНК) : 12 [20:54:41]line Товар: 2710124130 [20:54:41]line Аи-92-К-5 [20:54:41]line 15.340 * 65.22 [20:54:41]line = 1000.47 [20:54:41]line НДС 12% НСП 1% [20:54:41]line > о реализуемом товаре [20:54:41]line ИТОГО: 1000.47 [20:54:41]line НСП 1% : 8.85 [20:54:41]line НДС 12% : 106.24 [20:54:41]line Наличными: 0.00 [20:54:41]line Безнал.: 1000.47 [20:54:41]line Место: АЗС № 72 "Партнер Нефть" [20:54:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:54:41]line СНО: Общий режим [20:54:41]line Чек 300 13.07.2024 20:54 [20:54:41]line Смена: 446 ФФД: 1.0 [20:54:41]line ЗНМ: 0300000160 [20:54:41]line РНМ: 0000000000090829 [20:54:41]line Версия ККМ: 001 [20:54:41]line Платежная система: KICB Банк [20:54:41]line ФМ: 0000000000874718 [20:54:41]line ФД: 164740 [20:54:41]line ФПД: 175444005355258 [20:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164740&fm=175444005355258&tin=02508201610067®Number=0000000000090829&sum=100047 [20:54:41]written 0, free lines is 4095 [20:54:41]OFD Sender: Processing packet 164740 [packets to send 104, broken 103] [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00164740 [20:54:41]OFD Sender: To server: pG, [20:54:41]CommunicateWithHost lk.salyk.kg:30040 [20:54:41]ConnectInit lk.salyk.kg [20:54:41]Connected sock=9 [20:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7C D5 07 01 9B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 90 E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 83 02 00 35 04 06 00 9F 90 BD 9D FE FA 15 79 2A DF 95 C1 6A 94 [20:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8A BC 47 00 C4 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 34 37 31 38 10 04 04 00 84 83 02 00 F4 03 04 00 20 90 92 66 B6 04 01 00 00 F0 CE AB A5 2A A2 29 E2 [20:54:41]CommunicateWithHost err = 0 [20:54:41]CheckOFDResponse [20:54:41]1017 (14) - 77093643461234 [20:54:41]1041 (16) - 0000000000874718 [20:54:41]1040 (4) - 164740 [20:54:41]1012 (4) - 13.07.2024 14:33 [20:54:41]1206 (1) - 0 [20:54:41]OFD Sender: Remove packet 164740 [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00164740 [20:54:41]NVStorageDeleteData [20:54:41]Write to MH i2c: 01 00 00 59 0F 68 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 03 0D 7F [20:54:41]RasterBufferAndPrint [20:54:41]line [20:54:41]line [20:54:41]line [20:54:41]line [20:54:41]line [20:54:41]written 0, free lines is 3337 [20:54:41]MH_Cut [20:54:41]Write to MH i2c: D1 01 00 60 0F 01 41 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: D1 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: D1 01 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: D1 01 00 60 0F 00 40 [20:54:41]Write to MH i2c: 01 00 00 61 0F 70 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:42]OFD Sender: No OFD packet to send [20:54:42]*** Cut start [20:54:42]*** Partial cut [20:54:42]*** CUTSNS_PIN = 1 [20:54:42]*** CUTSNS_PIN = 0 [20:54:42]*** Brake cut motor [20:54:43]Read from MH i2c: 01 [20:54:43]MH_I2C_Read... [20:54:43]*** Stop cut motor [20:54:43]*** Cut end [20:54:43]Read from MH i2c: 01 07 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 FF 0F 85 [20:54:43]process_action close_receipt done [20:54:43]requested_data is exist [20:54:43]produce_requested_data [20:54:43]requested_item fm.sn is exist - process it [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 11 00 00 [20:54:43]Write to MH i2c: E2 08 00 62 0F 80 11 00 00 00 00 00 00 EB [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 62 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [20:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:43]wFMCommunicate OK [20:54:43]requested_item fd.num is exist - process it [20:54:43]SAM_PROTO_GetFieldsCounters [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 13 00 00 [20:54:43]Write to MH i2c: E2 08 00 63 0F 80 13 00 00 00 00 00 00 EE [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 62 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 62 00 63 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_GetFieldsCounters done [20:54:43]requested_item shift.num is exist - process it [20:54:43]requested_item shift.opened is exist - process it [20:54:43]req_shift_opened [20:54:43]FM_GetShiftState [20:54:43]SAM_PROTO_GetShiftState [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 13 01 00 [20:54:43]Write to MH i2c: E2 08 00 64 0F 80 13 01 00 00 00 00 00 F0 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0E 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0E 00 64 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D1 [20:54:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_GetShiftState done [20:54:43]FM_GetShiftState done [20:54:43]req_shift_opened done [20:54:43]requested_item shift.open_date is exist - process it [20:54:43]req_shift_open_date [20:54:43]req_shift_open_date done [20:54:43]produce_requested_data done [20:54:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164740,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:54:43]process_action_free close_receipt [20:54:43]json_value_free [20:54:43]json_value_free done [20:54:43]process_json_proto returns [20:54:43]Send response to host [20:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164740,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:54:43]free response buf [20:54:43]execute_script done [20:54:43]execute_script returns [20:54:43]free content buf [20:54:43]Sock 10.Close socket [20:54:43]Sock 10.Thread stoped [20:54:47]OFD Sender: No OFD packet to send [20:54:50]accept exits with 7 [20:54:50]New connection [20:54:50]New thread 3067104612 created [20:54:50]Thread 3067247972 joined [20:54:50]Waiting for new connection... [20:54:50] Sock 7.Parse request [20:54:50]Sock 7.Check first char [20:54:50]Sock 7.First char is OK [20:54:50]request: POST /json_proto HTTP/1.0 [20:54:50]Method: POST [20:54:50]URL: /json_proto [20:54:50]Method is POST - this is cgi request [20:54:50]url: /json_proto [20:54:50]query_string will be loaded in cgi processing [20:54:50]execute_cgi json_proto POST (null) [20:54:50]execute_cgi path=json_proto method=POST [20:54:50]POST find Content-Length [20:54:50]Host: 172.17.56.4:8080 [20:54:50]Content-Length: 679 [20:54:50]Content-Type: application/json [20:54:50] [20:54:50]POST finish read [20:54:50]Found Content-Length = 679 [20:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [20:54:50]execute_script... [20:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [20:54:50]POST & json_proto [20:54:50]process_json_proto [20:54:50]json parsed OK: [20:54:50]protocol is kg_v1.0 [20:54:50]action value=close_receipt [20:54:50]process_action close_receipt [20:54:50]cmd_close_receipt [20:54:50]MH_GetDate [20:54:50]Write to MH i2c: F0 00 00 65 0F 63 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: F0 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: F0 09 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: F0 09 00 65 0F 00 9B E9 92 66 C9 DC B2 64 A3 [20:54:50]GetLastDocTimeStamp 1720904080 [20:54:50]current date 1720904091 [20:54:50]FM_GetShiftState [20:54:50]SAM_PROTO_GetShiftState [20:54:50]wFMCommunicate request_size=4 [20:54:50]MH_SAM_APDU [20:54:50]CAPDU: 80 13 01 00 [20:54:50]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [20:54:50]Write i2c OK [20:54:50]MH_I2C_Read... [20:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:50]Read from MH i2c: E2 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 0E 00 [20:54:50]MH_I2C_Read... [20:54:50]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D3 [20:54:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:54:50]wFMCommunicate OK [20:54:50]SAM_PROTO_GetShiftState done [20:54:50]FM_GetShiftState done [20:54:50]opened in 1720831249 [20:54:50]opened+sec_in_day 1720917649 [20:54:50]quantity*price = 140061 [20:54:50]sum+1 = 140062 [20:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 301 13.07.2024 20:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164741 ФПД: 1543691963233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205451&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164741&fm=1543691963233&tin=02508201610067®Number=0000000000090829&sum=140000 [20:54:52]StoreToDocumentArchive [20:54:52]shift 446 fd 164741 [20:54:52]save to /storage/0446/doc_00164741 [20:54:52]save last doc name /storage/0446/doc_00164741 to /storage/kkm_last_doc_name [20:54:52]save OK [20:54:52]Clear old archive folders... [20:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:54:52]tlvbuf is 01E4A3D0 [20:54:52]SAM_PROTO_ClearQueue [20:54:52]wFMCommunicate request_size=4 [20:54:52]MH_SAM_APDU [20:54:52]CAPDU: 80 09 00 00 [20:54:52]Write to MH i2c: E2 08 00 73 0F 80 09 00 00 00 00 00 00 F4 [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [20:54:52]RAPDU: 90 00 [20:54:52]wFMCommunicate OK [20:54:52]SAM_PROTO_ClearQueue done [20:54:52]KKMCreateOFDPacket [20:54:52]OFDProtocolAddRootSTLVToBuf [20:54:52]FM_MakeSignedData [20:54:52]FM_MakeSignedData [20:54:52]SAM_PROTO_SignData [20:54:52]wFMCommunicate request_size=4 [20:54:52]MH_SAM_APDU [20:54:52]CAPDU: 80 0D 01 02 [20:54:52]Write to MH i2c: E2 08 00 74 0F 80 0D 01 02 00 00 00 00 FC [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [20:54:52]RAPDU: 90 00 [20:54:52]wFMCommunicate OK [20:54:52]wFMCommunicate request_size=255 [20:54:52]MH_SAM_APDU [20:54: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 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 2D 01 00 00 F4 03 04 00 9B E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 83 02 00 35 04 06 00 01 67 6B 36 [20:54:52]Write to MH i2c: E2 02 01 75 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 2D 01 00 00 F4 03 04 00 9B E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 83 02 00 35 04 06 00 01 67 6B 36 00 00 EA [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [20:54:52]RAPDU: 90 00 [20:54:52]wFMCommunicate OK [20:54:52]wFMCommunicate request_size=7 [20:54:52]MH_SAM_APDU [20:54:52]CAPDU: 80 0D 02 02 02 0B 61 [20:54:52]Write to MH i2c: E2 0A 00 76 0F 80 0D 02 02 02 00 0B 61 00 00 6F [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]OFD Sender: No OFD packet to send [20:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [20:54:52]RAPDU: 90 00 [20:54:52]wFMCommunicate OK [20:54:52]wFMCommunicate request_size=4 [20:54:52]MH_SAM_APDU [20:54:52]CAPDU: 80 0D 03 02 [20:54:52]Write to MH i2c: E2 08 00 77 0F 80 0D 03 02 00 00 00 00 01 [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 0B 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 0B 00 77 0F 00 93 F2 F2 52 BF 0E DA F5 90 00 67 [20:54:52]RAPDU: 93 F2 F2 52 BF 0E DA F5 90 00 [20:54:52]wFMCommunicate OK [20:54:52]SAM_PROTO_SignData done [20:54:52]FM_MakeSignedData done [20:54:52]CreateOFDProtocolMessage [20:54:52]wFMCommunicate request_size=4 [20:54:52]MH_SAM_APDU [20:54:52]CAPDU: 80 11 00 00 [20:54:52]Write to MH i2c: E2 08 00 78 0F 80 11 00 00 00 00 00 00 01 [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:52]Read from MH i2c: E2 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 17 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: E2 17 00 78 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [20:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:52]wFMCommunicate OK [20:54:52]CreateOFDProtocolMessage done [20:54:52]OFDSenderStorePacket 164741 [20:54:52]StoreOFDPacket docnum=164741 [20:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 A8 04 01 F7 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 2D 01 00 00 F4 03 04 00 9B E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 83 02 00 35 04 06 00 01 67 6B 36 0B 61 93 F2 F2 52 BF 0E DA F5 [20:54:52]CheckFolder [20:54:52]dirname=/storage/ofd_packets [20:54:52]CheckFolder done [20:54:52]ProducePacketName [20:54:52]name=ofd_packets/00164741 [20:54:52]NVStorageSaveData ofd_packets/00164741 [20:54:52]File name is /storage/ofd_packets/00164741 [20:54:52]Write 298 bytes [20:54:52]NVStorageSaveData done [20:54:52]OFDSenderStorePacket done [20:54:52]KKMCreateOFDPacket done [20:54:52]NVStorageSaveData kkm_last_timestamp [20:54:52]File name is /storage/kkm_last_timestamp [20:54:52]Write 4 bytes [20:54:52]NVStorageSaveData done [20:54:52]ExternCall_PrintAddStr [20:54:52]wPrintStart [20:54:52]Write to MH i2c: 01 00 00 79 0F 88 [20:54:52]Write i2c OK [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: 01 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: 01 07 00 [20:54:52]MH_I2C_Read... [20:54:52]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 FF 0F 9D [20:54:52]RasterBufferAndPrint [20:54:52]line Счет N : (1)458835 [20:54:52]line ИНН: 02508201610067 [20:54:52]line Контрольно-Кассовый Чек [20:54:52]line ПРОДАЖА [20:54:52]line ТРК (МРК, ГНК) : 21 [20:54:52]line Товар: 2710194210 [20:54:52]line ДТ-К-5 [20:54:52]line 19.480 * 71.90 [20:54:52]line = 1400.61 [20:54:52]line НДС 12% НСП 1% [20:54:52]line > о реализуемом товаре [20:54:52]line ОКРУГЛЕНИЕ: -0.61 [20:54:52]line ИТОГО: 1400.00 [20:54:52]line Внесено: 1400.00 [20:54:52]line СДАЧА: 0.00 [20:54:52]line НСП 1% : 12.39 [20:54:52]line НДС 12% : 148.74 [20:54:52]line Наличными: 1400.00 [20:54:52]line Безнал.: 0.00 [20:54:52]line Место: АЗС № 72 "Партнер Нефть" [20:54:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:54:52]line СНО: Общий режим [20:54:52]line Чек 301 13.07.2024 20:54 [20:54:52]line Смена: 446 ФФД: 1.0 [20:54:52]line ЗНМ: 0300000160 [20:54:52]line РНМ: 0000000000090829 [20:54:52]line Версия ККМ: 001 [20:54:52]line ФМ: 0000000000874718 [20:54:52]line ФД: 164741 [20:54:52]line ФПД: 1543691963233 [20:54:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205451&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164741&fm=1543691963233&tin=02508201610067®Number=0000000000090829&sum=140000 [20:54:52]written 0, free lines is 4095 [20:54:52]OFD Sender: Processing packet 164741 [packets to send 104, broken 103] [20:54:52]ProducePacketName [20:54:52]name=ofd_packets/00164741 [20:54:52]OFD Sender: To server: pG, [20:54:52]CommunicateWithHost lk.salyk.kg:30040 [20:54:52]ConnectInit lk.salyk.kg [20:54:53]Connected sock=10 [20:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 A8 04 01 F7 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 2D 01 00 00 F4 03 04 00 9B E9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 83 02 00 35 04 06 00 01 67 6B 36 0B 61 93 F2 F2 52 BF 0E DA F5 [20:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8C 6B 47 00 C6 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 83 02 00 F4 03 04 00 2B 90 92 66 B6 04 01 00 00 79 CA 8B C2 05 AD 8D A3 [20:54:53]CommunicateWithHost err = 0 [20:54:53]CheckOFDResponse [20:54:53]1017 (14) - 77093643461234 [20:54:53]1041 (16) - 0000000000874718 [20:54:53]1040 (4) - 164741 [20:54:53]1012 (4) - 13.07.2024 14:33 [20:54:53]1206 (1) - 0 [20:54:53]OFD Sender: Remove packet 164741 [20:54:53]ProducePacketName [20:54:53]name=ofd_packets/00164741 [20:54:53]NVStorageDeleteData [20:54:53]Write to MH i2c: 01 00 00 A3 0F B2 [20:54:53]Write i2c OK [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 07 00 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 F6 0C BB [20:54:53]RasterBufferAndPrint [20:54:53]line [20:54:53]line [20:54:53]line [20:54:53]line [20:54:53]line [20:54:53]written 0, free lines is 3324 [20:54:53]MH_Cut [20:54:53]Write to MH i2c: D1 01 00 AA 0F 01 8B [20:54:53]Write i2c OK [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: D1 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: D1 01 00 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: D1 01 00 AA 0F 00 8A [20:54:53]Write to MH i2c: 01 00 00 AB 0F BA [20:54:53]Write i2c OK [20:54:53]MH_I2C_Read... [20:54:53]OFD Sender: No OFD packet to send [20:54:54]*** Cut start [20:54:54]*** Partial cut [20:54:54]*** CUTSNS_PIN = 1 [20:54:54]*** CUTSNS_PIN = 0 [20:54:54]*** Brake cut motor [20:54:54]Read from MH i2c: 01 [20:54:54]MH_I2C_Read... [20:54:54]*** Stop cut motor [20:54:54]*** Cut end [20:54:54]Read from MH i2c: 01 07 00 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [20:54:54]process_action close_receipt done [20:54:54]requested_data is exist [20:54:54]produce_requested_data [20:54:54]requested_item fm.sn is exist - process it [20:54:54]wFMCommunicate request_size=4 [20:54:54]MH_SAM_APDU [20:54:54]CAPDU: 80 11 00 00 [20:54:54]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [20:54:54]Write i2c OK [20:54:54]MH_I2C_Read... [20:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:54]Read from MH i2c: E2 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 17 00 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [20:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:54:54]wFMCommunicate OK [20:54:54]requested_item fd.num is exist - process it [20:54:54]SAM_PROTO_GetFieldsCounters [20:54:54]wFMCommunicate request_size=4 [20:54:54]MH_SAM_APDU [20:54:54]CAPDU: 80 13 00 00 [20:54:54]Write to MH i2c: E2 08 00 AD 0F 80 13 00 00 00 00 00 00 38 [20:54:54]Write i2c OK [20:54:54]MH_I2C_Read... [20:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:54]Read from MH i2c: E2 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 62 00 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 62 00 AD 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:54]wFMCommunicate OK [20:54:54]SAM_PROTO_GetFieldsCounters done [20:54:54]requested_item shift.num is exist - process it [20:54:54]requested_item shift.opened is exist - process it [20:54:54]req_shift_opened [20:54:54]FM_GetShiftState [20:54:54]SAM_PROTO_GetShiftState [20:54:54]wFMCommunicate request_size=4 [20:54:54]MH_SAM_APDU [20:54:54]CAPDU: 80 13 01 00 [20:54:54]Write to MH i2c: E2 08 00 AE 0F 80 13 01 00 00 00 00 00 3A [20:54:54]Write i2c OK [20:54:54]MH_I2C_Read... [20:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:54]Read from MH i2c: E2 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 0E 00 [20:54:54]MH_I2C_Read... [20:54:54]Read from MH i2c: E2 0E 00 AE 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1B [20:54:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:54:54]wFMCommunicate OK [20:54:54]SAM_PROTO_GetShiftState done [20:54:54]FM_GetShiftState done [20:54:54]req_shift_opened done [20:54:54]requested_item shift.open_date is exist - process it [20:54:54]req_shift_open_date [20:54:54]req_shift_open_date done [20:54:54]produce_requested_data done [20:54:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164741,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:54:54]process_action_free close_receipt [20:54:54]json_value_free [20:54:54]json_value_free done [20:54:54]process_json_proto returns [20:54:54]Send response to host [20:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164741,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:54:54]free response buf [20:54:54]execute_script done [20:54:54]execute_script returns [20:54:54]free content buf [20:54:54]Sock 7.Close socket [20:54:54]Sock 7.Thread stoped [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:56]accept exits with 9 [20:56:56]New connection [20:56:56]New thread 3067247972 created [20:56:56]Thread 3067104612 joined [20:56:56]Waiting for new connection... [20:56:56] Sock 9.Parse request [20:56:56]Sock 9.Check first char [20:56:56]Sock 9.First char is OK [20:56:56]request: POST /json_proto HTTP/1.0 [20:56:56]Method: POST [20:56:56]URL: /json_proto [20:56:56]Method is POST - this is cgi request [20:56:56]url: /json_proto [20:56:56]query_string will be loaded in cgi processing [20:56:56]execute_cgi json_proto POST (null) [20:56:56]execute_cgi path=json_proto method=POST [20:56:56]POST find Content-Length [20:56:56]Host: 172.17.56.4:8080 [20:56:56]Content-Length: 677 [20:56:56]Content-Type: application/json [20:56:56] [20:56:56]POST finish read [20:56:56]Found Content-Length = 677 [20:56:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [20:56:56]execute_script... [20:56: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)458836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [20:56:56]POST & json_proto [20:56:56]process_json_proto [20:56:56]json parsed OK: [20:56:56]protocol is kg_v1.0 [20:56:56]action value=close_receipt [20:56:56]process_action close_receipt [20:56:56]cmd_close_receipt [20:56:56]MH_GetDate [20:56:56]Write to MH i2c: F0 00 00 AF 0F AD [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 09 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: F0 09 00 AF 0F 00 19 EA 92 66 C9 DC B2 64 6C [20:56:56]GetLastDocTimeStamp 1720904091 [20:56:56]current date 1720904217 [20:56:56]FM_GetShiftState [20:56:56]SAM_PROTO_GetShiftState [20:56:56]wFMCommunicate request_size=4 [20:56:56]MH_SAM_APDU [20:56:56]CAPDU: 80 13 01 00 [20:56:56]Write to MH i2c: E2 08 00 B0 0F 80 13 01 00 00 00 00 00 3C [20:56:56]Write i2c OK [20:56:56]MH_I2C_Read... [20:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:56]Read from MH i2c: E2 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 0E 00 [20:56:56]MH_I2C_Read... [20:56:56]Read from MH i2c: E2 0E 00 B0 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1D [20:56:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:56:56]wFMCommunicate OK [20:56:56]SAM_PROTO_GetShiftState done [20:56:56]FM_GetShiftState done [20:56:56]opened in 1720831249 [20:56:56]opened+sec_in_day 1720917649 [20:56:56]quantity*price = 15002 [20:56:56]sum+1 = 15003 [20:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 302 13.07.2024 20:56 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164742 ФПД: 92417475728648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205657&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164742&fm=92417475728648&tin=02508201610067®Number=0000000000090829&sum=15000 [20:56:57]StoreToDocumentArchive [20:56:57]shift 446 fd 164742 [20:56:57]save to /storage/0446/doc_00164742 [20:56:57]save last doc name /storage/0446/doc_00164742 to /storage/kkm_last_doc_name [20:56:57]save OK [20:56:57]Clear old archive folders... [20:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:57]tlvbuf is 01E6D3D0 [20:56:57]SAM_PROTO_ClearQueue [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 09 00 00 [20:56:57]Write to MH i2c: E2 08 00 BD 0F 80 09 00 00 00 00 00 00 3E [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 BD 0F 00 90 00 40 [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]SAM_PROTO_ClearQueue done [20:56:57]KKMCreateOFDPacket [20:56:57]OFDProtocolAddRootSTLVToBuf [20:56:57]FM_MakeSignedData [20:56:57]FM_MakeSignedData [20:56:57]SAM_PROTO_SignData [20:56:57]wFMCommunicate request_size=4 [20:56:57]MH_SAM_APDU [20:56:57]CAPDU: 80 0D 01 02 [20:56:57]Write to MH i2c: E2 08 00 BE 0F 80 0D 01 02 00 00 00 00 46 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:57]Read from MH i2c: E2 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 [20:56:57]MH_I2C_Read... [20:56:57]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [20:56:57]RAPDU: 90 00 [20:56:57]wFMCommunicate OK [20:56:57]wFMCommunicate request_size=255 [20:56:57]MH_SAM_APDU [20:56: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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 19 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 83 02 00 35 04 06 00 54 [20:56:57]Write to MH i2c: E2 02 01 BF 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 19 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 83 02 00 35 04 06 00 54 00 00 97 [20:56:57]Write i2c OK [20:56:57]MH_I2C_Read... [20:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:58]Read from MH i2c: E2 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 03 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [20:56:58]RAPDU: 90 00 [20:56:58]wFMCommunicate OK [20:56:58]wFMCommunicate request_size=10 [20:56:58]MH_SAM_APDU [20:56:58]CAPDU: 80 0D 02 02 05 0D 9E CF D5 08 [20:56:58]Write to MH i2c: E2 0D 00 C0 0F 80 0D 02 02 05 00 0D 9E CF D5 08 00 00 AA [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:58]Read from MH i2c: E2 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 03 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [20:56:58]RAPDU: 90 00 [20:56:58]wFMCommunicate OK [20:56:58]wFMCommunicate request_size=4 [20:56:58]MH_SAM_APDU [20:56:58]CAPDU: 80 0D 03 02 [20:56:58]Write to MH i2c: E2 08 00 C1 0F 80 0D 03 02 00 00 00 00 4B [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:58]Read from MH i2c: E2 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 0B 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 0B 00 C1 0F 00 16 CB 79 04 1C B0 0A 84 90 00 04 [20:56:58]RAPDU: 16 CB 79 04 1C B0 0A 84 90 00 [20:56:58]wFMCommunicate OK [20:56:58]SAM_PROTO_SignData done [20:56:58]FM_MakeSignedData done [20:56:58]CreateOFDProtocolMessage [20:56:58]wFMCommunicate request_size=4 [20:56:58]MH_SAM_APDU [20:56:58]CAPDU: 80 11 00 00 [20:56:58]Write to MH i2c: E2 08 00 C2 0F 80 11 00 00 00 00 00 00 4B [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:58]Read from MH i2c: E2 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 17 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: E2 17 00 C2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [20:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:56:58]wFMCommunicate OK [20:56:58]CreateOFDProtocolMessage done [20:56:58]OFDSenderStorePacket 164742 [20:56:58]StoreOFDPacket docnum=164742 [20:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 88 05 07 01 5A E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 19 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 83 02 00 35 04 06 00 54 0D 9E CF D5 08 16 CB 79 04 1C B0 0A 84 [20:56:58]CheckFolder [20:56:58]dirname=/storage/ofd_packets [20:56:58]CheckFolder done [20:56:58]ProducePacketName [20:56:58]name=ofd_packets/00164742 [20:56:58]NVStorageSaveData ofd_packets/00164742 [20:56:58]File name is /storage/ofd_packets/00164742 [20:56:58]Write 301 bytes [20:56:58]NVStorageSaveData done [20:56:58]OFDSenderStorePacket done [20:56:58]KKMCreateOFDPacket done [20:56:58]NVStorageSaveData kkm_last_timestamp [20:56:58]File name is /storage/kkm_last_timestamp [20:56:58]Write 4 bytes [20:56:58]NVStorageSaveData done [20:56:58]ExternCall_PrintAddStr [20:56:58]wPrintStart [20:56:58]Write to MH i2c: 01 00 00 C3 0F D2 [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [20:56:58]RasterBufferAndPrint [20:56:58]line Счет N : (1)458836 [20:56:58]line ИНН: 02508201610067 [20:56:58]line Контрольно-Кассовый Чек [20:56:58]line ПРОДАЖА [20:56:58]line ТРК (МРК, ГНК) : 12 [20:56:58]line Товар: 2710124130 [20:56:58]line Аи-92-К-5 [20:56:58]line 2.280 * 65.80 [20:56:58]line = 150.02 [20:56:58]line НДС 12% НСП 1% [20:56:58]line > о реализуемом товаре [20:56:58]line ОКРУГЛЕНИЕ: -0.02 [20:56:58]line ИТОГО: 150.00 [20:56:58]line Внесено: 150.00 [20:56:58]line СДАЧА: 0.00 [20:56:58]line НСП 1% : 1.33 [20:56:58]line НДС 12% : 15.93 [20:56:58]line Наличными: 150.00 [20:56:58]line Безнал.: 0.00 [20:56:58]line Место: АЗС № 72 "Партнер Нефть" [20:56:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:56:58]line СНО: Общий режим [20:56:58]line Чек 302 13.07.2024 20:56 [20:56:58]line Смена: 446 ФФД: 1.0 [20:56:58]line ЗНМ: 0300000160 [20:56:58]line РНМ: 0000000000090829 [20:56:58]line Версия ККМ: 001 [20:56:58]line ФМ: 0000000000874718 [20:56:58]line ФД: 164742 [20:56:58]line ФПД: 92417475728648 [20:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205657&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164742&fm=92417475728648&tin=02508201610067®Number=0000000000090829&sum=15000 [20:56:58]written 0, free lines is 4095 [20:56:58]OFD Sender: Processing packet 164742 [packets to send 104, broken 103] [20:56:58]ProducePacketName [20:56:58]name=ofd_packets/00164742 [20:56:58]OFD Sender: To server: pG, [20:56:58]CommunicateWithHost lk.salyk.kg:30040 [20:56:58]ConnectInit lk.salyk.kg [20:56:58]Connected sock=10 [20:56:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 88 05 07 01 5A E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 19 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 83 02 00 35 04 06 00 54 0D 9E CF D5 08 16 CB 79 04 1C B0 0A 84 [20:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 86 47 00 52 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 34 37 31 38 10 04 04 00 86 83 02 00 F4 03 04 00 A9 90 92 66 B6 04 01 00 00 BB 1B A3 94 BA F9 61 24 [20:56:59]CommunicateWithHost err = 0 [20:56:59]CheckOFDResponse [20:56:59]1017 (14) - 77093643461234 [20:56:59]1041 (16) - 0000000000874718 [20:56:59]1040 (4) - 164742 [20:56:59]1012 (4) - 13.07.2024 14:35 [20:56:59]1206 (1) - 0 [20:56:59]OFD Sender: Remove packet 164742 [20:56:59]ProducePacketName [20:56:59]name=ofd_packets/00164742 [20:56:59]NVStorageDeleteData [20:56:59]Write to MH i2c: 01 00 00 ED 0F FC [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 07 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FB 0C 0A [20:56:59]RasterBufferAndPrint [20:56:59]line [20:56:59]line [20:56:59]line [20:56:59]line [20:56:59]line [20:56:59]written 0, free lines is 3329 [20:56:59]MH_Cut [20:56:59]Write to MH i2c: D1 01 00 F4 0F 01 D5 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: D1 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: D1 01 00 [20:56:59]MH_I2C_Read... [20:56:59]Read from MH i2c: D1 01 00 F4 0F 00 D4 [20:56:59]Write to MH i2c: 01 00 00 F5 0F 04 [20:56:59]Write i2c OK [20:56:59]MH_I2C_Read... [20:56:59]OFD Sender: No OFD packet to send [20:56:59]*** Cut start [20:56:59]*** Partial cut [20:56:59]*** CUTSNS_PIN = 1 [20:56:59]*** CUTSNS_PIN = 0 [20:57:00]*** Brake cut motor [20:57:00]Read from MH i2c: 01 [20:57:00]MH_I2C_Read... [20:57:00]*** Stop cut motor [20:57:00]Read from MH i2c: 01 07 00 [20:57:00]MH_I2C_Read... [20:57:00]*** Cut end [20:57:00]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 FF 0F 19 [20:57:00]process_action close_receipt done [20:57:00]requested_data is exist [20:57:00]produce_requested_data [20:57:00]requested_item fm.sn is exist - process it [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 11 00 00 [20:57:00]Write to MH i2c: E2 08 00 F6 0F 80 11 00 00 00 00 00 00 7F [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 17 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 17 00 F6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [20:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:57:00]wFMCommunicate OK [20:57:00]requested_item fd.num is exist - process it [20:57:00]SAM_PROTO_GetFieldsCounters [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 13 00 00 [20:57:00]Write to MH i2c: E2 08 00 F7 0F 80 13 00 00 00 00 00 00 82 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 62 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 62 00 F7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [20:57: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:00]wFMCommunicate OK [20:57:00]SAM_PROTO_GetFieldsCounters done [20:57:00]requested_item shift.num is exist - process it [20:57:00]requested_item shift.opened is exist - process it [20:57:00]req_shift_opened [20:57:00]FM_GetShiftState [20:57:00]SAM_PROTO_GetShiftState [20:57:00]wFMCommunicate request_size=4 [20:57:00]MH_SAM_APDU [20:57:00]CAPDU: 80 13 01 00 [20:57:00]Write to MH i2c: E2 08 00 F8 0F 80 13 01 00 00 00 00 00 84 [20:57:00]Write i2c OK [20:57:00]MH_I2C_Read... [20:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:00]Read from MH i2c: E2 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 0E 00 [20:57:00]MH_I2C_Read... [20:57:00]Read from MH i2c: E2 0E 00 F8 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 65 [20:57:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:57:00]wFMCommunicate OK [20:57:00]SAM_PROTO_GetShiftState done [20:57:00]FM_GetShiftState done [20:57:00]req_shift_opened done [20:57:00]requested_item shift.open_date is exist - process it [20:57:00]req_shift_open_date [20:57:00]req_shift_open_date done [20:57:00]produce_requested_data done [20:57:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164742,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:57:00]process_action_free close_receipt [20:57:00]json_value_free [20:57:00]json_value_free done [20:57:00]process_json_proto returns [20:57:00]Send response to host [20:57:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164742,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:57:00]free response buf [20:57:00]execute_script done [20:57:00]execute_script returns [20:57:00]free content buf [20:57:00]Sock 9.Close socket [20:57:00]Sock 9.Thread stoped [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:18]accept exits with 7 [20:58:18]New connection [20:58:18]New thread 3067104612 created [20:58:18]Thread 3067247972 joined [20:58:18]Waiting for new connection... [20:58:18] Sock 7.Parse request [20:58:18]Sock 7.Check first char [20:58:18]Sock 7.First char is OK [20:58:18]request: POST /json_proto HTTP/1.0 [20:58:18]Method: POST [20:58:18]URL: /json_proto [20:58:18]Method is POST - this is cgi request [20:58:18]url: /json_proto [20:58:18]query_string will be loaded in cgi processing [20:58:18]execute_cgi json_proto POST (null) [20:58:18]execute_cgi path=json_proto method=POST [20:58:18]POST find Content-Length [20:58:18]Host: 172.17.56.4:8080 [20:58:18]Content-Length: 677 [20:58:18]Content-Type: application/json [20:58:18] [20:58:18]POST finish read [20:58:18]Found Content-Length = 677 [20:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:18]execute_script... [20:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:18]POST & json_proto [20:58:18]process_json_proto [20:58:18]json parsed OK: [20:58:18]protocol is kg_v1.0 [20:58:18]action value=close_receipt [20:58:18]process_action close_receipt [20:58:18]cmd_close_receipt [20:58:18]MH_GetDate [20:58:18]Write to MH i2c: F0 00 00 F9 0F F7 [20:58:18]Write i2c OK [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: F0 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: F0 09 00 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: F0 09 00 F9 0F 00 6B EA 92 66 C9 DC B2 64 08 [20:58:18]GetLastDocTimeStamp 1720904217 [20:58:18]current date 1720904299 [20:58:18]FM_GetShiftState [20:58:18]SAM_PROTO_GetShiftState [20:58:18]wFMCommunicate request_size=4 [20:58:18]MH_SAM_APDU [20:58:18]CAPDU: 80 13 01 00 [20:58:18]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [20:58:18]Write i2c OK [20:58:18]MH_I2C_Read... [20:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:18]Read from MH i2c: E2 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: E2 0E 00 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 67 [20:58:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:58:18]wFMCommunicate OK [20:58:18]SAM_PROTO_GetShiftState done [20:58:18]FM_GetShiftState done [20:58:18]opened in 1720831249 [20:58:18]opened+sec_in_day 1720917649 [20:58:18]quantity*price = 20003 [20:58:18]sum+1 = 20004 [20:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 303 13.07.2024 20:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164743 ФПД: 41493241378642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164743&fm=41493241378642&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:19]StoreToDocumentArchive [20:58:19]shift 446 fd 164743 [20:58:19]save to /storage/0446/doc_00164743 [20:58:19]save last doc name /storage/0446/doc_00164743 to /storage/kkm_last_doc_name [20:58:19]save OK [20:58:19]Clear old archive folders... [20:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:19]tlvbuf is 01E98F80 [20:58:19]SAM_PROTO_ClearQueue [20:58:19]wFMCommunicate request_size=4 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 09 00 00 [20:58:19]Write to MH i2c: E2 08 00 07 10 80 09 00 00 00 00 00 00 89 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 07 10 00 90 00 8B [20:58:19]RAPDU: 90 00 [20:58:19]wFMCommunicate OK [20:58:19]SAM_PROTO_ClearQueue done [20:58:19]KKMCreateOFDPacket [20:58:19]OFDProtocolAddRootSTLVToBuf [20:58:19]FM_MakeSignedData [20:58:19]FM_MakeSignedData [20:58:19]SAM_PROTO_SignData [20:58:19]wFMCommunicate request_size=4 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 0D 01 02 [20:58:19]Write to MH i2c: E2 08 00 08 10 80 0D 01 02 00 00 00 00 91 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [20:58:19]RAPDU: 90 00 [20:58:19]wFMCommunicate OK [20:58:19]wFMCommunicate request_size=255 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 6B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 83 02 00 35 04 06 00 25 [20:58:19]Write to MH i2c: E2 02 01 09 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 6B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 83 02 00 35 04 06 00 25 00 00 18 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]OFD Sender: No OFD packet to send [20:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [20:58:19]RAPDU: 90 00 [20:58:19]wFMCommunicate OK [20:58:19]wFMCommunicate request_size=10 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 0D 02 02 05 BC E5 E9 B7 52 [20:58:19]Write to MH i2c: E2 0D 00 0A 10 80 0D 02 02 05 00 BC E5 E9 B7 52 00 00 31 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [20:58:19]RAPDU: 90 00 [20:58:19]wFMCommunicate OK [20:58:19]wFMCommunicate request_size=4 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 0D 03 02 [20:58:19]Write to MH i2c: E2 08 00 0B 10 80 0D 03 02 00 00 00 00 96 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 0B 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 0B 00 0B 10 00 05 35 C9 E0 25 74 32 E7 90 00 2C [20:58:19]RAPDU: 05 35 C9 E0 25 74 32 E7 90 00 [20:58:19]wFMCommunicate OK [20:58:19]SAM_PROTO_SignData done [20:58:19]FM_MakeSignedData done [20:58:19]CreateOFDProtocolMessage [20:58:19]wFMCommunicate request_size=4 [20:58:19]MH_SAM_APDU [20:58:19]CAPDU: 80 11 00 00 [20:58:19]Write to MH i2c: E2 08 00 0C 10 80 11 00 00 00 00 00 00 96 [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:19]Read from MH i2c: E2 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 17 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: E2 17 00 0C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [20:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:19]wFMCommunicate OK [20:58:19]CreateOFDProtocolMessage done [20:58:19]OFDSenderStorePacket 164743 [20:58:19]StoreOFDPacket docnum=164743 [20:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F7 D6 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 6B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 83 02 00 35 04 06 00 25 BC E5 E9 B7 52 05 35 C9 E0 25 74 32 E7 [20:58:19]CheckFolder [20:58:19]dirname=/storage/ofd_packets [20:58:19]CheckFolder done [20:58:19]ProducePacketName [20:58:19]name=ofd_packets/00164743 [20:58:19]NVStorageSaveData ofd_packets/00164743 [20:58:19]File name is /storage/ofd_packets/00164743 [20:58:19]Write 301 bytes [20:58:19]NVStorageSaveData done [20:58:19]OFDSenderStorePacket done [20:58:19]KKMCreateOFDPacket done [20:58:19]NVStorageSaveData kkm_last_timestamp [20:58:19]File name is /storage/kkm_last_timestamp [20:58:19]Write 4 bytes [20:58:19]NVStorageSaveData done [20:58:19]ExternCall_PrintAddStr [20:58:19]wPrintStart [20:58:19]Write to MH i2c: 01 00 00 0D 10 1D [20:58:19]Write i2c OK [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: 01 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: 01 07 00 [20:58:19]MH_I2C_Read... [20:58:19]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 FF 0F 32 [20:58:19]RasterBufferAndPrint [20:58:19]line Счет N : (1)458837 [20:58:19]line ИНН: 02508201610067 [20:58:19]line Контрольно-Кассовый Чек [20:58:19]line ПРОДАЖА [20:58:19]line ТРК (МРК, ГНК) : 22 [20:58:19]line Товар: 2710124130 [20:58:19]line Аи-92-К-5 [20:58:19]line 3.040 * 65.80 [20:58:19]line = 200.03 [20:58:19]line НДС 12% НСП 1% [20:58:19]line > о реализуемом товаре [20:58:19]line ОКРУГЛЕНИЕ: -0.03 [20:58:19]line ИТОГО: 200.00 [20:58:19]line Внесено: 200.00 [20:58:19]line СДАЧА: 0.00 [20:58:19]line НСП 1% : 1.77 [20:58:19]line НДС 12% : 21.24 [20:58:19]line Наличными: 200.00 [20:58:19]line Безнал.: 0.00 [20:58:19]line Место: АЗС № 72 "Партнер Нефть" [20:58:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:58:19]line СНО: Общий режим [20:58:19]line Чек 303 13.07.2024 20:58 [20:58:19]line Смена: 446 ФФД: 1.0 [20:58:19]line ЗНМ: 0300000160 [20:58:19]line РНМ: 0000000000090829 [20:58:19]line Версия ККМ: 001 [20:58:19]line ФМ: 0000000000874718 [20:58:19]line ФД: 164743 [20:58:19]line ФПД: 41493241378642 [20:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164743&fm=41493241378642&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:19]written 0, free lines is 4095 [20:58:19]OFD Sender: Processing packet 164743 [packets to send 104, broken 103] [20:58:19]ProducePacketName [20:58:19]name=ofd_packets/00164743 [20:58:19]OFD Sender: To server: pG, [20:58:19]CommunicateWithHost lk.salyk.kg:30040 [20:58:19]ConnectInit lk.salyk.kg [20:58:19]Connected sock=9 [20:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F7 D6 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 6B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 83 02 00 35 04 06 00 25 BC E5 E9 B7 52 05 35 C9 E0 25 74 32 E7 [20:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B C9 47 00 3C 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 34 37 31 38 10 04 04 00 87 83 02 00 F4 03 04 00 FA 90 92 66 B6 04 01 00 00 F3 00 09 35 4F BC 54 0B [20:58:20]CommunicateWithHost err = 0 [20:58:20]CheckOFDResponse [20:58:20]1017 (14) - 77093643461234 [20:58:20]1041 (16) - 0000000000874718 [20:58:20]1040 (4) - 164743 [20:58:20]1012 (4) - 13.07.2024 14:36 [20:58:20]1206 (1) - 0 [20:58:20]OFD Sender: Remove packet 164743 [20:58:20]ProducePacketName [20:58:20]name=ofd_packets/00164743 [20:58:20]NVStorageDeleteData [20:58:20]Write to MH i2c: 01 00 00 37 10 47 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 07 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 02 0D 5D [20:58:20]RasterBufferAndPrint [20:58:20]line [20:58:20]line [20:58:20]line [20:58:20]line [20:58:20]line [20:58:20]written 0, free lines is 3336 [20:58:20]MH_Cut [20:58:20]Write to MH i2c: D1 01 00 3E 10 01 20 [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: D1 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: D1 01 00 [20:58:20]MH_I2C_Read... [20:58:20]Read from MH i2c: D1 01 00 3E 10 00 1F [20:58:20]Write to MH i2c: 01 00 00 3F 10 4F [20:58:20]Write i2c OK [20:58:20]MH_I2C_Read... [20:58:20]OFD Sender: No OFD packet to send [20:58:21]*** Cut start [20:58:21]*** Partial cut [20:58:21]*** CUTSNS_PIN = 1 [20:58:21]*** CUTSNS_PIN = 0 [20:58:21]*** Brake cut motor [20:58:21]Read from MH i2c: 01 [20:58:21]MH_I2C_Read... [20:58:21]*** Stop cut motor [20:58:21]*** Cut end [20:58:21]Read from MH i2c: 01 07 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: 01 07 00 3F 10 00 00 00 00 00 FF 0F 64 [20:58:21]process_action close_receipt done [20:58:21]requested_data is exist [20:58:21]produce_requested_data [20:58:21]requested_item fm.sn is exist - process it [20:58:21]wFMCommunicate request_size=4 [20:58:21]MH_SAM_APDU [20:58:21]CAPDU: 80 11 00 00 [20:58:21]Write to MH i2c: E2 08 00 40 10 80 11 00 00 00 00 00 00 CA [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:21]Read from MH i2c: E2 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 17 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 17 00 40 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [20:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:21]wFMCommunicate OK [20:58:21]requested_item fd.num is exist - process it [20:58:21]SAM_PROTO_GetFieldsCounters [20:58:21]wFMCommunicate request_size=4 [20:58:21]MH_SAM_APDU [20:58:21]CAPDU: 80 13 00 00 [20:58:21]Write to MH i2c: E2 08 00 41 10 80 13 00 00 00 00 00 00 CD [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:21]Read from MH i2c: E2 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 62 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 62 00 41 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:21]wFMCommunicate OK [20:58:21]SAM_PROTO_GetFieldsCounters done [20:58:21]requested_item shift.num is exist - process it [20:58:21]requested_item shift.opened is exist - process it [20:58:21]req_shift_opened [20:58:21]FM_GetShiftState [20:58:21]SAM_PROTO_GetShiftState [20:58:21]wFMCommunicate request_size=4 [20:58:21]MH_SAM_APDU [20:58:21]CAPDU: 80 13 01 00 [20:58:21]Write to MH i2c: E2 08 00 42 10 80 13 01 00 00 00 00 00 CF [20:58:21]Write i2c OK [20:58:21]MH_I2C_Read... [20:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:21]Read from MH i2c: E2 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 0E 00 [20:58:21]MH_I2C_Read... [20:58:21]Read from MH i2c: E2 0E 00 42 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B0 [20:58:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:58:21]wFMCommunicate OK [20:58:21]SAM_PROTO_GetShiftState done [20:58:21]FM_GetShiftState done [20:58:21]req_shift_opened done [20:58:21]requested_item shift.open_date is exist - process it [20:58:21]req_shift_open_date [20:58:21]req_shift_open_date done [20:58:21]produce_requested_data done [20:58:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164743,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:58:21]process_action_free close_receipt [20:58:21]json_value_free [20:58:21]json_value_free done [20:58:21]process_json_proto returns [20:58:21]Send response to host [20:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164743,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:58:21]free response buf [20:58:21]execute_script done [20:58:21]execute_script returns [20:58:21]free content buf [20:58:21]Sock 7.Close socket [20:58:21]Sock 7.Thread stoped [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:34]accept exits with 10 [20:58:34]New connection [20:58:34]New thread 3067247972 created [20:58:34]Thread 3067104612 joined [20:58:34]Waiting for new connection... [20:58:34] Sock 10.Parse request [20:58:34]Sock 10.Check first char [20:58:34]Sock 10.First char is OK [20:58:34]request: POST /json_proto HTTP/1.0 [20:58:34]Method: POST [20:58:34]URL: /json_proto [20:58:34]Method is POST - this is cgi request [20:58:34]url: /json_proto [20:58:34]query_string will be loaded in cgi processing [20:58:34]execute_cgi json_proto POST (null) [20:58:34]execute_cgi path=json_proto method=POST [20:58:34]POST find Content-Length [20:58:34]Host: 172.17.56.4:8080 [20:58:34]Content-Length: 677 [20:58:34]Content-Type: application/json [20:58:34] [20:58:34]POST finish read [20:58:34]Found Content-Length = 677 [20:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:34]execute_script... [20:58: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)458838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:34]POST & json_proto [20:58:34]process_json_proto [20:58:34]json parsed OK: [20:58:34]protocol is kg_v1.0 [20:58:34]action value=close_receipt [20:58:34]process_action close_receipt [20:58:34]cmd_close_receipt [20:58:34]MH_GetDate [20:58:34]Write to MH i2c: F0 00 00 43 10 42 [20:58:34]Write i2c OK [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: F0 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: F0 09 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: F0 09 00 43 10 00 7B EA 92 66 C9 DC B2 64 63 [20:58:34]GetLastDocTimeStamp 1720904299 [20:58:34]current date 1720904315 [20:58:34]FM_GetShiftState [20:58:34]SAM_PROTO_GetShiftState [20:58:34]wFMCommunicate request_size=4 [20:58:34]MH_SAM_APDU [20:58:34]CAPDU: 80 13 01 00 [20:58:34]Write to MH i2c: E2 08 00 44 10 80 13 01 00 00 00 00 00 D1 [20:58:34]Write i2c OK [20:58:34]MH_I2C_Read... [20:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:34]Read from MH i2c: E2 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 0E 00 [20:58:34]MH_I2C_Read... [20:58:34]Read from MH i2c: E2 0E 00 44 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B2 [20:58:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:58:34]wFMCommunicate OK [20:58:34]SAM_PROTO_GetShiftState done [20:58:34]FM_GetShiftState done [20:58:34]opened in 1720831249 [20:58:34]opened+sec_in_day 1720917649 [20:58:34]quantity*price = 20003 [20:58:34]sum+1 = 20004 [20:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 304 13.07.2024 20:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164744 ФПД: 192914545903710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205835&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164744&fm=192914545903710&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:35]StoreToDocumentArchive [20:58:35]shift 446 fd 164744 [20:58:35]save to /storage/0446/doc_00164744 [20:58:35]save last doc name /storage/0446/doc_00164744 to /storage/kkm_last_doc_name [20:58:35]save OK [20:58:35]Clear old archive folders... [20:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:35]tlvbuf is 01EB8C00 [20:58:35]SAM_PROTO_ClearQueue [20:58:35]wFMCommunicate request_size=4 [20:58:35]MH_SAM_APDU [20:58:35]CAPDU: 80 09 00 00 [20:58:35]Write to MH i2c: E2 08 00 51 10 80 09 00 00 00 00 00 00 D3 [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:35]Read from MH i2c: E2 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [20:58:35]RAPDU: 90 00 [20:58:35]wFMCommunicate OK [20:58:35]SAM_PROTO_ClearQueue done [20:58:35]KKMCreateOFDPacket [20:58:35]OFDProtocolAddRootSTLVToBuf [20:58:35]FM_MakeSignedData [20:58:35]FM_MakeSignedData [20:58:35]SAM_PROTO_SignData [20:58:35]wFMCommunicate request_size=4 [20:58:35]MH_SAM_APDU [20:58:35]CAPDU: 80 0D 01 02 [20:58:35]Write to MH i2c: E2 08 00 52 10 80 0D 01 02 00 00 00 00 DB [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:35]Read from MH i2c: E2 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 52 10 00 90 00 D6 [20:58:35]RAPDU: 90 00 [20:58:35]wFMCommunicate OK [20:58:35]wFMCommunicate request_size=255 [20:58:35]MH_SAM_APDU [20:58: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 7B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 83 02 00 35 04 06 00 AF [20:58:35]Write to MH i2c: E2 02 01 53 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 7B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 83 02 00 35 04 06 00 AF 00 00 FE [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]OFD Sender: No OFD packet to send [20:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:35]Read from MH i2c: E2 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 53 10 00 90 00 D7 [20:58:35]RAPDU: 90 00 [20:58:35]wFMCommunicate OK [20:58:35]wFMCommunicate request_size=10 [20:58:35]MH_SAM_APDU [20:58:35]CAPDU: 80 0D 02 02 05 74 6A FB 08 5E [20:58:35]Write to MH i2c: E2 0D 00 54 10 80 0D 02 02 05 00 74 6A FB 08 5E 00 00 27 [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:35]Read from MH i2c: E2 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [20:58:35]RAPDU: 90 00 [20:58:35]wFMCommunicate OK [20:58:35]wFMCommunicate request_size=4 [20:58:35]MH_SAM_APDU [20:58:35]CAPDU: 80 0D 03 02 [20:58:35]Write to MH i2c: E2 08 00 55 10 80 0D 03 02 00 00 00 00 E0 [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:35]Read from MH i2c: E2 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 0B 00 [20:58:35]MH_I2C_Read... [20:58:35]Read from MH i2c: E2 0B 00 55 10 00 70 D3 BF 70 17 83 73 FD 90 00 5D [20:58:35]RAPDU: 70 D3 BF 70 17 83 73 FD 90 00 [20:58:35]wFMCommunicate OK [20:58:35]SAM_PROTO_SignData done [20:58:35]FM_MakeSignedData done [20:58:35]CreateOFDProtocolMessage [20:58:35]wFMCommunicate request_size=4 [20:58:35]MH_SAM_APDU [20:58:35]CAPDU: 80 11 00 00 [20:58:35]Write to MH i2c: E2 08 00 56 10 80 11 00 00 00 00 00 00 E0 [20:58:35]Write i2c OK [20:58:35]MH_I2C_Read... [20:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:36]Read from MH i2c: E2 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: E2 17 00 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: E2 17 00 56 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [20:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:36]wFMCommunicate OK [20:58:36]CreateOFDProtocolMessage done [20:58:36]OFDSenderStorePacket 164744 [20:58:36]StoreOFDPacket docnum=164744 [20:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 23 07 01 E9 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 7B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 83 02 00 35 04 06 00 AF 74 6A FB 08 5E 70 D3 BF 70 17 83 73 FD [20:58:36]CheckFolder [20:58:36]dirname=/storage/ofd_packets [20:58:36]CheckFolder done [20:58:36]ProducePacketName [20:58:36]name=ofd_packets/00164744 [20:58:36]NVStorageSaveData ofd_packets/00164744 [20:58:36]File name is /storage/ofd_packets/00164744 [20:58:36]Write 301 bytes [20:58:36]NVStorageSaveData done [20:58:36]OFDSenderStorePacket done [20:58:36]KKMCreateOFDPacket done [20:58:36]NVStorageSaveData kkm_last_timestamp [20:58:36]File name is /storage/kkm_last_timestamp [20:58:36]Write 4 bytes [20:58:36]NVStorageSaveData done [20:58:36]ExternCall_PrintAddStr [20:58:36]wPrintStart [20:58:36]Write to MH i2c: 01 00 00 57 10 67 [20:58:36]Write i2c OK [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 07 00 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 FF 0F 7C [20:58:36]RasterBufferAndPrint [20:58:36]line Счет N : (1)458838 [20:58:36]line ИНН: 02508201610067 [20:58:36]line Контрольно-Кассовый Чек [20:58:36]line ПРОДАЖА [20:58:36]line ТРК (МРК, ГНК) : 22 [20:58:36]line Товар: 2710124130 [20:58:36]line Аи-92-К-5 [20:58:36]line 3.040 * 65.80 [20:58:36]line = 200.03 [20:58:36]line НДС 12% НСП 1% [20:58:36]line > о реализуемом товаре [20:58:36]line ОКРУГЛЕНИЕ: -0.03 [20:58:36]line ИТОГО: 200.00 [20:58:36]line Внесено: 200.00 [20:58:36]line СДАЧА: 0.00 [20:58:36]line НСП 1% : 1.77 [20:58:36]line НДС 12% : 21.24 [20:58:36]line Наличными: 200.00 [20:58:36]line Безнал.: 0.00 [20:58:36]line Место: АЗС № 72 "Партнер Нефть" [20:58:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:58:36]line СНО: Общий режим [20:58:36]line Чек 304 13.07.2024 20:58 [20:58:36]line Смена: 446 ФФД: 1.0 [20:58:36]line ЗНМ: 0300000160 [20:58:36]line РНМ: 0000000000090829 [20:58:36]line Версия ККМ: 001 [20:58:36]line ФМ: 0000000000874718 [20:58:36]line ФД: 164744 [20:58:36]line ФПД: 192914545903710 [20:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205835&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164744&fm=192914545903710&tin=02508201610067®Number=0000000000090829&sum=20000 [20:58:36]OFD Sender: Processing packet 164744 [packets to send 104, broken 103] [20:58:36]ProducePacketName [20:58:36]name=ofd_packets/00164744 [20:58:36]OFD Sender: To server: pG, [20:58:36]CommunicateWithHost lk.salyk.kg:30040 [20:58:36]ConnectInit lk.salyk.kg [20:58:36]written 0, free lines is 4095 [20:58:36]Connected sock=9 [20:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 23 07 01 E9 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 7B EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 83 02 00 35 04 06 00 AF 74 6A FB 08 5E 70 D3 BF 70 17 83 73 FD [20:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 68 7F 47 00 F0 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 83 02 00 F4 03 04 00 0B 91 92 66 B6 04 01 00 00 6B 88 0E 90 5A ED A2 74 [20:58:36]CommunicateWithHost err = 0 [20:58:36]CheckOFDResponse [20:58:36]1017 (14) - 77093643461234 [20:58:36]1041 (16) - 0000000000874718 [20:58:36]1040 (4) - 164744 [20:58:36]1012 (4) - 13.07.2024 14:36 [20:58:36]1206 (1) - 0 [20:58:36]OFD Sender: Remove packet 164744 [20:58:36]ProducePacketName [20:58:36]name=ofd_packets/00164744 [20:58:36]NVStorageDeleteData [20:58:36]Write to MH i2c: 01 00 00 81 10 91 [20:58:36]Write i2c OK [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 07 00 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 FE 0C A2 [20:58:36]RasterBufferAndPrint [20:58:36]line [20:58:36]line [20:58:36]line [20:58:36]line [20:58:36]line [20:58:36]written 0, free lines is 3332 [20:58:36]MH_Cut [20:58:36]Write to MH i2c: D1 01 00 88 10 01 6A [20:58:36]Write i2c OK [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: D1 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: D1 01 00 [20:58:36]MH_I2C_Read... [20:58:36]Read from MH i2c: D1 01 00 88 10 00 69 [20:58:36]Write to MH i2c: 01 00 00 89 10 99 [20:58:36]Write i2c OK [20:58:36]MH_I2C_Read... [20:58:37]OFD Sender: No OFD packet to send [20:58:37]*** Cut start [20:58:37]*** Partial cut [20:58:37]*** CUTSNS_PIN = 1 [20:58:37]*** CUTSNS_PIN = 0 [20:58:37]*** Brake cut motor [20:58:38]Read from MH i2c: 01 [20:58:38]MH_I2C_Read... [20:58:38]*** Stop cut motor [20:58:38]*** Cut end [20:58:38]Read from MH i2c: 01 07 00 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: 01 07 00 89 10 00 00 00 00 00 FF 0F AE [20:58:38]process_action close_receipt done [20:58:38]requested_data is exist [20:58:38]produce_requested_data [20:58:38]requested_item fm.sn is exist - process it [20:58:38]wFMCommunicate request_size=4 [20:58:38]MH_SAM_APDU [20:58:38]CAPDU: 80 11 00 00 [20:58:38]Write to MH i2c: E2 08 00 8A 10 80 11 00 00 00 00 00 00 14 [20:58:38]Write i2c OK [20:58:38]MH_I2C_Read... [20:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:38]Read from MH i2c: E2 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 17 00 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 17 00 8A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [20:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:58:38]wFMCommunicate OK [20:58:38]requested_item fd.num is exist - process it [20:58:38]SAM_PROTO_GetFieldsCounters [20:58:38]wFMCommunicate request_size=4 [20:58:38]MH_SAM_APDU [20:58:38]CAPDU: 80 13 00 00 [20:58:38]Write to MH i2c: E2 08 00 8B 10 80 13 00 00 00 00 00 00 17 [20:58:38]Write i2c OK [20:58:38]MH_I2C_Read... [20:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:38]Read from MH i2c: E2 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 62 00 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 62 00 8B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [20:58: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:38]wFMCommunicate OK [20:58:38]SAM_PROTO_GetFieldsCounters done [20:58:38]requested_item shift.num is exist - process it [20:58:38]requested_item shift.opened is exist - process it [20:58:38]req_shift_opened [20:58:38]FM_GetShiftState [20:58:38]SAM_PROTO_GetShiftState [20:58:38]wFMCommunicate request_size=4 [20:58:38]MH_SAM_APDU [20:58:38]CAPDU: 80 13 01 00 [20:58:38]Write to MH i2c: E2 08 00 8C 10 80 13 01 00 00 00 00 00 19 [20:58:38]Write i2c OK [20:58:38]MH_I2C_Read... [20:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:38]Read from MH i2c: E2 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 0E 00 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: E2 0E 00 8C 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FA [20:58:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [20:58:38]wFMCommunicate OK [20:58:38]SAM_PROTO_GetShiftState done [20:58:38]FM_GetShiftState done [20:58:38]req_shift_opened done [20:58:38]requested_item shift.open_date is exist - process it [20:58:38]req_shift_open_date [20:58:38]req_shift_open_date done [20:58:38]produce_requested_data done [20:58:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164744,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [20:58:38]process_action_free close_receipt [20:58:38]json_value_free [20:58:38]json_value_free done [20:58:38]process_json_proto returns [20:58:38]Send response to host [20:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164744,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [20:58:38]free response buf [20:58:38]execute_script done [20:58:38]execute_script returns [20:58:38]free content buf [20:58:38]Sock 10.Close socket [20:58:38]Sock 10.Thread stoped [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:03]accept exits with 7 [21:00:03]New connection [21:00:03]New thread 3067104612 created [21:00:03]Thread 3067247972 joined [21:00:03]Waiting for new connection... [21:00:03] Sock 7.Parse request [21:00:03]Sock 7.Check first char [21:00:03]Sock 7.First char is OK [21:00:03]request: POST /json_proto HTTP/1.0 [21:00:03]Method: POST [21:00:03]URL: /json_proto [21:00:03]Method is POST - this is cgi request [21:00:03]url: /json_proto [21:00:03]query_string will be loaded in cgi processing [21:00:03]execute_cgi json_proto POST (null) [21:00:03]execute_cgi path=json_proto method=POST [21:00:03]POST find Content-Length [21:00:03]Host: 172.17.56.4:8080 [21:00:03]Content-Length: 677 [21:00:03]Content-Type: application/json [21:00:03] [21:00:03]POST finish read [21:00:03]Found Content-Length = 677 [21:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:03]execute_script... [21:00:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:03]POST & json_proto [21:00:03]process_json_proto [21:00:03]json parsed OK: [21:00:03]protocol is kg_v1.0 [21:00:03]action value=close_receipt [21:00:03]process_action close_receipt [21:00:03]cmd_close_receipt [21:00:03]MH_GetDate [21:00:03]Write to MH i2c: F0 00 00 8D 10 8C [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: F0 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: F0 09 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: F0 09 00 8D 10 00 D4 EA 92 66 C9 DC B2 64 06 [21:00:03]GetLastDocTimeStamp 1720904315 [21:00:03]current date 1720904404 [21:00:03]FM_GetShiftState [21:00:03]SAM_PROTO_GetShiftState [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 13 01 00 [21:00:03]Write to MH i2c: E2 08 00 8E 10 80 13 01 00 00 00 00 00 1B [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0E 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0E 00 8E 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FC [21:00:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_GetShiftState done [21:00:03]FM_GetShiftState done [21:00:03]opened in 1720831249 [21:00:03]opened+sec_in_day 1720917649 [21:00:03]quantity*price = 50008 [21:00:03]sum+1 = 50009 [21:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 305 13.07.2024 21:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164745 ФПД: 227008505637132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210004&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164745&fm=227008505637132&tin=02508201610067®Number=0000000000090829&sum=50000 [21:00:04]StoreToDocumentArchive [21:00:04]shift 446 fd 164745 [21:00:04]save to /storage/0446/doc_00164745 [21:00:04]save last doc name /storage/0446/doc_00164745 to /storage/kkm_last_doc_name [21:00:04]save OK [21:00:04]Clear old archive folders... [21:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:04]tlvbuf is 01E63F20 [21:00:04]SAM_PROTO_ClearQueue [21:00:04]wFMCommunicate request_size=4 [21:00:04]MH_SAM_APDU [21:00:04]CAPDU: 80 09 00 00 [21:00:04]Write to MH i2c: E2 08 00 9B 10 80 09 00 00 00 00 00 00 1D [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:04]Read from MH i2c: E2 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: E2 03 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: E2 03 00 9B 10 00 90 00 1F [21:00:04]RAPDU: 90 00 [21:00:04]wFMCommunicate OK [21:00:04]SAM_PROTO_ClearQueue done [21:00:04]KKMCreateOFDPacket [21:00:04]OFDProtocolAddRootSTLVToBuf [21:00:04]FM_MakeSignedData [21:00:04]FM_MakeSignedData [21:00:04]SAM_PROTO_SignData [21:00:04]wFMCommunicate request_size=4 [21:00:04]MH_SAM_APDU [21:00:04]CAPDU: 80 0D 01 02 [21:00:04]Write to MH i2c: E2 08 00 9C 10 80 0D 01 02 00 00 00 00 25 [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:04]Read from MH i2c: E2 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: E2 03 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: E2 03 00 9C 10 00 90 00 20 [21:00:04]RAPDU: 90 00 [21:00:04]wFMCommunicate OK [21:00:04]wFMCommunicate request_size=255 [21:00:04]MH_SAM_APDU [21:00:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 D4 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 83 02 00 35 04 06 00 CE [21:00:04]Write to MH i2c: E2 02 01 9D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 D4 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 83 02 00 35 04 06 00 CE 00 00 21 [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 03 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 03 00 9D 10 00 90 00 21 [21:00:05]RAPDU: 90 00 [21:00:05]wFMCommunicate OK [21:00:05]wFMCommunicate request_size=10 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 0D 02 02 05 76 89 56 E9 0C [21:00:05]Write to MH i2c: E2 0D 00 9E 10 80 0D 02 02 05 00 76 89 56 E9 0C 00 00 7C [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 03 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 03 00 9E 10 00 90 00 22 [21:00:05]RAPDU: 90 00 [21:00:05]wFMCommunicate OK [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 0D 03 02 [21:00:05]Write to MH i2c: E2 08 00 9F 10 80 0D 03 02 00 00 00 00 2A [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0B 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0B 00 9F 10 00 88 BD 27 12 5A 5D 98 BD 90 00 B5 [21:00:05]RAPDU: 88 BD 27 12 5A 5D 98 BD 90 00 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_SignData done [21:00:05]FM_MakeSignedData done [21:00:05]CreateOFDProtocolMessage [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 11 00 00 [21:00:05]Write to MH i2c: E2 08 00 A0 10 80 11 00 00 00 00 00 00 2A [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 A0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [21:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:00:05]wFMCommunicate OK [21:00:05]CreateOFDProtocolMessage done [21:00:05]OFDSenderStorePacket 164745 [21:00:05]StoreOFDPacket docnum=164745 [21:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 A6 07 01 66 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 D4 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 83 02 00 35 04 06 00 CE 76 89 56 E9 0C 88 BD 27 12 5A 5D 98 BD [21:00:05]CheckFolder [21:00:05]dirname=/storage/ofd_packets [21:00:05]CheckFolder done [21:00:05]ProducePacketName [21:00:05]name=ofd_packets/00164745 [21:00:05]NVStorageSaveData ofd_packets/00164745 [21:00:05]File name is /storage/ofd_packets/00164745 [21:00:05]Write 301 bytes [21:00:05]NVStorageSaveData done [21:00:05]OFDSenderStorePacket done [21:00:05]KKMCreateOFDPacket done [21:00:05]NVStorageSaveData kkm_last_timestamp [21:00:05]File name is /storage/kkm_last_timestamp [21:00:05]Write 4 bytes [21:00:05]NVStorageSaveData done [21:00:05]ExternCall_PrintAddStr [21:00:05]wPrintStart [21:00:05]Write to MH i2c: 01 00 00 A1 10 B1 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 07 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 FF 0F C6 [21:00:05]RasterBufferAndPrint [21:00:05]line Счет N : (1)458839 [21:00:05]line ИНН: 02508201610067 [21:00:05]line Контрольно-Кассовый Чек [21:00:05]line ПРОДАЖА [21:00:05]line ТРК (МРК, ГНК) : 22 [21:00:05]line Товар: 2710124130 [21:00:05]line Аи-92-К-5 [21:00:05]line 7.600 * 65.80 [21:00:05]line = 500.08 [21:00:05]line НДС 12% НСП 1% [21:00:05]line > о реализуемом товаре [21:00:05]line ОКРУГЛЕНИЕ: -0.08 [21:00:05]line ИТОГО: 500.00 [21:00:05]line Внесено: 500.00 [21:00:05]line СДАЧА: 0.00 [21:00:05]line НСП 1% : 4.42 [21:00:05]line НДС 12% : 53.11 [21:00:05]line Наличными: 500.00 [21:00:05]line Безнал.: 0.00 [21:00:05]line Место: АЗС № 72 "Партнер Нефть" [21:00:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:00:05]line СНО: Общий режим [21:00:05]line Чек 305 13.07.2024 21:00 [21:00:05]line Смена: 446 ФФД: 1.0 [21:00:05]line ЗНМ: 0300000160 [21:00:05]line РНМ: 0000000000090829 [21:00:05]line Версия ККМ: 001 [21:00:05]line ФМ: 0000000000874718 [21:00:05]line ФД: 164745 [21:00:05]line ФПД: 227008505637132 [21:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210004&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164745&fm=227008505637132&tin=02508201610067®Number=0000000000090829&sum=50000 [21:00:05]OFD Sender: Processing packet 164745 [packets to send 104, broken 103] [21:00:05]ProducePacketName [21:00:05]name=ofd_packets/00164745 [21:00:05]OFD Sender: To server: pG, [21:00:05]CommunicateWithHost lk.salyk.kg:30040 [21:00:05]ConnectInit lk.salyk.kg [21:00:05]written 0, free lines is 4095 [21:00:05]Connected sock=9 [21:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 A6 07 01 66 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 31 01 00 00 F4 03 04 00 D4 EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 83 02 00 35 04 06 00 CE 76 89 56 E9 0C 88 BD 27 12 5A 5D 98 BD [21:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 74 47 00 18 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 83 02 00 F4 03 04 00 64 91 92 66 B6 04 01 00 00 B9 E7 80 C7 5F 33 50 76 [21:00:05]CommunicateWithHost err = 0 [21:00:05]CheckOFDResponse [21:00:05]1017 (14) - 77093643461234 [21:00:05]1041 (16) - 0000000000874718 [21:00:05]1040 (4) - 164745 [21:00:05]1012 (4) - 13.07.2024 14:38 [21:00:05]1206 (1) - 0 [21:00:05]OFD Sender: Remove packet 164745 [21:00:05]ProducePacketName [21:00:05]name=ofd_packets/00164745 [21:00:05]NVStorageDeleteData [21:00:06]Write to MH i2c: 01 00 00 CB 10 DB [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 07 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FE 0C EC [21:00:06]RasterBufferAndPrint [21:00:06]line [21:00:06]line [21:00:06]line [21:00:06]line [21:00:06]line [21:00:06]written 0, free lines is 3332 [21:00:06]MH_Cut [21:00:06]Write to MH i2c: D1 01 00 D2 10 01 B4 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: D1 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: D1 01 00 [21:00:06]MH_I2C_Read... [21:00:06]Read from MH i2c: D1 01 00 D2 10 00 B3 [21:00:06]Write to MH i2c: 01 00 00 D3 10 E3 [21:00:06]Write i2c OK [21:00:06]MH_I2C_Read... [21:00:06]OFD Sender: No OFD packet to send [21:00:06]*** Cut start [21:00:06]*** Partial cut [21:00:06]*** CUTSNS_PIN = 1 [21:00:06]*** CUTSNS_PIN = 0 [21:00:06]*** Brake cut motor [21:00:07]Read from MH i2c: 01 [21:00:07]MH_I2C_Read... [21:00:07]*** Stop cut motor [21:00:07]*** Cut end [21:00:07]Read from MH i2c: 01 07 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: 01 07 00 D3 10 00 00 00 00 00 FF 0F F8 [21:00:07]process_action close_receipt done [21:00:07]requested_data is exist [21:00:07]produce_requested_data [21:00:07]requested_item fm.sn is exist - process it [21:00:07]wFMCommunicate request_size=4 [21:00:07]MH_SAM_APDU [21:00:07]CAPDU: 80 11 00 00 [21:00:07]Write to MH i2c: E2 08 00 D4 10 80 11 00 00 00 00 00 00 5E [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:07]Read from MH i2c: E2 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 17 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 17 00 D4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [21:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:00:07]wFMCommunicate OK [21:00:07]requested_item fd.num is exist - process it [21:00:07]SAM_PROTO_GetFieldsCounters [21:00:07]wFMCommunicate request_size=4 [21:00:07]MH_SAM_APDU [21:00:07]CAPDU: 80 13 00 00 [21:00:07]Write to MH i2c: E2 08 00 D5 10 80 13 00 00 00 00 00 00 61 [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:07]Read from MH i2c: E2 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 62 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 62 00 D5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [21:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:07]wFMCommunicate OK [21:00:07]SAM_PROTO_GetFieldsCounters done [21:00:07]requested_item shift.num is exist - process it [21:00:07]requested_item shift.opened is exist - process it [21:00:07]req_shift_opened [21:00:07]FM_GetShiftState [21:00:07]SAM_PROTO_GetShiftState [21:00:07]wFMCommunicate request_size=4 [21:00:07]MH_SAM_APDU [21:00:07]CAPDU: 80 13 01 00 [21:00:07]Write to MH i2c: E2 08 00 D6 10 80 13 01 00 00 00 00 00 63 [21:00:07]Write i2c OK [21:00:07]MH_I2C_Read... [21:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:07]Read from MH i2c: E2 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 0E 00 [21:00:07]MH_I2C_Read... [21:00:07]Read from MH i2c: E2 0E 00 D6 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 44 [21:00:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:00:07]wFMCommunicate OK [21:00:07]SAM_PROTO_GetShiftState done [21:00:07]FM_GetShiftState done [21:00:07]req_shift_opened done [21:00:07]requested_item shift.open_date is exist - process it [21:00:07]req_shift_open_date [21:00:07]req_shift_open_date done [21:00:07]produce_requested_data done [21:00:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164745,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:00:07]process_action_free close_receipt [21:00:07]json_value_free [21:00:07]json_value_free done [21:00:07]process_json_proto returns [21:00:07]Send response to host [21:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164745,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:00:07]free response buf [21:00:07]execute_script done [21:00:07]execute_script returns [21:00:07]free content buf [21:00:07]Sock 7.Close socket [21:00:07]Sock 7.Thread stoped [21:00:11]OFD Sender: No OFD packet to send [21:00:13]accept exits with 10 [21:00:13]New connection [21:00:13]New thread 3067247972 created [21:00:13]Thread 3067104612 joined [21:00:13]Waiting for new connection... [21:00:13] Sock 10.Parse request [21:00:13]Sock 10.Check first char [21:00:13]Sock 10.First char is OK [21:00:13]request: POST /json_proto HTTP/1.0 [21:00:13]Method: POST [21:00:13]URL: /json_proto [21:00:13]Method is POST - this is cgi request [21:00:13]url: /json_proto [21:00:13]query_string will be loaded in cgi processing [21:00:13]execute_cgi json_proto POST (null) [21:00:13]execute_cgi path=json_proto method=POST [21:00:13]POST find Content-Length [21:00:13]Host: 172.17.56.4:8080 [21:00:13]Content-Length: 677 [21:00:13]Content-Type: application/json [21:00:13] [21:00:13]POST finish read [21:00:13]Found Content-Length = 677 [21:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.260, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:13]execute_script... [21:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.260, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:13]POST & json_proto [21:00:13]process_json_proto [21:00:13]json parsed OK: [21:00:13]protocol is kg_v1.0 [21:00:13]action value=close_receipt [21:00:13]process_action close_receipt [21:00:13]cmd_close_receipt [21:00:13]MH_GetDate [21:00:13]Write to MH i2c: F0 00 00 D7 10 D6 [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 D7 10 00 DE EA 92 66 C9 DC B2 64 5A [21:00:13]GetLastDocTimeStamp 1720904404 [21:00:13]current date 1720904414 [21:00:13]FM_GetShiftState [21:00:13]SAM_PROTO_GetShiftState [21:00:13]wFMCommunicate request_size=4 [21:00:13]MH_SAM_APDU [21:00:13]CAPDU: 80 13 01 00 [21:00:13]Write to MH i2c: E2 08 00 D8 10 80 13 01 00 00 00 00 00 65 [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:13]Read from MH i2c: E2 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 D8 10 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 46 [21:00:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:00:13]wFMCommunicate OK [21:00:13]SAM_PROTO_GetShiftState done [21:00:13]FM_GetShiftState done [21:00:13]opened in 1720831249 [21:00:13]opened+sec_in_day 1720917649 [21:00:13]quantity*price = 28030 [21:00:13]sum+1 = 28032 [21:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 306 13.07.2024 21:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164746 ФПД: 269742365006681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164746&fm=269742365006681&tin=02508201610067®Number=0000000000090829&sum=28000 [21:00:15]StoreToDocumentArchive [21:00:15]shift 446 fd 164746 [21:00:15]save to /storage/0446/doc_00164746 [21:00:15]save last doc name /storage/0446/doc_00164746 to /storage/kkm_last_doc_name [21:00:15]save OK [21:00:15]Clear old archive folders... [21:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:15]tlvbuf is 01E64560 [21:00:15]SAM_PROTO_ClearQueue [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 09 00 00 [21:00:15]Write to MH i2c: E2 08 00 E5 10 80 09 00 00 00 00 00 00 67 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]SAM_PROTO_ClearQueue done [21:00:15]KKMCreateOFDPacket [21:00:15]OFDProtocolAddRootSTLVToBuf [21:00:15]FM_MakeSignedData [21:00:15]FM_MakeSignedData [21:00:15]SAM_PROTO_SignData [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 01 02 [21:00:15]Write to MH i2c: E2 08 00 E6 10 80 0D 01 02 00 00 00 00 6F [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=255 [21:00:15]MH_SAM_APDU [21:00: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 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 DE EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 83 02 00 35 04 06 00 F5 [21:00:15]Write to MH i2c: E2 02 01 E7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 DE EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 83 02 00 35 04 06 00 F5 00 00 E0 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=10 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 02 02 05 54 49 D8 DB 59 [21:00:15]Write to MH i2c: E2 0D 00 E8 10 80 0D 02 02 05 00 54 49 D8 DB 59 00 00 25 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 03 02 [21:00:15]Write to MH i2c: E2 08 00 E9 10 80 0D 03 02 00 00 00 00 74 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 E9 10 00 DF 23 6C 87 01 B5 64 95 90 00 19 [21:00:15]RAPDU: DF 23 6C 87 01 B5 64 95 90 00 [21:00:15]wFMCommunicate OK [21:00:15]SAM_PROTO_SignData done [21:00:15]FM_MakeSignedData done [21:00:15]CreateOFDProtocolMessage [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 11 00 00 [21:00:15]Write to MH i2c: E2 08 00 EA 10 80 11 00 00 00 00 00 00 74 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 EA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [21:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:00:15]wFMCommunicate OK [21:00:15]CreateOFDProtocolMessage done [21:00:15]OFDSenderStorePacket 164746 [21:00:15]StoreOFDPacket docnum=164746 [21:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E CF 07 01 42 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 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 DE EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 83 02 00 35 04 06 00 F5 54 49 D8 DB 59 DF 23 6C 87 01 B5 64 95 [21:00:15]CheckFolder [21:00:15]dirname=/storage/ofd_packets [21:00:15]CheckFolder done [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00164746 [21:00:15]NVStorageSaveData ofd_packets/00164746 [21:00:15]File name is /storage/ofd_packets/00164746 [21:00:15]Write 301 bytes [21:00:15]NVStorageSaveData done [21:00:15]OFDSenderStorePacket done [21:00:15]KKMCreateOFDPacket done [21:00:15]NVStorageSaveData kkm_last_timestamp [21:00:15]File name is /storage/kkm_last_timestamp [21:00:15]Write 4 bytes [21:00:15]NVStorageSaveData done [21:00:15]ExternCall_PrintAddStr [21:00:15]wPrintStart [21:00:15]Write to MH i2c: 01 00 00 EB 10 FB [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 FF 0F 10 [21:00:15]RasterBufferAndPrint [21:00:15]line Счет N : (1)458840 [21:00:15]line ИНН: 02508201610067 [21:00:15]line Контрольно-Кассовый Чек [21:00:15]line ПРОДАЖА [21:00:15]line ТРК (МРК, ГНК) : 12 [21:00:15]line Товар: 2710124130 [21:00:15]line Аи-92-К-5 [21:00:15]line 4.260 * 65.80 [21:00:15]line = 280.31 [21:00:15]line НДС 12% НСП 1% [21:00:15]line > о реализуемом товаре [21:00:15]line ОКРУГЛЕНИЕ: -0.31 [21:00:15]line ИТОГО: 280.00 [21:00:15]line Внесено: 280.00 [21:00:15]line СДАЧА: 0.00 [21:00:15]line НСП 1% : 2.48 [21:00:15]line НДС 12% : 29.77 [21:00:15]line Наличными: 280.00 [21:00:15]line Безнал.: 0.00 [21:00:15]line Место: АЗС № 72 "Партнер Нефть" [21:00:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:00:15]line СНО: Общий режим [21:00:15]line Чек 306 13.07.2024 21:00 [21:00:15]line Смена: 446 ФФД: 1.0 [21:00:15]line ЗНМ: 0300000160 [21:00:15]line РНМ: 0000000000090829 [21:00:15]line Версия ККМ: 001 [21:00:15]line ФМ: 0000000000874718 [21:00:15]line ФД: 164746 [21:00:15]line ФПД: 269742365006681 [21:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164746&fm=269742365006681&tin=02508201610067®Number=0000000000090829&sum=28000 [21:00:15]written 0, free lines is 4095 [21:00:15]OFD Sender: Processing packet 164746 [packets to send 104, broken 103] [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00164746 [21:00:15]OFD Sender: To server: pG, [21:00:15]CommunicateWithHost lk.salyk.kg:30040 [21:00:15]ConnectInit lk.salyk.kg [21:00:15]Connected sock=9 [21:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E CF 07 01 42 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 A4 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 DE EA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 83 02 00 35 04 06 00 F5 54 49 D8 DB 59 DF 23 6C 87 01 B5 64 95 [21:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0A E1 47 00 11 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 34 37 31 38 10 04 04 00 8A 83 02 00 F4 03 04 00 6E 91 92 66 B6 04 01 00 00 9A 91 8C 87 C2 C4 72 7A [21:00:15]CommunicateWithHost err = 0 [21:00:15]CheckOFDResponse [21:00:15]1017 (14) - 77093643461234 [21:00:15]1041 (16) - 0000000000874718 [21:00:15]1040 (4) - 164746 [21:00:15]1012 (4) - 13.07.2024 14:38 [21:00:15]1206 (1) - 0 [21:00:15]OFD Sender: Remove packet 164746 [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00164746 [21:00:15]NVStorageDeleteData [21:00:16]Write to MH i2c: 01 00 00 15 11 26 [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 07 00 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 F4 0C 2D [21:00:16]RasterBufferAndPrint [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]line [21:00:16]written 0, free lines is 3326 [21:00:16]MH_Cut [21:00:16]Write to MH i2c: D1 01 00 1C 11 01 FF [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 01 00 [21:00:16]MH_I2C_Read... [21:00:16]Read from MH i2c: D1 01 00 1C 11 00 FE [21:00:16]Write to MH i2c: 01 00 00 1D 11 2E [21:00:16]Write i2c OK [21:00:16]MH_I2C_Read... [21:00:16]OFD Sender: No OFD packet to send [21:00:16]*** Cut start [21:00:16]*** Partial cut [21:00:16]*** CUTSNS_PIN = 1 [21:00:16]*** CUTSNS_PIN = 0 [21:00:16]*** Brake cut motor [21:00:17]Read from MH i2c: 01 [21:00:17]MH_I2C_Read... [21:00:17]*** Stop cut motor [21:00:17]*** Cut end [21:00:17]Read from MH i2c: 01 07 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: 01 07 00 1D 11 00 00 00 00 00 FF 0F 43 [21:00:17]process_action close_receipt done [21:00:17]requested_data is exist [21:00:17]produce_requested_data [21:00:17]requested_item fm.sn is exist - process it [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 11 00 00 [21:00:17]Write to MH i2c: E2 08 00 1E 11 80 11 00 00 00 00 00 00 A9 [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 1E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [21:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:00:17]wFMCommunicate OK [21:00:17]requested_item fd.num is exist - process it [21:00:17]SAM_PROTO_GetFieldsCounters [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 00 00 [21:00:17]Write to MH i2c: E2 08 00 1F 11 80 13 00 00 00 00 00 00 AC [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 1F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [21:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetFieldsCounters done [21:00:17]requested_item shift.num is exist - process it [21:00:17]requested_item shift.opened is exist - process it [21:00:17]req_shift_opened [21:00:17]FM_GetShiftState [21:00:17]SAM_PROTO_GetShiftState [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 01 00 [21:00:17]Write to MH i2c: E2 08 00 20 11 80 13 01 00 00 00 00 00 AE [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 20 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8F [21:00:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetShiftState done [21:00:17]FM_GetShiftState done [21:00:17]req_shift_opened done [21:00:17]requested_item shift.open_date is exist - process it [21:00:17]req_shift_open_date [21:00:17]req_shift_open_date done [21:00:17]produce_requested_data done [21:00:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164746,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:00:17]process_action_free close_receipt [21:00:17]json_value_free [21:00:17]json_value_free done [21:00:17]process_json_proto returns [21:00:17]Send response to host [21:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164746,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:00:17]free response buf [21:00:17]execute_script done [21:00:17]execute_script returns [21:00:17]free content buf [21:00:17]Sock 10.Close socket [21:00:17]Sock 10.Thread stoped [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:14]accept exits with 7 [21:01:14]New connection [21:01:14]New thread 3067104612 created [21:01:14]Thread 3067247972 joined [21:01:14]Waiting for new connection... [21:01:14] Sock 7.Parse request [21:01:14]Sock 7.Check first char [21:01:14]Sock 7.First char is OK [21:01:14]request: POST /json_proto HTTP/1.0 [21:01:14]Method: POST [21:01:14]URL: /json_proto [21:01:14]Method is POST - this is cgi request [21:01:14]url: /json_proto [21:01:14]query_string will be loaded in cgi processing [21:01:14]execute_cgi json_proto POST (null) [21:01:14]execute_cgi path=json_proto method=POST [21:01:14]POST find Content-Length [21:01:14]Host: 172.17.56.4:8080 [21:01:14]Content-Length: 677 [21:01:14]Content-Type: application/json [21:01:14] [21:01:14]POST finish read [21:01:14]Found Content-Length = 677 [21:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:14]execute_script... [21: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)458841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:14]POST & json_proto [21:01:14]process_json_proto [21:01:14]json parsed OK: [21:01:14]protocol is kg_v1.0 [21:01:14]action value=close_receipt [21:01:14]process_action close_receipt [21:01:14]cmd_close_receipt [21:01:14]MH_GetDate [21:01:14]Write to MH i2c: F0 00 00 21 11 21 [21:01:14]Write i2c OK [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: F0 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: F0 09 00 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: F0 09 00 21 11 00 1B EB 92 66 C9 DC B2 64 E3 [21:01:14]GetLastDocTimeStamp 1720904414 [21:01:14]current date 1720904475 [21:01:14]FM_GetShiftState [21:01:14]SAM_PROTO_GetShiftState [21:01:14]wFMCommunicate request_size=4 [21:01:14]MH_SAM_APDU [21:01:14]CAPDU: 80 13 01 00 [21:01:14]Write to MH i2c: E2 08 00 22 11 80 13 01 00 00 00 00 00 B0 [21:01:14]Write i2c OK [21:01:14]MH_I2C_Read... [21:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:14]Read from MH i2c: E2 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: E2 0E 00 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: E2 0E 00 22 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 91 [21:01:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:01:14]wFMCommunicate OK [21:01:14]SAM_PROTO_GetShiftState done [21:01:14]FM_GetShiftState done [21:01:14]opened in 1720831249 [21:01:14]opened+sec_in_day 1720917649 [21:01:14]quantity*price = 20003 [21:01:14]sum+1 = 20004 [21:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 307 13.07.2024 21:01 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164747 ФПД: 279437821465574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210115&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164747&fm=279437821465574&tin=02508201610067®Number=0000000000090829&sum=20000 [21:01:16]StoreToDocumentArchive [21:01:16]shift 446 fd 164747 [21:01:16]save to /storage/0446/doc_00164747 [21:01:16]save last doc name /storage/0446/doc_00164747 to /storage/kkm_last_doc_name [21:01:16]save OK [21:01:16]Clear old archive folders... [21:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:16]tlvbuf is 01EA9800 [21:01:16]SAM_PROTO_ClearQueue [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 09 00 00 [21:01:16]Write to MH i2c: E2 08 00 2F 11 80 09 00 00 00 00 00 00 B2 [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [21:01:16]RAPDU: 90 00 [21:01:16]wFMCommunicate OK [21:01:16]SAM_PROTO_ClearQueue done [21:01:16]KKMCreateOFDPacket [21:01:16]OFDProtocolAddRootSTLVToBuf [21:01:16]FM_MakeSignedData [21:01:16]FM_MakeSignedData [21:01:16]SAM_PROTO_SignData [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 0D 01 02 [21:01:16]Write to MH i2c: E2 08 00 30 11 80 0D 01 02 00 00 00 00 BA [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [21:01:16]RAPDU: 90 00 [21:01:16]wFMCommunicate OK [21:01:16]wFMCommunicate request_size=255 [21:01:16]MH_SAM_APDU [21:01: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 1B EB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 83 02 00 35 04 06 00 FE [21:01:16]Write to MH i2c: E2 02 01 31 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 1B EB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 83 02 00 35 04 06 00 FE 00 00 D3 [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [21:01:16]RAPDU: 90 00 [21:01:16]wFMCommunicate OK [21:01:16]wFMCommunicate request_size=10 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 0D 02 02 05 25 B0 15 D3 E6 [21:01:16]Write to MH i2c: E2 0D 00 32 11 80 0D 02 02 05 00 25 B0 15 D3 E6 00 00 6A [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [21:01:16]RAPDU: 90 00 [21:01:16]wFMCommunicate OK [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 0D 03 02 [21:01:16]Write to MH i2c: E2 08 00 33 11 80 0D 03 02 00 00 00 00 BF [21:01:16]OFD Sender: No OFD packet to send [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 0B 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 0B 00 33 11 00 83 10 5C DC 1E F0 03 E6 90 00 82 [21:01:16]RAPDU: 83 10 5C DC 1E F0 03 E6 90 00 [21:01:16]wFMCommunicate OK [21:01:16]SAM_PROTO_SignData done [21:01:16]FM_MakeSignedData done [21:01:16]CreateOFDProtocolMessage [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 11 00 00 [21:01:16]Write to MH i2c: E2 08 00 34 11 80 11 00 00 00 00 00 00 BF [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 17 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 17 00 34 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [21:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:01:16]wFMCommunicate OK [21:01:16]CreateOFDProtocolMessage done [21:01:16]OFDSenderStorePacket 164747 [21:01:16]StoreOFDPacket docnum=164747 [21:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C 96 07 01 3B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 1B EB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 83 02 00 35 04 06 00 FE 25 B0 15 D3 E6 83 10 5C DC 1E F0 03 E6 [21:01:16]CheckFolder [21:01:16]dirname=/storage/ofd_packets [21:01:16]CheckFolder done [21:01:16]ProducePacketName [21:01:16]name=ofd_packets/00164747 [21:01:16]NVStorageSaveData ofd_packets/00164747 [21:01:16]File name is /storage/ofd_packets/00164747 [21:01:16]Write 301 bytes [21:01:16]NVStorageSaveData done [21:01:16]OFDSenderStorePacket done [21:01:16]KKMCreateOFDPacket done [21:01:16]NVStorageSaveData kkm_last_timestamp [21:01:16]File name is /storage/kkm_last_timestamp [21:01:16]Write 4 bytes [21:01:16]NVStorageSaveData done [21:01:16]ExternCall_PrintAddStr [21:01:16]wPrintStart [21:01:16]Write to MH i2c: 01 00 00 35 11 46 [21:01:16]OFD Sender: Processing packet 164747 [packets to send 104, broken 103] [21:01:16]ProducePacketName [21:01:16]name=ofd_packets/00164747 [21:01:16]OFD Sender: To server: pG, [21:01:16]CommunicateWithHost lk.salyk.kg:30040 [21:01:16]ConnectInit lk.salyk.kg [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: 01 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: 01 07 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 FF 0F 5B [21:01:16]RasterBufferAndPrint [21:01:16]line Счет N : (1)458841 [21:01:16]line ИНН: 02508201610067 [21:01:16]line Контрольно-Кассовый Чек [21:01:16]line ПРОДАЖА [21:01:16]line ТРК (МРК, ГНК) : 12 [21:01:16]line Товар: 2710124130 [21:01:16]line Аи-92-К-5 [21:01:16]line 3.040 * 65.80 [21:01:16]line = 200.03 [21:01:16]line НДС 12% НСП 1% [21:01:16]line > о реализуемом товаре [21:01:16]line ОКРУГЛЕНИЕ: -0.03 [21:01:16]line ИТОГО: 200.00 [21:01:16]line Внесено: 200.00 [21:01:16]line СДАЧА: 0.00 [21:01:16]line НСП 1% : 1.77 [21:01:16]line НДС 12% : 21.24 [21:01:16]line Наличными: 200.00 [21:01:16]line Безнал.: 0.00 [21:01:16]line Место: АЗС № 72 "Партнер Нефть" [21:01:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:01:16]line СНО: Общий режим [21:01:16]line Чек 307 13.07.2024 21:01 [21:01:16]line Смена: 446 ФФД: 1.0 [21:01:16]line ЗНМ: 0300000160 [21:01:16]line РНМ: 0000000000090829 [21:01:16]line Версия ККМ: 001 [21:01:16]line ФМ: 0000000000874718 [21:01:16]line ФД: 164747 [21:01:16]line ФПД: 279437821465574 [21:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210115&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164747&fm=279437821465574&tin=02508201610067®Number=0000000000090829&sum=20000 [21:01:17]Connected sock=10 [21:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C 96 07 01 3B 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 1B EB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 83 02 00 35 04 06 00 FE 25 B0 15 D3 E6 83 10 5C DC 1E F0 03 E6 [21:01:17]written 0, free lines is 4095 [21:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 BF 47 00 8A 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 34 37 31 38 10 04 04 00 8B 83 02 00 F4 03 04 00 AB 91 92 66 B6 04 01 00 00 94 32 D4 E8 EC A0 13 B4 [21:01:17]CommunicateWithHost err = 0 [21:01:17]CheckOFDResponse [21:01:17]1017 (14) - 77093643461234 [21:01:17]1041 (16) - 0000000000874718 [21:01:17]1040 (4) - 164747 [21:01:17]1012 (4) - 13.07.2024 14:39 [21:01:17]1206 (1) - 0 [21:01:17]OFD Sender: Remove packet 164747 [21:01:17]ProducePacketName [21:01:17]name=ofd_packets/00164747 [21:01:17]NVStorageDeleteData [21:01:17]Write to MH i2c: 01 00 00 5F 11 70 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 5F 11 00 00 00 00 00 EF 0C 72 [21:01:17]RasterBufferAndPrint [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]written 0, free lines is 3317 [21:01:17]MH_Cut [21:01:17]Write to MH i2c: D1 01 00 66 11 01 49 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 01 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 01 00 66 11 00 48 [21:01:17]Write to MH i2c: 01 00 00 67 11 78 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]OFD Sender: No OFD packet to send [21:01:18]*** Cut start [21:01:18]*** Partial cut [21:01:18]*** CUTSNS_PIN = 1 [21:01:18]*** CUTSNS_PIN = 0 [21:01:18]*** Brake cut motor [21:01:18]Read from MH i2c: 01 [21:01:18]MH_I2C_Read... [21:01:18]*** Stop cut motor [21:01:18]*** Cut end [21:01:18]Read from MH i2c: 01 07 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 07 00 67 11 00 00 00 00 00 FF 0F 8D [21:01:18]process_action close_receipt done [21:01:18]requested_data is exist [21:01:18]produce_requested_data [21:01:18]requested_item fm.sn is exist - process it [21:01:18]wFMCommunicate request_size=4 [21:01:18]MH_SAM_APDU [21:01:18]CAPDU: 80 11 00 00 [21:01:18]Write to MH i2c: E2 08 00 68 11 80 11 00 00 00 00 00 00 F3 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 [21:01:18]MH_I2C_Read... [21:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:18]Read from MH i2c: E2 17 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 17 00 68 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [21:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:01:18]wFMCommunicate OK [21:01:18]requested_item fd.num is exist - process it [21:01:18]SAM_PROTO_GetFieldsCounters [21:01:18]wFMCommunicate request_size=4 [21:01:18]MH_SAM_APDU [21:01:18]CAPDU: 80 13 00 00 [21:01:18]Write to MH i2c: E2 08 00 69 11 80 13 00 00 00 00 00 00 F6 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:18]Read from MH i2c: E2 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 62 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 62 00 69 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:18]wFMCommunicate OK [21:01:18]SAM_PROTO_GetFieldsCounters done [21:01:18]requested_item shift.num is exist - process it [21:01:18]requested_item shift.opened is exist - process it [21:01:18]req_shift_opened [21:01:18]FM_GetShiftState [21:01:18]SAM_PROTO_GetShiftState [21:01:18]wFMCommunicate request_size=4 [21:01:18]MH_SAM_APDU [21:01:18]CAPDU: 80 13 01 00 [21:01:18]Write to MH i2c: E2 08 00 6A 11 80 13 01 00 00 00 00 00 F8 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:18]Read from MH i2c: E2 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 0E 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: E2 0E 00 6A 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D9 [21:01:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:01:18]wFMCommunicate OK [21:01:18]SAM_PROTO_GetShiftState done [21:01:18]FM_GetShiftState done [21:01:18]req_shift_opened done [21:01:18]requested_item shift.open_date is exist - process it [21:01:18]req_shift_open_date [21:01:18]req_shift_open_date done [21:01:18]produce_requested_data done [21:01:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164747,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:01:18]process_action_free close_receipt [21:01:18]json_value_free [21:01:18]json_value_free done [21:01:18]process_json_proto returns [21:01:18]Send response to host [21:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164747,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:01:18]free response buf [21:01:18]execute_script done [21:01:18]execute_script returns [21:01:18]free content buf [21:01:18]Sock 7.Close socket [21:01:18]Sock 7.Thread stoped [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:35]accept exits with 9 [21:09:35]New connection [21:09:35]New thread 3067247972 created [21:09:35]Thread 3067104612 joined [21:09:35]Waiting for new connection... [21:09:35] Sock 9.Parse request [21:09:35]Sock 9.Check first char [21:09:35]Sock 9.First char is OK [21:09:35]request: POST /json_proto HTTP/1.0 [21:09:35]Method: POST [21:09:35]URL: /json_proto [21:09:35]Method is POST - this is cgi request [21:09:35]url: /json_proto [21:09:35]query_string will be loaded in cgi processing [21:09:35]execute_cgi json_proto POST (null) [21:09:35]execute_cgi path=json_proto method=POST [21:09:35]POST find Content-Length [21:09:35]Host: 172.17.56.4:8080 [21:09:35]Content-Length: 677 [21:09:35]Content-Type: application/json [21:09:35] [21:09:35]POST finish read [21:09:35]Found Content-Length = 677 [21:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:35]execute_script... [21:09: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)458842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:35]POST & json_proto [21:09:35]process_json_proto [21:09:35]json parsed OK: [21:09:35]protocol is kg_v1.0 [21:09:35]action value=close_receipt [21:09:35]process_action close_receipt [21:09:35]cmd_close_receipt [21:09:35]MH_GetDate [21:09:35]Write to MH i2c: F0 00 00 6B 11 6B [21:09:35]Write i2c OK [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: F0 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: F0 09 00 [21:09:35]MH_I2C_Read... [21:09:35]Read from MH i2c: F0 09 00 6B 11 00 10 ED 92 66 C9 DC B2 64 24 [21:09:35]GetLastDocTimeStamp 1720904475 [21:09:35]current date 1720904976 [21:09:35]FM_GetShiftState [21:09:35]SAM_PROTO_GetShiftState [21:09:35]wFMCommunicate request_size=4 [21:09:35]MH_SAM_APDU [21:09:35]CAPDU: 80 13 01 00 [21:09:35]Write to MH i2c: E2 08 00 6C 11 80 13 01 00 00 00 00 00 FA [21:09:35]Write i2c OK [21:09:35]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 6C 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DB [21:09:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_GetShiftState done [21:09:36]FM_GetShiftState done [21:09:36]opened in 1720831249 [21:09:36]opened+sec_in_day 1720917649 [21:09:36]quantity*price = 30004 [21:09:36]sum+1 = 30006 [21:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 308 13.07.2024 21:09 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164748 ФПД: 7012235264201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210937&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164748&fm=7012235264201&tin=02508201610067®Number=0000000000090829&sum=30000 [21:09:37]StoreToDocumentArchive [21:09:37]shift 446 fd 164748 [21:09:37]save to /storage/0446/doc_00164748 [21:09:37]save last doc name /storage/0446/doc_00164748 to /storage/kkm_last_doc_name [21:09:37]save OK [21:09:37]Clear old archive folders... [21:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:37]tlvbuf is 01E63C30 [21:09:37]SAM_PROTO_ClearQueue [21:09:37]wFMCommunicate request_size=4 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 09 00 00 [21:09:37]Write to MH i2c: E2 08 00 79 11 80 09 00 00 00 00 00 00 FC [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [21:09:37]RAPDU: 90 00 [21:09:37]wFMCommunicate OK [21:09:37]SAM_PROTO_ClearQueue done [21:09:37]KKMCreateOFDPacket [21:09:37]OFDProtocolAddRootSTLVToBuf [21:09:37]FM_MakeSignedData [21:09:37]FM_MakeSignedData [21:09:37]SAM_PROTO_SignData [21:09:37]wFMCommunicate request_size=4 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 0D 01 02 [21:09:37]Write to MH i2c: E2 08 00 7A 11 80 0D 01 02 00 00 00 00 04 [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [21:09:37]RAPDU: 90 00 [21:09:37]wFMCommunicate OK [21:09:37]wFMCommunicate request_size=255 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 11 ED 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 83 02 00 35 04 06 00 06 [21:09:37]Write to MH i2c: E2 02 01 7B 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 11 ED 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 83 02 00 35 04 06 00 06 00 00 3F [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [21:09:37]RAPDU: 90 00 [21:09:37]wFMCommunicate OK [21:09:37]wFMCommunicate request_size=10 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 0D 02 02 05 60 A9 CA C0 C9 [21:09:37]Write to MH i2c: E2 0D 00 7C 11 80 0D 02 02 05 00 60 A9 CA C0 C9 00 00 6D [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [21:09:37]RAPDU: 90 00 [21:09:37]wFMCommunicate OK [21:09:37]wFMCommunicate request_size=4 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 0D 03 02 [21:09:37]Write to MH i2c: E2 08 00 7D 11 80 0D 03 02 00 00 00 00 09 [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 0B 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 0B 00 7D 11 00 19 04 10 FB 7B 02 2C 40 90 00 1B [21:09:37]RAPDU: 19 04 10 FB 7B 02 2C 40 90 00 [21:09:37]wFMCommunicate OK [21:09:37]SAM_PROTO_SignData done [21:09:37]FM_MakeSignedData done [21:09:37]CreateOFDProtocolMessage [21:09:37]wFMCommunicate request_size=4 [21:09:37]MH_SAM_APDU [21:09:37]CAPDU: 80 11 00 00 [21:09:37]Write to MH i2c: E2 08 00 7E 11 80 11 00 00 00 00 00 00 09 [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:37]Read from MH i2c: E2 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 17 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: E2 17 00 7E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [21:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:09:37]wFMCommunicate OK [21:09:37]CreateOFDProtocolMessage done [21:09:37]OFDSenderStorePacket 164748 [21:09:37]StoreOFDPacket docnum=164748 [21:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 89 07 01 D1 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 11 ED 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 83 02 00 35 04 06 00 06 60 A9 CA C0 C9 19 04 10 FB 7B 02 2C 40 [21:09:37]CheckFolder [21:09:37]dirname=/storage/ofd_packets [21:09:37]CheckFolder done [21:09:37]ProducePacketName [21:09:37]name=ofd_packets/00164748 [21:09:37]NVStorageSaveData ofd_packets/00164748 [21:09:37]File name is /storage/ofd_packets/00164748 [21:09:37]Write 301 bytes [21:09:37]NVStorageSaveData done [21:09:37]OFDSenderStorePacket done [21:09:37]KKMCreateOFDPacket done [21:09:37]NVStorageSaveData kkm_last_timestamp [21:09:37]File name is /storage/kkm_last_timestamp [21:09:37]Write 4 bytes [21:09:37]NVStorageSaveData done [21:09:37]ExternCall_PrintAddStr [21:09:37]wPrintStart [21:09:37]Write to MH i2c: 01 00 00 7F 11 90 [21:09:37]Write i2c OK [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 07 00 [21:09:37]MH_I2C_Read... [21:09:37]Read from MH i2c: 01 07 00 7F 11 00 00 00 00 00 FF 0F A5 [21:09:37]RasterBufferAndPrint [21:09:37]line Счет N : (1)458842 [21:09:37]line ИНН: 02508201610067 [21:09:37]line Контрольно-Кассовый Чек [21:09:37]line ПРОДАЖА [21:09:37]line ТРК (МРК, ГНК) : 12 [21:09:37]line Товар: 2710124130 [21:09:37]line Аи-92-К-5 [21:09:37]line 4.560 * 65.80 [21:09:37]line = 300.05 [21:09:37]line НДС 12% НСП 1% [21:09:37]line > о реализуемом товаре [21:09:37]line ОКРУГЛЕНИЕ: -0.05 [21:09:37]line ИТОГО: 300.00 [21:09:37]line Внесено: 300.00 [21:09:37]line СДАЧА: 0.00 [21:09:37]line НСП 1% : 2.65 [21:09:37]line НДС 12% : 31.86 [21:09:37]line Наличными: 300.00 [21:09:37]line Безнал.: 0.00 [21:09:37]line Место: АЗС № 72 "Партнер Нефть" [21:09:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:09:37]line СНО: Общий режим [21:09:37]line Чек 308 13.07.2024 21:09 [21:09:37]line Смена: 446 ФФД: 1.0 [21:09:37]line ЗНМ: 0300000160 [21:09:37]line РНМ: 0000000000090829 [21:09:37]line Версия ККМ: 001 [21:09:37]line ФМ: 0000000000874718 [21:09:37]line ФД: 164748 [21:09:37]line ФПД: 7012235264201 [21:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210937&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164748&fm=7012235264201&tin=02508201610067®Number=0000000000090829&sum=30000 [21:09:37]OFD Sender: Processing packet 164748 [packets to send 104, broken 103] [21:09:37]ProducePacketName [21:09:37]name=ofd_packets/00164748 [21:09:37]OFD Sender: To server: pG, [21:09:37]CommunicateWithHost lk.salyk.kg:30040 [21:09:37]ConnectInit lk.salyk.kg [21:09:37]written 0, free lines is 4095 [21:09:38]Connected sock=11 [21:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 89 07 01 D1 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 11 ED 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 83 02 00 35 04 06 00 06 60 A9 CA C0 C9 19 04 10 FB 7B 02 2C 40 [21:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 7E 47 00 E7 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 34 37 31 38 10 04 04 00 8C 83 02 00 F4 03 04 00 A0 93 92 66 B6 04 01 00 00 B0 D3 CF D6 B7 14 73 53 [21:09:38]CommunicateWithHost err = 0 [21:09:38]CheckOFDResponse [21:09:38]1017 (14) - 77093643461234 [21:09:38]1041 (16) - 0000000000874718 [21:09:38]1040 (4) - 164748 [21:09:38]1012 (4) - 13.07.2024 14:48 [21:09:38]1206 (1) - 0 [21:09:38]OFD Sender: Remove packet 164748 [21:09:38]ProducePacketName [21:09:38]name=ofd_packets/00164748 [21:09:38]NVStorageDeleteData [21:09:38]Write to MH i2c: 01 00 00 A9 11 BA [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 07 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 02 0D D0 [21:09:38]RasterBufferAndPrint [21:09:38]line [21:09:38]line [21:09:38]line [21:09:38]line [21:09:38]line [21:09:38]written 0, free lines is 3336 [21:09:38]MH_Cut [21:09:38]Write to MH i2c: D1 01 00 B0 11 01 93 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: D1 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: D1 01 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: D1 01 00 B0 11 00 92 [21:09:38]Write to MH i2c: 01 00 00 B1 11 C2 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]OFD Sender: No OFD packet to send [21:09:39]*** Cut start [21:09:39]*** Partial cut [21:09:39]*** CUTSNS_PIN = 1 [21:09:39]*** CUTSNS_PIN = 0 [21:09:39]*** Brake cut motor [21:09:39]Read from MH i2c: 01 [21:09:39]MH_I2C_Read... [21:09:39]*** Stop cut motor [21:09:39]*** Cut end [21:09:39]Read from MH i2c: 01 07 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 07 00 B1 11 00 00 00 00 00 FF 0F D7 [21:09:39]process_action close_receipt done [21:09:39]requested_data is exist [21:09:39]produce_requested_data [21:09:39]requested_item fm.sn is exist - process it [21:09:39]wFMCommunicate request_size=4 [21:09:39]MH_SAM_APDU [21:09:39]CAPDU: 80 11 00 00 [21:09:39]Write to MH i2c: E2 08 00 B2 11 80 11 00 00 00 00 00 00 3D [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 [21:09:39]MH_I2C_Read... [21:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:39]Read from MH i2c: E2 17 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 17 00 B2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [21:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:09:39]wFMCommunicate OK [21:09:39]requested_item fd.num is exist - process it [21:09:39]SAM_PROTO_GetFieldsCounters [21:09:39]wFMCommunicate request_size=4 [21:09:39]MH_SAM_APDU [21:09:39]CAPDU: 80 13 00 00 [21:09:39]Write to MH i2c: E2 08 00 B3 11 80 13 00 00 00 00 00 00 40 [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:39]Read from MH i2c: E2 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 62 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 62 00 B3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [21:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:39]wFMCommunicate OK [21:09:39]SAM_PROTO_GetFieldsCounters done [21:09:39]requested_item shift.num is exist - process it [21:09:39]requested_item shift.opened is exist - process it [21:09:39]req_shift_opened [21:09:39]FM_GetShiftState [21:09:39]SAM_PROTO_GetShiftState [21:09:39]wFMCommunicate request_size=4 [21:09:39]MH_SAM_APDU [21:09:39]CAPDU: 80 13 01 00 [21:09:39]Write to MH i2c: E2 08 00 B4 11 80 13 01 00 00 00 00 00 42 [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:39]Read from MH i2c: E2 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: E2 0E 00 B4 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 23 [21:09:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:09:39]wFMCommunicate OK [21:09:39]SAM_PROTO_GetShiftState done [21:09:39]FM_GetShiftState done [21:09:39]req_shift_opened done [21:09:39]requested_item shift.open_date is exist - process it [21:09:39]req_shift_open_date [21:09:39]req_shift_open_date done [21:09:39]produce_requested_data done [21:09:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164748,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:09:39]process_action_free close_receipt [21:09:39]json_value_free [21:09:39]json_value_free done [21:09:39]process_json_proto returns [21:09:39]Send response to host [21:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164748,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:09:39]free response buf [21:09:39]execute_script done [21:09:39]execute_script returns [21:09:39]free content buf [21:09:39]Sock 9.Close socket [21:09:39]Sock 9.Thread stoped [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:52]accept exits with 7 [21:14:52]New connection [21:14:52]New thread 3067104612 created [21:14:52]Thread 3067247972 joined [21:14:52]Waiting for new connection... [21:14:52] Sock 7.Parse request [21:14:52]Sock 7.Check first char [21:14:52]Sock 7.First char is OK [21:14:52]request: POST /json_proto HTTP/1.0 [21:14:52]Method: POST [21:14:52]URL: /json_proto [21:14:52]Method is POST - this is cgi request [21:14:52]url: /json_proto [21:14:52]query_string will be loaded in cgi processing [21:14:52]execute_cgi json_proto POST (null) [21:14:52]execute_cgi path=json_proto method=POST [21:14:52]POST find Content-Length [21:14:52]Host: 172.17.56.4:8080 [21:14:52]Content-Length: 640 [21:14:52]Content-Type: application/json [21:14:52] [21:14:52]POST finish read [21:14:52]Found Content-Length = 640 [21:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:52]execute_script... [21:14: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)458843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:52]POST & json_proto [21:14:52]process_json_proto [21:14:52]json parsed OK: [21:14:52]protocol is kg_v1.0 [21:14:52]action value=close_receipt [21:14:52]process_action close_receipt [21:14:52]cmd_close_receipt [21:14:52]MH_GetDate [21:14:52]Write to MH i2c: F0 00 00 B5 11 B5 [21:14:52]Write i2c OK [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: F0 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: F0 09 00 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: F0 09 00 B5 11 00 4D EE 92 66 C9 DC B2 64 AC [21:14:52]GetLastDocTimeStamp 1720904977 [21:14:52]current date 1720905293 [21:14:52]FM_GetShiftState [21:14:52]SAM_PROTO_GetShiftState [21:14:52]wFMCommunicate request_size=4 [21:14:52]MH_SAM_APDU [21:14:52]CAPDU: 80 13 01 00 [21:14:52]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [21:14:52]Write i2c OK [21:14:52]MH_I2C_Read... [21:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:52]Read from MH i2c: E2 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: E2 0E 00 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 25 [21:14:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:14:52]wFMCommunicate OK [21:14:52]SAM_PROTO_GetShiftState done [21:14:52]FM_GetShiftState done [21:14:52]opened in 1720831249 [21:14:52]opened+sec_in_day 1720917649 [21:14:52]quantity*price = 65800 [21:14:52]sum+1 = 65801 [21:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 309 13.07.2024 21:14 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164749 ФПД: 49225316505838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211453&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164749&fm=49225316505838&tin=02508201610067®Number=0000000000090829&sum=65800 [21:14:53]StoreToDocumentArchive [21:14:53]shift 446 fd 164749 [21:14:53]save to /storage/0446/doc_00164749 [21:14:53]save last doc name /storage/0446/doc_00164749 to /storage/kkm_last_doc_name [21:14:53]save OK [21:14:53]Clear old archive folders... [21:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:53]tlvbuf is 01EA92E0 [21:14:53]SAM_PROTO_ClearQueue [21:14:53]wFMCommunicate request_size=4 [21:14:53]MH_SAM_APDU [21:14:53]CAPDU: 80 09 00 00 [21:14:53]Write to MH i2c: E2 08 00 C3 11 80 09 00 00 00 00 00 00 46 [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [21:14:53]RAPDU: 90 00 [21:14:53]wFMCommunicate OK [21:14:53]SAM_PROTO_ClearQueue done [21:14:53]KKMCreateOFDPacket [21:14:53]OFDProtocolAddRootSTLVToBuf [21:14:53]FM_MakeSignedData [21:14:53]FM_MakeSignedData [21:14:53]SAM_PROTO_SignData [21:14:53]wFMCommunicate request_size=4 [21:14:53]MH_SAM_APDU [21:14:53]CAPDU: 80 0D 01 02 [21:14:53]Write to MH i2c: E2 08 00 C4 11 80 0D 01 02 00 00 00 00 4E [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [21:14:53]RAPDU: 90 00 [21:14:53]wFMCommunicate OK [21:14:53]wFMCommunicate request_size=255 [21:14:53]MH_SAM_APDU [21: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 35 01 00 00 F4 03 04 00 4D EE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 83 02 00 35 04 06 00 2C [21:14:53]Write to MH i2c: E2 02 01 C5 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 35 01 00 00 F4 03 04 00 4D EE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 83 02 00 35 04 06 00 2C 00 00 95 [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [21:14:53]RAPDU: 90 00 [21:14:53]wFMCommunicate OK [21:14:53]wFMCommunicate request_size=10 [21:14:53]MH_SAM_APDU [21:14:53]CAPDU: 80 0D 02 02 05 C5 29 81 18 EE [21:14:53]Write to MH i2c: E2 0D 00 C6 11 80 0D 02 02 05 00 C5 29 81 18 EE 00 00 D0 [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [21:14:53]RAPDU: 90 00 [21:14:53]wFMCommunicate OK [21:14:53]wFMCommunicate request_size=4 [21:14:53]MH_SAM_APDU [21:14:53]CAPDU: 80 0D 03 02 [21:14:53]Write to MH i2c: E2 08 00 C7 11 80 0D 03 02 00 00 00 00 53 [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 0B 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 0B 00 C7 11 00 4B 2B 26 BC 8D 5D BE 1A 90 00 6E [21:14:53]RAPDU: 4B 2B 26 BC 8D 5D BE 1A 90 00 [21:14:53]wFMCommunicate OK [21:14:53]SAM_PROTO_SignData done [21:14:53]FM_MakeSignedData done [21:14:53]CreateOFDProtocolMessage [21:14:53]wFMCommunicate request_size=4 [21:14:53]MH_SAM_APDU [21:14:53]CAPDU: 80 11 00 00 [21:14:53]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:53]Read from MH i2c: E2 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 17 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [21:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:14:53]wFMCommunicate OK [21:14:53]CreateOFDProtocolMessage done [21:14:53]OFDSenderStorePacket 164749 [21:14:53]StoreOFDPacket docnum=164749 [21:14:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B 95 07 01 FB 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 35 01 00 00 F4 03 04 00 4D EE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 83 02 00 35 04 06 00 2C C5 29 81 18 EE 4B 2B 26 BC 8D 5D BE 1A [21:14:53]CheckFolder [21:14:53]dirname=/storage/ofd_packets [21:14:53]CheckFolder done [21:14:53]ProducePacketName [21:14:53]name=ofd_packets/00164749 [21:14:53]NVStorageSaveData ofd_packets/00164749 [21:14:53]File name is /storage/ofd_packets/00164749 [21:14:53]Write 301 bytes [21:14:53]NVStorageSaveData done [21:14:53]OFDSenderStorePacket done [21:14:53]KKMCreateOFDPacket done [21:14:53]NVStorageSaveData kkm_last_timestamp [21:14:53]File name is /storage/kkm_last_timestamp [21:14:53]Write 4 bytes [21:14:53]NVStorageSaveData done [21:14:53]ExternCall_PrintAddStr [21:14:53]wPrintStart [21:14:53]Write to MH i2c: 01 00 00 C9 11 DA [21:14:53]Write i2c OK [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: 01 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: 01 07 00 [21:14:53]MH_I2C_Read... [21:14:53]Read from MH i2c: 01 07 00 C9 11 00 00 00 00 00 FF 0F EF [21:14:53]RasterBufferAndPrint [21:14:53]line Счет N : (1)458843 [21:14:53]line ИНН: 02508201610067 [21:14:53]line Контрольно-Кассовый Чек [21:14:53]line ПРОДАЖА [21:14:53]line ТРК (МРК, ГНК) : 12 [21:14:53]line Товар: 2710124130 [21:14:53]line Аи-92-К-5 [21:14:53]line 10.000 * 65.80 [21:14:53]line = 658.00 [21:14:53]line НДС 12% НСП 1% [21:14:53]line > о реализуемом товаре [21:14:53]line ИТОГО: 658.00 [21:14:53]line НСП 1% : 5.82 [21:14:53]line НДС 12% : 69.88 [21:14:53]line Наличными: 658.00 [21:14:53]line Безнал.: 0.00 [21:14:53]line Место: АЗС № 72 "Партнер Нефть" [21:14:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:14:53]line СНО: Общий режим [21:14:53]line Чек 309 13.07.2024 21:14 [21:14:53]line Смена: 446 ФФД: 1.0 [21:14:53]line ЗНМ: 0300000160 [21:14:53]line РНМ: 0000000000090829 [21:14:53]line Версия ККМ: 001 [21:14:53]line ФМ: 0000000000874718 [21:14:53]line ФД: 164749 [21:14:53]line ФПД: 49225316505838 [21:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211453&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164749&fm=49225316505838&tin=02508201610067®Number=0000000000090829&sum=65800 [21:14:54]written 0, free lines is 4095 [21:14:54]OFD Sender: Processing packet 164749 [packets to send 104, broken 103] [21:14:54]ProducePacketName [21:14:54]name=ofd_packets/00164749 [21:14:54]OFD Sender: To server: pG, [21:14:54]CommunicateWithHost lk.salyk.kg:30040 [21:14:54]ConnectInit lk.salyk.kg [21:14:54]Connected sock=10 [21:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B 95 07 01 FB 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 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 35 01 00 00 F4 03 04 00 4D EE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 83 02 00 35 04 06 00 2C C5 29 81 18 EE 4B 2B 26 BC 8D 5D BE 1A [21:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 72 47 00 C9 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 83 02 00 F4 03 04 00 DD 94 92 66 B6 04 01 00 00 A9 FE 2C 05 62 7B 13 54 [21:14:54]CommunicateWithHost err = 0 [21:14:54]CheckOFDResponse [21:14:54]1017 (14) - 77093643461234 [21:14:54]1041 (16) - 0000000000874718 [21:14:54]1040 (4) - 164749 [21:14:54]1012 (4) - 13.07.2024 14:53 [21:14:54]1206 (1) - 0 [21:14:54]OFD Sender: Remove packet 164749 [21:14:54]ProducePacketName [21:14:54]name=ofd_packets/00164749 [21:14:54]NVStorageDeleteData [21:14:54]Write to MH i2c: 01 00 00 F0 11 01 [21:14:54]Write i2c OK [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: 01 [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: 01 07 00 [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 24 0D 39 [21:14:54]RasterBufferAndPrint [21:14:54]line [21:14:54]line [21:14:54]line [21:14:54]line [21:14:54]line [21:14:54]written 0, free lines is 3371 [21:14:54]MH_Cut [21:14:54]Write to MH i2c: D1 01 00 F7 11 01 DA [21:14:54]Write i2c OK [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: D1 [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: D1 01 00 [21:14:54]MH_I2C_Read... [21:14:54]Read from MH i2c: D1 01 00 F7 11 00 D9 [21:14:54]Write to MH i2c: 01 00 00 F8 11 09 [21:14:54]Write i2c OK [21:14:54]MH_I2C_Read... [21:14:55]OFD Sender: No OFD packet to send [21:14:55]*** Cut start [21:14:55]*** Partial cut [21:14:55]*** CUTSNS_PIN = 1 [21:14:55]*** CUTSNS_PIN = 0 [21:14:55]*** Brake cut motor [21:14:55]Read from MH i2c: 01 [21:14:55]MH_I2C_Read... [21:14:55]*** Stop cut motor [21:14:55]*** Cut end [21:14:55]Read from MH i2c: 01 07 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 FF 0F 1E [21:14:55]process_action close_receipt done [21:14:55]requested_data is exist [21:14:55]produce_requested_data [21:14:55]requested_item fm.sn is exist - process it [21:14:55]wFMCommunicate request_size=4 [21:14:55]MH_SAM_APDU [21:14:55]CAPDU: 80 11 00 00 [21:14:55]Write to MH i2c: E2 08 00 F9 11 80 11 00 00 00 00 00 00 84 [21:14:55]Write i2c OK [21:14:55]MH_I2C_Read... [21:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:55]Read from MH i2c: E2 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 17 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 17 00 F9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [21:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:14:55]wFMCommunicate OK [21:14:55]requested_item fd.num is exist - process it [21:14:55]SAM_PROTO_GetFieldsCounters [21:14:55]wFMCommunicate request_size=4 [21:14:55]MH_SAM_APDU [21:14:55]CAPDU: 80 13 00 00 [21:14:55]Write to MH i2c: E2 08 00 FA 11 80 13 00 00 00 00 00 00 87 [21:14:55]Write i2c OK [21:14:55]MH_I2C_Read... [21:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:56]Read from MH i2c: E2 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 62 00 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 62 00 FA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [21:14: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:56]wFMCommunicate OK [21:14:56]SAM_PROTO_GetFieldsCounters done [21:14:56]requested_item shift.num is exist - process it [21:14:56]requested_item shift.opened is exist - process it [21:14:56]req_shift_opened [21:14:56]FM_GetShiftState [21:14:56]SAM_PROTO_GetShiftState [21:14:56]wFMCommunicate request_size=4 [21:14:56]MH_SAM_APDU [21:14:56]CAPDU: 80 13 01 00 [21:14:56]Write to MH i2c: E2 08 00 FB 11 80 13 01 00 00 00 00 00 89 [21:14:56]Write i2c OK [21:14:56]MH_I2C_Read... [21:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:56]Read from MH i2c: E2 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 0E 00 [21:14:56]MH_I2C_Read... [21:14:56]Read from MH i2c: E2 0E 00 FB 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6A [21:14:56]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:14:56]wFMCommunicate OK [21:14:56]SAM_PROTO_GetShiftState done [21:14:56]FM_GetShiftState done [21:14:56]req_shift_opened done [21:14:56]requested_item shift.open_date is exist - process it [21:14:56]req_shift_open_date [21:14:56]req_shift_open_date done [21:14:56]produce_requested_data done [21:14:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164749,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:14:56]process_action_free close_receipt [21:14:56]json_value_free [21:14:56]json_value_free done [21:14:56]process_json_proto returns [21:14:56]Send response to host [21:14:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164749,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:14:56]free response buf [21:14:56]execute_script done [21:14:56]execute_script returns [21:14:56]free content buf [21:14:56]Sock 7.Close socket [21:14:56]Sock 7.Thread stoped [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:15]accept exits with 9 [21:19:15]New connection [21:19:15]New thread 3067247972 created [21:19:15]Thread 3067104612 joined [21:19:15]Waiting for new connection... [21:19:15] Sock 9.Parse request [21:19:15]Sock 9.Check first char [21:19:15]Sock 9.First char is OK [21:19:15]request: POST /json_proto HTTP/1.0 [21:19:15]Method: POST [21:19:15]URL: /json_proto [21:19:15]Method is POST - this is cgi request [21:19:15]url: /json_proto [21:19:15]query_string will be loaded in cgi processing [21:19:15]execute_cgi json_proto POST (null) [21:19:15]execute_cgi path=json_proto method=POST [21:19:15]POST find Content-Length [21:19:15]Host: 172.17.56.4:8080 [21:19:15]Content-Length: 793 [21:19:15]Content-Type: application/json [21:19:15] [21:19:15]POST finish read [21:19:15]Found Content-Length = 793 [21:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:15]execute_script... [21:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:15]POST & json_proto [21:19:15]process_json_proto [21:19:15]json parsed OK: [21:19:15]protocol is kg_v1.0 [21:19:15]action value=close_receipt [21:19:15]process_action close_receipt [21:19:15]cmd_close_receipt [21:19:15]MH_GetDate [21:19:15]Write to MH i2c: F0 00 00 FC 11 FC [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: F0 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: F0 09 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: F0 09 00 FC 11 00 54 EF 92 66 C9 DC B2 64 FB [21:19:15]GetLastDocTimeStamp 1720905293 [21:19:15]current date 1720905556 [21:19:15]FM_GetShiftState [21:19:15]SAM_PROTO_GetShiftState [21:19:15]wFMCommunicate request_size=4 [21:19:15]MH_SAM_APDU [21:19:15]CAPDU: 80 13 01 00 [21:19:15]Write to MH i2c: E2 08 00 FD 11 80 13 01 00 00 00 00 00 8B [21:19:15]Write i2c OK [21:19:15]MH_I2C_Read... [21:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:15]Read from MH i2c: E2 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 0E 00 [21:19:15]MH_I2C_Read... [21:19:15]Read from MH i2c: E2 0E 00 FD 11 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6C [21:19:15]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:19:15]wFMCommunicate OK [21:19:15]SAM_PROTO_GetShiftState done [21:19:15]FM_GetShiftState done [21:19:15]opened in 1720831249 [21:19:15]opened+sec_in_day 1720917649 [21:19:15]quantity*price = 100047 [21:19:15]sum+1 = 100048 [21:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 310 13.07.2024 21:19 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164750 ФПД: 266019938424586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164750&fm=266019938424586&tin=02508201610067®Number=0000000000090829&sum=100047 [21:19:16]StoreToDocumentArchive [21:19:16]shift 446 fd 164750 [21:19:16]save to /storage/0446/doc_00164750 [21:19:16]save last doc name /storage/0446/doc_00164750 to /storage/kkm_last_doc_name [21:19:16]save OK [21:19:16]Clear old archive folders... [21:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:16]tlvbuf is 01E98260 [21:19:16]SAM_PROTO_ClearQueue [21:19:16]wFMCommunicate request_size=4 [21:19:16]MH_SAM_APDU [21:19:16]CAPDU: 80 09 00 00 [21:19:16]Write to MH i2c: E2 08 00 0A 12 80 09 00 00 00 00 00 00 8E [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:16]Read from MH i2c: E2 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: E2 03 00 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [21:19:16]RAPDU: 90 00 [21:19:16]wFMCommunicate OK [21:19:16]SAM_PROTO_ClearQueue done [21:19:16]KKMCreateOFDPacket [21:19:16]OFDProtocolAddRootSTLVToBuf [21:19:16]FM_MakeSignedData [21:19:16]FM_MakeSignedData [21:19:16]SAM_PROTO_SignData [21:19:16]wFMCommunicate request_size=4 [21:19:16]MH_SAM_APDU [21:19:16]CAPDU: 80 0D 01 02 [21:19:16]Write to MH i2c: E2 08 00 0B 12 80 0D 01 02 00 00 00 00 96 [21:19:16]Write i2c OK [21:19:16]MH_I2C_Read... [21:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:16]Read from MH i2c: E2 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: E2 03 00 [21:19:16]MH_I2C_Read... [21:19:16]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [21:19:16]RAPDU: 90 00 [21:19:16]wFMCommunicate OK [21:19:16]wFMCommunicate request_size=255 [21:19:16]MH_SAM_APDU [21:19: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 54 EF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 83 02 00 35 04 06 00 F1 [21:19:17]Write to MH i2c: E2 02 01 0C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 54 EF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 83 02 00 35 04 06 00 F1 00 00 B8 [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:17]Read from MH i2c: E2 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 03 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [21:19:17]RAPDU: 90 00 [21:19:17]wFMCommunicate OK [21:19:17]wFMCommunicate request_size=10 [21:19:17]MH_SAM_APDU [21:19:17]CAPDU: 80 0D 02 02 05 F1 97 EE D7 0A [21:19:17]Write to MH i2c: E2 0D 00 0D 12 80 0D 02 02 05 00 F1 97 EE D7 0A 00 00 FA [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:17]Read from MH i2c: E2 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 03 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [21:19:17]RAPDU: 90 00 [21:19:17]wFMCommunicate OK [21:19:17]wFMCommunicate request_size=4 [21:19:17]MH_SAM_APDU [21:19:17]CAPDU: 80 0D 03 02 [21:19:17]Write to MH i2c: E2 08 00 0E 12 80 0D 03 02 00 00 00 00 9B [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:17]Read from MH i2c: E2 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 0B 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 0B 00 0E 12 00 A0 C7 58 E0 34 B7 0C 6C 90 00 9E [21:19:17]RAPDU: A0 C7 58 E0 34 B7 0C 6C 90 00 [21:19:17]wFMCommunicate OK [21:19:17]SAM_PROTO_SignData done [21:19:17]FM_MakeSignedData done [21:19:17]CreateOFDProtocolMessage [21:19:17]wFMCommunicate request_size=4 [21:19:17]MH_SAM_APDU [21:19:17]CAPDU: 80 11 00 00 [21:19:17]Write to MH i2c: E2 08 00 0F 12 80 11 00 00 00 00 00 00 9B [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:17]Read from MH i2c: E2 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 17 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: E2 17 00 0F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [21:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:19:17]wFMCommunicate OK [21:19:17]CreateOFDProtocolMessage done [21:19:17]OFDSenderStorePacket 164750 [21:19:17]StoreOFDPacket docnum=164750 [21:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E1 3C 07 01 0D 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 54 EF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 83 02 00 35 04 06 00 F1 F1 97 EE D7 0A A0 C7 58 E0 34 B7 0C 6C [21:19:17]CheckFolder [21:19:17]dirname=/storage/ofd_packets [21:19:17]CheckFolder done [21:19:17]ProducePacketName [21:19:17]name=ofd_packets/00164750 [21:19:17]NVStorageSaveData ofd_packets/00164750 [21:19:17]File name is /storage/ofd_packets/00164750 [21:19:17]Write 301 bytes [21:19:17]NVStorageSaveData done [21:19:17]OFDSenderStorePacket done [21:19:17]KKMCreateOFDPacket done [21:19:17]NVStorageSaveData kkm_last_timestamp [21:19:17]File name is /storage/kkm_last_timestamp [21:19:17]Write 4 bytes [21:19:17]NVStorageSaveData done [21:19:17]ExternCall_PrintAddStr [21:19:17]wPrintStart [21:19:17]Write to MH i2c: 01 00 00 10 12 22 [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 07 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 FF 0F 37 [21:19:17]RasterBufferAndPrint [21:19:17]line Счет N : (1)458844 [21:19:17]line ИНН: 02508201610067 [21:19:17]line Контрольно-Кассовый Чек [21:19:17]line ПРОДАЖА [21:19:17]line ТРК (МРК, ГНК) : 12 [21:19:17]line Товар: 2710124130 [21:19:17]line Аи-92-К-5 [21:19:17]line 15.340 * 65.22 [21:19:17]line = 1000.47 [21:19:17]line НДС 12% НСП 1% [21:19:17]line > о реализуемом товаре [21:19:17]line ИТОГО: 1000.47 [21:19:17]line НСП 1% : 8.85 [21:19:17]line НДС 12% : 106.24 [21:19:17]line Наличными: 0.00 [21:19:17]line Безнал.: 1000.47 [21:19:17]line Место: АЗС № 72 "Партнер Нефть" [21:19:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:19:17]line СНО: Общий режим [21:19:17]line Чек 310 13.07.2024 21:19 [21:19:17]line Смена: 446 ФФД: 1.0 [21:19:17]line ЗНМ: 0300000160 [21:19:17]line РНМ: 0000000000090829 [21:19:17]line Версия ККМ: 001 [21:19:17]line Платежная система: KICB Банк [21:19:17]line ФМ: 0000000000874718 [21:19:17]line ФД: 164750 [21:19:17]line ФПД: 266019938424586 [21:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164750&fm=266019938424586&tin=02508201610067®Number=0000000000090829&sum=100047 [21:19:17]written 0, free lines is 4095 [21:19:17]OFD Sender: Processing packet 164750 [packets to send 104, broken 103] [21:19:17]ProducePacketName [21:19:17]name=ofd_packets/00164750 [21:19:17]OFD Sender: To server: pG, [21:19:17]CommunicateWithHost lk.salyk.kg:30040 [21:19:17]ConnectInit lk.salyk.kg [21:19:17]Connected sock=10 [21:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E1 3C 07 01 0D 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 54 EF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 83 02 00 35 04 06 00 F1 F1 97 EE D7 0A A0 C7 58 E0 34 B7 0C 6C [21:19:17]Write to MH i2c: 01 00 00 39 12 4B [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 07 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: 01 07 00 39 12 00 00 00 00 00 0B 0D 6A [21:19:17]RasterBufferAndPrint [21:19:17]line [21:19:17]line [21:19:17]line [21:19:17]line [21:19:17]line [21:19:17]written 0, free lines is 3345 [21:19:17]MH_Cut [21:19:17]Write to MH i2c: D1 01 00 40 12 01 24 [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: D1 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: D1 01 00 [21:19:17]MH_I2C_Read... [21:19:17]Read from MH i2c: D1 01 00 40 12 00 23 [21:19:17]Write to MH i2c: 01 00 00 41 12 53 [21:19:17]Write i2c OK [21:19:17]MH_I2C_Read... [21:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 39 B7 47 00 F1 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 34 37 31 38 10 04 04 00 8E 83 02 00 F4 03 04 00 E4 95 92 66 B6 04 01 00 00 1A 45 D7 7D 5B 45 DC 17 [21:19:18]CommunicateWithHost err = 0 [21:19:18]CheckOFDResponse [21:19:18]1017 (14) - 77093643461234 [21:19:18]1041 (16) - 0000000000874718 [21:19:18]1040 (4) - 164750 [21:19:18]1012 (4) - 13.07.2024 14:57 [21:19:18]1206 (1) - 0 [21:19:18]OFD Sender: Remove packet 164750 [21:19:18]ProducePacketName [21:19:18]name=ofd_packets/00164750 [21:19:18]NVStorageDeleteData [21:19:18]*** Cut start [21:19:18]*** Partial cut [21:19:18]*** CUTSNS_PIN = 1 [21:19:18]OFD Sender: No OFD packet to send [21:19:18]*** CUTSNS_PIN = 0 [21:19:18]*** Brake cut motor [21:19:19]Read from MH i2c: 01 [21:19:19]MH_I2C_Read... [21:19:19]*** Stop cut motor [21:19:19]*** Cut end [21:19:19]Read from MH i2c: 01 07 00 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [21:19:19]process_action close_receipt done [21:19:19]requested_data is exist [21:19:19]produce_requested_data [21:19:19]requested_item fm.sn is exist - process it [21:19:19]wFMCommunicate request_size=4 [21:19:19]MH_SAM_APDU [21:19:19]CAPDU: 80 11 00 00 [21:19:19]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [21:19:19]Write i2c OK [21:19:19]MH_I2C_Read... [21:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:19]Read from MH i2c: E2 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 17 00 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [21:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:19:19]wFMCommunicate OK [21:19:19]requested_item fd.num is exist - process it [21:19:19]SAM_PROTO_GetFieldsCounters [21:19:19]wFMCommunicate request_size=4 [21:19:19]MH_SAM_APDU [21:19:19]CAPDU: 80 13 00 00 [21:19:19]Write to MH i2c: E2 08 00 43 12 80 13 00 00 00 00 00 00 D1 [21:19:19]Write i2c OK [21:19:19]MH_I2C_Read... [21:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:19]Read from MH i2c: E2 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 62 00 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 62 00 43 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [21:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:19]wFMCommunicate OK [21:19:19]SAM_PROTO_GetFieldsCounters done [21:19:19]requested_item shift.num is exist - process it [21:19:19]requested_item shift.opened is exist - process it [21:19:19]req_shift_opened [21:19:19]FM_GetShiftState [21:19:19]SAM_PROTO_GetShiftState [21:19:19]wFMCommunicate request_size=4 [21:19:19]MH_SAM_APDU [21:19:19]CAPDU: 80 13 01 00 [21:19:19]Write to MH i2c: E2 08 00 44 12 80 13 01 00 00 00 00 00 D3 [21:19:19]Write i2c OK [21:19:19]MH_I2C_Read... [21:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:19]Read from MH i2c: E2 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 0E 00 [21:19:19]MH_I2C_Read... [21:19:19]Read from MH i2c: E2 0E 00 44 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B4 [21:19:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:19:19]wFMCommunicate OK [21:19:19]SAM_PROTO_GetShiftState done [21:19:19]FM_GetShiftState done [21:19:19]req_shift_opened done [21:19:19]requested_item shift.open_date is exist - process it [21:19:19]req_shift_open_date [21:19:19]req_shift_open_date done [21:19:19]produce_requested_data done [21:19:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164750,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:19:19]process_action_free close_receipt [21:19:19]json_value_free [21:19:19]json_value_free done [21:19:19]process_json_proto returns [21:19:19]Send response to host [21:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164750,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:19:19]free response buf [21:19:19]execute_script done [21:19:19]execute_script returns [21:19:19]free content buf [21:19:19]Sock 9.Close socket [21:19:19]Sock 9.Thread stoped [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]accept exits with 7 [21:22:23]New connection [21:22:23]New thread 3067104612 created [21:22:23]Thread 3067247972 joined [21:22:23]Waiting for new connection... [21:22:23] Sock 7.Parse request [21:22:23]Sock 7.Check first char [21:22:23]Sock 7.First char is OK [21:22:23]request: POST /json_proto HTTP/1.0 [21:22:23]Method: POST [21:22:23]URL: /json_proto [21:22:23]Method is POST - this is cgi request [21:22:23]url: /json_proto [21:22:23]query_string will be loaded in cgi processing [21:22:23]execute_cgi json_proto POST (null) [21:22:23]execute_cgi path=json_proto method=POST [21:22:23]POST find Content-Length [21:22:23]Host: 172.17.56.4:8080 [21:22:23]Content-Length: 678 [21:22:23]Content-Type: application/json [21:22:23] [21:22:23]POST finish read [21:22:23]Found Content-Length = 678 [21:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "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" ] } } [21:22:23]execute_script... [21:22:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "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" ] } } [21:22:23]POST & json_proto [21:22:23]process_json_proto [21:22:23]json parsed OK: [21:22:23]protocol is kg_v1.0 [21:22:23]action value=close_receipt [21:22:23]process_action close_receipt [21:22:23]cmd_close_receipt [21:22:23]MH_GetDate [21:22:23]Write to MH i2c: F0 00 00 45 12 46 [21:22:23]Write i2c OK [21:22:23]MH_I2C_Read... [21:22:23]Read from MH i2c: F0 [21:22:23]MH_I2C_Read... [21:22:23]Read from MH i2c: F0 09 00 [21:22:23]MH_I2C_Read... [21:22:23]Read from MH i2c: F0 09 00 45 12 00 10 F0 92 66 C9 DC B2 64 02 [21:22:23]GetLastDocTimeStamp 1720905556 [21:22:23]current date 1720905744 [21:22:23]FM_GetShiftState [21:22:23]SAM_PROTO_GetShiftState [21:22:23]wFMCommunicate request_size=4 [21:22:23]MH_SAM_APDU [21:22:23]CAPDU: 80 13 01 00 [21:22:23]Write to MH i2c: E2 08 00 46 12 80 13 01 00 00 00 00 00 D5 [21:22:23]Write i2c OK [21:22:23]MH_I2C_Read... [21:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:23]Read from MH i2c: E2 [21:22:23]MH_I2C_Read... [21:22:23]Read from MH i2c: E2 0E 00 [21:22:23]MH_I2C_Read... [21:22:23]Read from MH i2c: E2 0E 00 46 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B6 [21:22:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:22:23]wFMCommunicate OK [21:22:23]SAM_PROTO_GetShiftState done [21:22:23]FM_GetShiftState done [21:22:23]opened in 1720831249 [21:22:23]opened+sec_in_day 1720917649 [21:22:23]quantity*price = 90014 [21:22:23]sum+1 = 90015 [21:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 311 13.07.2024 21:22 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164751 ФПД: 198302508899398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164751&fm=198302508899398&tin=02508201610067®Number=0000000000090829&sum=90000 [21:22:24]StoreToDocumentArchive [21:22:24]shift 446 fd 164751 [21:22:24]save to /storage/0446/doc_00164751 [21:22:24]save last doc name /storage/0446/doc_00164751 to /storage/kkm_last_doc_name [21:22:24]save OK [21:22:24]Clear old archive folders... [21:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:24]tlvbuf is 01E985B0 [21:22:24]SAM_PROTO_ClearQueue [21:22:24]wFMCommunicate request_size=4 [21:22:24]MH_SAM_APDU [21:22:24]CAPDU: 80 09 00 00 [21:22:24]Write to MH i2c: E2 08 00 53 12 80 09 00 00 00 00 00 00 D7 [21:22:24]Write i2c OK [21:22:24]MH_I2C_Read... [21:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:24]Read from MH i2c: E2 [21:22:24]MH_I2C_Read... [21:22:24]Read from MH i2c: E2 03 00 [21:22:24]MH_I2C_Read... [21:22:24]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [21:22:24]RAPDU: 90 00 [21:22:24]wFMCommunicate OK [21:22:24]SAM_PROTO_ClearQueue done [21:22:24]KKMCreateOFDPacket [21:22:24]OFDProtocolAddRootSTLVToBuf [21:22:24]FM_MakeSignedData [21:22:24]FM_MakeSignedData [21:22:24]SAM_PROTO_SignData [21:22:24]wFMCommunicate request_size=4 [21:22:24]MH_SAM_APDU [21:22:24]CAPDU: 80 0D 01 02 [21:22:24]Write to MH i2c: E2 08 00 54 12 80 0D 01 02 00 00 00 00 DF [21:22:24]Write i2c OK [21:22:24]MH_I2C_Read... [21:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:24]Read from MH i2c: E2 [21:22:24]MH_I2C_Read... [21:22:24]Read from MH i2c: E2 03 00 [21:22:24]MH_I2C_Read... [21:22:24]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [21:22:24]RAPDU: 90 00 [21:22:24]wFMCommunicate OK [21:22:24]wFMCommunicate request_size=255 [21:22:24]MH_SAM_APDU [21:22: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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 10 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 83 02 00 35 04 06 00 B4 [21:22:24]Write to MH i2c: E2 02 01 55 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 10 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 83 02 00 35 04 06 00 B4 00 00 92 [21:22:24]Write i2c OK [21:22:24]MH_I2C_Read... [21:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:25]Read from MH i2c: E2 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 03 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [21:22:25]RAPDU: 90 00 [21:22:25]wFMCommunicate OK [21:22:25]wFMCommunicate request_size=10 [21:22:25]MH_SAM_APDU [21:22:25]CAPDU: 80 0D 02 02 05 5A E6 99 DC 46 [21:22:25]Write to MH i2c: E2 0D 00 56 12 80 0D 02 02 05 00 5A E6 99 DC 46 00 00 E7 [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:25]Read from MH i2c: E2 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 03 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [21:22:25]RAPDU: 90 00 [21:22:25]wFMCommunicate OK [21:22:25]wFMCommunicate request_size=4 [21:22:25]MH_SAM_APDU [21:22:25]CAPDU: 80 0D 03 02 [21:22:25]Write to MH i2c: E2 08 00 57 12 80 0D 03 02 00 00 00 00 E4 [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:25]Read from MH i2c: E2 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 0B 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 0B 00 57 12 00 15 1B 78 B1 4D FA 1E 22 90 00 C5 [21:22:25]RAPDU: 15 1B 78 B1 4D FA 1E 22 90 00 [21:22:25]wFMCommunicate OK [21:22:25]SAM_PROTO_SignData done [21:22:25]FM_MakeSignedData done [21:22:25]CreateOFDProtocolMessage [21:22:25]wFMCommunicate request_size=4 [21:22:25]MH_SAM_APDU [21:22:25]CAPDU: 80 11 00 00 [21:22:25]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:25]Read from MH i2c: E2 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 17 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 17 00 58 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [21:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:22:25]wFMCommunicate OK [21:22:25]CreateOFDProtocolMessage done [21:22:25]OFDSenderStorePacket 164751 [21:22:25]StoreOFDPacket docnum=164751 [21:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A1 B5 07 01 F0 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 10 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 83 02 00 35 04 06 00 B4 5A E6 99 DC 46 15 1B 78 B1 4D FA 1E 22 [21:22:25]CheckFolder [21:22:25]dirname=/storage/ofd_packets [21:22:25]CheckFolder done [21:22:25]ProducePacketName [21:22:25]name=ofd_packets/00164751 [21:22:25]NVStorageSaveData ofd_packets/00164751 [21:22:25]File name is /storage/ofd_packets/00164751 [21:22:25]Write 301 bytes [21:22:25]NVStorageSaveData done [21:22:25]OFDSenderStorePacket done [21:22:25]KKMCreateOFDPacket done [21:22:25]NVStorageSaveData kkm_last_timestamp [21:22:25]File name is /storage/kkm_last_timestamp [21:22:25]Write 4 bytes [21:22:25]NVStorageSaveData done [21:22:25]ExternCall_PrintAddStr [21:22:25]wPrintStart [21:22:25]Write to MH i2c: 01 00 00 59 12 6B [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: 01 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: 01 07 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [21:22:25]RasterBufferAndPrint [21:22:25]line Счет N : (1)458845 [21:22:25]line ИНН: 02508201610067 [21:22:25]line Контрольно-Кассовый Чек [21:22:25]line ПРОДАЖА [21:22:25]line ТРК (МРК, ГНК) : 12 [21:22:25]line Товар: 2710124130 [21:22:25]line Аи-92-К-5 [21:22:25]line 13.680 * 65.80 [21:22:25]line = 900.14 [21:22:25]line НДС 12% НСП 1% [21:22:25]line > о реализуемом товаре [21:22:25]line ОКРУГЛЕНИЕ: -0.14 [21:22:25]line ИТОГО: 900.00 [21:22:25]line Внесено: 900.00 [21:22:25]line СДАЧА: 0.00 [21:22:25]line НСП 1% : 7.97 [21:22:25]line НДС 12% : 95.59 [21:22:25]line Наличными: 900.00 [21:22:25]line Безнал.: 0.00 [21:22:25]line Место: АЗС № 72 "Партнер Нефть" [21:22:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:22:25]line СНО: Общий режим [21:22:25]line Чек 311 13.07.2024 21:22 [21:22:25]line Смена: 446 ФФД: 1.0 [21:22:25]line ЗНМ: 0300000160 [21:22:25]line РНМ: 0000000000090829 [21:22:25]line Версия ККМ: 001 [21:22:25]line ФМ: 0000000000874718 [21:22:25]line ФД: 164751 [21:22:25]line ФПД: 198302508899398 [21:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212224&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164751&fm=198302508899398&tin=02508201610067®Number=0000000000090829&sum=90000 [21:22:25]OFD Sender: Processing packet 164751 [packets to send 104, broken 103] [21:22:25]ProducePacketName [21:22:25]name=ofd_packets/00164751 [21:22:25]OFD Sender: To server: pG, [21:22:25]CommunicateWithHost lk.salyk.kg:30040 [21:22:25]ConnectInit lk.salyk.kg [21:22:25]written 0, free lines is 4095 [21:22:25]Connected sock=10 [21:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A1 B5 07 01 F0 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 10 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 83 02 00 35 04 06 00 B4 5A E6 99 DC 46 15 1B 78 B1 4D FA 1E 22 [21:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 DD 47 00 8E 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 34 37 31 38 10 04 04 00 8F 83 02 00 F4 03 04 00 A0 96 92 66 B6 04 01 00 00 57 E0 18 7E 57 11 04 FC [21:22:25]CommunicateWithHost err = 0 [21:22:25]CheckOFDResponse [21:22:25]1017 (14) - 77093643461234 [21:22:25]1041 (16) - 0000000000874718 [21:22:25]1040 (4) - 164751 [21:22:25]1012 (4) - 13.07.2024 15:00 [21:22:25]1206 (1) - 0 [21:22:25]OFD Sender: Remove packet 164751 [21:22:25]ProducePacketName [21:22:25]name=ofd_packets/00164751 [21:22:25]NVStorageDeleteData [21:22:26]Write to MH i2c: 01 00 00 83 12 95 [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: 01 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: 01 07 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: 01 07 00 83 12 00 00 00 00 00 FA 0C A2 [21:22:26]RasterBufferAndPrint [21:22:26]line [21:22:26]line [21:22:26]line [21:22:26]line [21:22:26]line [21:22:26]written 0, free lines is 3328 [21:22:26]MH_Cut [21:22:26]Write to MH i2c: D1 01 00 8A 12 01 6E [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: D1 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: D1 01 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: D1 01 00 8A 12 00 6D [21:22:26]Write to MH i2c: 01 00 00 8B 12 9D [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]OFD Sender: No OFD packet to send [21:22:26]*** Cut start [21:22:26]*** Partial cut [21:22:26]*** CUTSNS_PIN = 1 [21:22:26]*** CUTSNS_PIN = 0 [21:22:27]*** Brake cut motor [21:22:27]Read from MH i2c: 01 [21:22:27]MH_I2C_Read... [21:22:27]*** Stop cut motor [21:22:27]*** Cut end [21:22:27]Read from MH i2c: 01 07 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 07 00 8B 12 00 00 00 00 00 FF 0F B2 [21:22:27]process_action close_receipt done [21:22:27]requested_data is exist [21:22:27]produce_requested_data [21:22:27]requested_item fm.sn is exist - process it [21:22:27]wFMCommunicate request_size=4 [21:22:27]MH_SAM_APDU [21:22:27]CAPDU: 80 11 00 00 [21:22:27]Write to MH i2c: E2 08 00 8C 12 80 11 00 00 00 00 00 00 18 [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:27]Read from MH i2c: E2 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 17 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 17 00 8C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [21:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:22:27]wFMCommunicate OK [21:22:27]requested_item fd.num is exist - process it [21:22:27]SAM_PROTO_GetFieldsCounters [21:22:27]wFMCommunicate request_size=4 [21:22:27]MH_SAM_APDU [21:22:27]CAPDU: 80 13 00 00 [21:22:27]Write to MH i2c: E2 08 00 8D 12 80 13 00 00 00 00 00 00 1B [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:27]Read from MH i2c: E2 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 62 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 62 00 8D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [21:22: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:27]wFMCommunicate OK [21:22:27]SAM_PROTO_GetFieldsCounters done [21:22:27]requested_item shift.num is exist - process it [21:22:27]requested_item shift.opened is exist - process it [21:22:27]req_shift_opened [21:22:27]FM_GetShiftState [21:22:27]SAM_PROTO_GetShiftState [21:22:27]wFMCommunicate request_size=4 [21:22:27]MH_SAM_APDU [21:22:27]CAPDU: 80 13 01 00 [21:22:27]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:27]Read from MH i2c: E2 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 0E 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FE [21:22:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:22:27]wFMCommunicate OK [21:22:27]SAM_PROTO_GetShiftState done [21:22:27]FM_GetShiftState done [21:22:27]req_shift_opened done [21:22:27]requested_item shift.open_date is exist - process it [21:22:27]req_shift_open_date [21:22:27]req_shift_open_date done [21:22:27]produce_requested_data done [21:22:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164751,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:22:27]process_action_free close_receipt [21:22:27]json_value_free [21:22:27]json_value_free done [21:22:27]process_json_proto returns [21:22:27]Send response to host [21:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164751,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:22:27]free response buf [21:22:27]execute_script done [21:22:27]execute_script returns [21:22:27]free content buf [21:22:27]Sock 7.Close socket [21:22:27]Sock 7.Thread stoped [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:19]accept exits with 9 [21:23:19]New connection [21:23:19]New thread 3067247972 created [21:23:19]Thread 3067104612 joined [21:23:19]Waiting for new connection... [21:23:19] Sock 9.Parse request [21:23:19]Sock 9.Check first char [21:23:19]Sock 9.First char is OK [21:23:19]request: POST /json_proto HTTP/1.0 [21:23:19]Method: POST [21:23:19]URL: /json_proto [21:23:19]Method is POST - this is cgi request [21:23:19]url: /json_proto [21:23:19]query_string will be loaded in cgi processing [21:23:19]execute_cgi json_proto POST (null) [21:23:19]execute_cgi path=json_proto method=POST [21:23:19]POST find Content-Length [21:23:19]Host: 172.17.56.4:8080 [21:23:19]Content-Length: 674 [21:23:19]Content-Type: application/json [21:23:19] [21:23:19]POST finish read [21:23:19]Found Content-Length = 674 [21:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.760, "sum" : 270.34, "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" ] } } [21:23:19]execute_script... [21:23: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)458846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.760, "sum" : 270.34, "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" ] } } [21:23:19]POST & json_proto [21:23:19]process_json_proto [21:23:19]json parsed OK: [21:23:19]protocol is kg_v1.0 [21:23:19]action value=close_receipt [21:23:19]process_action close_receipt [21:23:19]cmd_close_receipt [21:23:19]MH_GetDate [21:23:19]Write to MH i2c: F0 00 00 8F 12 90 [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 09 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 09 00 8F 12 00 48 F0 92 66 C9 DC B2 64 84 [21:23:19]GetLastDocTimeStamp 1720905744 [21:23:19]current date 1720905800 [21:23:19]FM_GetShiftState [21:23:19]SAM_PROTO_GetShiftState [21:23:19]wFMCommunicate request_size=4 [21:23:19]MH_SAM_APDU [21:23:19]CAPDU: 80 13 01 00 [21:23:19]Write to MH i2c: E2 08 00 90 12 80 13 01 00 00 00 00 00 1F [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:19]Read from MH i2c: E2 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 0E 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: E2 0E 00 90 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 00 [21:23:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:23:19]wFMCommunicate OK [21:23:19]SAM_PROTO_GetShiftState done [21:23:19]FM_GetShiftState done [21:23:19]opened in 1720831249 [21:23:19]opened+sec_in_day 1720917649 [21:23:19]quantity*price = 27034 [21:23:19]sum+1 = 27035 [21:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.71 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 312 13.07.2024 21:23 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164752 ФПД: 204827542191165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164752&fm=204827542191165&tin=02508201610067®Number=0000000000090829&sum=27000 [21:23:20]StoreToDocumentArchive [21:23:20]shift 446 fd 164752 [21:23:20]save to /storage/0446/doc_00164752 [21:23:20]save last doc name /storage/0446/doc_00164752 to /storage/kkm_last_doc_name [21:23:20]save OK [21:23:20]Clear old archive folders... [21:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:23:20]tlvbuf is 01E7DEE0 [21:23:20]SAM_PROTO_ClearQueue [21:23:20]wFMCommunicate request_size=4 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 09 00 00 [21:23:20]Write to MH i2c: E2 08 00 9D 12 80 09 00 00 00 00 00 00 21 [21:23:20]Write i2c OK [21:23:20]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 03 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [21:23:20]RAPDU: 90 00 [21:23:20]wFMCommunicate OK [21:23:20]SAM_PROTO_ClearQueue done [21:23:20]KKMCreateOFDPacket [21:23:20]OFDProtocolAddRootSTLVToBuf [21:23:20]FM_MakeSignedData [21:23:20]FM_MakeSignedData [21:23:20]SAM_PROTO_SignData [21:23:20]wFMCommunicate request_size=4 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 0D 01 02 [21:23:20]Write to MH i2c: E2 08 00 9E 12 80 0D 01 02 00 00 00 00 29 [21:23:20]Write i2c OK [21:23:20]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 03 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [21:23:20]RAPDU: 90 00 [21:23:20]wFMCommunicate OK [21:23:20]wFMCommunicate request_size=255 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9A 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 37 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 01 00 00 F4 03 04 00 48 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 83 02 00 35 04 06 00 BA 4A 20 E4 [21:23:20]Write to MH i2c: E2 02 01 9F 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9A 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 37 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 01 00 00 F4 03 04 00 48 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 83 02 00 35 04 06 00 BA 4A 20 E4 00 00 B7 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]wFMCommunicate request_size=7 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 0D 02 02 02 7C 3D [21:23:21]Write to MH i2c: E2 0A 00 A0 12 80 0D 02 02 02 00 7C 3D 00 00 E9 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 0D 03 02 [21:23:21]Write to MH i2c: E2 08 00 A1 12 80 0D 03 02 00 00 00 00 2E [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 0B 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 0B 00 A1 12 00 52 87 4D 8F 98 5B B8 2A 90 00 B9 [21:23:21]RAPDU: 52 87 4D 8F 98 5B B8 2A 90 00 [21:23:21]wFMCommunicate OK [21:23:21]SAM_PROTO_SignData done [21:23:21]FM_MakeSignedData done [21:23:21]CreateOFDProtocolMessage [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 11 00 00 [21:23:21]Write to MH i2c: E2 08 00 A2 12 80 11 00 00 00 00 00 00 2E [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 17 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 17 00 A2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [21:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:23:21]wFMCommunicate OK [21:23:21]CreateOFDProtocolMessage done [21:23:21]OFDSenderStorePacket 164752 [21:23:21]StoreOFDPacket docnum=164752 [21:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 01 23 04 01 22 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9A 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 37 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 01 00 00 F4 03 04 00 48 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 83 02 00 35 04 06 00 BA 4A 20 E4 7C 3D 52 87 4D 8F 98 5B B8 2A [21:23:21]CheckFolder [21:23:21]dirname=/storage/ofd_packets [21:23:21]CheckFolder done [21:23:21]ProducePacketName [21:23:21]name=ofd_packets/00164752 [21:23:21]NVStorageSaveData ofd_packets/00164752 [21:23:21]File name is /storage/ofd_packets/00164752 [21:23:21]Write 298 bytes [21:23:21]NVStorageSaveData done [21:23:21]OFDSenderStorePacket done [21:23:21]KKMCreateOFDPacket done [21:23:21]NVStorageSaveData kkm_last_timestamp [21:23:21]File name is /storage/kkm_last_timestamp [21:23:21]Write 4 bytes [21:23:21]NVStorageSaveData done [21:23:21]ExternCall_PrintAddStr [21:23:21]wPrintStart [21:23:21]Write to MH i2c: 01 00 00 A3 12 B5 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 07 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 FF 0F CA [21:23:21]RasterBufferAndPrint [21:23:21]line Счет N : (1)458846 [21:23:21]line ИНН: 02508201610067 [21:23:21]line Контрольно-Кассовый Чек [21:23:21]line ПРОДАЖА [21:23:21]line ТРК (МРК, ГНК) : 21 [21:23:21]line Товар: 2710194210 [21:23:21]line ДТ-К-5 [21:23:21]line 3.760 * 71.90 [21:23:21]line = 270.34 [21:23:21]line НДС 12% НСП 1% [21:23:21]line > о реализуемом товаре [21:23:21]line ОКРУГЛЕНИЕ: -0.34 [21:23:21]line ИТОГО: 270.00 [21:23:21]line Внесено: 270.00 [21:23:21]line СДАЧА: 0.00 [21:23:21]line НСП 1% : 2.39 [21:23:21]line НДС 12% : 28.71 [21:23:21]line Наличными: 270.00 [21:23:21]line Безнал.: 0.00 [21:23:21]line Место: АЗС № 72 "Партнер Нефть" [21:23:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:23:21]line СНО: Общий режим [21:23:21]line Чек 312 13.07.2024 21:23 [21:23:21]line Смена: 446 ФФД: 1.0 [21:23:21]line ЗНМ: 0300000160 [21:23:21]line РНМ: 0000000000090829 [21:23:21]line Версия ККМ: 001 [21:23:21]line ФМ: 0000000000874718 [21:23:21]line ФД: 164752 [21:23:21]line ФПД: 204827542191165 [21:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164752&fm=204827542191165&tin=02508201610067®Number=0000000000090829&sum=27000 [21:23:21]OFD Sender: Processing packet 164752 [packets to send 104, broken 103] [21:23:21]ProducePacketName [21:23:21]name=ofd_packets/00164752 [21:23:21]OFD Sender: To server: pG, [21:23:21]CommunicateWithHost lk.salyk.kg:30040 [21:23:21]ConnectInit lk.salyk.kg [21:23:21]written 0, free lines is 4095 [21:23:21]Connected sock=10 [21:23:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 01 23 04 01 22 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9A 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 37 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 01 00 00 F4 03 04 00 48 F0 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 83 02 00 35 04 06 00 BA 4A 20 E4 7C 3D 52 87 4D 8F 98 5B B8 2A [21:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 08 32 47 00 B6 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 83 02 00 F4 03 04 00 D8 96 92 66 B6 04 01 00 00 9B AE 35 95 98 D3 75 3B [21:23:22]CommunicateWithHost err = 0 [21:23:22]CheckOFDResponse [21:23:22]1017 (14) - 77093643461234 [21:23:22]1041 (16) - 0000000000874718 [21:23:22]1040 (4) - 164752 [21:23:22]1012 (4) - 13.07.2024 15:01 [21:23:22]1206 (1) - 0 [21:23:22]OFD Sender: Remove packet 164752 [21:23:22]ProducePacketName [21:23:22]name=ofd_packets/00164752 [21:23:22]NVStorageDeleteData [21:23:22]Write to MH i2c: 01 00 00 CD 12 DF [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 07 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 F6 0C E8 [21:23:22]RasterBufferAndPrint [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]written 0, free lines is 3324 [21:23:22]MH_Cut [21:23:22]Write to MH i2c: D1 01 00 D4 12 01 B8 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 01 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 01 00 D4 12 00 B7 [21:23:22]Write to MH i2c: 01 00 00 D5 12 E7 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]OFD Sender: No OFD packet to send [21:23:22]*** Cut start [21:23:22]*** Partial cut [21:23:22]*** CUTSNS_PIN = 1 [21:23:22]*** CUTSNS_PIN = 0 [21:23:23]*** Brake cut motor [21:23:23]Read from MH i2c: 01 [21:23:23]MH_I2C_Read... [21:23:23]*** Stop cut motor [21:23:23]*** Cut end [21:23:23]Read from MH i2c: 01 07 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [21:23:23]process_action close_receipt done [21:23:23]requested_data is exist [21:23:23]produce_requested_data [21:23:23]requested_item fm.sn is exist - process it [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 11 00 00 [21:23:23]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 17 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [21:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:23:23]wFMCommunicate OK [21:23:23]requested_item fd.num is exist - process it [21:23:23]SAM_PROTO_GetFieldsCounters [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 13 00 00 [21:23:23]Write to MH i2c: E2 08 00 D7 12 80 13 00 00 00 00 00 00 65 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 62 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 62 00 D7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [21:23: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:23]wFMCommunicate OK [21:23:23]SAM_PROTO_GetFieldsCounters done [21:23:23]requested_item shift.num is exist - process it [21:23:23]requested_item shift.opened is exist - process it [21:23:23]req_shift_opened [21:23:23]FM_GetShiftState [21:23:23]SAM_PROTO_GetShiftState [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 13 01 00 [21:23:23]Write to MH i2c: E2 08 00 D8 12 80 13 01 00 00 00 00 00 67 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 0E 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 0E 00 D8 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 48 [21:23:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:23:23]wFMCommunicate OK [21:23:23]SAM_PROTO_GetShiftState done [21:23:23]FM_GetShiftState done [21:23:23]req_shift_opened done [21:23:23]requested_item shift.open_date is exist - process it [21:23:23]req_shift_open_date [21:23:23]req_shift_open_date done [21:23:23]produce_requested_data done [21:23:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164752,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:23:23]process_action_free close_receipt [21:23:23]json_value_free [21:23:23]json_value_free done [21:23:23]process_json_proto returns [21:23:23]Send response to host [21:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164752,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:23:23]free response buf [21:23:23]execute_script done [21:23:23]execute_script returns [21:23:23]free content buf [21:23:23]Sock 9.Close socket [21:23:23]Sock 9.Thread stoped [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:31]accept exits with 7 [21:26:31]New connection [21:26:31]New thread 3067104612 created [21:26:31]Thread 3067247972 joined [21:26:31]Waiting for new connection... [21:26:31] Sock 7.Parse request [21:26:31]Sock 7.Check first char [21:26:31]Sock 7.First char is OK [21:26:31]request: POST /json_proto HTTP/1.0 [21:26:31]Method: POST [21:26:31]URL: /json_proto [21:26:31]Method is POST - this is cgi request [21:26:31]url: /json_proto [21:26:31]query_string will be loaded in cgi processing [21:26:31]execute_cgi json_proto POST (null) [21:26:31]execute_cgi path=json_proto method=POST [21:26:31]POST find Content-Length [21:26:31]Host: 172.17.56.4:8080 [21:26:31]Content-Length: 677 [21:26:31]Content-Type: application/json [21:26:31] [21:26:31]POST finish read [21:26:31]Found Content-Length = 677 [21:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [21:26:31]execute_script... [21:26: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)458847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [21:26:31]POST & json_proto [21:26:31]process_json_proto [21:26:31]json parsed OK: [21:26:31]protocol is kg_v1.0 [21:26:31]action value=close_receipt [21:26:31]process_action close_receipt [21:26:31]cmd_close_receipt [21:26:31]MH_GetDate [21:26:31]Write to MH i2c: F0 00 00 D9 12 DA [21:26:31]Write i2c OK [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: F0 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: F0 09 00 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: F0 09 00 D9 12 00 08 F1 92 66 C9 DC B2 64 8F [21:26:31]GetLastDocTimeStamp 1720905800 [21:26:31]current date 1720905992 [21:26:31]FM_GetShiftState [21:26:31]SAM_PROTO_GetShiftState [21:26:31]wFMCommunicate request_size=4 [21:26:31]MH_SAM_APDU [21:26:31]CAPDU: 80 13 01 00 [21:26:31]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [21:26:31]Write i2c OK [21:26:31]MH_I2C_Read... [21:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:31]Read from MH i2c: E2 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 0E 00 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 4A [21:26:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:26:31]wFMCommunicate OK [21:26:31]SAM_PROTO_GetShiftState done [21:26:31]FM_GetShiftState done [21:26:31]opened in 1720831249 [21:26:31]opened+sec_in_day 1720917649 [21:26:31]quantity*price = 25004 [21:26:31]sum+1 = 25005 [21:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 313 13.07.2024 21:26 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164753 ФПД: 211959434861201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164753&fm=211959434861201&tin=02508201610067®Number=0000000000090829&sum=25000 [21:26:32]StoreToDocumentArchive [21:26:32]shift 446 fd 164753 [21:26:32]save to /storage/0446/doc_00164753 [21:26:32]save last doc name /storage/0446/doc_00164753 to /storage/kkm_last_doc_name [21:26:32]save OK [21:26:32]Clear old archive folders... [21:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:32]tlvbuf is 01E73120 [21:26:32]SAM_PROTO_ClearQueue [21:26:32]wFMCommunicate request_size=4 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 09 00 00 [21:26:32]Write to MH i2c: E2 08 00 E7 12 80 09 00 00 00 00 00 00 6B [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [21:26:32]RAPDU: 90 00 [21:26:32]wFMCommunicate OK [21:26:32]SAM_PROTO_ClearQueue done [21:26:32]KKMCreateOFDPacket [21:26:32]OFDProtocolAddRootSTLVToBuf [21:26:32]FM_MakeSignedData [21:26:32]FM_MakeSignedData [21:26:32]SAM_PROTO_SignData [21:26:32]wFMCommunicate request_size=4 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 0D 01 02 [21:26:32]Write to MH i2c: E2 08 00 E8 12 80 0D 01 02 00 00 00 00 73 [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [21:26:32]RAPDU: 90 00 [21:26:32]wFMCommunicate OK [21:26:32]wFMCommunicate request_size=255 [21:26:32]MH_SAM_APDU [21: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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 08 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 83 02 00 35 04 06 00 C0 [21:26:32]Write to MH i2c: E2 02 01 E9 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 08 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 83 02 00 35 04 06 00 C0 00 00 5B [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:33]Read from MH i2c: E2 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 03 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [21:26:33]RAPDU: 90 00 [21:26:33]wFMCommunicate OK [21:26:33]wFMCommunicate request_size=10 [21:26:33]MH_SAM_APDU [21:26:33]CAPDU: 80 0D 02 02 05 C6 A6 D2 5A 91 [21:26:33]Write to MH i2c: E2 0D 00 EA 12 80 0D 02 02 05 00 C6 A6 D2 5A 91 00 00 A9 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:33]Read from MH i2c: E2 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 03 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [21:26:33]RAPDU: 90 00 [21:26:33]wFMCommunicate OK [21:26:33]wFMCommunicate request_size=4 [21:26:33]MH_SAM_APDU [21:26:33]CAPDU: 80 0D 03 02 [21:26:33]Write to MH i2c: E2 08 00 EB 12 80 0D 03 02 00 00 00 00 78 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:33]Read from MH i2c: E2 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 0B 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 0B 00 EB 12 00 DD A5 4F 7D BE F0 FE 9E 90 00 11 [21:26:33]RAPDU: DD A5 4F 7D BE F0 FE 9E 90 00 [21:26:33]wFMCommunicate OK [21:26:33]SAM_PROTO_SignData done [21:26:33]FM_MakeSignedData done [21:26:33]CreateOFDProtocolMessage [21:26:33]wFMCommunicate request_size=4 [21:26:33]MH_SAM_APDU [21:26:33]CAPDU: 80 11 00 00 [21:26:33]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:33]Read from MH i2c: E2 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 17 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: E2 17 00 EC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [21:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:26:33]wFMCommunicate OK [21:26:33]CreateOFDProtocolMessage done [21:26:33]OFDSenderStorePacket 164753 [21:26:33]StoreOFDPacket docnum=164753 [21:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BF 70 07 01 6A 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 08 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 83 02 00 35 04 06 00 C0 C6 A6 D2 5A 91 DD A5 4F 7D BE F0 FE 9E [21:26:33]CheckFolder [21:26:33]dirname=/storage/ofd_packets [21:26:33]CheckFolder done [21:26:33]ProducePacketName [21:26:33]name=ofd_packets/00164753 [21:26:33]NVStorageSaveData ofd_packets/00164753 [21:26:33]File name is /storage/ofd_packets/00164753 [21:26:33]Write 301 bytes [21:26:33]NVStorageSaveData done [21:26:33]OFDSenderStorePacket done [21:26:33]KKMCreateOFDPacket done [21:26:33]NVStorageSaveData kkm_last_timestamp [21:26:33]File name is /storage/kkm_last_timestamp [21:26:33]Write 4 bytes [21:26:33]NVStorageSaveData done [21:26:33]ExternCall_PrintAddStr [21:26:33]wPrintStart [21:26:33]Write to MH i2c: 01 00 00 ED 12 FF [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 ED 12 00 00 00 00 00 FF 0F 14 [21:26:33]RasterBufferAndPrint [21:26:33]line Счет N : (1)458847 [21:26:33]line ИНН: 02508201610067 [21:26:33]line Контрольно-Кассовый Чек [21:26:33]line ПРОДАЖА [21:26:33]line ТРК (МРК, ГНК) : 12 [21:26:33]line Товар: 2710124130 [21:26:33]line Аи-92-К-5 [21:26:33]line 3.800 * 65.80 [21:26:33]line = 250.04 [21:26:33]line НДС 12% НСП 1% [21:26:33]line > о реализуемом товаре [21:26:33]line ОКРУГЛЕНИЕ: -0.04 [21:26:33]line ИТОГО: 250.00 [21:26:33]line Внесено: 250.00 [21:26:33]line СДАЧА: 0.00 [21:26:33]line НСП 1% : 2.21 [21:26:33]line НДС 12% : 26.55 [21:26:33]line Наличными: 250.00 [21:26:33]line Безнал.: 0.00 [21:26:33]line Место: АЗС № 72 "Партнер Нефть" [21:26:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:26:33]line СНО: Общий режим [21:26:33]line Чек 313 13.07.2024 21:26 [21:26:33]line Смена: 446 ФФД: 1.0 [21:26:33]line ЗНМ: 0300000160 [21:26:33]line РНМ: 0000000000090829 [21:26:33]line Версия ККМ: 001 [21:26:33]line ФМ: 0000000000874718 [21:26:33]line ФД: 164753 [21:26:33]line ФПД: 211959434861201 [21:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164753&fm=211959434861201&tin=02508201610067®Number=0000000000090829&sum=25000 [21:26:33]OFD Sender: Processing packet 164753 [packets to send 104, broken 103] [21:26:33]ProducePacketName [21:26:33]name=ofd_packets/00164753 [21:26:33]OFD Sender: To server: pG, [21:26:33]CommunicateWithHost lk.salyk.kg:30040 [21:26:33]ConnectInit lk.salyk.kg [21:26:33]written 0, free lines is 4095 [21:26:33]Connected sock=10 [21:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BF 70 07 01 6A 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 08 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 83 02 00 35 04 06 00 C0 C6 A6 D2 5A 91 DD A5 4F 7D BE F0 FE 9E [21:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A3 D4 47 00 F9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 83 02 00 F4 03 04 00 98 97 92 66 B6 04 01 00 00 91 AE 9B AA 76 97 FC 1F [21:26:33]CommunicateWithHost err = 0 [21:26:33]CheckOFDResponse [21:26:33]1017 (14) - 77093643461234 [21:26:33]1041 (16) - 0000000000874718 [21:26:33]1040 (4) - 164753 [21:26:33]1012 (4) - 13.07.2024 15:04 [21:26:33]1206 (1) - 0 [21:26:33]OFD Sender: Remove packet 164753 [21:26:33]ProducePacketName [21:26:33]name=ofd_packets/00164753 [21:26:33]NVStorageDeleteData [21:26:34]Write to MH i2c: 01 00 00 17 13 2A [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 07 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 07 00 17 13 00 00 00 00 00 EF 0C 2C [21:26:34]RasterBufferAndPrint [21:26:34]line [21:26:34]line [21:26:34]line [21:26:34]line [21:26:34]line [21:26:34]written 0, free lines is 3318 [21:26:34]MH_Cut [21:26:34]Write to MH i2c: D1 01 00 1E 13 01 03 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: D1 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: D1 01 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: D1 01 00 1E 13 00 02 [21:26:34]Write to MH i2c: 01 00 00 1F 13 32 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]OFD Sender: No OFD packet to send [21:26:34]*** Cut start [21:26:34]*** Partial cut [21:26:34]*** CUTSNS_PIN = 1 [21:26:34]*** CUTSNS_PIN = 0 [21:26:35]*** Brake cut motor [21:26:35]Read from MH i2c: 01 [21:26:35]MH_I2C_Read... [21:26:35]*** Stop cut motor [21:26:35]*** Cut end [21:26:35]Read from MH i2c: 01 07 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [21:26:35]process_action close_receipt done [21:26:35]requested_data is exist [21:26:35]produce_requested_data [21:26:35]requested_item fm.sn is exist - process it [21:26:35]wFMCommunicate request_size=4 [21:26:35]MH_SAM_APDU [21:26:35]CAPDU: 80 11 00 00 [21:26:35]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:35]Read from MH i2c: E2 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 17 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [21:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:26:35]wFMCommunicate OK [21:26:35]requested_item fd.num is exist - process it [21:26:35]SAM_PROTO_GetFieldsCounters [21:26:35]wFMCommunicate request_size=4 [21:26:35]MH_SAM_APDU [21:26:35]CAPDU: 80 13 00 00 [21:26:35]Write to MH i2c: E2 08 00 21 13 80 13 00 00 00 00 00 00 B0 [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:35]Read from MH i2c: E2 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 62 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 62 00 21 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [21:26: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:35]wFMCommunicate OK [21:26:35]SAM_PROTO_GetFieldsCounters done [21:26:35]requested_item shift.num is exist - process it [21:26:35]requested_item shift.opened is exist - process it [21:26:35]req_shift_opened [21:26:35]FM_GetShiftState [21:26:35]SAM_PROTO_GetShiftState [21:26:35]wFMCommunicate request_size=4 [21:26:35]MH_SAM_APDU [21:26:35]CAPDU: 80 13 01 00 [21:26:35]Write to MH i2c: E2 08 00 22 13 80 13 01 00 00 00 00 00 B2 [21:26:35]Write i2c OK [21:26:35]MH_I2C_Read... [21:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:35]Read from MH i2c: E2 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 0E 00 [21:26:35]MH_I2C_Read... [21:26:35]Read from MH i2c: E2 0E 00 22 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 93 [21:26:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:26:35]wFMCommunicate OK [21:26:35]SAM_PROTO_GetShiftState done [21:26:35]FM_GetShiftState done [21:26:35]req_shift_opened done [21:26:35]requested_item shift.open_date is exist - process it [21:26:35]req_shift_open_date [21:26:35]req_shift_open_date done [21:26:35]produce_requested_data done [21:26:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164753,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:26:35]process_action_free close_receipt [21:26:35]json_value_free [21:26:35]json_value_free done [21:26:35]process_json_proto returns [21:26:35]Send response to host [21:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164753,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:26:35]free response buf [21:26:35]execute_script done [21:26:35]execute_script returns [21:26:35]free content buf [21:26:35]Sock 7.Close socket [21:26:35]Sock 7.Thread stoped [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:34]accept exits with 9 [21:27:34]New connection [21:27:34]New thread 3067247972 created [21:27:34]Thread 3067104612 joined [21:27:34]Waiting for new connection... [21:27:34] Sock 9.Parse request [21:27:34]Sock 9.Check first char [21:27:34]Sock 9.First char is OK [21:27:34]request: POST /json_proto HTTP/1.0 [21:27:34]Method: POST [21:27:34]URL: /json_proto [21:27:34]Method is POST - this is cgi request [21:27:34]url: /json_proto [21:27:34]query_string will be loaded in cgi processing [21:27:34]execute_cgi json_proto POST (null) [21:27:34]execute_cgi path=json_proto method=POST [21:27:34]POST find Content-Length [21:27:34]Host: 172.17.56.4:8080 [21:27:34]Content-Length: 677 [21:27:34]Content-Type: application/json [21:27:34] [21:27:34]POST finish read [21:27:34]Found Content-Length = 677 [21:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:34]execute_script... [21:27: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)458848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:34]POST & json_proto [21:27:34]process_json_proto [21:27:34]json parsed OK: [21:27:34]protocol is kg_v1.0 [21:27:34]action value=close_receipt [21:27:34]process_action close_receipt [21:27:34]cmd_close_receipt [21:27:34]MH_GetDate [21:27:34]Write to MH i2c: F0 00 00 23 13 25 [21:27:34]Write i2c OK [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: F0 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: F0 09 00 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: F0 09 00 23 13 00 47 F1 92 66 C9 DC B2 64 19 [21:27:34]GetLastDocTimeStamp 1720905992 [21:27:34]current date 1720906055 [21:27:34]FM_GetShiftState [21:27:34]SAM_PROTO_GetShiftState [21:27:34]wFMCommunicate request_size=4 [21:27:34]MH_SAM_APDU [21:27:34]CAPDU: 80 13 01 00 [21:27:34]Write to MH i2c: E2 08 00 24 13 80 13 01 00 00 00 00 00 B4 [21:27:34]Write i2c OK [21:27:34]MH_I2C_Read... [21:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:34]Read from MH i2c: E2 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: E2 0E 00 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: E2 0E 00 24 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 95 [21:27:34]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:27:34]wFMCommunicate OK [21:27:34]SAM_PROTO_GetShiftState done [21:27:34]FM_GetShiftState done [21:27:34]opened in 1720831249 [21:27:34]opened+sec_in_day 1720917649 [21:27:34]quantity*price = 30004 [21:27:34]sum+1 = 30006 [21:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 314 13.07.2024 21:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164754 ФПД: 220584115730556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212735&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164754&fm=220584115730556&tin=02508201610067®Number=0000000000090829&sum=30000 [21:27:35]StoreToDocumentArchive [21:27:35]shift 446 fd 164754 [21:27:35]save to /storage/0446/doc_00164754 [21:27:35]save last doc name /storage/0446/doc_00164754 to /storage/kkm_last_doc_name [21:27:35]save OK [21:27:35]Clear old archive folders... [21:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:35]tlvbuf is 01E72A10 [21:27:35]SAM_PROTO_ClearQueue [21:27:35]wFMCommunicate request_size=4 [21:27:35]MH_SAM_APDU [21:27:35]CAPDU: 80 09 00 00 [21:27:35]Write to MH i2c: E2 08 00 31 13 80 09 00 00 00 00 00 00 B6 [21:27:35]Write i2c OK [21:27:35]MH_I2C_Read... [21:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:35]Read from MH i2c: E2 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: E2 03 00 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [21:27:35]RAPDU: 90 00 [21:27:35]wFMCommunicate OK [21:27:35]SAM_PROTO_ClearQueue done [21:27:35]KKMCreateOFDPacket [21:27:35]OFDProtocolAddRootSTLVToBuf [21:27:35]FM_MakeSignedData [21:27:35]FM_MakeSignedData [21:27:35]SAM_PROTO_SignData [21:27:35]wFMCommunicate request_size=4 [21:27:35]MH_SAM_APDU [21:27:35]CAPDU: 80 0D 01 02 [21:27:35]Write to MH i2c: E2 08 00 32 13 80 0D 01 02 00 00 00 00 BE [21:27:35]Write i2c OK [21:27:35]MH_I2C_Read... [21:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:35]Read from MH i2c: E2 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: E2 03 00 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [21:27:35]RAPDU: 90 00 [21:27:35]wFMCommunicate OK [21:27:35]wFMCommunicate request_size=255 [21:27:35]MH_SAM_APDU [21:27: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 47 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 83 02 00 35 04 06 00 C8 [21:27:35]Write to MH i2c: E2 02 01 33 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 47 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 83 02 00 35 04 06 00 C8 00 00 01 [21:27:35]Write i2c OK [21:27:35]MH_I2C_Read... [21:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:36]Read from MH i2c: E2 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 03 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [21:27:36]RAPDU: 90 00 [21:27:36]wFMCommunicate OK [21:27:36]wFMCommunicate request_size=10 [21:27:36]MH_SAM_APDU [21:27:36]CAPDU: 80 0D 02 02 05 9E BD DC 78 7C [21:27:36]Write to MH i2c: E2 0D 00 34 13 80 0D 02 02 05 00 9E BD DC 78 7C 00 00 F6 [21:27:36]Write i2c OK [21:27:36]MH_I2C_Read... [21:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:36]Read from MH i2c: E2 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 03 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [21:27:36]RAPDU: 90 00 [21:27:36]wFMCommunicate OK [21:27:36]wFMCommunicate request_size=4 [21:27:36]MH_SAM_APDU [21:27:36]CAPDU: 80 0D 03 02 [21:27:36]Write to MH i2c: E2 08 00 35 13 80 0D 03 02 00 00 00 00 C3 [21:27:36]Write i2c OK [21:27:36]MH_I2C_Read... [21:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:36]Read from MH i2c: E2 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 0B 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 0B 00 35 13 00 5A 52 15 3E 48 E4 48 46 90 00 7D [21:27:36]RAPDU: 5A 52 15 3E 48 E4 48 46 90 00 [21:27:36]wFMCommunicate OK [21:27:36]SAM_PROTO_SignData done [21:27:36]FM_MakeSignedData done [21:27:36]CreateOFDProtocolMessage [21:27:36]wFMCommunicate request_size=4 [21:27:36]MH_SAM_APDU [21:27:36]CAPDU: 80 11 00 00 [21:27:36]Write to MH i2c: E2 08 00 36 13 80 11 00 00 00 00 00 00 C3 [21:27:36]Write i2c OK [21:27:36]MH_I2C_Read... [21:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:36]Read from MH i2c: E2 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 17 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 17 00 36 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [21:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:36]wFMCommunicate OK [21:27:36]CreateOFDProtocolMessage done [21:27:36]OFDSenderStorePacket 164754 [21:27:36]StoreOFDPacket docnum=164754 [21:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 D9 07 01 98 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 47 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 83 02 00 35 04 06 00 C8 9E BD DC 78 7C 5A 52 15 3E 48 E4 48 46 [21:27:36]CheckFolder [21:27:36]dirname=/storage/ofd_packets [21:27:36]CheckFolder done [21:27:36]ProducePacketName [21:27:36]name=ofd_packets/00164754 [21:27:36]NVStorageSaveData ofd_packets/00164754 [21:27:36]File name is /storage/ofd_packets/00164754 [21:27:36]Write 301 bytes [21:27:36]NVStorageSaveData done [21:27:36]OFDSenderStorePacket done [21:27:36]KKMCreateOFDPacket done [21:27:36]NVStorageSaveData kkm_last_timestamp [21:27:36]File name is /storage/kkm_last_timestamp [21:27:36]Write 4 bytes [21:27:36]NVStorageSaveData done [21:27:36]ExternCall_PrintAddStr [21:27:36]wPrintStart [21:27:36]Write to MH i2c: 01 00 00 37 13 4A [21:27:36]Write i2c OK [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: 01 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: 01 07 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 FF 0F 5F [21:27:36]RasterBufferAndPrint [21:27:36]line Счет N : (1)458848 [21:27:36]line ИНН: 02508201610067 [21:27:36]line Контрольно-Кассовый Чек [21:27:36]line ПРОДАЖА [21:27:36]line ТРК (МРК, ГНК) : 22 [21:27:36]line Товар: 2710124130 [21:27:36]line Аи-92-К-5 [21:27:36]line 4.560 * 65.80 [21:27:36]line = 300.05 [21:27:36]line НДС 12% НСП 1% [21:27:36]line > о реализуемом товаре [21:27:36]line ОКРУГЛЕНИЕ: -0.05 [21:27:36]line ИТОГО: 300.00 [21:27:36]line Внесено: 300.00 [21:27:36]line СДАЧА: 0.00 [21:27:36]line НСП 1% : 2.65 [21:27:36]line НДС 12% : 31.86 [21:27:36]line Наличными: 300.00 [21:27:36]line Безнал.: 0.00 [21:27:36]line Место: АЗС № 72 "Партнер Нефть" [21:27:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:27:36]line СНО: Общий режим [21:27:36]line Чек 314 13.07.2024 21:27 [21:27:36]line Смена: 446 ФФД: 1.0 [21:27:36]line ЗНМ: 0300000160 [21:27:36]line РНМ: 0000000000090829 [21:27:36]line Версия ККМ: 001 [21:27:36]line ФМ: 0000000000874718 [21:27:36]line ФД: 164754 [21:27:36]line ФПД: 220584115730556 [21:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212735&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164754&fm=220584115730556&tin=02508201610067®Number=0000000000090829&sum=30000 [21:27:36]OFD Sender: Processing packet 164754 [packets to send 104, broken 103] [21:27:36]ProducePacketName [21:27:36]name=ofd_packets/00164754 [21:27:36]OFD Sender: To server: pG, [21:27:36]CommunicateWithHost lk.salyk.kg:30040 [21:27:36]ConnectInit lk.salyk.kg [21:27:36]written 0, free lines is 4095 [21:27:36]Connected sock=10 [21:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 D9 07 01 98 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 47 F1 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 83 02 00 35 04 06 00 C8 9E BD DC 78 7C 5A 52 15 3E 48 E4 48 46 [21:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 CF 47 00 5B 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 83 02 00 F4 03 04 00 D7 97 92 66 B6 04 01 00 00 99 E2 BE BE E8 45 A4 9C [21:27:36]CommunicateWithHost err = 0 [21:27:36]CheckOFDResponse [21:27:36]1017 (14) - 77093643461234 [21:27:36]1041 (16) - 0000000000874718 [21:27:36]1040 (4) - 164754 [21:27:36]1012 (4) - 13.07.2024 15:05 [21:27:36]1206 (1) - 0 [21:27:36]OFD Sender: Remove packet 164754 [21:27:36]ProducePacketName [21:27:36]name=ofd_packets/00164754 [21:27:36]NVStorageDeleteData [21:27:37]Write to MH i2c: 01 00 00 61 13 74 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 07 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 07 00 61 13 00 00 00 00 00 F3 0C 7A [21:27:37]RasterBufferAndPrint [21:27:37]line [21:27:37]line [21:27:37]line [21:27:37]line [21:27:37]line [21:27:37]written 0, free lines is 3322 [21:27:37]MH_Cut [21:27:37]Write to MH i2c: D1 01 00 68 13 01 4D [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: D1 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: D1 01 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: D1 01 00 68 13 00 4C [21:27:37]Write to MH i2c: 01 00 00 69 13 7C [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]OFD Sender: No OFD packet to send [21:27:37]*** Cut start [21:27:37]*** Partial cut [21:27:37]*** CUTSNS_PIN = 1 [21:27:37]*** CUTSNS_PIN = 0 [21:27:38]*** Brake cut motor [21:27:38]Read from MH i2c: 01 [21:27:38]MH_I2C_Read... [21:27:38]*** Stop cut motor [21:27:38]*** Cut end [21:27:38]Read from MH i2c: 01 07 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [21:27:38]process_action close_receipt done [21:27:38]requested_data is exist [21:27:38]produce_requested_data [21:27:38]requested_item fm.sn is exist - process it [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 11 00 00 [21:27:38]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 17 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [21:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:27:38]wFMCommunicate OK [21:27:38]requested_item fd.num is exist - process it [21:27:38]SAM_PROTO_GetFieldsCounters [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 13 00 00 [21:27:38]Write to MH i2c: E2 08 00 6B 13 80 13 00 00 00 00 00 00 FA [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 62 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 62 00 6B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [21:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:38]wFMCommunicate OK [21:27:38]SAM_PROTO_GetFieldsCounters done [21:27:38]requested_item shift.num is exist - process it [21:27:38]requested_item shift.opened is exist - process it [21:27:38]req_shift_opened [21:27:38]FM_GetShiftState [21:27:38]SAM_PROTO_GetShiftState [21:27:38]wFMCommunicate request_size=4 [21:27:38]MH_SAM_APDU [21:27:38]CAPDU: 80 13 01 00 [21:27:38]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:38]Read from MH i2c: E2 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 0E 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DD [21:27:38]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:27:38]wFMCommunicate OK [21:27:38]SAM_PROTO_GetShiftState done [21:27:38]FM_GetShiftState done [21:27:38]req_shift_opened done [21:27:38]requested_item shift.open_date is exist - process it [21:27:38]req_shift_open_date [21:27:38]req_shift_open_date done [21:27:38]produce_requested_data done [21:27:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164754,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:27:38]process_action_free close_receipt [21:27:38]json_value_free [21:27:38]json_value_free done [21:27:38]process_json_proto returns [21:27:38]Send response to host [21:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164754,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:27:38]free response buf [21:27:38]execute_script done [21:27:38]execute_script returns [21:27:38]free content buf [21:27:38]Sock 9.Close socket [21:27:38]Sock 9.Thread stoped [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:46]accept exits with 7 [21:31:46]New connection [21:31:46]New thread 3067104612 created [21:31:46]Thread 3067247972 joined [21:31:46]Waiting for new connection... [21:31:46] Sock 7.Parse request [21:31:46]Sock 7.Check first char [21:31:46]Sock 7.First char is OK [21:31:46]request: POST /json_proto HTTP/1.0 [21:31:46]Method: POST [21:31:46]URL: /json_proto [21:31:46]Method is POST - this is cgi request [21:31:46]url: /json_proto [21:31:46]query_string will be loaded in cgi processing [21:31:46]execute_cgi json_proto POST (null) [21:31:46]execute_cgi path=json_proto method=POST [21:31:46]POST find Content-Length [21:31:46]Host: 172.17.56.4:8080 [21:31:46]Content-Length: 679 [21:31:46]Content-Type: application/json [21:31:46] [21:31:46]POST finish read [21:31:46]Found Content-Length = 679 [21:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 60.090, "sum" : 4320.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4320.00, "total" : 4320.00, "payments": [ { "type": 0, "sum" : 4320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:46]execute_script... [21:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 60.090, "sum" : 4320.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4320.00, "total" : 4320.00, "payments": [ { "type": 0, "sum" : 4320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:46]POST & json_proto [21:31:46]process_json_proto [21:31:46]json parsed OK: [21:31:46]protocol is kg_v1.0 [21:31:46]action value=close_receipt [21:31:46]process_action close_receipt [21:31:46]cmd_close_receipt [21:31:46]MH_GetDate [21:31:46]Write to MH i2c: F0 00 00 6D 13 6F [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 6D 13 00 43 F2 92 66 C9 DC B2 64 60 [21:31:46]GetLastDocTimeStamp 1720906055 [21:31:46]current date 1720906307 [21:31:46]FM_GetShiftState [21:31:46]SAM_PROTO_GetShiftState [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 13 01 00 [21:31:46]Write to MH i2c: E2 08 00 6E 13 80 13 01 00 00 00 00 00 FE [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 6E 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DF [21:31:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_GetShiftState done [21:31:46]FM_GetShiftState done [21:31:46]opened in 1720831249 [21:31:46]opened+sec_in_day 1720917649 [21:31:46]quantity*price = 432047 [21:31:46]sum+1 = 432048 [21:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 4320.00 Внесено: 4320.00 СДАЧА: 0.00 НСП 1% : 38.23 НДС 12% : 458.81 Наличными: 4320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 315 13.07.2024 21:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164755 ФПД: 194424471632400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213147&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164755&fm=194424471632400&tin=02508201610067®Number=0000000000090829&sum=432000 [21:31:47]StoreToDocumentArchive [21:31:47]shift 446 fd 164755 [21:31:47]save to /storage/0446/doc_00164755 [21:31:47]save last doc name /storage/0446/doc_00164755 to /storage/kkm_last_doc_name [21:31:47]save OK [21:31:47]Clear old archive folders... [21:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:47]tlvbuf is 01EAC480 [21:31:47]SAM_PROTO_ClearQueue [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 09 00 00 [21:31:47]Write to MH i2c: E2 08 00 7B 13 80 09 00 00 00 00 00 00 00 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [21:31:47]RAPDU: 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_ClearQueue done [21:31:47]KKMCreateOFDPacket [21:31:47]OFDProtocolAddRootSTLVToBuf [21:31:47]FM_MakeSignedData [21:31:47]FM_MakeSignedData [21:31:47]SAM_PROTO_SignData [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 0D 01 02 [21:31:47]Write to MH i2c: E2 08 00 7C 13 80 0D 01 02 00 00 00 00 08 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [21:31:47]RAPDU: 90 00 [21:31:47]wFMCommunicate OK [21:31:47]wFMCommunicate request_size=255 [21:31:47]MH_SAM_APDU [21:31: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 BA EA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AF 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 43 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 83 02 00 35 04 06 00 B0 D3 F9 91 [21:31:47]Write to MH i2c: E2 02 01 7D 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AF 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 43 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 83 02 00 35 04 06 00 B0 D3 F9 91 00 00 FD [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=7 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 02 02 02 3A 10 [21:31:48]Write to MH i2c: E2 0A 00 7E 13 80 0D 02 02 02 00 3A 10 00 00 59 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 03 02 [21:31:48]Write to MH i2c: E2 08 00 7F 13 80 0D 03 02 00 00 00 00 0D [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 7F 13 00 07 7F 7F 12 79 65 70 22 90 00 95 [21:31:48]RAPDU: 07 7F 7F 12 79 65 70 22 90 00 [21:31:48]wFMCommunicate OK [21:31:48]SAM_PROTO_SignData done [21:31:48]FM_MakeSignedData done [21:31:48]CreateOFDProtocolMessage [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 11 00 00 [21:31:48]Write to MH i2c: E2 08 00 80 13 80 11 00 00 00 00 00 00 0D [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 80 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [21:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:48]wFMCommunicate OK [21:31:48]CreateOFDProtocolMessage done [21:31:48]OFDSenderStorePacket 164755 [21:31:48]StoreOFDPacket docnum=164755 [21:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 63 77 04 01 58 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AF 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 43 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 83 02 00 35 04 06 00 B0 D3 F9 91 3A 10 07 7F 7F 12 79 65 70 22 [21:31:48]CheckFolder [21:31:48]dirname=/storage/ofd_packets [21:31:48]CheckFolder done [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00164755 [21:31:48]NVStorageSaveData ofd_packets/00164755 [21:31:48]File name is /storage/ofd_packets/00164755 [21:31:48]Write 298 bytes [21:31:48]NVStorageSaveData done [21:31:48]OFDSenderStorePacket done [21:31:48]KKMCreateOFDPacket done [21:31:48]NVStorageSaveData kkm_last_timestamp [21:31:48]File name is /storage/kkm_last_timestamp [21:31:48]Write 4 bytes [21:31:48]NVStorageSaveData done [21:31:48]ExternCall_PrintAddStr [21:31:48]wPrintStart [21:31:48]Write to MH i2c: 01 00 00 81 13 94 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [21:31:48]RasterBufferAndPrint [21:31:48]line Счет N : (1)458849 [21:31:48]line ИНН: 02508201610067 [21:31:48]line Контрольно-Кассовый Чек [21:31:48]line ПРОДАЖА [21:31:48]line ТРК (МРК, ГНК) : 21 [21:31:48]line Товар: 2710194210 [21:31:48]line ДТ-К-5 [21:31:48]line 60.090 * 71.90 [21:31:48]line = 4320.47 [21:31:48]line НДС 12% НСП 1% [21:31:48]line > о реализуемом товаре [21:31:48]line ОКРУГЛЕНИЕ: -0.47 [21:31:48]line ИТОГО: 4320.00 [21:31:48]line Внесено: 4320.00 [21:31:48]line СДАЧА: 0.00 [21:31:48]line НСП 1% : 38.23 [21:31:48]line НДС 12% : 458.81 [21:31:48]line Наличными: 4320.00 [21:31:48]line Безнал.: 0.00 [21:31:48]line Место: АЗС № 72 "Партнер Нефть" [21:31:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:31:48]line СНО: Общий режим [21:31:48]line Чек 315 13.07.2024 21:31 [21:31:48]line Смена: 446 ФФД: 1.0 [21:31:48]line ЗНМ: 0300000160 [21:31:48]line РНМ: 0000000000090829 [21:31:48]line Версия ККМ: 001 [21:31:48]line ФМ: 0000000000874718 [21:31:48]line ФД: 164755 [21:31:48]line ФПД: 194424471632400 [21:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213147&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164755&fm=194424471632400&tin=02508201610067®Number=0000000000090829&sum=432000 [21:31:48]OFD Sender: Processing packet 164755 [packets to send 104, broken 103] [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00164755 [21:31:48]OFD Sender: To server: pG, [21:31:48]CommunicateWithHost lk.salyk.kg:30040 [21:31:48]ConnectInit lk.salyk.kg [21:31:48]written 0, free lines is 4095 [21:31:48]Connected sock=10 [21:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 63 77 04 01 58 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA EA 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AF 97 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 97 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 B3 00 00 00 00 07 04 06 00 80 97 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 43 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 83 02 00 35 04 06 00 B0 D3 F9 91 3A 10 07 7F 7F 12 79 65 70 22 [21:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 47 09 47 00 3E 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 34 37 31 38 10 04 04 00 93 83 02 00 F4 03 04 00 D3 98 92 66 B6 04 01 00 00 9C 61 F4 2B 37 70 9A 97 [21:31:48]CommunicateWithHost err = 0 [21:31:48]CheckOFDResponse [21:31:48]1017 (14) - 77093643461234 [21:31:48]1041 (16) - 0000000000874718 [21:31:48]1040 (4) - 164755 [21:31:48]1012 (4) - 13.07.2024 15:10 [21:31:48]1206 (1) - 0 [21:31:48]OFD Sender: Remove packet 164755 [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00164755 [21:31:48]NVStorageDeleteData [21:31:49]Write to MH i2c: 01 00 00 AB 13 BE [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 AB 13 00 00 00 00 00 F3 0C C4 [21:31:49]RasterBufferAndPrint [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]written 0, free lines is 3321 [21:31:49]MH_Cut [21:31:49]Write to MH i2c: D1 01 00 B2 13 01 97 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 B2 13 00 96 [21:31:49]Write to MH i2c: 01 00 00 B3 13 C6 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]OFD Sender: No OFD packet to send [21:31:49]*** Cut start [21:31:49]*** Partial cut [21:31:49]*** CUTSNS_PIN = 1 [21:31:49]*** CUTSNS_PIN = 0 [21:31:49]*** Brake cut motor [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]*** Stop cut motor [21:31:50]*** Cut end [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [21:31:50]process_action close_receipt done [21:31:50]requested_data is exist [21:31:50]produce_requested_data [21:31:50]requested_item fm.sn is exist - process it [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 11 00 00 [21:31:50]Write to MH i2c: E2 08 00 B4 13 80 11 00 00 00 00 00 00 41 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 B4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [21:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:50]wFMCommunicate OK [21:31:50]requested_item fd.num is exist - process it [21:31:50]SAM_PROTO_GetFieldsCounters [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 00 00 [21:31:50]Write to MH i2c: E2 08 00 B5 13 80 13 00 00 00 00 00 00 44 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 B5 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [21:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:50]wFMCommunicate OK [21:31:50]SAM_PROTO_GetFieldsCounters done [21:31:50]requested_item shift.num is exist - process it [21:31:50]requested_item shift.opened is exist - process it [21:31:50]req_shift_opened [21:31:50]FM_GetShiftState [21:31:50]SAM_PROTO_GetShiftState [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 01 00 [21:31:50]Write to MH i2c: E2 08 00 B6 13 80 13 01 00 00 00 00 00 46 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 B6 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 27 [21:31:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:31:50]wFMCommunicate OK [21:31:50]SAM_PROTO_GetShiftState done [21:31:50]FM_GetShiftState done [21:31:50]req_shift_opened done [21:31:50]requested_item shift.open_date is exist - process it [21:31:50]req_shift_open_date [21:31:50]req_shift_open_date done [21:31:50]produce_requested_data done [21:31:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164755,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:31:50]process_action_free close_receipt [21:31:50]json_value_free [21:31:50]json_value_free done [21:31:50]process_json_proto returns [21:31:50]Send response to host [21:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164755,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:31:50]free response buf [21:31:50]execute_script done [21:31:50]execute_script returns [21:31:50]free content buf [21:31:50]Sock 7.Close socket [21:31:50]Sock 7.Thread stoped [21:31:50]accept exits with 9 [21:31:50]New connection [21:31:50]New thread 3067247972 created [21:31:50]Thread 3067104612 joined [21:31:50]Waiting for new connection... [21:31:50] Sock 9.Parse request [21:31:50]Sock 9.Check first char [21:31:50]Sock 9.First char is OK [21:31:50]request: POST /json_proto HTTP/1.0 [21:31:50]Method: POST [21:31:50]URL: /json_proto [21:31:50]Method is POST - this is cgi request [21:31:50]url: /json_proto [21:31:50]query_string will be loaded in cgi processing [21:31:50]execute_cgi json_proto POST (null) [21:31:50]execute_cgi path=json_proto method=POST [21:31:50]POST find Content-Length [21:31:50]Host: 172.17.56.4:8080 [21:31:50]Content-Length: 677 [21:31:50]Content-Type: application/json [21:31:50] [21:31:50]POST finish read [21:31:50]Found Content-Length = 677 [21:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:50]execute_script... [21:31: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)458850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:50]POST & json_proto [21:31:50]process_json_proto [21:31:50]json parsed OK: [21:31:50]protocol is kg_v1.0 [21:31:50]action value=close_receipt [21:31:50]process_action close_receipt [21:31:50]cmd_close_receipt [21:31:50]MH_GetDate [21:31:50]Write to MH i2c: F0 00 00 B7 13 B9 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: F0 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: F0 09 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: F0 09 00 B7 13 00 47 F2 92 66 C9 DC B2 64 AE [21:31:50]GetLastDocTimeStamp 1720906307 [21:31:50]current date 1720906311 [21:31:50]FM_GetShiftState [21:31:50]SAM_PROTO_GetShiftState [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 01 00 [21:31:50]Write to MH i2c: E2 08 00 B8 13 80 13 01 00 00 00 00 00 48 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 B8 13 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 29 [21:31:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:31:50]wFMCommunicate OK [21:31:50]SAM_PROTO_GetShiftState done [21:31:50]FM_GetShiftState done [21:31:50]opened in 1720831249 [21:31:50]opened+sec_in_day 1720917649 [21:31:50]quantity*price = 50008 [21:31:50]sum+1 = 50009 [21:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 316 13.07.2024 21:31 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164756 ФПД: 234959047034369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164756&fm=234959047034369&tin=02508201610067®Number=0000000000090829&sum=50000 [21:31:52]StoreToDocumentArchive [21:31:52]shift 446 fd 164756 [21:31:52]save to /storage/0446/doc_00164756 [21:31:52]save last doc name /storage/0446/doc_00164756 to /storage/kkm_last_doc_name [21:31:52]save OK [21:31:52]Clear old archive folders... [21:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:52]tlvbuf is 01E69430 [21:31:52]SAM_PROTO_ClearQueue [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 09 00 00 [21:31:52]Write to MH i2c: E2 08 00 C5 13 80 09 00 00 00 00 00 00 4A [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 C5 13 00 90 00 4C [21:31:52]RAPDU: 90 00 [21:31:52]wFMCommunicate OK [21:31:52]SAM_PROTO_ClearQueue done [21:31:52]KKMCreateOFDPacket [21:31:52]OFDProtocolAddRootSTLVToBuf [21:31:52]FM_MakeSignedData [21:31:52]FM_MakeSignedData [21:31:52]SAM_PROTO_SignData [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 0D 01 02 [21:31:52]Write to MH i2c: E2 08 00 C6 13 80 0D 01 02 00 00 00 00 52 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [21:31:52]RAPDU: 90 00 [21:31:52]wFMCommunicate OK [21:31:52]wFMCommunicate request_size=255 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 01 00 00 F4 03 04 00 47 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 83 02 00 35 04 06 00 D5 [21:31:52]Write to MH i2c: E2 02 01 C7 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 01 00 00 F4 03 04 00 47 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 83 02 00 35 04 06 00 D5 00 00 E6 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [21:31:52]RAPDU: 90 00 [21:31:52]wFMCommunicate OK [21:31:52]wFMCommunicate request_size=10 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 0D 02 02 05 B1 AA 89 06 01 [21:31:52]Write to MH i2c: E2 0D 00 C8 13 80 0D 02 02 05 00 B1 AA 89 06 01 00 00 4A [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [21:31:52]RAPDU: 90 00 [21:31:52]wFMCommunicate OK [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 0D 03 02 [21:31:52]Write to MH i2c: E2 08 00 C9 13 80 0D 03 02 00 00 00 00 57 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0B 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0B 00 C9 13 00 66 92 CD AC C3 F8 CF 2B 90 00 7E [21:31:52]RAPDU: 66 92 CD AC C3 F8 CF 2B 90 00 [21:31:52]wFMCommunicate OK [21:31:52]SAM_PROTO_SignData done [21:31:52]FM_MakeSignedData done [21:31:52]CreateOFDProtocolMessage [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 11 00 00 [21:31:52]Write to MH i2c: E2 08 00 CA 13 80 11 00 00 00 00 00 00 57 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 17 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 17 00 CA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [21:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:52]wFMCommunicate OK [21:31:52]CreateOFDProtocolMessage done [21:31:52]OFDSenderStorePacket 164756 [21:31:52]StoreOFDPacket docnum=164756 [21:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 34 07 01 8E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 01 00 00 F4 03 04 00 47 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 83 02 00 35 04 06 00 D5 B1 AA 89 06 01 66 92 CD AC C3 F8 CF 2B [21:31:52]CheckFolder [21:31:52]dirname=/storage/ofd_packets [21:31:52]CheckFolder done [21:31:52]ProducePacketName [21:31:52]name=ofd_packets/00164756 [21:31:52]NVStorageSaveData ofd_packets/00164756 [21:31:52]File name is /storage/ofd_packets/00164756 [21:31:52]Write 301 bytes [21:31:52]NVStorageSaveData done [21:31:52]OFDSenderStorePacket done [21:31:52]KKMCreateOFDPacket done [21:31:52]NVStorageSaveData kkm_last_timestamp [21:31:52]File name is /storage/kkm_last_timestamp [21:31:52]Write 4 bytes [21:31:52]NVStorageSaveData done [21:31:52]ExternCall_PrintAddStr [21:31:52]wPrintStart [21:31:52]Write to MH i2c: 01 00 00 CB 13 DE [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: 01 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: 01 07 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: 01 07 00 CB 13 00 00 00 00 00 FF 0F F3 [21:31:52]RasterBufferAndPrint [21:31:52]line Счет N : (1)458850 [21:31:52]line ИНН: 02508201610067 [21:31:52]line Контрольно-Кассовый Чек [21:31:52]line ПРОДАЖА [21:31:52]line ТРК (МРК, ГНК) : 22 [21:31:52]line Товар: 2710124130 [21:31:52]line Аи-92-К-5 [21:31:52]line 7.600 * 65.80 [21:31:52]line = 500.08 [21:31:52]line НДС 12% НСП 1% [21:31:52]line > о реализуемом товаре [21:31:52]line ОКРУГЛЕНИЕ: -0.08 [21:31:52]line ИТОГО: 500.00 [21:31:52]line Внесено: 500.00 [21:31:52]line СДАЧА: 0.00 [21:31:52]line НСП 1% : 4.42 [21:31:52]line НДС 12% : 53.11 [21:31:52]line Наличными: 500.00 [21:31:52]line Безнал.: 0.00 [21:31:52]line Место: АЗС № 72 "Партнер Нефть" [21:31:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:31:52]line СНО: Общий режим [21:31:52]line Чек 316 13.07.2024 21:31 [21:31:52]line Смена: 446 ФФД: 1.0 [21:31:52]line ЗНМ: 0300000160 [21:31:52]line РНМ: 0000000000090829 [21:31:52]line Версия ККМ: 001 [21:31:52]line ФМ: 0000000000874718 [21:31:52]line ФД: 164756 [21:31:52]line ФПД: 234959047034369 [21:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164756&fm=234959047034369&tin=02508201610067®Number=0000000000090829&sum=50000 [21:31:52]written 0, free lines is 4095 [21:31:52]OFD Sender: Processing packet 164756 [packets to send 104, broken 103] [21:31:52]ProducePacketName [21:31:52]name=ofd_packets/00164756 [21:31:52]OFD Sender: To server: pG, [21:31:52]CommunicateWithHost lk.salyk.kg:30040 [21:31:52]ConnectInit lk.salyk.kg [21:31:53]Connected sock=10 [21:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 34 07 01 8E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3C 01 00 00 F4 03 04 00 47 F2 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 83 02 00 35 04 06 00 D5 B1 AA 89 06 01 66 92 CD AC C3 F8 CF 2B [21:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 41 47 00 B9 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 83 02 00 F4 03 04 00 D7 98 92 66 B6 04 01 00 00 68 D4 04 C5 95 04 43 F1 [21:31:53]CommunicateWithHost err = 0 [21:31:53]CheckOFDResponse [21:31:53]1017 (14) - 77093643461234 [21:31:53]1041 (16) - 0000000000874718 [21:31:53]1040 (4) - 164756 [21:31:53]1012 (4) - 13.07.2024 15:10 [21:31:53]1206 (1) - 0 [21:31:53]OFD Sender: Remove packet 164756 [21:31:53]ProducePacketName [21:31:53]name=ofd_packets/00164756 [21:31:53]NVStorageDeleteData [21:31:53]Write to MH i2c: 01 00 00 F5 13 08 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 07 00 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 0A 0D 26 [21:31:53]RasterBufferAndPrint [21:31:53]line [21:31:53]line [21:31:53]line [21:31:53]line [21:31:53]line [21:31:53]written 0, free lines is 3350 [21:31:53]MH_Cut [21:31:53]Write to MH i2c: D1 01 00 FC 13 01 E1 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: D1 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: D1 01 00 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: D1 01 00 FC 13 00 E0 [21:31:53]Write to MH i2c: 01 00 00 FD 13 10 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]OFD Sender: No OFD packet to send [21:31:54]*** Cut start [21:31:54]*** Partial cut [21:31:54]*** CUTSNS_PIN = 1 [21:31:54]*** CUTSNS_PIN = 0 [21:31:54]*** Brake cut motor [21:31:54]Read from MH i2c: 01 [21:31:54]MH_I2C_Read... [21:31:54]*** Stop cut motor [21:31:54]*** Cut end [21:31:54]Read from MH i2c: 01 07 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 FF 0F 25 [21:31:54]process_action close_receipt done [21:31:54]requested_data is exist [21:31:54]produce_requested_data [21:31:54]requested_item fm.sn is exist - process it [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 11 00 00 [21:31:54]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 FE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [21:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:54]wFMCommunicate OK [21:31:54]requested_item fd.num is exist - process it [21:31:54]SAM_PROTO_GetFieldsCounters [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 13 00 00 [21:31:54]Write to MH i2c: E2 08 00 FF 13 80 13 00 00 00 00 00 00 8E [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 62 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 62 00 FF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [21:31: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_GetFieldsCounters done [21:31:54]requested_item shift.num is exist - process it [21:31:54]requested_item shift.opened is exist - process it [21:31:54]req_shift_opened [21:31:54]FM_GetShiftState [21:31:54]SAM_PROTO_GetShiftState [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 13 01 00 [21:31:54]Write to MH i2c: E2 08 00 00 14 80 13 01 00 00 00 00 00 91 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 00 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 72 [21:31:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_GetShiftState done [21:31:54]FM_GetShiftState done [21:31:54]req_shift_opened done [21:31:54]requested_item shift.open_date is exist - process it [21:31:54]req_shift_open_date [21:31:54]req_shift_open_date done [21:31:54]produce_requested_data done [21:31:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164756,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:31:54]process_action_free close_receipt [21:31:54]json_value_free [21:31:54]json_value_free done [21:31:54]process_json_proto returns [21:31:54]Send response to host [21:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164756,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:31:54]free response buf [21:31:54]execute_script done [21:31:54]execute_script returns [21:31:54]free content buf [21:31:54]Sock 9.Close socket [21:31:54]Sock 9.Thread stoped [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:24]accept exits with 7 [21:37:24]New connection [21:37:24]New thread 3067104612 created [21:37:24]Thread 3067247972 joined [21:37:24]Waiting for new connection... [21:37:24] Sock 7.Parse request [21:37:24]Sock 7.Check first char [21:37:24]Sock 7.First char is OK [21:37:24]request: POST /json_proto HTTP/1.0 [21:37:24]Method: POST [21:37:24]URL: /json_proto [21:37:24]Method is POST - this is cgi request [21:37:24]url: /json_proto [21:37:24]query_string will be loaded in cgi processing [21:37:24]execute_cgi json_proto POST (null) [21:37:24]execute_cgi path=json_proto method=POST [21:37:24]POST find Content-Length [21:37:24]Host: 172.17.56.4:8080 [21:37:24]Content-Length: 678 [21:37:24]Content-Type: application/json [21:37:24] [21:37:24]POST finish read [21:37:24]Found Content-Length = 678 [21:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [21:37:24]execute_script... [21:37: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)458851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [21:37:24]POST & json_proto [21:37:24]process_json_proto [21:37:24]json parsed OK: [21:37:24]protocol is kg_v1.0 [21:37:24]action value=close_receipt [21:37:24]process_action close_receipt [21:37:24]cmd_close_receipt [21:37:24]MH_GetDate [21:37:24]Write to MH i2c: F0 00 00 01 14 04 [21:37:24]Write i2c OK [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 09 00 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: F0 09 00 01 14 00 95 F3 92 66 C9 DC B2 64 48 [21:37:24]GetLastDocTimeStamp 1720906311 [21:37:24]current date 1720906645 [21:37:24]FM_GetShiftState [21:37:24]SAM_PROTO_GetShiftState [21:37:24]wFMCommunicate request_size=4 [21:37:24]MH_SAM_APDU [21:37:24]CAPDU: 80 13 01 00 [21:37:24]Write to MH i2c: E2 08 00 02 14 80 13 01 00 00 00 00 00 93 [21:37:24]Write i2c OK [21:37:24]MH_I2C_Read... [21:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:24]Read from MH i2c: E2 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: E2 0E 00 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: E2 0E 00 02 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 74 [21:37:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:37:24]wFMCommunicate OK [21:37:24]SAM_PROTO_GetShiftState done [21:37:24]FM_GetShiftState done [21:37:24]opened in 1720831249 [21:37:24]opened+sec_in_day 1720917649 [21:37:24]quantity*price = 70011 [21:37:24]sum+1 = 70012 [21:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 317 13.07.2024 21:37 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164757 ФПД: 82941948686710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164757&fm=82941948686710&tin=02508201610067®Number=0000000000090829&sum=70000 [21:37:25]StoreToDocumentArchive [21:37:25]shift 446 fd 164757 [21:37:25]save to /storage/0446/doc_00164757 [21:37:25]save last doc name /storage/0446/doc_00164757 to /storage/kkm_last_doc_name [21:37:25]save OK [21:37:25]Clear old archive folders... [21:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:25]tlvbuf is 01EA94B0 [21:37:25]SAM_PROTO_ClearQueue [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 09 00 00 [21:37:25]Write to MH i2c: E2 08 00 0F 14 80 09 00 00 00 00 00 00 95 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]SAM_PROTO_ClearQueue done [21:37:25]KKMCreateOFDPacket [21:37:25]OFDProtocolAddRootSTLVToBuf [21:37:25]FM_MakeSignedData [21:37:25]FM_MakeSignedData [21:37:25]SAM_PROTO_SignData [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 01 02 [21:37:25]Write to MH i2c: E2 08 00 10 14 80 0D 01 02 00 00 00 00 9D [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 10 14 00 90 00 98 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=255 [21:37:25]MH_SAM_APDU [21:37: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 95 F3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 83 02 00 35 04 06 00 4B [21:37:25]Write to MH i2c: E2 02 01 11 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 95 F3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 83 02 00 35 04 06 00 4B 00 00 3C [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 11 14 00 90 00 99 [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=10 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 02 02 05 6F 6D 63 71 76 [21:37:25]Write to MH i2c: E2 0D 00 12 14 80 0D 02 02 05 00 6F 6D 63 71 76 00 00 D0 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [21:37:25]RAPDU: 90 00 [21:37:25]wFMCommunicate OK [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 0D 03 02 [21:37:25]Write to MH i2c: E2 08 00 13 14 80 0D 03 02 00 00 00 00 A2 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 0B 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 0B 00 13 14 00 C7 89 A8 AC A1 82 70 BD 90 00 97 [21:37:25]RAPDU: C7 89 A8 AC A1 82 70 BD 90 00 [21:37:25]wFMCommunicate OK [21:37:25]SAM_PROTO_SignData done [21:37:25]FM_MakeSignedData done [21:37:25]CreateOFDProtocolMessage [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 11 00 00 [21:37:25]Write to MH i2c: E2 08 00 14 14 80 11 00 00 00 00 00 00 A2 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 17 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 17 00 14 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [21:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:37:25]wFMCommunicate OK [21:37:25]CreateOFDProtocolMessage done [21:37:25]OFDSenderStorePacket 164757 [21:37:25]StoreOFDPacket docnum=164757 [21:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 C3 07 01 C1 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 95 F3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 83 02 00 35 04 06 00 4B 6F 6D 63 71 76 C7 89 A8 AC A1 82 70 BD [21:37:25]CheckFolder [21:37:25]dirname=/storage/ofd_packets [21:37:25]CheckFolder done [21:37:25]ProducePacketName [21:37:25]name=ofd_packets/00164757 [21:37:25]NVStorageSaveData ofd_packets/00164757 [21:37:25]File name is /storage/ofd_packets/00164757 [21:37:25]Write 301 bytes [21:37:25]NVStorageSaveData done [21:37:25]OFDSenderStorePacket done [21:37:25]KKMCreateOFDPacket done [21:37:25]NVStorageSaveData kkm_last_timestamp [21:37:25]File name is /storage/kkm_last_timestamp [21:37:25]Write 4 bytes [21:37:25]NVStorageSaveData done [21:37:25]ExternCall_PrintAddStr [21:37:25]wPrintStart [21:37:25]Write to MH i2c: 01 00 00 15 14 29 [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: 01 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: 01 07 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: 01 07 00 15 14 00 00 00 00 00 FF 0F 3E [21:37:25]RasterBufferAndPrint [21:37:25]line Счет N : (1)458851 [21:37:25]line ИНН: 02508201610067 [21:37:25]line Контрольно-Кассовый Чек [21:37:25]line ПРОДАЖА [21:37:25]line ТРК (МРК, ГНК) : 22 [21:37:25]line Товар: 2710124130 [21:37:25]line Аи-92-К-5 [21:37:25]line 10.640 * 65.80 [21:37:25]line = 700.11 [21:37:25]line НДС 12% НСП 1% [21:37:25]line > о реализуемом товаре [21:37:25]line ОКРУГЛЕНИЕ: -0.11 [21:37:25]line ИТОГО: 700.00 [21:37:25]line Внесено: 700.00 [21:37:25]line СДАЧА: 0.00 [21:37:25]line НСП 1% : 6.20 [21:37:25]line НДС 12% : 74.35 [21:37:25]line Наличными: 700.00 [21:37:25]line Безнал.: 0.00 [21:37:25]line Место: АЗС № 72 "Партнер Нефть" [21:37:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:37:25]line СНО: Общий режим [21:37:25]line Чек 317 13.07.2024 21:37 [21:37:25]line Смена: 446 ФФД: 1.0 [21:37:25]line ЗНМ: 0300000160 [21:37:25]line РНМ: 0000000000090829 [21:37:25]line Версия ККМ: 001 [21:37:25]line ФМ: 0000000000874718 [21:37:25]line ФД: 164757 [21:37:25]line ФПД: 82941948686710 [21:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164757&fm=82941948686710&tin=02508201610067®Number=0000000000090829&sum=70000 [21:37:26]OFD Sender: Processing packet 164757 [packets to send 104, broken 103] [21:37:26]ProducePacketName [21:37:26]name=ofd_packets/00164757 [21:37:26]OFD Sender: To server: pG, [21:37:26]CommunicateWithHost lk.salyk.kg:30040 [21:37:26]ConnectInit lk.salyk.kg [21:37:26]written 0, free lines is 4095 [21:37:26]Connected sock=9 [21:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 C3 07 01 C1 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 95 F3 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 83 02 00 35 04 06 00 4B 6F 6D 63 71 76 C7 89 A8 AC A1 82 70 BD [21:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 A1 47 00 50 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 83 02 00 F4 03 04 00 25 9A 92 66 B6 04 01 00 00 FC 64 48 4C B7 21 3D 73 [21:37:26]CommunicateWithHost err = 0 [21:37:26]CheckOFDResponse [21:37:26]1017 (14) - 77093643461234 [21:37:26]1041 (16) - 0000000000874718 [21:37:26]1040 (4) - 164757 [21:37:26]1012 (4) - 13.07.2024 15:15 [21:37:26]1206 (1) - 0 [21:37:26]OFD Sender: Remove packet 164757 [21:37:26]ProducePacketName [21:37:26]name=ofd_packets/00164757 [21:37:26]NVStorageDeleteData [21:37:26]Write to MH i2c: 01 00 00 3F 14 53 [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 EE 0C 54 [21:37:26]RasterBufferAndPrint [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]line [21:37:26]written 0, free lines is 3316 [21:37:26]MH_Cut [21:37:26]Write to MH i2c: D1 01 00 46 14 01 2C [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 01 00 [21:37:26]MH_I2C_Read... [21:37:26]Read from MH i2c: D1 01 00 46 14 00 2B [21:37:26]Write to MH i2c: 01 00 00 47 14 5B [21:37:26]Write i2c OK [21:37:26]MH_I2C_Read... [21:37:27]OFD Sender: No OFD packet to send [21:37:27]*** Cut start [21:37:27]*** Partial cut [21:37:27]*** CUTSNS_PIN = 1 [21:37:27]*** CUTSNS_PIN = 0 [21:37:27]*** Brake cut motor [21:37:27]Read from MH i2c: 01 [21:37:27]MH_I2C_Read... [21:37:27]*** Stop cut motor [21:37:27]*** Cut end [21:37:27]Read from MH i2c: 01 07 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [21:37:27]process_action close_receipt done [21:37:27]requested_data is exist [21:37:27]produce_requested_data [21:37:27]requested_item fm.sn is exist - process it [21:37:27]wFMCommunicate request_size=4 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 11 00 00 [21:37:27]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 17 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [21:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:37:28]wFMCommunicate OK [21:37:28]requested_item fd.num is exist - process it [21:37:28]SAM_PROTO_GetFieldsCounters [21:37:28]wFMCommunicate request_size=4 [21:37:28]MH_SAM_APDU [21:37:28]CAPDU: 80 13 00 00 [21:37:28]Write to MH i2c: E2 08 00 49 14 80 13 00 00 00 00 00 00 D9 [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 62 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 62 00 49 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [21:37: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:28]wFMCommunicate OK [21:37:28]SAM_PROTO_GetFieldsCounters done [21:37:28]requested_item shift.num is exist - process it [21:37:28]requested_item shift.opened is exist - process it [21:37:28]req_shift_opened [21:37:28]FM_GetShiftState [21:37:28]SAM_PROTO_GetShiftState [21:37:28]wFMCommunicate request_size=4 [21:37:28]MH_SAM_APDU [21:37:28]CAPDU: 80 13 01 00 [21:37:28]Write to MH i2c: E2 08 00 4A 14 80 13 01 00 00 00 00 00 DB [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:28]Read from MH i2c: E2 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 0E 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: E2 0E 00 4A 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BC [21:37:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:37:28]wFMCommunicate OK [21:37:28]SAM_PROTO_GetShiftState done [21:37:28]FM_GetShiftState done [21:37:28]req_shift_opened done [21:37:28]requested_item shift.open_date is exist - process it [21:37:28]req_shift_open_date [21:37:28]req_shift_open_date done [21:37:28]produce_requested_data done [21:37:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164757,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:37:28]process_action_free close_receipt [21:37:28]json_value_free [21:37:28]json_value_free done [21:37:28]process_json_proto returns [21:37:28]Send response to host [21:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164757,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:37:28]free response buf [21:37:28]execute_script done [21:37:28]execute_script returns [21:37:28]free content buf [21:37:28]Sock 7.Close socket [21:37:28]Sock 7.Thread stoped [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:24]accept exits with 10 [21:40:24]New connection [21:40:24]New thread 3067247972 created [21:40:24]Thread 3067104612 joined [21:40:24]Waiting for new connection... [21:40:24] Sock 10.Parse request [21:40:24]Sock 10.Check first char [21:40:24]Sock 10.First char is OK [21:40:24]request: POST /json_proto HTTP/1.0 [21:40:24]Method: POST [21:40:24]URL: /json_proto [21:40:24]Method is POST - this is cgi request [21:40:24]url: /json_proto [21:40:24]query_string will be loaded in cgi processing [21:40:24]execute_cgi json_proto POST (null) [21:40:24]execute_cgi path=json_proto method=POST [21:40:24]POST find Content-Length [21:40:24]Host: 172.17.56.4:8080 [21:40:24]Content-Length: 677 [21:40:24]Content-Type: application/json [21:40:24] [21:40:24]POST finish read [21:40:24]Found Content-Length = 677 [21:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:40:24]execute_script... [21:40:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:40:24]POST & json_proto [21:40:24]process_json_proto [21:40:24]json parsed OK: [21:40:24]protocol is kg_v1.0 [21:40:24]action value=close_receipt [21:40:24]process_action close_receipt [21:40:24]cmd_close_receipt [21:40:24]MH_GetDate [21:40:24]Write to MH i2c: F0 00 00 4B 14 4E [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: F0 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: F0 09 00 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: F0 09 00 4B 14 00 49 F4 92 66 C9 DC B2 64 47 [21:40:24]GetLastDocTimeStamp 1720906645 [21:40:24]current date 1720906825 [21:40:24]FM_GetShiftState [21:40:24]SAM_PROTO_GetShiftState [21:40:24]wFMCommunicate request_size=4 [21:40:24]MH_SAM_APDU [21:40:24]CAPDU: 80 13 01 00 [21:40:24]Write to MH i2c: E2 08 00 4C 14 80 13 01 00 00 00 00 00 DD [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:24]Read from MH i2c: E2 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 0E 00 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 0E 00 4C 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 BE [21:40:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:40:24]wFMCommunicate OK [21:40:24]SAM_PROTO_GetShiftState done [21:40:24]FM_GetShiftState done [21:40:24]opened in 1720831249 [21:40:24]opened+sec_in_day 1720917649 [21:40:24]quantity*price = 60009 [21:40:24]sum+1 = 60011 [21:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 318 13.07.2024 21:40 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164758 ФПД: 73527476579032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164758&fm=73527476579032&tin=02508201610067®Number=0000000000090829&sum=60000 [21:40:25]StoreToDocumentArchive [21:40:25]shift 446 fd 164758 [21:40:25]save to /storage/0446/doc_00164758 [21:40:25]save last doc name /storage/0446/doc_00164758 to /storage/kkm_last_doc_name [21:40:25]save OK [21:40:25]Clear old archive folders... [21:40:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:25]tlvbuf is 01EA91C0 [21:40:25]SAM_PROTO_ClearQueue [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 09 00 00 [21:40:25]Write to MH i2c: E2 08 00 59 14 80 09 00 00 00 00 00 00 DF [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [21:40:25]RAPDU: 90 00 [21:40:25]wFMCommunicate OK [21:40:25]SAM_PROTO_ClearQueue done [21:40:25]KKMCreateOFDPacket [21:40:25]OFDProtocolAddRootSTLVToBuf [21:40:25]FM_MakeSignedData [21:40:25]FM_MakeSignedData [21:40:25]SAM_PROTO_SignData [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 0D 01 02 [21:40:25]Write to MH i2c: E2 08 00 5A 14 80 0D 01 02 00 00 00 00 E7 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 5A 14 00 90 00 E2 [21:40:25]RAPDU: 90 00 [21:40:25]wFMCommunicate OK [21:40:25]wFMCommunicate request_size=255 [21:40:25]MH_SAM_APDU [21:40: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 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 49 F4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 83 02 00 35 04 06 00 42 [21:40:25]Write to MH i2c: E2 02 01 5B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 49 F4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 83 02 00 35 04 06 00 42 00 00 11 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 03 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [21:40:26]RAPDU: 90 00 [21:40:26]wFMCommunicate OK [21:40:26]wFMCommunicate request_size=10 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 0D 02 02 05 DF 73 1F 6A D8 [21:40:26]Write to MH i2c: E2 0D 00 5C 14 80 0D 02 02 05 00 DF 73 1F 6A D8 00 00 A7 [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 03 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [21:40:26]RAPDU: 90 00 [21:40:26]wFMCommunicate OK [21:40:26]wFMCommunicate request_size=4 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 0D 03 02 [21:40:26]Write to MH i2c: E2 08 00 5D 14 80 0D 03 02 00 00 00 00 EC [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 0B 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 0B 00 5D 14 00 31 44 EA F3 A4 AF 14 6C 90 00 12 [21:40:26]RAPDU: 31 44 EA F3 A4 AF 14 6C 90 00 [21:40:26]wFMCommunicate OK [21:40:26]SAM_PROTO_SignData done [21:40:26]FM_MakeSignedData done [21:40:26]CreateOFDProtocolMessage [21:40:26]wFMCommunicate request_size=4 [21:40:26]MH_SAM_APDU [21:40:26]CAPDU: 80 11 00 00 [21:40:26]Write to MH i2c: E2 08 00 5E 14 80 11 00 00 00 00 00 00 EC [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:26]Read from MH i2c: E2 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 17 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: E2 17 00 5E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [21:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:40:26]wFMCommunicate OK [21:40:26]CreateOFDProtocolMessage done [21:40:26]OFDSenderStorePacket 164758 [21:40:26]StoreOFDPacket docnum=164758 [21:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 79 07 01 07 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 49 F4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 83 02 00 35 04 06 00 42 DF 73 1F 6A D8 31 44 EA F3 A4 AF 14 6C [21:40:26]CheckFolder [21:40:26]dirname=/storage/ofd_packets [21:40:26]CheckFolder done [21:40:26]ProducePacketName [21:40:26]name=ofd_packets/00164758 [21:40:26]NVStorageSaveData ofd_packets/00164758 [21:40:26]File name is /storage/ofd_packets/00164758 [21:40:26]Write 301 bytes [21:40:26]NVStorageSaveData done [21:40:26]OFDSenderStorePacket done [21:40:26]KKMCreateOFDPacket done [21:40:26]NVStorageSaveData kkm_last_timestamp [21:40:26]File name is /storage/kkm_last_timestamp [21:40:26]Write 4 bytes [21:40:26]NVStorageSaveData done [21:40:26]ExternCall_PrintAddStr [21:40:26]wPrintStart [21:40:26]Write to MH i2c: 01 00 00 5F 14 73 [21:40:26]Write i2c OK [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: 01 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: 01 07 00 [21:40:26]MH_I2C_Read... [21:40:26]Read from MH i2c: 01 07 00 5F 14 00 00 00 00 00 FF 0F 88 [21:40:26]RasterBufferAndPrint [21:40:26]line Счет N : (1)458852 [21:40:26]line ИНН: 02508201610067 [21:40:26]line Контрольно-Кассовый Чек [21:40:26]line ПРОДАЖА [21:40:26]line ТРК (МРК, ГНК) : 12 [21:40:26]line Товар: 2710124130 [21:40:26]line Аи-92-К-5 [21:40:26]line 9.120 * 65.80 [21:40:26]line = 600.10 [21:40:26]line НДС 12% НСП 1% [21:40:26]line > о реализуемом товаре [21:40:26]line ОКРУГЛЕНИЕ: -0.10 [21:40:26]line ИТОГО: 600.00 [21:40:26]line Внесено: 600.00 [21:40:26]line СДАЧА: 0.00 [21:40:26]line НСП 1% : 5.31 [21:40:26]line НДС 12% : 63.73 [21:40:26]line Наличными: 600.00 [21:40:26]line Безнал.: 0.00 [21:40:26]line Место: АЗС № 72 "Партнер Нефть" [21:40:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:40:26]line СНО: Общий режим [21:40:26]line Чек 318 13.07.2024 21:40 [21:40:26]line Смена: 446 ФФД: 1.0 [21:40:26]line ЗНМ: 0300000160 [21:40:26]line РНМ: 0000000000090829 [21:40:26]line Версия ККМ: 001 [21:40:26]line ФМ: 0000000000874718 [21:40:26]line ФД: 164758 [21:40:26]line ФПД: 73527476579032 [21:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164758&fm=73527476579032&tin=02508201610067®Number=0000000000090829&sum=60000 [21:40:26]written 0, free lines is 4095 [21:40:26]OFD Sender: Processing packet 164758 [packets to send 104, broken 103] [21:40:26]ProducePacketName [21:40:26]name=ofd_packets/00164758 [21:40:26]OFD Sender: To server: pG, [21:40:26]CommunicateWithHost lk.salyk.kg:30040 [21:40:26]ConnectInit lk.salyk.kg [21:40:26]Connected sock=9 [21:40:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 79 07 01 07 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 49 F4 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 83 02 00 35 04 06 00 42 DF 73 1F 6A D8 31 44 EA F3 A4 AF 14 6C [21:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD FA 47 00 EA 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 83 02 00 F4 03 04 00 D9 9A 92 66 B6 04 01 00 00 BF B8 75 8A 5C 23 79 82 [21:40:26]CommunicateWithHost err = 0 [21:40:26]CheckOFDResponse [21:40:26]1017 (14) - 77093643461234 [21:40:26]1041 (16) - 0000000000874718 [21:40:26]1040 (4) - 164758 [21:40:26]1012 (4) - 13.07.2024 15:18 [21:40:26]1206 (1) - 0 [21:40:26]OFD Sender: Remove packet 164758 [21:40:26]ProducePacketName [21:40:26]name=ofd_packets/00164758 [21:40:26]NVStorageDeleteData [21:40:27]Write to MH i2c: 01 00 00 89 14 9D [21:40:27]Write i2c OK [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: 01 [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: 01 07 00 [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 F3 0C A3 [21:40:27]RasterBufferAndPrint [21:40:27]line [21:40:27]line [21:40:27]line [21:40:27]line [21:40:27]line [21:40:27]written 0, free lines is 3321 [21:40:27]MH_Cut [21:40:27]Write to MH i2c: D1 01 00 90 14 01 76 [21:40:27]Write i2c OK [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: D1 [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: D1 01 00 [21:40:27]MH_I2C_Read... [21:40:27]Read from MH i2c: D1 01 00 90 14 00 75 [21:40:27]Write to MH i2c: 01 00 00 91 14 A5 [21:40:27]Write i2c OK [21:40:27]MH_I2C_Read... [21:40:27]OFD Sender: No OFD packet to send [21:40:27]*** Cut start [21:40:27]*** Partial cut [21:40:27]*** CUTSNS_PIN = 1 [21:40:27]*** CUTSNS_PIN = 0 [21:40:28]*** Brake cut motor [21:40:28]Read from MH i2c: 01 [21:40:28]MH_I2C_Read... [21:40:28]*** Stop cut motor [21:40:28]*** Cut end [21:40:28]Read from MH i2c: 01 07 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: 01 07 00 91 14 00 00 00 00 00 FF 0F BA [21:40:28]process_action close_receipt done [21:40:28]requested_data is exist [21:40:28]produce_requested_data [21:40:28]requested_item fm.sn is exist - process it [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 11 00 00 [21:40:28]Write to MH i2c: E2 08 00 92 14 80 11 00 00 00 00 00 00 20 [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 17 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 17 00 92 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [21:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:40:28]wFMCommunicate OK [21:40:28]requested_item fd.num is exist - process it [21:40:28]SAM_PROTO_GetFieldsCounters [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 13 00 00 [21:40:28]Write to MH i2c: E2 08 00 93 14 80 13 00 00 00 00 00 00 23 [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 62 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 62 00 93 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [21:40: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:28]wFMCommunicate OK [21:40:28]SAM_PROTO_GetFieldsCounters done [21:40:28]requested_item shift.num is exist - process it [21:40:28]requested_item shift.opened is exist - process it [21:40:28]req_shift_opened [21:40:28]FM_GetShiftState [21:40:28]SAM_PROTO_GetShiftState [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 13 01 00 [21:40:28]Write to MH i2c: E2 08 00 94 14 80 13 01 00 00 00 00 00 25 [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 94 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 06 [21:40:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:40:28]wFMCommunicate OK [21:40:28]SAM_PROTO_GetShiftState done [21:40:28]FM_GetShiftState done [21:40:28]req_shift_opened done [21:40:28]requested_item shift.open_date is exist - process it [21:40:28]req_shift_open_date [21:40:28]req_shift_open_date done [21:40:28]produce_requested_data done [21:40:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164758,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:40:28]process_action_free close_receipt [21:40:28]json_value_free [21:40:28]json_value_free done [21:40:28]process_json_proto returns [21:40:28]Send response to host [21:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164758,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:40:28]free response buf [21:40:28]execute_script done [21:40:28]execute_script returns [21:40:28]free content buf [21:40:28]Sock 10.Close socket [21:40:28]Sock 10.Thread stoped [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:44:59]accept exits with 7 [21:44:59]New connection [21:44:59]New thread 3067104612 created [21:44:59]Thread 3067247972 joined [21:44:59]Waiting for new connection... [21:44:59] Sock 7.Parse request [21:44:59]Sock 7.Check first char [21:44:59]Sock 7.First char is OK [21:44:59]request: POST /json_proto HTTP/1.0 [21:44:59]Method: POST [21:44:59]URL: /json_proto [21:44:59]Method is POST - this is cgi request [21:44:59]url: /json_proto [21:44:59]query_string will be loaded in cgi processing [21:44:59]execute_cgi json_proto POST (null) [21:44:59]execute_cgi path=json_proto method=POST [21:44:59]POST find Content-Length [21:44:59]Host: 172.17.56.4:8080 [21:44:59]Content-Length: 677 [21:44:59]Content-Type: application/json [21:44:59] [21:44:59]POST finish read [21:44:59]Found Content-Length = 677 [21:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:59]execute_script... [21:44: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)458853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:59]POST & json_proto [21:44:59]process_json_proto [21:44:59]json parsed OK: [21:44:59]protocol is kg_v1.0 [21:44:59]action value=close_receipt [21:44:59]process_action close_receipt [21:44:59]cmd_close_receipt [21:44:59]MH_GetDate [21:44:59]Write to MH i2c: F0 00 00 95 14 98 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: F0 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: F0 09 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: F0 09 00 95 14 00 5D F5 92 66 C9 DC B2 64 A6 [21:44:59]GetLastDocTimeStamp 1720906825 [21:44:59]current date 1720907101 [21:44:59]FM_GetShiftState [21:44:59]SAM_PROTO_GetShiftState [21:44:59]wFMCommunicate request_size=4 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 13 01 00 [21:44:59]Write to MH i2c: E2 08 00 96 14 80 13 01 00 00 00 00 00 27 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0E 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0E 00 96 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 08 [21:44:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:44:59]wFMCommunicate OK [21:44:59]SAM_PROTO_GetShiftState done [21:44:59]FM_GetShiftState done [21:44:59]opened in 1720831249 [21:44:59]opened+sec_in_day 1720917649 [21:44:59]quantity*price = 50008 [21:44:59]sum+1 = 50009 [21:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 319 13.07.2024 21:45 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164759 ФПД: 238838259200375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164759&fm=238838259200375&tin=02508201610067®Number=0000000000090829&sum=50000 [21:45:01]StoreToDocumentArchive [21:45:01]shift 446 fd 164759 [21:45:01]save to /storage/0446/doc_00164759 [21:45:01]save last doc name /storage/0446/doc_00164759 to /storage/kkm_last_doc_name [21:45:01]save OK [21:45:01]Clear old archive folders... [21:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:01]tlvbuf is 01E895A0 [21:45:01]SAM_PROTO_ClearQueue [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 09 00 00 [21:45:01]Write to MH i2c: E2 08 00 A3 14 80 09 00 00 00 00 00 00 29 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [21:45:01]RAPDU: 90 00 [21:45:01]wFMCommunicate OK [21:45:01]SAM_PROTO_ClearQueue done [21:45:01]KKMCreateOFDPacket [21:45:01]OFDProtocolAddRootSTLVToBuf [21:45:01]FM_MakeSignedData [21:45:01]FM_MakeSignedData [21:45:01]SAM_PROTO_SignData [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 0D 01 02 [21:45:01]Write to MH i2c: E2 08 00 A4 14 80 0D 01 02 00 00 00 00 31 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [21:45:01]RAPDU: 90 00 [21:45:01]wFMCommunicate OK [21:45:01]wFMCommunicate request_size=255 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3F 01 00 00 F4 03 04 00 5D F5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 83 02 00 35 04 06 00 D9 [21:45:01]Write to MH i2c: E2 02 01 A5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3F 01 00 00 F4 03 04 00 5D F5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 83 02 00 35 04 06 00 D9 00 00 E8 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [21:45:01]RAPDU: 90 00 [21:45:01]wFMCommunicate OK [21:45:01]wFMCommunicate request_size=10 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 0D 02 02 05 38 DD 99 31 77 [21:45:01]Write to MH i2c: E2 0D 00 A6 14 80 0D 02 02 05 00 38 DD 99 31 77 00 00 94 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [21:45:01]RAPDU: 90 00 [21:45:01]wFMCommunicate OK [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 0D 03 02 [21:45:01]Write to MH i2c: E2 08 00 A7 14 80 0D 03 02 00 00 00 00 36 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 0B 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 0B 00 A7 14 00 5F 62 33 83 E8 80 B9 16 90 00 E5 [21:45:01]RAPDU: 5F 62 33 83 E8 80 B9 16 90 00 [21:45:01]wFMCommunicate OK [21:45:01]SAM_PROTO_SignData done [21:45:01]FM_MakeSignedData done [21:45:01]CreateOFDProtocolMessage [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 11 00 00 [21:45:01]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 17 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [21:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:45:01]wFMCommunicate OK [21:45:01]CreateOFDProtocolMessage done [21:45:01]OFDSenderStorePacket 164759 [21:45:01]StoreOFDPacket docnum=164759 [21:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B5 5E 07 01 0D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3F 01 00 00 F4 03 04 00 5D F5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 83 02 00 35 04 06 00 D9 38 DD 99 31 77 5F 62 33 83 E8 80 B9 16 [21:45:01]CheckFolder [21:45:01]dirname=/storage/ofd_packets [21:45:01]CheckFolder done [21:45:01]ProducePacketName [21:45:01]name=ofd_packets/00164759 [21:45:01]NVStorageSaveData ofd_packets/00164759 [21:45:01]File name is /storage/ofd_packets/00164759 [21:45:01]Write 301 bytes [21:45:01]NVStorageSaveData done [21:45:01]OFDSenderStorePacket done [21:45:01]KKMCreateOFDPacket done [21:45:01]NVStorageSaveData kkm_last_timestamp [21:45:01]File name is /storage/kkm_last_timestamp [21:45:01]Write 4 bytes [21:45:01]NVStorageSaveData done [21:45:01]ExternCall_PrintAddStr [21:45:01]wPrintStart [21:45:01]Write to MH i2c: 01 00 00 A9 14 BD [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: 01 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: 01 07 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 FF 0F D2 [21:45:01]RasterBufferAndPrint [21:45:01]line Счет N : (1)458853 [21:45:01]line ИНН: 02508201610067 [21:45:01]line Контрольно-Кассовый Чек [21:45:01]line ПРОДАЖА [21:45:01]line ТРК (МРК, ГНК) : 22 [21:45:01]line Товар: 2710124130 [21:45:01]line Аи-92-К-5 [21:45:01]line 7.600 * 65.80 [21:45:01]line = 500.08 [21:45:01]line НДС 12% НСП 1% [21:45:01]line > о реализуемом товаре [21:45:01]line ОКРУГЛЕНИЕ: -0.08 [21:45:01]line ИТОГО: 500.00 [21:45:01]line Внесено: 500.00 [21:45:01]line СДАЧА: 0.00 [21:45:01]line НСП 1% : 4.42 [21:45:01]line НДС 12% : 53.11 [21:45:01]line Наличными: 500.00 [21:45:01]line Безнал.: 0.00 [21:45:01]line Место: АЗС № 72 "Партнер Нефть" [21:45:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:45:01]line СНО: Общий режим [21:45:01]line Чек 319 13.07.2024 21:45 [21:45:01]line Смена: 446 ФФД: 1.0 [21:45:01]line ЗНМ: 0300000160 [21:45:01]line РНМ: 0000000000090829 [21:45:01]line Версия ККМ: 001 [21:45:01]line ФМ: 0000000000874718 [21:45:01]line ФД: 164759 [21:45:01]line ФПД: 238838259200375 [21:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214501&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164759&fm=238838259200375&tin=02508201610067®Number=0000000000090829&sum=50000 [21:45:01]written 0, free lines is 4095 [21:45:01]OFD Sender: Processing packet 164759 [packets to send 104, broken 103] [21:45:01]ProducePacketName [21:45:01]name=ofd_packets/00164759 [21:45:01]OFD Sender: To server: pG, [21:45:01]CommunicateWithHost lk.salyk.kg:30040 [21:45:01]ConnectInit lk.salyk.kg [21:45:02]Connected sock=10 [21:45:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B5 5E 07 01 0D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 3F 01 00 00 F4 03 04 00 5D F5 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 83 02 00 35 04 06 00 D9 38 DD 99 31 77 5F 62 33 83 E8 80 B9 16 [21:45:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 2A 47 00 4C 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 83 02 00 F4 03 04 00 EC 9B 92 66 B6 04 01 00 00 2E 43 98 01 8D 1B 90 2B [21:45:02]CommunicateWithHost err = 0 [21:45:02]CheckOFDResponse [21:45:02]1017 (14) - 77093643461234 [21:45:02]1041 (16) - 0000000000874718 [21:45:02]1040 (4) - 164759 [21:45:02]1012 (4) - 13.07.2024 15:23 [21:45:02]1206 (1) - 0 [21:45:02]OFD Sender: Remove packet 164759 [21:45:02]ProducePacketName [21:45:02]name=ofd_packets/00164759 [21:45:02]NVStorageDeleteData [21:45:02]Write to MH i2c: 01 00 00 D3 14 E7 [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: 01 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: 01 07 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 F7 0C F1 [21:45:02]RasterBufferAndPrint [21:45:02]line [21:45:02]line [21:45:02]line [21:45:02]line [21:45:02]line [21:45:02]written 0, free lines is 3326 [21:45:02]MH_Cut [21:45:02]Write to MH i2c: D1 01 00 DA 14 01 C0 [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: D1 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: D1 01 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: D1 01 00 DA 14 00 BF [21:45:02]Write to MH i2c: 01 00 00 DB 14 EF [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]OFD Sender: No OFD packet to send [21:45:03]*** Cut start [21:45:03]*** Partial cut [21:45:03]*** CUTSNS_PIN = 1 [21:45:03]*** CUTSNS_PIN = 0 [21:45:03]*** Brake cut motor [21:45:03]Read from MH i2c: 01 [21:45:03]MH_I2C_Read... [21:45:03]*** Stop cut motor [21:45:03]*** Cut end [21:45:03]Read from MH i2c: 01 07 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 FF 0F 04 [21:45:03]process_action close_receipt done [21:45:03]requested_data is exist [21:45:03]produce_requested_data [21:45:03]requested_item fm.sn is exist - process it [21:45:03]wFMCommunicate request_size=4 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 11 00 00 [21:45:03]Write to MH i2c: E2 08 00 DC 14 80 11 00 00 00 00 00 00 6A [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:03]Read from MH i2c: E2 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 17 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 17 00 DC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [21:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:45:03]wFMCommunicate OK [21:45:03]requested_item fd.num is exist - process it [21:45:03]SAM_PROTO_GetFieldsCounters [21:45:03]wFMCommunicate request_size=4 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 13 00 00 [21:45:03]Write to MH i2c: E2 08 00 DD 14 80 13 00 00 00 00 00 00 6D [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:03]Read from MH i2c: E2 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 62 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 62 00 DD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [21:45: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:03]wFMCommunicate OK [21:45:03]SAM_PROTO_GetFieldsCounters done [21:45:03]requested_item shift.num is exist - process it [21:45:03]requested_item shift.opened is exist - process it [21:45:03]req_shift_opened [21:45:03]FM_GetShiftState [21:45:03]SAM_PROTO_GetShiftState [21:45:03]wFMCommunicate request_size=4 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 13 01 00 [21:45:03]Write to MH i2c: E2 08 00 DE 14 80 13 01 00 00 00 00 00 6F [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:03]Read from MH i2c: E2 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 0E 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 0E 00 DE 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 50 [21:45:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:45:03]wFMCommunicate OK [21:45:03]SAM_PROTO_GetShiftState done [21:45:03]FM_GetShiftState done [21:45:03]req_shift_opened done [21:45:03]requested_item shift.open_date is exist - process it [21:45:03]req_shift_open_date [21:45:03]req_shift_open_date done [21:45:03]produce_requested_data done [21:45:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164759,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:45:03]process_action_free close_receipt [21:45:03]json_value_free [21:45:03]json_value_free done [21:45:03]process_json_proto returns [21:45:03]Send response to host [21:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164759,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:45:03]free response buf [21:45:03]execute_script done [21:45:03]execute_script returns [21:45:03]free content buf [21:45:03]Sock 7.Close socket [21:45:03]Sock 7.Thread stoped [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:46]accept exits with 9 [21:49:46]New connection [21:49:46]New thread 3067247972 created [21:49:46]Thread 3067104612 joined [21:49:46]Waiting for new connection... [21:49:46] Sock 9.Parse request [21:49:46]Sock 9.Check first char [21:49:46]Sock 9.First char is OK [21:49:46]request: POST /json_proto HTTP/1.0 [21:49:46]Method: POST [21:49:46]URL: /json_proto [21:49:46]Method is POST - this is cgi request [21:49:46]url: /json_proto [21:49:46]query_string will be loaded in cgi processing [21:49:46]execute_cgi json_proto POST (null) [21:49:46]execute_cgi path=json_proto method=POST [21:49:46]POST find Content-Length [21:49:46]Host: 172.17.56.4:8080 [21:49:46]Content-Length: 677 [21:49:46]Content-Type: application/json [21:49:46] [21:49:46]POST finish read [21:49:46]Found Content-Length = 677 [21:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [21:49:46]execute_script... [21:49: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)458854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "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" ] } } [21:49:46]POST & json_proto [21:49:46]process_json_proto [21:49:46]json parsed OK: [21:49:46]protocol is kg_v1.0 [21:49:46]action value=close_receipt [21:49:46]process_action close_receipt [21:49:46]cmd_close_receipt [21:49:46]MH_GetDate [21:49:46]Write to MH i2c: F0 00 00 DF 14 E2 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 DF 14 00 7B F6 92 66 C9 DC B2 64 0F [21:49:46]GetLastDocTimeStamp 1720907101 [21:49:46]current date 1720907387 [21:49:46]FM_GetShiftState [21:49:46]SAM_PROTO_GetShiftState [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 13 01 00 [21:49:46]Write to MH i2c: E2 08 00 E0 14 80 13 01 00 00 00 00 00 71 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 E0 14 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 52 [21:49:46]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_GetShiftState done [21:49:46]FM_GetShiftState done [21:49:46]opened in 1720831249 [21:49:46]opened+sec_in_day 1720917649 [21:49:46]quantity*price = 10001 [21:49:46]sum+1 = 10003 [21:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 320 13.07.2024 21:49 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164760 ФПД: 169364547413032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164760&fm=169364547413032&tin=02508201610067®Number=0000000000090829&sum=10000 [21:49:47]StoreToDocumentArchive [21:49:47]shift 446 fd 164760 [21:49:47]save to /storage/0446/doc_00164760 [21:49:47]save last doc name /storage/0446/doc_00164760 to /storage/kkm_last_doc_name [21:49:47]save OK [21:49:47]Clear old archive folders... [21:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:47]tlvbuf is 01E56DE0 [21:49:47]SAM_PROTO_ClearQueue [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 09 00 00 [21:49:47]Write to MH i2c: E2 08 00 ED 14 80 09 00 00 00 00 00 00 73 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 ED 14 00 90 00 75 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]SAM_PROTO_ClearQueue done [21:49:47]KKMCreateOFDPacket [21:49:47]OFDProtocolAddRootSTLVToBuf [21:49:47]FM_MakeSignedData [21:49:47]FM_MakeSignedData [21:49:47]SAM_PROTO_SignData [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 01 02 [21:49:47]Write to MH i2c: E2 08 00 EE 14 80 0D 01 02 00 00 00 00 7B [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 EE 14 00 90 00 76 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=255 [21:49:47]MH_SAM_APDU [21:49: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 7B F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 83 02 00 35 04 06 00 9A [21:49:47]Write to MH i2c: E2 02 01 EF 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 7B F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 83 02 00 35 04 06 00 9A 00 00 96 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=10 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 02 02 05 09 41 AF A4 28 [21:49:47]Write to MH i2c: E2 0D 00 F0 14 80 0D 02 02 05 00 09 41 AF A4 28 00 00 4D [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 03 02 [21:49:47]Write to MH i2c: E2 08 00 F1 14 80 0D 03 02 00 00 00 00 80 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 F1 14 00 56 2C 9A 61 46 57 CE C2 90 00 2B [21:49:47]RAPDU: 56 2C 9A 61 46 57 CE C2 90 00 [21:49:47]wFMCommunicate OK [21:49:47]SAM_PROTO_SignData done [21:49:47]FM_MakeSignedData done [21:49:47]CreateOFDProtocolMessage [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 11 00 00 [21:49:47]Write to MH i2c: E2 08 00 F2 14 80 11 00 00 00 00 00 00 80 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 F2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [21:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:49:47]wFMCommunicate OK [21:49:47]CreateOFDProtocolMessage done [21:49:47]OFDSenderStorePacket 164760 [21:49:47]StoreOFDPacket docnum=164760 [21:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 3B 07 01 1E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 7B F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 83 02 00 35 04 06 00 9A 09 41 AF A4 28 56 2C 9A 61 46 57 CE C2 [21:49:47]CheckFolder [21:49:47]dirname=/storage/ofd_packets [21:49:47]CheckFolder done [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00164760 [21:49:47]NVStorageSaveData ofd_packets/00164760 [21:49:47]File name is /storage/ofd_packets/00164760 [21:49:47]Write 301 bytes [21:49:47]NVStorageSaveData done [21:49:47]OFDSenderStorePacket done [21:49:47]KKMCreateOFDPacket done [21:49:47]NVStorageSaveData kkm_last_timestamp [21:49:47]File name is /storage/kkm_last_timestamp [21:49:47]Write 4 bytes [21:49:47]NVStorageSaveData done [21:49:47]ExternCall_PrintAddStr [21:49:47]wPrintStart [21:49:47]Write to MH i2c: 01 00 00 F3 14 07 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 F3 14 00 00 00 00 00 FF 0F 1C [21:49:47]RasterBufferAndPrint [21:49:47]line Счет N : (1)458854 [21:49:47]line ИНН: 02508201610067 [21:49:47]line Контрольно-Кассовый Чек [21:49:47]line ПРОДАЖА [21:49:47]line ТРК (МРК, ГНК) : 22 [21:49:47]line Товар: 2710124130 [21:49:47]line Аи-92-К-5 [21:49:47]line 1.520 * 65.80 [21:49:47]line = 100.02 [21:49:47]line НДС 12% НСП 1% [21:49:47]line > о реализуемом товаре [21:49:47]line ОКРУГЛЕНИЕ: -0.02 [21:49:47]line ИТОГО: 100.00 [21:49:47]line Внесено: 100.00 [21:49:47]line СДАЧА: 0.00 [21:49:47]line НСП 1% : 0.88 [21:49:47]line НДС 12% : 10.62 [21:49:47]line Наличными: 100.00 [21:49:47]line Безнал.: 0.00 [21:49:47]line Место: АЗС № 72 "Партнер Нефть" [21:49:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:49:47]line СНО: Общий режим [21:49:47]line Чек 320 13.07.2024 21:49 [21:49:47]line Смена: 446 ФФД: 1.0 [21:49:47]line ЗНМ: 0300000160 [21:49:47]line РНМ: 0000000000090829 [21:49:47]line Версия ККМ: 001 [21:49:47]line ФМ: 0000000000874718 [21:49:47]line ФД: 164760 [21:49:47]line ФПД: 169364547413032 [21:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164760&fm=169364547413032&tin=02508201610067®Number=0000000000090829&sum=10000 [21:49:48]written 0, free lines is 4095 [21:49:48]OFD Sender: Processing packet 164760 [packets to send 104, broken 103] [21:49:48]ProducePacketName [21:49:48]name=ofd_packets/00164760 [21:49:48]OFD Sender: To server: pG, [21:49:48]CommunicateWithHost lk.salyk.kg:30040 [21:49:48]ConnectInit lk.salyk.kg [21:49:48]Connected sock=10 [21:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 3B 07 01 1E 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 7B F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 83 02 00 35 04 06 00 9A 09 41 AF A4 28 56 2C 9A 61 46 57 CE C2 [21:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 90 47 00 5D 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 34 37 31 38 10 04 04 00 98 83 02 00 F4 03 04 00 0B 9D 92 66 B6 04 01 00 00 EA DE 0E 30 C5 D8 D4 31 [21:49:48]CommunicateWithHost err = 0 [21:49:48]CheckOFDResponse [21:49:48]1017 (14) - 77093643461234 [21:49:48]1041 (16) - 0000000000874718 [21:49:48]1040 (4) - 164760 [21:49:48]1012 (4) - 13.07.2024 15:28 [21:49:48]1206 (1) - 0 [21:49:48]OFD Sender: Remove packet 164760 [21:49:48]ProducePacketName [21:49:48]name=ofd_packets/00164760 [21:49:48]NVStorageDeleteData [21:49:48]Write to MH i2c: 01 00 00 1D 15 32 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 FE 0C 43 [21:49:48]RasterBufferAndPrint [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]line [21:49:48]written 0, free lines is 3332 [21:49:48]MH_Cut [21:49:48]Write to MH i2c: D1 01 00 24 15 01 0B [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 01 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: D1 01 00 24 15 00 0A [21:49:48]Write to MH i2c: 01 00 00 25 15 3A [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]OFD Sender: No OFD packet to send [21:49:49]*** Cut start [21:49:49]*** Partial cut [21:49:49]*** CUTSNS_PIN = 1 [21:49:49]*** CUTSNS_PIN = 0 [21:49:49]*** Brake cut motor [21:49:49]Read from MH i2c: 01 [21:49:49]MH_I2C_Read... [21:49:49]*** Stop cut motor [21:49:49]*** Cut end [21:49:49]Read from MH i2c: 01 07 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [21:49:49]process_action close_receipt done [21:49:49]requested_data is exist [21:49:49]produce_requested_data [21:49:49]requested_item fm.sn is exist - process it [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 11 00 00 [21:49:49]Write to MH i2c: E2 08 00 26 15 80 11 00 00 00 00 00 00 B5 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:49]Read from MH i2c: E2 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 17 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 17 00 26 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [21:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:49:49]wFMCommunicate OK [21:49:49]requested_item fd.num is exist - process it [21:49:49]SAM_PROTO_GetFieldsCounters [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 13 00 00 [21:49:49]Write to MH i2c: E2 08 00 27 15 80 13 00 00 00 00 00 00 B8 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:50]Read from MH i2c: E2 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 62 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 62 00 27 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [21:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:50]wFMCommunicate OK [21:49:50]SAM_PROTO_GetFieldsCounters done [21:49:50]requested_item shift.num is exist - process it [21:49:50]requested_item shift.opened is exist - process it [21:49:50]req_shift_opened [21:49:50]FM_GetShiftState [21:49:50]SAM_PROTO_GetShiftState [21:49:50]wFMCommunicate request_size=4 [21:49:50]MH_SAM_APDU [21:49:50]CAPDU: 80 13 01 00 [21:49:50]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [21:49:50]Write i2c OK [21:49:50]MH_I2C_Read... [21:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:50]Read from MH i2c: E2 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 0E 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9B [21:49:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:49:50]wFMCommunicate OK [21:49:50]SAM_PROTO_GetShiftState done [21:49:50]FM_GetShiftState done [21:49:50]req_shift_opened done [21:49:50]requested_item shift.open_date is exist - process it [21:49:50]req_shift_open_date [21:49:50]req_shift_open_date done [21:49:50]produce_requested_data done [21:49:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164760,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:49:50]process_action_free close_receipt [21:49:50]json_value_free [21:49:50]json_value_free done [21:49:50]process_json_proto returns [21:49:50]Send response to host [21:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164760,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:49:50]free response buf [21:49:50]execute_script done [21:49:50]execute_script returns [21:49:50]free content buf [21:49:50]Sock 9.Close socket [21:49:50]Sock 9.Thread stoped [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:50]accept exits with 7 [21:50:50]New connection [21:50:50]New thread 3067104612 created [21:50:50]Thread 3067247972 joined [21:50:50]Waiting for new connection... [21:50:50] Sock 7.Parse request [21:50:50]Sock 7.Check first char [21:50:50]Sock 7.First char is OK [21:50:50]request: POST /json_proto HTTP/1.0 [21:50:50]Method: POST [21:50:50]URL: /json_proto [21:50:50]Method is POST - this is cgi request [21:50:50]url: /json_proto [21:50:50]query_string will be loaded in cgi processing [21:50:50]execute_cgi json_proto POST (null) [21:50:50]execute_cgi path=json_proto method=POST [21:50:50]POST find Content-Length [21:50:50]Host: 172.17.56.4:8080 [21:50:50]Content-Length: 677 [21:50:50]Content-Type: application/json [21:50:50] [21:50:50]POST finish read [21:50:50]Found Content-Length = 677 [21:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:50]execute_script... [21:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:50]POST & json_proto [21:50:50]process_json_proto [21:50:50]json parsed OK: [21:50:50]protocol is kg_v1.0 [21:50:50]action value=close_receipt [21:50:50]process_action close_receipt [21:50:50]cmd_close_receipt [21:50:50]MH_GetDate [21:50:50]Write to MH i2c: F0 00 00 29 15 2D [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: F0 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: F0 09 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: F0 09 00 29 15 00 BB F6 92 66 C9 DC B2 64 9A [21:50:50]GetLastDocTimeStamp 1720907387 [21:50:50]current date 1720907451 [21:50:50]FM_GetShiftState [21:50:50]SAM_PROTO_GetShiftState [21:50:50]wFMCommunicate request_size=4 [21:50:50]MH_SAM_APDU [21:50:50]CAPDU: 80 13 01 00 [21:50:50]Write to MH i2c: E2 08 00 2A 15 80 13 01 00 00 00 00 00 BC [21:50:50]Write i2c OK [21:50:50]MH_I2C_Read... [21:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:50]Read from MH i2c: E2 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 0E 00 [21:50:50]MH_I2C_Read... [21:50:50]Read from MH i2c: E2 0E 00 2A 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9D [21:50:50]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:50:50]wFMCommunicate OK [21:50:50]SAM_PROTO_GetShiftState done [21:50:50]FM_GetShiftState done [21:50:50]opened in 1720831249 [21:50:50]opened+sec_in_day 1720917649 [21:50:50]quantity*price = 32044 [21:50:50]sum+1 = 32046 [21:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 321 13.07.2024 21:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164761 ФПД: 246512407547192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164761&fm=246512407547192&tin=02508201610067®Number=0000000000090829&sum=32000 [21:50:51]StoreToDocumentArchive [21:50:51]shift 446 fd 164761 [21:50:51]save to /storage/0446/doc_00164761 [21:50:51]save last doc name /storage/0446/doc_00164761 to /storage/kkm_last_doc_name [21:50:51]save OK [21:50:51]Clear old archive folders... [21:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:51]tlvbuf is 01E40060 [21:50:51]SAM_PROTO_ClearQueue [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 09 00 00 [21:50:51]Write to MH i2c: E2 08 00 37 15 80 09 00 00 00 00 00 00 BE [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 37 15 00 90 00 C0 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]SAM_PROTO_ClearQueue done [21:50:51]KKMCreateOFDPacket [21:50:51]OFDProtocolAddRootSTLVToBuf [21:50:51]FM_MakeSignedData [21:50:51]FM_MakeSignedData [21:50:51]SAM_PROTO_SignData [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 01 02 [21:50:51]Write to MH i2c: E2 08 00 38 15 80 0D 01 02 00 00 00 00 C6 [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]wFMCommunicate request_size=255 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BB F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 83 02 00 35 04 06 00 E0 [21:50:51]Write to MH i2c: E2 02 01 39 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BB F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 83 02 00 35 04 06 00 E0 00 00 7D [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]wFMCommunicate request_size=10 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 02 02 05 33 A4 7C 0D 38 [21:50:51]Write to MH i2c: E2 0D 00 3A 15 80 0D 02 02 05 00 33 A4 7C 0D 38 00 00 6B [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:51]Read from MH i2c: E2 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 [21:50:51]MH_I2C_Read... [21:50:51]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [21:50:51]RAPDU: 90 00 [21:50:51]wFMCommunicate OK [21:50:51]wFMCommunicate request_size=4 [21:50:51]MH_SAM_APDU [21:50:51]CAPDU: 80 0D 03 02 [21:50:51]Write to MH i2c: E2 08 00 3B 15 80 0D 03 02 00 00 00 00 CB [21:50:51]Write i2c OK [21:50:51]MH_I2C_Read... [21:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:52]Read from MH i2c: E2 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: E2 0B 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: E2 0B 00 3B 15 00 22 74 5B 28 C7 F7 DB 5C 90 00 DA [21:50:52]RAPDU: 22 74 5B 28 C7 F7 DB 5C 90 00 [21:50:52]wFMCommunicate OK [21:50:52]SAM_PROTO_SignData done [21:50:52]FM_MakeSignedData done [21:50:52]CreateOFDProtocolMessage [21:50:52]wFMCommunicate request_size=4 [21:50:52]MH_SAM_APDU [21:50:52]CAPDU: 80 11 00 00 [21:50:52]Write to MH i2c: E2 08 00 3C 15 80 11 00 00 00 00 00 00 CB [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:52]Read from MH i2c: E2 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: E2 17 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: E2 17 00 3C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [21:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:50:52]wFMCommunicate OK [21:50:52]CreateOFDProtocolMessage done [21:50:52]OFDSenderStorePacket 164761 [21:50:52]StoreOFDPacket docnum=164761 [21:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 CD 07 01 DE 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BB F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 83 02 00 35 04 06 00 E0 33 A4 7C 0D 38 22 74 5B 28 C7 F7 DB 5C [21:50:52]CheckFolder [21:50:52]dirname=/storage/ofd_packets [21:50:52]CheckFolder done [21:50:52]ProducePacketName [21:50:52]name=ofd_packets/00164761 [21:50:52]NVStorageSaveData ofd_packets/00164761 [21:50:52]File name is /storage/ofd_packets/00164761 [21:50:52]Write 301 bytes [21:50:52]NVStorageSaveData done [21:50:52]OFDSenderStorePacket done [21:50:52]KKMCreateOFDPacket done [21:50:52]NVStorageSaveData kkm_last_timestamp [21:50:52]File name is /storage/kkm_last_timestamp [21:50:52]Write 4 bytes [21:50:52]NVStorageSaveData done [21:50:52]ExternCall_PrintAddStr [21:50:52]wPrintStart [21:50:52]Write to MH i2c: 01 00 00 3D 15 52 [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [21:50:52]RasterBufferAndPrint [21:50:52]line Счет N : (1)458855 [21:50:52]line ИНН: 02508201610067 [21:50:52]line Контрольно-Кассовый Чек [21:50:52]line ПРОДАЖА [21:50:52]line ТРК (МРК, ГНК) : 12 [21:50:52]line Товар: 2710124130 [21:50:52]line Аи-92-К-5 [21:50:52]line 4.870 * 65.80 [21:50:52]line = 320.45 [21:50:52]line НДС 12% НСП 1% [21:50:52]line > о реализуемом товаре [21:50:52]line ОКРУГЛЕНИЕ: -0.45 [21:50:52]line ИТОГО: 320.00 [21:50:52]line Внесено: 320.00 [21:50:52]line СДАЧА: 0.00 [21:50:52]line НСП 1% : 2.84 [21:50:52]line НДС 12% : 34.03 [21:50:52]line Наличными: 320.00 [21:50:52]line Безнал.: 0.00 [21:50:52]line Место: АЗС № 72 "Партнер Нефть" [21:50:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:50:52]line СНО: Общий режим [21:50:52]line Чек 321 13.07.2024 21:50 [21:50:52]line Смена: 446 ФФД: 1.0 [21:50:52]line ЗНМ: 0300000160 [21:50:52]line РНМ: 0000000000090829 [21:50:52]line Версия ККМ: 001 [21:50:52]line ФМ: 0000000000874718 [21:50:52]line ФД: 164761 [21:50:52]line ФПД: 246512407547192 [21:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164761&fm=246512407547192&tin=02508201610067®Number=0000000000090829&sum=32000 [21:50:52]written 0, free lines is 4095 [21:50:52]OFD Sender: Processing packet 164761 [packets to send 104, broken 103] [21:50:52]ProducePacketName [21:50:52]name=ofd_packets/00164761 [21:50:52]OFD Sender: To server: pG, [21:50:52]CommunicateWithHost lk.salyk.kg:30040 [21:50:52]ConnectInit lk.salyk.kg [21:50:52]Connected sock=10 [21:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 CD 07 01 DE 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 BB F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 83 02 00 35 04 06 00 E0 33 A4 7C 0D 38 22 74 5B 28 C7 F7 DB 5C [21:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 00 47 00 3A 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 34 37 31 38 10 04 04 00 99 83 02 00 F4 03 04 00 4B 9D 92 66 B6 04 01 00 00 DB 6A 91 83 EA 5E 11 A2 [21:50:52]CommunicateWithHost err = 0 [21:50:52]CheckOFDResponse [21:50:52]1017 (14) - 77093643461234 [21:50:52]1041 (16) - 0000000000874718 [21:50:52]1040 (4) - 164761 [21:50:52]1012 (4) - 13.07.2024 15:29 [21:50:52]1206 (1) - 0 [21:50:52]OFD Sender: Remove packet 164761 [21:50:52]ProducePacketName [21:50:52]name=ofd_packets/00164761 [21:50:52]NVStorageDeleteData [21:50:52]Write to MH i2c: 01 00 00 67 15 7C [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 F2 0C 81 [21:50:52]RasterBufferAndPrint [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]line [21:50:52]written 0, free lines is 3320 [21:50:52]MH_Cut [21:50:52]Write to MH i2c: D1 01 00 6E 15 01 55 [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 01 00 [21:50:52]MH_I2C_Read... [21:50:52]Read from MH i2c: D1 01 00 6E 15 00 54 [21:50:52]Write to MH i2c: 01 00 00 6F 15 84 [21:50:52]Write i2c OK [21:50:52]MH_I2C_Read... [21:50:53]OFD Sender: No OFD packet to send [21:50:53]*** Cut start [21:50:53]*** Partial cut [21:50:53]*** CUTSNS_PIN = 1 [21:50:53]*** CUTSNS_PIN = 0 [21:50:53]*** Brake cut motor [21:50:54]Read from MH i2c: 01 [21:50:54]MH_I2C_Read... [21:50:54]*** Stop cut motor [21:50:54]*** Cut end [21:50:54]Read from MH i2c: 01 07 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: 01 07 00 6F 15 00 00 00 00 00 FF 0F 99 [21:50:54]process_action close_receipt done [21:50:54]requested_data is exist [21:50:54]produce_requested_data [21:50:54]requested_item fm.sn is exist - process it [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 11 00 00 [21:50:54]Write to MH i2c: E2 08 00 70 15 80 11 00 00 00 00 00 00 FF [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 17 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 17 00 70 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [21:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:50:54]wFMCommunicate OK [21:50:54]requested_item fd.num is exist - process it [21:50:54]SAM_PROTO_GetFieldsCounters [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 13 00 00 [21:50:54]Write to MH i2c: E2 08 00 71 15 80 13 00 00 00 00 00 00 02 [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 62 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 62 00 71 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [21:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:54]wFMCommunicate OK [21:50:54]SAM_PROTO_GetFieldsCounters done [21:50:54]requested_item shift.num is exist - process it [21:50:54]requested_item shift.opened is exist - process it [21:50:54]req_shift_opened [21:50:54]FM_GetShiftState [21:50:54]SAM_PROTO_GetShiftState [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 13 01 00 [21:50:54]Write to MH i2c: E2 08 00 72 15 80 13 01 00 00 00 00 00 04 [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:54]Read from MH i2c: E2 0E 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 72 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E5 [21:50:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:50:54]wFMCommunicate OK [21:50:54]SAM_PROTO_GetShiftState done [21:50:54]FM_GetShiftState done [21:50:54]req_shift_opened done [21:50:54]requested_item shift.open_date is exist - process it [21:50:54]req_shift_open_date [21:50:54]req_shift_open_date done [21:50:54]produce_requested_data done [21:50:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164761,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:50:54]process_action_free close_receipt [21:50:54]json_value_free [21:50:54]json_value_free done [21:50:54]process_json_proto returns [21:50:54]Send response to host [21:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164761,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:50:54]free response buf [21:50:54]execute_script done [21:50:54]execute_script returns [21:50:54]free content buf [21:50:54]Sock 7.Close socket [21:50:54]Sock 7.Thread stoped [21:50:54]accept exits with 9 [21:50:54]New connection [21:50:54]New thread 3067247972 created [21:50:54]Thread 3067104612 joined [21:50:54]Waiting for new connection... [21:50:54] Sock 9.Parse request [21:50:54]Sock 9.Check first char [21:50:54]Sock 9.First char is OK [21:50:54]request: POST /json_proto HTTP/1.0 [21:50:54]Method: POST [21:50:54]URL: /json_proto [21:50:54]Method is POST - this is cgi request [21:50:54]url: /json_proto [21:50:54]query_string will be loaded in cgi processing [21:50:54]execute_cgi json_proto POST (null) [21:50:54]execute_cgi path=json_proto method=POST [21:50:54]POST find Content-Length [21:50:54]Host: 172.17.56.4:8080 [21:50:54]Content-Length: 678 [21:50:54]Content-Type: application/json [21:50:54] [21:50:54]POST finish read [21:50:54]Found Content-Length = 678 [21:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.000, "sum" : 197.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]execute_script... [21:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.000, "sum" : 197.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]POST & json_proto [21:50:54]process_json_proto [21:50:54]json parsed OK: [21:50:54]protocol is kg_v1.0 [21:50:54]action value=close_receipt [21:50:54]process_action close_receipt [21:50:54]cmd_close_receipt [21:50:54]MH_GetDate [21:50:54]Write to MH i2c: F0 00 00 73 15 77 [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 73 15 00 BF F6 92 66 C9 DC B2 64 E8 [21:50:54]GetLastDocTimeStamp 1720907451 [21:50:54]current date 1720907455 [21:50:54]FM_GetShiftState [21:50:54]SAM_PROTO_GetShiftState [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 13 01 00 [21:50:54]Write to MH i2c: E2 08 00 74 15 80 13 01 00 00 00 00 00 06 [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 74 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E7 [21:50:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:50:54]wFMCommunicate OK [21:50:54]SAM_PROTO_GetShiftState done [21:50:54]FM_GetShiftState done [21:50:54]opened in 1720831249 [21:50:54]opened+sec_in_day 1720917649 [21:50:54]quantity*price = 19740 [21:50:54]sum+1 = 19741 [21:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 197.00 Внесено: 1000.00 СДАЧА: 803.00 НСП 1% : 1.75 НДС 12% : 20.96 Наличными: 197.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 322 13.07.2024 21:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164762 ФПД: 124661007993065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164762&fm=124661007993065&tin=02508201610067®Number=0000000000090829&sum=19700 [21:50:56]StoreToDocumentArchive [21:50:56]shift 446 fd 164762 [21:50:56]save to /storage/0446/doc_00164762 [21:50:56]save last doc name /storage/0446/doc_00164762 to /storage/kkm_last_doc_name [21:50:56]save OK [21:50:56]Clear old archive folders... [21:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:56]tlvbuf is 01EDF570 [21:50:56]SAM_PROTO_ClearQueue [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 09 00 00 [21:50:56]Write to MH i2c: E2 08 00 81 15 80 09 00 00 00 00 00 00 08 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 81 15 00 90 00 0A [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]SAM_PROTO_ClearQueue done [21:50:56]KKMCreateOFDPacket [21:50:56]OFDProtocolAddRootSTLVToBuf [21:50:56]FM_MakeSignedData [21:50:56]FM_MakeSignedData [21:50:56]SAM_PROTO_SignData [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 01 02 [21:50:56]Write to MH i2c: E2 08 00 82 15 80 0D 01 02 00 00 00 00 10 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 82 15 00 90 00 0B [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=255 [21:50:56]MH_SAM_APDU [21:50: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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 C0 F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 83 02 00 35 04 06 00 71 [21:50:56]Write to MH i2c: E2 02 01 83 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 C0 F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 83 02 00 35 04 06 00 71 00 00 C0 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 83 15 00 90 00 0C [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=10 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 02 02 05 60 E7 19 48 E9 [21:50:56]Write to MH i2c: E2 0D 00 84 15 80 0D 02 02 05 00 60 E7 19 48 E9 00 00 AE [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 03 02 [21:50:56]Write to MH i2c: E2 08 00 85 15 80 0D 03 02 00 00 00 00 15 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0B 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0B 00 85 15 00 D9 8C 46 54 81 47 DD FD 90 00 B7 [21:50:56]RAPDU: D9 8C 46 54 81 47 DD FD 90 00 [21:50:56]wFMCommunicate OK [21:50:56]SAM_PROTO_SignData done [21:50:56]FM_MakeSignedData done [21:50:56]CreateOFDProtocolMessage [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 11 00 00 [21:50:56]Write to MH i2c: E2 08 00 86 15 80 11 00 00 00 00 00 00 15 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:56]Read from MH i2c: E2 17 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 17 00 86 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [21:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:50:56]wFMCommunicate OK [21:50:56]CreateOFDProtocolMessage done [21:50:56]OFDSenderStorePacket 164762 [21:50:56]StoreOFDPacket docnum=164762 [21:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC D3 07 01 9D 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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 C0 F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 83 02 00 35 04 06 00 71 60 E7 19 48 E9 D9 8C 46 54 81 47 DD FD [21:50:56]CheckFolder [21:50:56]dirname=/storage/ofd_packets [21:50:56]CheckFolder done [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00164762 [21:50:56]NVStorageSaveData ofd_packets/00164762 [21:50:56]File name is /storage/ofd_packets/00164762 [21:50:56]Write 301 bytes [21:50:56]NVStorageSaveData done [21:50:56]OFDSenderStorePacket done [21:50:56]KKMCreateOFDPacket done [21:50:56]NVStorageSaveData kkm_last_timestamp [21:50:56]File name is /storage/kkm_last_timestamp [21:50:56]Write 4 bytes [21:50:56]NVStorageSaveData done [21:50:56]ExternCall_PrintAddStr [21:50:56]wPrintStart [21:50:56]Write to MH i2c: 01 00 00 87 15 9C [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 87 15 00 00 00 00 00 FF 0F B1 [21:50:56]RasterBufferAndPrint [21:50:56]line Счет N : (1)458856 [21:50:56]line ИНН: 02508201610067 [21:50:56]line Контрольно-Кассовый Чек [21:50:56]line ПРОДАЖА [21:50:56]line ТРК (МРК, ГНК) : 22 [21:50:56]line Товар: 2710124130 [21:50:56]line Аи-92-К-5 [21:50:56]line 3.000 * 65.80 [21:50:56]line = 197.40 [21:50:56]line НДС 12% НСП 1% [21:50:56]line > о реализуемом товаре [21:50:56]line ОКРУГЛЕНИЕ: -0.40 [21:50:56]line ИТОГО: 197.00 [21:50:56]line Внесено: 1000.00 [21:50:56]line СДАЧА: 803.00 [21:50:56]line НСП 1% : 1.75 [21:50:56]line НДС 12% : 20.96 [21:50:56]line Наличными: 197.00 [21:50:56]line Безнал.: 0.00 [21:50:56]line Место: АЗС № 72 "Партнер Нефть" [21:50:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:50:57]line СНО: Общий режим [21:50:57]line Чек 322 13.07.2024 21:50 [21:50:57]line Смена: 446 ФФД: 1.0 [21:50:57]line ЗНМ: 0300000160 [21:50:57]line РНМ: 0000000000090829 [21:50:57]line Версия ККМ: 001 [21:50:57]line ФМ: 0000000000874718 [21:50:57]line ФД: 164762 [21:50:57]line ФПД: 124661007993065 [21:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164762&fm=124661007993065&tin=02508201610067®Number=0000000000090829&sum=19700 [21:50:57]OFD Sender: Processing packet 164762 [packets to send 104, broken 103] [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00164762 [21:50:57]OFD Sender: To server: pG, [21:50:57]CommunicateWithHost lk.salyk.kg:30040 [21:50:57]ConnectInit lk.salyk.kg [21:50:57]written 0, free lines is 4095 [21:50:57]Connected sock=10 [21:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EC D3 07 01 9D 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 B8 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1C 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 C0 F6 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 83 02 00 35 04 06 00 71 60 E7 19 48 E9 D9 8C 46 54 81 47 DD FD [21:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB B7 47 00 1F 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 34 37 31 38 10 04 04 00 9A 83 02 00 F4 03 04 00 50 9D 92 66 B6 04 01 00 00 FF CF D0 00 69 6E E7 B4 [21:50:57]CommunicateWithHost err = 0 [21:50:57]CheckOFDResponse [21:50:57]1017 (14) - 77093643461234 [21:50:57]1041 (16) - 0000000000874718 [21:50:57]1040 (4) - 164762 [21:50:57]1012 (4) - 13.07.2024 15:29 [21:50:57]1206 (1) - 0 [21:50:57]OFD Sender: Remove packet 164762 [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00164762 [21:50:57]NVStorageDeleteData [21:50:57]Write to MH i2c: 01 00 00 B1 15 C6 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 B1 15 00 00 00 00 00 09 0D E3 [21:50:57]RasterBufferAndPrint [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]written 0, free lines is 3349 [21:50:57]MH_Cut [21:50:57]Write to MH i2c: D1 01 00 B8 15 01 9F [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 B8 15 00 9E [21:50:57]Write to MH i2c: 01 00 00 B9 15 CE [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:58]OFD Sender: No OFD packet to send [21:50:58]*** Cut start [21:50:58]*** Partial cut [21:50:58]*** CUTSNS_PIN = 1 [21:50:58]*** CUTSNS_PIN = 0 [21:50:58]*** Brake cut motor [21:50:58]Read from MH i2c: 01 [21:50:58]MH_I2C_Read... [21:50:58]*** Stop cut motor [21:50:58]*** Cut end [21:50:58]Read from MH i2c: 01 07 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 FF 0F E3 [21:50:58]process_action close_receipt done [21:50:58]requested_data is exist [21:50:58]produce_requested_data [21:50:58]requested_item fm.sn is exist - process it [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 11 00 00 [21:50:58]Write to MH i2c: E2 08 00 BA 15 80 11 00 00 00 00 00 00 49 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 BA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [21:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:50:59]wFMCommunicate OK [21:50:59]requested_item fd.num is exist - process it [21:50:59]SAM_PROTO_GetFieldsCounters [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 00 00 [21:50:59]Write to MH i2c: E2 08 00 BB 15 80 13 00 00 00 00 00 00 4C [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 BB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [21:50: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetFieldsCounters done [21:50:59]requested_item shift.num is exist - process it [21:50:59]requested_item shift.opened is exist - process it [21:50:59]req_shift_opened [21:50:59]FM_GetShiftState [21:50:59]SAM_PROTO_GetShiftState [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 01 00 [21:50:59]Write to MH i2c: E2 08 00 BC 15 80 13 01 00 00 00 00 00 4E [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 BC 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 2F [21:50:59]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetShiftState done [21:50:59]FM_GetShiftState done [21:50:59]req_shift_opened done [21:50:59]requested_item shift.open_date is exist - process it [21:50:59]req_shift_open_date [21:50:59]req_shift_open_date done [21:50:59]produce_requested_data done [21:50:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164762,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:50:59]process_action_free close_receipt [21:50:59]json_value_free [21:50:59]json_value_free done [21:50:59]process_json_proto returns [21:50:59]Send response to host [21:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164762,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:50:59]free response buf [21:50:59]execute_script done [21:50:59]execute_script returns [21:50:59]free content buf [21:50:59]Sock 9.Close socket [21:50:59]Sock 9.Thread stoped [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]accept exits with 7 [21:58:58]New connection [21:58:58]New thread 3067104612 created [21:58:58]Thread 3067247972 joined [21:58:58]Waiting for new connection... [21:58:58] Sock 7.Parse request [21:58:58]Sock 7.Check first char [21:58:58]Sock 7.First char is OK [21:58:58]request: POST /json_proto HTTP/1.0 [21:58:58]Method: POST [21:58:58]URL: /json_proto [21:58:58]Method is POST - this is cgi request [21:58:58]url: /json_proto [21:58:58]query_string will be loaded in cgi processing [21:58:58]execute_cgi json_proto POST (null) [21:58:58]execute_cgi path=json_proto method=POST [21:58:58]POST find Content-Length [21:58:58]Host: 172.17.56.4:8080 [21:58:58]Content-Length: 677 [21:58:58]Content-Type: application/json [21:58:58] [21:58:58]POST finish read [21:58:58]Found Content-Length = 677 [21:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:58:58]execute_script... [21:58:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:58:58]POST & json_proto [21:58:58]process_json_proto [21:58:58]json parsed OK: [21:58:58]protocol is kg_v1.0 [21:58:58]action value=close_receipt [21:58:58]process_action close_receipt [21:58:58]cmd_close_receipt [21:58:58]MH_GetDate [21:58:58]Write to MH i2c: F0 00 00 BD 15 C1 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 09 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: F0 09 00 BD 15 00 A3 F8 92 66 C9 DC B2 64 18 [21:58:58]GetLastDocTimeStamp 1720907456 [21:58:58]current date 1720907939 [21:58:58]FM_GetShiftState [21:58:58]SAM_PROTO_GetShiftState [21:58:58]wFMCommunicate request_size=4 [21:58:58]MH_SAM_APDU [21:58:58]CAPDU: 80 13 01 00 [21:58:58]Write to MH i2c: E2 08 00 BE 15 80 13 01 00 00 00 00 00 50 [21:58:58]Write i2c OK [21:58:58]MH_I2C_Read... [21:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:58]Read from MH i2c: E2 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: E2 0E 00 [21:58:58]MH_I2C_Read... [21:58:58]Read from MH i2c: E2 0E 00 BE 15 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 31 [21:58:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:58:58]wFMCommunicate OK [21:58:58]SAM_PROTO_GetShiftState done [21:58:58]FM_GetShiftState done [21:58:58]opened in 1720831249 [21:58:58]opened+sec_in_day 1720917649 [21:58:58]quantity*price = 60009 [21:58:58]sum+1 = 60011 [21:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 323 13.07.2024 21:58 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164763 ФПД: 17139600524830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164763&fm=17139600524830&tin=02508201610067®Number=0000000000090829&sum=60000 [21:58:59]StoreToDocumentArchive [21:58:59]shift 446 fd 164763 [21:58:59]save to /storage/0446/doc_00164763 [21:58:59]save last doc name /storage/0446/doc_00164763 to /storage/kkm_last_doc_name [21:58:59]save OK [21:58:59]Clear old archive folders... [21:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:59]tlvbuf is 01E57C50 [21:58:59]SAM_PROTO_ClearQueue [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 09 00 00 [21:58:59]Write to MH i2c: E2 08 00 CB 15 80 09 00 00 00 00 00 00 52 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 CB 15 00 90 00 54 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_ClearQueue done [21:58:59]KKMCreateOFDPacket [21:58:59]OFDProtocolAddRootSTLVToBuf [21:58:59]FM_MakeSignedData [21:58:59]FM_MakeSignedData [21:58:59]SAM_PROTO_SignData [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 01 02 [21:58:59]Write to MH i2c: E2 08 00 CC 15 80 0D 01 02 00 00 00 00 5A [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 CC 15 00 90 00 55 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=255 [21:58:59]MH_SAM_APDU [21:58: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 A3 F8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 83 02 00 35 04 06 00 0F [21:58:59]Write to MH i2c: E2 02 01 CD 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 A3 F8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 83 02 00 35 04 06 00 0F 00 00 B9 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 CD 15 00 90 00 56 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=10 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 02 02 05 96 9F CD 06 1E [21:58:59]Write to MH i2c: E2 0D 00 CE 15 80 0D 02 02 05 00 96 9F CD 06 1E 00 00 8D [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [21:58:59]RAPDU: 90 00 [21:58:59]wFMCommunicate OK [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 0D 03 02 [21:58:59]Write to MH i2c: E2 08 00 CF 15 80 0D 03 02 00 00 00 00 5F [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0B 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 0B 00 CF 15 00 47 A4 4C 10 32 6B C7 00 90 00 0B [21:59:00]RAPDU: 47 A4 4C 10 32 6B C7 00 90 00 [21:59:00]wFMCommunicate OK [21:59:00]SAM_PROTO_SignData done [21:59:00]FM_MakeSignedData done [21:59:00]CreateOFDProtocolMessage [21:59:00]wFMCommunicate request_size=4 [21:59:00]MH_SAM_APDU [21:59:00]CAPDU: 80 11 00 00 [21:59:00]Write to MH i2c: E2 08 00 D0 15 80 11 00 00 00 00 00 00 5F [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:00]Read from MH i2c: E2 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: E2 17 00 D0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [21:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:59:00]wFMCommunicate OK [21:59:00]CreateOFDProtocolMessage done [21:59:00]OFDSenderStorePacket 164763 [21:59:00]StoreOFDPacket docnum=164763 [21:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 E8 07 01 CF 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 A3 F8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 83 02 00 35 04 06 00 0F 96 9F CD 06 1E 47 A4 4C 10 32 6B C7 00 [21:59:00]CheckFolder [21:59:00]dirname=/storage/ofd_packets [21:59:00]CheckFolder done [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00164763 [21:59:00]NVStorageSaveData ofd_packets/00164763 [21:59:00]File name is /storage/ofd_packets/00164763 [21:59:00]Write 301 bytes [21:59:00]NVStorageSaveData done [21:59:00]OFDSenderStorePacket done [21:59:00]KKMCreateOFDPacket done [21:59:00]NVStorageSaveData kkm_last_timestamp [21:59:00]File name is /storage/kkm_last_timestamp [21:59:00]Write 4 bytes [21:59:00]NVStorageSaveData done [21:59:00]ExternCall_PrintAddStr [21:59:00]wPrintStart [21:59:00]Write to MH i2c: 01 00 00 D1 15 E6 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 D1 15 00 00 00 00 00 FF 0F FB [21:59:00]RasterBufferAndPrint [21:59:00]line Счет N : (1)458857 [21:59:00]line ИНН: 02508201610067 [21:59:00]line Контрольно-Кассовый Чек [21:59:00]line ПРОДАЖА [21:59:00]line ТРК (МРК, ГНК) : 12 [21:59:00]line Товар: 2710124130 [21:59:00]line Аи-92-К-5 [21:59:00]line 9.120 * 65.80 [21:59:00]line = 600.10 [21:59:00]line НДС 12% НСП 1% [21:59:00]line > о реализуемом товаре [21:59:00]line ОКРУГЛЕНИЕ: -0.10 [21:59:00]line ИТОГО: 600.00 [21:59:00]line Внесено: 600.00 [21:59:00]line СДАЧА: 0.00 [21:59:00]line НСП 1% : 5.31 [21:59:00]line НДС 12% : 63.73 [21:59:00]line Наличными: 600.00 [21:59:00]line Безнал.: 0.00 [21:59:00]line Место: АЗС № 72 "Партнер Нефть" [21:59:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:59:00]line СНО: Общий режим [21:59:00]line Чек 323 13.07.2024 21:58 [21:59:00]line Смена: 446 ФФД: 1.0 [21:59:00]line ЗНМ: 0300000160 [21:59:00]line РНМ: 0000000000090829 [21:59:00]line Версия ККМ: 001 [21:59:00]line ФМ: 0000000000874718 [21:59:00]line ФД: 164763 [21:59:00]line ФПД: 17139600524830 [21:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164763&fm=17139600524830&tin=02508201610067®Number=0000000000090829&sum=60000 [21:59:00]written 0, free lines is 4095 [21:59:00]OFD Sender: Processing packet 164763 [packets to send 104, broken 103] [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00164763 [21:59:00]OFD Sender: To server: pG, [21:59:00]CommunicateWithHost lk.salyk.kg:30040 [21:59:00]ConnectInit lk.salyk.kg [21:59:00]Connected sock=10 [21:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 E8 07 01 CF 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 A3 F8 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 83 02 00 35 04 06 00 0F 96 9F CD 06 1E 47 A4 4C 10 32 6B C7 00 [21:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 5B 47 00 53 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 34 37 31 38 10 04 04 00 9B 83 02 00 F4 03 04 00 33 9F 92 66 B6 04 01 00 00 29 46 F4 55 77 F4 C7 93 [21:59:00]CommunicateWithHost err = 0 [21:59:00]CheckOFDResponse [21:59:00]1017 (14) - 77093643461234 [21:59:00]1041 (16) - 0000000000874718 [21:59:00]1040 (4) - 164763 [21:59:00]1012 (4) - 13.07.2024 15:37 [21:59:00]1206 (1) - 0 [21:59:00]OFD Sender: Remove packet 164763 [21:59:00]ProducePacketName [21:59:00]name=ofd_packets/00164763 [21:59:00]NVStorageDeleteData [21:59:00]Write to MH i2c: 01 00 00 FB 15 10 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: 01 07 00 FB 15 00 00 00 00 00 F2 0C 15 [21:59:00]RasterBufferAndPrint [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]line [21:59:00]written 0, free lines is 3320 [21:59:00]MH_Cut [21:59:00]Write to MH i2c: D1 01 00 02 16 01 EA [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: D1 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: D1 01 00 [21:59:00]MH_I2C_Read... [21:59:00]Read from MH i2c: D1 01 00 02 16 00 E9 [21:59:00]Write to MH i2c: 01 00 00 03 16 19 [21:59:00]Write i2c OK [21:59:00]MH_I2C_Read... [21:59:01]OFD Sender: No OFD packet to send [21:59:01]*** Cut start [21:59:01]*** Partial cut [21:59:01]*** CUTSNS_PIN = 1 [21:59:01]*** CUTSNS_PIN = 0 [21:59:01]*** Brake cut motor [21:59:02]Read from MH i2c: 01 [21:59:02]MH_I2C_Read... [21:59:02]*** Stop cut motor [21:59:02]*** Cut end [21:59:02]Read from MH i2c: 01 07 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: 01 07 00 03 16 00 00 00 00 00 FF 0F 2E [21:59:02]process_action close_receipt done [21:59:02]requested_data is exist [21:59:02]produce_requested_data [21:59:02]requested_item fm.sn is exist - process it [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 11 00 00 [21:59:02]Write to MH i2c: E2 08 00 04 16 80 11 00 00 00 00 00 00 94 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 17 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 17 00 04 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [21:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:59:02]wFMCommunicate OK [21:59:02]requested_item fd.num is exist - process it [21:59:02]SAM_PROTO_GetFieldsCounters [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 13 00 00 [21:59:02]Write to MH i2c: E2 08 00 05 16 80 13 00 00 00 00 00 00 97 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 62 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 62 00 05 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [21:59: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:02]wFMCommunicate OK [21:59:02]SAM_PROTO_GetFieldsCounters done [21:59:02]requested_item shift.num is exist - process it [21:59:02]requested_item shift.opened is exist - process it [21:59:02]req_shift_opened [21:59:02]FM_GetShiftState [21:59:02]SAM_PROTO_GetShiftState [21:59:02]wFMCommunicate request_size=4 [21:59:02]MH_SAM_APDU [21:59:02]CAPDU: 80 13 01 00 [21:59:02]Write to MH i2c: E2 08 00 06 16 80 13 01 00 00 00 00 00 99 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:02]Read from MH i2c: E2 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: E2 0E 00 06 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7A [21:59:02]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [21:59:02]wFMCommunicate OK [21:59:02]SAM_PROTO_GetShiftState done [21:59:02]FM_GetShiftState done [21:59:02]req_shift_opened done [21:59:02]requested_item shift.open_date is exist - process it [21:59:02]req_shift_open_date [21:59:02]req_shift_open_date done [21:59:02]produce_requested_data done [21:59:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164763,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [21:59:02]process_action_free close_receipt [21:59:02]json_value_free [21:59:02]json_value_free done [21:59:02]process_json_proto returns [21:59:02]Send response to host [21:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164763,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [21:59:02]free response buf [21:59:02]execute_script done [21:59:02]execute_script returns [21:59:02]free content buf [21:59:02]Sock 7.Close socket [21:59:02]Sock 7.Thread stoped [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:48]accept exits with 9 [22:00:48]New connection [22:00:48]New thread 3067247972 created [22:00:48]Thread 3067104612 joined [22:00:48]Waiting for new connection... [22:00:48] Sock 9.Parse request [22:00:48]Sock 9.Check first char [22:00:48]Sock 9.First char is OK [22:00:48]request: POST /json_proto HTTP/1.0 [22:00:48]Method: POST [22:00:48]URL: /json_proto [22:00:48]Method is POST - this is cgi request [22:00:48]url: /json_proto [22:00:48]query_string will be loaded in cgi processing [22:00:48]execute_cgi json_proto POST (null) [22:00:48]execute_cgi path=json_proto method=POST [22:00:48]POST find Content-Length [22:00:48]Host: 172.17.56.4:8080 [22:00:48]Content-Length: 677 [22:00:48]Content-Type: application/json [22:00:48] [22:00:48]POST finish read [22:00:48]Found Content-Length = 677 [22:00:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:48]execute_script... [22:00: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)458858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:48]POST & json_proto [22:00:48]process_json_proto [22:00:48]json parsed OK: [22:00:48]protocol is kg_v1.0 [22:00:48]action value=close_receipt [22:00:48]process_action close_receipt [22:00:48]cmd_close_receipt [22:00:48]MH_GetDate [22:00:48]Write to MH i2c: F0 00 00 07 16 0C [22:00:48]Write i2c OK [22:00:48]MH_I2C_Read... [22:00:48]Read from MH i2c: F0 [22:00:48]MH_I2C_Read... [22:00:48]Read from MH i2c: F0 09 00 [22:00:48]MH_I2C_Read... [22:00:48]Read from MH i2c: F0 09 00 07 16 00 12 F9 92 66 C9 DC B2 64 D3 [22:00:48]GetLastDocTimeStamp 1720907939 [22:00:48]current date 1720908050 [22:00:48]FM_GetShiftState [22:00:48]SAM_PROTO_GetShiftState [22:00:48]wFMCommunicate request_size=4 [22:00:48]MH_SAM_APDU [22:00:48]CAPDU: 80 13 01 00 [22:00:48]Write to MH i2c: E2 08 00 08 16 80 13 01 00 00 00 00 00 9B [22:00:48]Write i2c OK [22:00:48]MH_I2C_Read... [22:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:48]Read from MH i2c: E2 [22:00:48]MH_I2C_Read... [22:00:48]Read from MH i2c: E2 0E 00 [22:00:48]MH_I2C_Read... [22:00:48]Read from MH i2c: E2 0E 00 08 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7C [22:00:48]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:00:48]wFMCommunicate OK [22:00:48]SAM_PROTO_GetShiftState done [22:00:48]FM_GetShiftState done [22:00:48]opened in 1720831249 [22:00:48]opened+sec_in_day 1720917649 [22:00:48]quantity*price = 50008 [22:00:48]sum+1 = 50009 [22:00:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 324 13.07.2024 22:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164764 ФПД: 233824540516724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220050&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164764&fm=233824540516724&tin=02508201610067®Number=0000000000090829&sum=50000 [22:00:49]StoreToDocumentArchive [22:00:49]shift 446 fd 164764 [22:00:49]save to /storage/0446/doc_00164764 [22:00:49]save last doc name /storage/0446/doc_00164764 to /storage/kkm_last_doc_name [22:00:49]save OK [22:00:49]Clear old archive folders... [22:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:49]tlvbuf is B6EF0180 [22:00:49]SAM_PROTO_ClearQueue [22:00:49]wFMCommunicate request_size=4 [22:00:49]MH_SAM_APDU [22:00:49]CAPDU: 80 09 00 00 [22:00:49]Write to MH i2c: E2 08 00 15 16 80 09 00 00 00 00 00 00 9D [22:00:49]Write i2c OK [22:00:49]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 15 16 00 90 00 9F [22:00:50]RAPDU: 90 00 [22:00:50]wFMCommunicate OK [22:00:50]SAM_PROTO_ClearQueue done [22:00:50]KKMCreateOFDPacket [22:00:50]OFDProtocolAddRootSTLVToBuf [22:00:50]FM_MakeSignedData [22:00:50]FM_MakeSignedData [22:00:50]SAM_PROTO_SignData [22:00:50]wFMCommunicate request_size=4 [22:00:50]MH_SAM_APDU [22:00:50]CAPDU: 80 0D 01 02 [22:00:50]Write to MH i2c: E2 08 00 16 16 80 0D 01 02 00 00 00 00 A5 [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [22:00:50]RAPDU: 90 00 [22:00:50]wFMCommunicate OK [22:00:50]wFMCommunicate request_size=255 [22:00:50]MH_SAM_APDU [22:00: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 44 01 00 00 F4 03 04 00 12 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 83 02 00 35 04 06 00 D4 [22:00:50]Write to MH i2c: E2 02 01 17 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 44 01 00 00 F4 03 04 00 12 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 83 02 00 35 04 06 00 D4 00 00 1A [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [22:00:50]RAPDU: 90 00 [22:00:50]wFMCommunicate OK [22:00:50]wFMCommunicate request_size=10 [22:00:50]MH_SAM_APDU [22:00:50]CAPDU: 80 0D 02 02 05 A9 84 AD 61 74 [22:00:50]Write to MH i2c: E2 0D 00 18 16 80 0D 02 02 05 00 A9 84 AD 61 74 00 00 61 [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [22:00:50]RAPDU: 90 00 [22:00:50]wFMCommunicate OK [22:00:50]wFMCommunicate request_size=4 [22:00:50]MH_SAM_APDU [22:00:50]CAPDU: 80 0D 03 02 [22:00:50]Write to MH i2c: E2 08 00 19 16 80 0D 03 02 00 00 00 00 AA [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 0B 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 0B 00 19 16 00 05 F2 14 6E E4 81 A0 EB 90 00 14 [22:00:50]RAPDU: 05 F2 14 6E E4 81 A0 EB 90 00 [22:00:50]wFMCommunicate OK [22:00:50]SAM_PROTO_SignData done [22:00:50]FM_MakeSignedData done [22:00:50]CreateOFDProtocolMessage [22:00:50]wFMCommunicate request_size=4 [22:00:50]MH_SAM_APDU [22:00:50]CAPDU: 80 11 00 00 [22:00:50]Write to MH i2c: E2 08 00 1A 16 80 11 00 00 00 00 00 00 AA [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:50]Read from MH i2c: E2 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 17 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: E2 17 00 1A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [22:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:00:50]wFMCommunicate OK [22:00:50]CreateOFDProtocolMessage done [22:00:50]OFDSenderStorePacket 164764 [22:00:50]StoreOFDPacket docnum=164764 [22:00:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 76 07 01 CE A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 44 01 00 00 F4 03 04 00 12 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 83 02 00 35 04 06 00 D4 A9 84 AD 61 74 05 F2 14 6E E4 81 A0 EB [22:00:50]CheckFolder [22:00:50]dirname=/storage/ofd_packets [22:00:50]CheckFolder done [22:00:50]ProducePacketName [22:00:50]name=ofd_packets/00164764 [22:00:50]NVStorageSaveData ofd_packets/00164764 [22:00:50]File name is /storage/ofd_packets/00164764 [22:00:50]Write 301 bytes [22:00:50]NVStorageSaveData done [22:00:50]OFDSenderStorePacket done [22:00:50]KKMCreateOFDPacket done [22:00:50]NVStorageSaveData kkm_last_timestamp [22:00:50]File name is /storage/kkm_last_timestamp [22:00:50]Write 4 bytes [22:00:50]NVStorageSaveData done [22:00:50]OFD Sender: Processing packet 164764 [packets to send 104, broken 103] [22:00:50]ProducePacketName [22:00:50]name=ofd_packets/00164764 [22:00:50]OFD Sender: To server: pG, [22:00:50]CommunicateWithHost lk.salyk.kg:30040 [22:00:50]ConnectInit lk.salyk.kg [22:00:50]ExternCall_PrintAddStr [22:00:50]wPrintStart [22:00:50]Write to MH i2c: 01 00 00 1B 16 31 [22:00:50]Write i2c OK [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: 01 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: 01 07 00 [22:00:50]MH_I2C_Read... [22:00:50]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 FF 0F 46 [22:00:50]RasterBufferAndPrint [22:00:50]line Счет N : (1)458858 [22:00:50]line ИНН: 02508201610067 [22:00:50]line Контрольно-Кассовый Чек [22:00:50]line ПРОДАЖА [22:00:50]line ТРК (МРК, ГНК) : 12 [22:00:50]line Товар: 2710124130 [22:00:50]line Аи-92-К-5 [22:00:50]line 7.600 * 65.80 [22:00:50]line = 500.08 [22:00:50]line НДС 12% НСП 1% [22:00:50]line > о реализуемом товаре [22:00:50]line ОКРУГЛЕНИЕ: -0.08 [22:00:50]line ИТОГО: 500.00 [22:00:50]line Внесено: 500.00 [22:00:50]line СДАЧА: 0.00 [22:00:50]line НСП 1% : 4.42 [22:00:50]line НДС 12% : 53.11 [22:00:50]line Наличными: 500.00 [22:00:50]line Безнал.: 0.00 [22:00:50]line Место: АЗС № 72 "Партнер Нефть" [22:00:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:00:50]line СНО: Общий режим [22:00:50]line Чек 324 13.07.2024 22:00 [22:00:50]line Смена: 446 ФФД: 1.0 [22:00:50]line ЗНМ: 0300000160 [22:00:50]line РНМ: 0000000000090829 [22:00:50]line Версия ККМ: 001 [22:00:50]line ФМ: 0000000000874718 [22:00:50]line ФД: 164764 [22:00:50]line ФПД: 233824540516724 [22:00:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220050&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164764&fm=233824540516724&tin=02508201610067®Number=0000000000090829&sum=50000 [22:00:50]Connected sock=11 [22:00:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 76 07 01 CE A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 44 01 00 00 F4 03 04 00 12 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 83 02 00 35 04 06 00 D4 A9 84 AD 61 74 05 F2 14 6E E4 81 A0 EB [22:00:50]written 0, free lines is 4095 [22:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 2F 47 00 FA BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 83 02 00 F4 03 04 00 A1 9F 92 66 B6 04 01 00 00 50 ED 46 F3 1B AE 90 F3 [22:00:51]CommunicateWithHost err = 0 [22:00:51]CheckOFDResponse [22:00:51]1017 (14) - 77093643461234 [22:00:51]1041 (16) - 0000000000874718 [22:00:51]1040 (4) - 164764 [22:00:51]1012 (4) - 13.07.2024 15:39 [22:00:51]1206 (1) - 0 [22:00:51]OFD Sender: Remove packet 164764 [22:00:51]ProducePacketName [22:00:51]name=ofd_packets/00164764 [22:00:51]NVStorageDeleteData [22:00:51]Write to MH i2c: 01 00 00 45 16 5B [22:00:51]Write i2c OK [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: 01 [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: 01 07 00 [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 F1 0C 5F [22:00:51]RasterBufferAndPrint [22:00:51]line [22:00:51]line [22:00:51]line [22:00:51]line [22:00:51]line [22:00:51]written 0, free lines is 3320 [22:00:51]MH_Cut [22:00:51]Write to MH i2c: D1 01 00 4C 16 01 34 [22:00:51]Write i2c OK [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: D1 [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: D1 01 00 [22:00:51]MH_I2C_Read... [22:00:51]Read from MH i2c: D1 01 00 4C 16 00 33 [22:00:51]Write to MH i2c: 01 00 00 4D 16 63 [22:00:51]Write i2c OK [22:00:51]MH_I2C_Read... [22:00:51]OFD Sender: No OFD packet to send [22:00:51]*** Cut start [22:00:51]*** Partial cut [22:00:51]*** CUTSNS_PIN = 1 [22:00:52]*** CUTSNS_PIN = 0 [22:00:52]*** Brake cut motor [22:00:52]Read from MH i2c: 01 [22:00:52]MH_I2C_Read... [22:00:52]*** Stop cut motor [22:00:52]*** Cut end [22:00:52]Read from MH i2c: 01 07 00 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 FF 0F 78 [22:00:52]process_action close_receipt done [22:00:52]requested_data is exist [22:00:52]produce_requested_data [22:00:52]requested_item fm.sn is exist - process it [22:00:52]wFMCommunicate request_size=4 [22:00:52]MH_SAM_APDU [22:00:52]CAPDU: 80 11 00 00 [22:00:52]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [22:00:52]Write i2c OK [22:00:52]MH_I2C_Read... [22:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:52]Read from MH i2c: E2 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 17 00 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [22:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:00:52]wFMCommunicate OK [22:00:52]requested_item fd.num is exist - process it [22:00:52]SAM_PROTO_GetFieldsCounters [22:00:52]wFMCommunicate request_size=4 [22:00:52]MH_SAM_APDU [22:00:52]CAPDU: 80 13 00 00 [22:00:52]Write to MH i2c: E2 08 00 4F 16 80 13 00 00 00 00 00 00 E1 [22:00:52]Write i2c OK [22:00:52]MH_I2C_Read... [22:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:52]Read from MH i2c: E2 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 62 00 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 62 00 4F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [22:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:52]wFMCommunicate OK [22:00:52]SAM_PROTO_GetFieldsCounters done [22:00:52]requested_item shift.num is exist - process it [22:00:52]requested_item shift.opened is exist - process it [22:00:52]req_shift_opened [22:00:52]FM_GetShiftState [22:00:52]SAM_PROTO_GetShiftState [22:00:52]wFMCommunicate request_size=4 [22:00:52]MH_SAM_APDU [22:00:52]CAPDU: 80 13 01 00 [22:00:52]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [22:00:52]Write i2c OK [22:00:52]MH_I2C_Read... [22:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:52]Read from MH i2c: E2 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 0E 00 [22:00:52]MH_I2C_Read... [22:00:52]Read from MH i2c: E2 0E 00 50 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C4 [22:00:52]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:00:52]wFMCommunicate OK [22:00:52]SAM_PROTO_GetShiftState done [22:00:52]FM_GetShiftState done [22:00:52]req_shift_opened done [22:00:52]requested_item shift.open_date is exist - process it [22:00:52]req_shift_open_date [22:00:52]req_shift_open_date done [22:00:52]produce_requested_data done [22:00:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164764,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:00:52]process_action_free close_receipt [22:00:52]json_value_free [22:00:52]json_value_free done [22:00:52]process_json_proto returns [22:00:52]Send response to host [22:00:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164764,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:00:52]free response buf [22:00:52]execute_script done [22:00:52]execute_script returns [22:00:52]free content buf [22:00:52]Sock 9.Close socket [22:00:52]Sock 9.Thread stoped [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:35]accept exits with 7 [22:04:35]New connection [22:04:35]New thread 3067104612 created [22:04:35]Thread 3067247972 joined [22:04:35]Waiting for new connection... [22:04:35] Sock 7.Parse request [22:04:35]Sock 7.Check first char [22:04:35]Sock 7.First char is OK [22:04:35]request: POST /json_proto HTTP/1.0 [22:04:35]Method: POST [22:04:35]URL: /json_proto [22:04:35]Method is POST - this is cgi request [22:04:35]url: /json_proto [22:04:35]query_string will be loaded in cgi processing [22:04:35]execute_cgi json_proto POST (null) [22:04:35]execute_cgi path=json_proto method=POST [22:04:35]POST find Content-Length [22:04:35]Host: 172.17.56.4:8080 [22:04:35]Content-Length: 677 [22:04:35]Content-Type: application/json [22:04:35] [22:04:35]POST finish read [22:04:35]Found Content-Length = 677 [22:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:35]execute_script... [22:04: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)458860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:35]POST & json_proto [22:04:35]process_json_proto [22:04:35]json parsed OK: [22:04:35]protocol is kg_v1.0 [22:04:35]action value=close_receipt [22:04:35]process_action close_receipt [22:04:35]cmd_close_receipt [22:04:35]MH_GetDate [22:04:35]Write to MH i2c: F0 00 00 51 16 56 [22:04:35]Write i2c OK [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: F0 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: F0 09 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: F0 09 00 51 16 00 F4 F9 92 66 C9 DC B2 64 FF [22:04:35]GetLastDocTimeStamp 1720908050 [22:04:35]current date 1720908276 [22:04:35]FM_GetShiftState [22:04:35]SAM_PROTO_GetShiftState [22:04:35]wFMCommunicate request_size=4 [22:04:35]MH_SAM_APDU [22:04:35]CAPDU: 80 13 01 00 [22:04:35]Write to MH i2c: E2 08 00 52 16 80 13 01 00 00 00 00 00 E5 [22:04:35]Write i2c OK [22:04:35]MH_I2C_Read... [22:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:35]Read from MH i2c: E2 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 0E 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 0E 00 52 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C6 [22:04:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:04:35]wFMCommunicate OK [22:04:35]SAM_PROTO_GetShiftState done [22:04:35]FM_GetShiftState done [22:04:35]opened in 1720831249 [22:04:35]opened+sec_in_day 1720917649 [22:04:35]quantity*price = 40006 [22:04:35]sum+1 = 40007 [22:04:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 325 13.07.2024 22:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164765 ФПД: 61255820770157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164765&fm=61255820770157&tin=02508201610067®Number=0000000000090829&sum=40000 [22:04:36]StoreToDocumentArchive [22:04:36]shift 446 fd 164765 [22:04:36]save to /storage/0446/doc_00164765 [22:04:36]save last doc name /storage/0446/doc_00164765 to /storage/kkm_last_doc_name [22:04:36]save OK [22:04:36]Clear old archive folders... [22:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:36]tlvbuf is 01E57810 [22:04:36]SAM_PROTO_ClearQueue [22:04:36]wFMCommunicate request_size=4 [22:04:36]MH_SAM_APDU [22:04:36]CAPDU: 80 09 00 00 [22:04:36]Write to MH i2c: E2 08 00 5F 16 80 09 00 00 00 00 00 00 E7 [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [22:04:36]RAPDU: 90 00 [22:04:36]wFMCommunicate OK [22:04:36]SAM_PROTO_ClearQueue done [22:04:36]KKMCreateOFDPacket [22:04:36]OFDProtocolAddRootSTLVToBuf [22:04:36]FM_MakeSignedData [22:04:36]FM_MakeSignedData [22:04:36]SAM_PROTO_SignData [22:04:36]wFMCommunicate request_size=4 [22:04:36]MH_SAM_APDU [22:04:36]CAPDU: 80 0D 01 02 [22:04:36]Write to MH i2c: E2 08 00 60 16 80 0D 01 02 00 00 00 00 EF [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [22:04:36]RAPDU: 90 00 [22:04:36]wFMCommunicate OK [22:04:36]wFMCommunicate request_size=255 [22:04:36]MH_SAM_APDU [22:04: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 F4 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 83 02 00 35 04 06 00 37 [22:04:36]Write to MH i2c: E2 02 01 61 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 F4 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 83 02 00 35 04 06 00 37 00 00 8B [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 61 16 00 90 00 EB [22:04:36]RAPDU: 90 00 [22:04:36]wFMCommunicate OK [22:04:36]wFMCommunicate request_size=10 [22:04:36]MH_SAM_APDU [22:04:36]CAPDU: 80 0D 02 02 05 B6 3B 6F FB 6D [22:04:36]Write to MH i2c: E2 0D 00 62 16 80 0D 02 02 05 00 B6 3B 6F FB 6D 00 00 C4 [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 03 00 62 16 00 90 00 EC [22:04:36]RAPDU: 90 00 [22:04:36]wFMCommunicate OK [22:04:36]wFMCommunicate request_size=4 [22:04:36]MH_SAM_APDU [22:04:36]CAPDU: 80 0D 03 02 [22:04:36]Write to MH i2c: E2 08 00 63 16 80 0D 03 02 00 00 00 00 F4 [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]OFD Sender: No OFD packet to send [22:04:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 0B 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 0B 00 63 16 00 FB 85 95 E1 C3 69 17 C6 90 00 F4 [22:04:36]RAPDU: FB 85 95 E1 C3 69 17 C6 90 00 [22:04:36]wFMCommunicate OK [22:04:36]SAM_PROTO_SignData done [22:04:36]FM_MakeSignedData done [22:04:36]CreateOFDProtocolMessage [22:04:36]wFMCommunicate request_size=4 [22:04:36]MH_SAM_APDU [22:04:36]CAPDU: 80 11 00 00 [22:04:36]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:36]Read from MH i2c: E2 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 17 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [22:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:36]wFMCommunicate OK [22:04:36]CreateOFDProtocolMessage done [22:04:36]OFDSenderStorePacket 164765 [22:04:36]StoreOFDPacket docnum=164765 [22:04:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D AB 07 01 4F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 F4 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 83 02 00 35 04 06 00 37 B6 3B 6F FB 6D FB 85 95 E1 C3 69 17 C6 [22:04:36]CheckFolder [22:04:36]dirname=/storage/ofd_packets [22:04:36]CheckFolder done [22:04:36]ProducePacketName [22:04:36]name=ofd_packets/00164765 [22:04:36]NVStorageSaveData ofd_packets/00164765 [22:04:36]File name is /storage/ofd_packets/00164765 [22:04:36]Write 301 bytes [22:04:36]NVStorageSaveData done [22:04:36]OFDSenderStorePacket done [22:04:36]KKMCreateOFDPacket done [22:04:36]NVStorageSaveData kkm_last_timestamp [22:04:36]File name is /storage/kkm_last_timestamp [22:04:36]Write 4 bytes [22:04:36]NVStorageSaveData done [22:04:36]ExternCall_PrintAddStr [22:04:36]wPrintStart [22:04:36]Write to MH i2c: 01 00 00 65 16 7B [22:04:36]Write i2c OK [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: 01 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: 01 07 00 [22:04:36]MH_I2C_Read... [22:04:36]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 FF 0F 90 [22:04:36]RasterBufferAndPrint [22:04:36]line Счет N : (1)458860 [22:04:36]line ИНН: 02508201610067 [22:04:36]line Контрольно-Кассовый Чек [22:04:36]line ПРОДАЖА [22:04:36]line ТРК (МРК, ГНК) : 22 [22:04:36]line Товар: 2710124130 [22:04:36]line Аи-92-К-5 [22:04:36]line 6.080 * 65.80 [22:04:36]line = 400.06 [22:04:36]line НДС 12% НСП 1% [22:04:36]line > о реализуемом товаре [22:04:36]line ОКРУГЛЕНИЕ: -0.06 [22:04:36]line ИТОГО: 400.00 [22:04:36]line Внесено: 400.00 [22:04:36]line СДАЧА: 0.00 [22:04:36]line НСП 1% : 3.54 [22:04:36]line НДС 12% : 42.48 [22:04:36]line Наличными: 400.00 [22:04:36]line Безнал.: 0.00 [22:04:36]line Место: АЗС № 72 "Партнер Нефть" [22:04:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:04:36]line СНО: Общий режим [22:04:36]line Чек 325 13.07.2024 22:04 [22:04:36]line Смена: 446 ФФД: 1.0 [22:04:36]line ЗНМ: 0300000160 [22:04:36]line РНМ: 0000000000090829 [22:04:36]line Версия ККМ: 001 [22:04:36]line ФМ: 0000000000874718 [22:04:36]line ФД: 164765 [22:04:36]line ФПД: 61255820770157 [22:04:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220436&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164765&fm=61255820770157&tin=02508201610067®Number=0000000000090829&sum=40000 [22:04:37]OFD Sender: Processing packet 164765 [packets to send 104, broken 103] [22:04:37]ProducePacketName [22:04:37]name=ofd_packets/00164765 [22:04:37]OFD Sender: To server: pG, [22:04:37]CommunicateWithHost lk.salyk.kg:30040 [22:04:37]ConnectInit lk.salyk.kg [22:04:37]written 0, free lines is 4095 [22:04:37]Connected sock=10 [22:04:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D AB 07 01 4F 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 F4 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 83 02 00 35 04 06 00 37 B6 3B 6F FB 6D FB 85 95 E1 C3 69 17 C6 [22:04:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA 6A 47 00 D1 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 83 02 00 F4 03 04 00 84 A0 92 66 B6 04 01 00 00 D1 76 E2 44 3A 38 86 05 [22:04:37]CommunicateWithHost err = 0 [22:04:37]CheckOFDResponse [22:04:37]1017 (14) - 77093643461234 [22:04:37]1041 (16) - 0000000000874718 [22:04:37]1040 (4) - 164765 [22:04:37]1012 (4) - 13.07.2024 15:43 [22:04:37]1206 (1) - 0 [22:04:37]OFD Sender: Remove packet 164765 [22:04:37]ProducePacketName [22:04:37]name=ofd_packets/00164765 [22:04:37]NVStorageDeleteData [22:04:37]Write to MH i2c: 01 00 00 8F 16 A5 [22:04:37]Write i2c OK [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: 01 [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: 01 07 00 [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: 01 07 00 8F 16 00 00 00 00 00 FA 0C B2 [22:04:37]RasterBufferAndPrint [22:04:37]line [22:04:37]line [22:04:37]line [22:04:37]line [22:04:37]line [22:04:37]written 0, free lines is 3328 [22:04:37]MH_Cut [22:04:37]Write to MH i2c: D1 01 00 96 16 01 7E [22:04:37]Write i2c OK [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: D1 [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: D1 01 00 [22:04:37]MH_I2C_Read... [22:04:37]Read from MH i2c: D1 01 00 96 16 00 7D [22:04:37]Write to MH i2c: 01 00 00 97 16 AD [22:04:37]Write i2c OK [22:04:37]MH_I2C_Read... [22:04:38]OFD Sender: No OFD packet to send [22:04:38]*** Cut start [22:04:38]*** Partial cut [22:04:38]*** CUTSNS_PIN = 1 [22:04:38]*** CUTSNS_PIN = 0 [22:04:38]*** Brake cut motor [22:04:38]Read from MH i2c: 01 [22:04:38]MH_I2C_Read... [22:04:38]*** Stop cut motor [22:04:38]*** Cut end [22:04:38]Read from MH i2c: 01 07 00 [22:04:38]MH_I2C_Read... [22:04:38]Read from MH i2c: 01 07 00 97 16 00 00 00 00 00 FF 0F C2 [22:04:38]process_action close_receipt done [22:04:38]requested_data is exist [22:04:38]produce_requested_data [22:04:38]requested_item fm.sn is exist - process it [22:04:38]wFMCommunicate request_size=4 [22:04:38]MH_SAM_APDU [22:04:38]CAPDU: 80 11 00 00 [22:04:38]Write to MH i2c: E2 08 00 98 16 80 11 00 00 00 00 00 00 28 [22:04:38]Write i2c OK [22:04:38]MH_I2C_Read... [22:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:38]Read from MH i2c: E2 [22:04:38]MH_I2C_Read... [22:04:38]Read from MH i2c: E2 17 00 [22:04:38]MH_I2C_Read... [22:04:38]Read from MH i2c: E2 17 00 98 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [22:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:38]wFMCommunicate OK [22:04:38]requested_item fd.num is exist - process it [22:04:38]SAM_PROTO_GetFieldsCounters [22:04:38]wFMCommunicate request_size=4 [22:04:38]MH_SAM_APDU [22:04:38]CAPDU: 80 13 00 00 [22:04:38]Write to MH i2c: E2 08 00 99 16 80 13 00 00 00 00 00 00 2B [22:04:38]Write i2c OK [22:04:38]MH_I2C_Read... [22:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:39]Read from MH i2c: E2 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 62 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 62 00 99 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [22:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:39]wFMCommunicate OK [22:04:39]SAM_PROTO_GetFieldsCounters done [22:04:39]requested_item shift.num is exist - process it [22:04:39]requested_item shift.opened is exist - process it [22:04:39]req_shift_opened [22:04:39]FM_GetShiftState [22:04:39]SAM_PROTO_GetShiftState [22:04:39]wFMCommunicate request_size=4 [22:04:39]MH_SAM_APDU [22:04:39]CAPDU: 80 13 01 00 [22:04:39]Write to MH i2c: E2 08 00 9A 16 80 13 01 00 00 00 00 00 2D [22:04:39]Write i2c OK [22:04:39]MH_I2C_Read... [22:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:39]Read from MH i2c: E2 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 9A 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 0E [22:04:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:04:39]wFMCommunicate OK [22:04:39]SAM_PROTO_GetShiftState done [22:04:39]FM_GetShiftState done [22:04:39]req_shift_opened done [22:04:39]requested_item shift.open_date is exist - process it [22:04:39]req_shift_open_date [22:04:39]req_shift_open_date done [22:04:39]produce_requested_data done [22:04:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164765,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:04:39]process_action_free close_receipt [22:04:39]json_value_free [22:04:39]json_value_free done [22:04:39]process_json_proto returns [22:04:39]Send response to host [22:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164765,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:04:39]free response buf [22:04:39]execute_script done [22:04:39]execute_script returns [22:04:39]free content buf [22:04:39]Sock 7.Close socket [22:04:39]Sock 7.Thread stoped [22:04:39]accept exits with 9 [22:04:39]New connection [22:04:39]New thread 3067247972 created [22:04:39]Thread 3067104612 joined [22:04:39]Waiting for new connection... [22:04:39] Sock 9.Parse request [22:04:39]Sock 9.Check first char [22:04:39]Sock 9.First char is OK [22:04:39]request: POST /json_proto HTTP/1.0 [22:04:39]Method: POST [22:04:39]URL: /json_proto [22:04:39]Method is POST - this is cgi request [22:04:39]url: /json_proto [22:04:39]query_string will be loaded in cgi processing [22:04:39]execute_cgi json_proto POST (null) [22:04:39]execute_cgi path=json_proto method=POST [22:04:39]POST find Content-Length [22:04:39]Host: 172.17.56.4:8080 [22:04:39]Content-Length: 639 [22:04:39]Content-Type: application/json [22:04:39] [22:04:39]POST finish read [22:04:39]Found Content-Length = 639 [22:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:39]execute_script... [22:04: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)458859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:39]POST & json_proto [22:04:39]process_json_proto [22:04:39]json parsed OK: [22:04:39]protocol is kg_v1.0 [22:04:39]action value=close_receipt [22:04:39]process_action close_receipt [22:04:39]cmd_close_receipt [22:04:39]MH_GetDate [22:04:39]Write to MH i2c: F0 00 00 9B 16 A0 [22:04:39]Write i2c OK [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 09 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 09 00 9B 16 00 F8 F9 92 66 C9 DC B2 64 4D [22:04:39]GetLastDocTimeStamp 1720908276 [22:04:39]current date 1720908280 [22:04:39]FM_GetShiftState [22:04:39]SAM_PROTO_GetShiftState [22:04:39]wFMCommunicate request_size=4 [22:04:39]MH_SAM_APDU [22:04:39]CAPDU: 80 13 01 00 [22:04:39]Write to MH i2c: E2 08 00 9C 16 80 13 01 00 00 00 00 00 2F [22:04:39]Write i2c OK [22:04:39]MH_I2C_Read... [22:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:39]Read from MH i2c: E2 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 9C 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 10 [22:04:39]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:04:39]wFMCommunicate OK [22:04:39]SAM_PROTO_GetShiftState done [22:04:39]FM_GetShiftState done [22:04:39]opened in 1720831249 [22:04:39]opened+sec_in_day 1720917649 [22:04:39]quantity*price = 32900 [22:04:39]sum+1 = 32901 [22:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 326 13.07.2024 22:04 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164766 ФПД: 13640289127419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164766&fm=13640289127419&tin=02508201610067®Number=0000000000090829&sum=32900 [22:04:41]StoreToDocumentArchive [22:04:41]shift 446 fd 164766 [22:04:41]save to /storage/0446/doc_00164766 [22:04:41]save last doc name /storage/0446/doc_00164766 to /storage/kkm_last_doc_name [22:04:41]save OK [22:04:41]Clear old archive folders... [22:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:41]tlvbuf is 01EE6140 [22:04:41]SAM_PROTO_ClearQueue [22:04:41]wFMCommunicate request_size=4 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 09 00 00 [22:04:41]Write to MH i2c: E2 08 00 A9 16 80 09 00 00 00 00 00 00 31 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [22:04:41]RAPDU: 90 00 [22:04:41]wFMCommunicate OK [22:04:41]SAM_PROTO_ClearQueue done [22:04:41]KKMCreateOFDPacket [22:04:41]OFDProtocolAddRootSTLVToBuf [22:04:41]FM_MakeSignedData [22:04:41]FM_MakeSignedData [22:04:41]SAM_PROTO_SignData [22:04:41]wFMCommunicate request_size=4 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 0D 01 02 [22:04:41]Write to MH i2c: E2 08 00 AA 16 80 0D 01 02 00 00 00 00 39 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [22:04:41]RAPDU: 90 00 [22:04:41]wFMCommunicate OK [22:04:41]wFMCommunicate request_size=255 [22:04:41]MH_SAM_APDU [22:04: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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 01 00 00 F4 03 04 00 F8 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 83 02 00 35 04 06 00 0C [22:04:41]Write to MH i2c: E2 02 01 AB 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 01 00 00 F4 03 04 00 F8 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 83 02 00 35 04 06 00 0C 00 00 B2 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 AB 16 00 90 00 35 [22:04:41]RAPDU: 90 00 [22:04:41]wFMCommunicate OK [22:04:41]wFMCommunicate request_size=10 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 0D 02 02 05 67 E0 96 8B FB [22:04:41]Write to MH i2c: E2 0D 00 AC 16 80 0D 02 02 05 00 67 E0 96 8B FB 00 00 A9 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:41]Read from MH i2c: E2 03 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 03 00 AC 16 00 90 00 36 [22:04:41]RAPDU: 90 00 [22:04:41]wFMCommunicate OK [22:04:41]wFMCommunicate request_size=4 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 0D 03 02 [22:04:41]Write to MH i2c: E2 08 00 AD 16 80 0D 03 02 00 00 00 00 3E [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 0B 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 0B 00 AD 16 00 FD 0A BC 86 E3 0C BD 5F 90 00 93 [22:04:41]RAPDU: FD 0A BC 86 E3 0C BD 5F 90 00 [22:04:41]wFMCommunicate OK [22:04:41]SAM_PROTO_SignData done [22:04:41]FM_MakeSignedData done [22:04:41]CreateOFDProtocolMessage [22:04:41]wFMCommunicate request_size=4 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 11 00 00 [22:04:41]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 17 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [22:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:41]wFMCommunicate OK [22:04:41]CreateOFDProtocolMessage done [22:04:41]OFDSenderStorePacket 164766 [22:04:41]StoreOFDPacket docnum=164766 [22:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 0D 07 01 4F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 01 00 00 F4 03 04 00 F8 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 83 02 00 35 04 06 00 0C 67 E0 96 8B FB FD 0A BC 86 E3 0C BD 5F [22:04:41]CheckFolder [22:04:41]dirname=/storage/ofd_packets [22:04:41]CheckFolder done [22:04:41]ProducePacketName [22:04:41]name=ofd_packets/00164766 [22:04:41]NVStorageSaveData ofd_packets/00164766 [22:04:41]File name is /storage/ofd_packets/00164766 [22:04:41]Write 301 bytes [22:04:41]NVStorageSaveData done [22:04:41]OFDSenderStorePacket done [22:04:41]KKMCreateOFDPacket done [22:04:41]NVStorageSaveData kkm_last_timestamp [22:04:41]File name is /storage/kkm_last_timestamp [22:04:41]Write 4 bytes [22:04:41]NVStorageSaveData done [22:04:41]ExternCall_PrintAddStr [22:04:41]wPrintStart [22:04:41]Write to MH i2c: 01 00 00 AF 16 C5 [22:04:41]OFD Sender: Processing packet 164766 [packets to send 104, broken 103] [22:04:41]ProducePacketName [22:04:41]name=ofd_packets/00164766 [22:04:41]OFD Sender: To server: pG, [22:04:41]CommunicateWithHost lk.salyk.kg:30040 [22:04:41]ConnectInit lk.salyk.kg [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 07 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 FF 0F DA [22:04:41]RasterBufferAndPrint [22:04:41]line Счет N : (1)458859 [22:04:41]line ИНН: 02508201610067 [22:04:41]line Контрольно-Кассовый Чек [22:04:41]line ПРОДАЖА [22:04:41]line ТРК (МРК, ГНК) : 12 [22:04:41]line Товар: 2710124130 [22:04:41]line Аи-92-К-5 [22:04:41]line 5.000 * 65.80 [22:04:41]line = 329.00 [22:04:41]line НДС 12% НСП 1% [22:04:41]line > о реализуемом товаре [22:04:41]line ИТОГО: 329.00 [22:04:41]line НСП 1% : 2.91 [22:04:41]line НДС 12% : 34.94 [22:04:41]line Наличными: 329.00 [22:04:41]line Безнал.: 0.00 [22:04:41]line Место: АЗС № 72 "Партнер Нефть" [22:04:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:04:41]line СНО: Общий режим [22:04:41]line Чек 326 13.07.2024 22:04 [22:04:41]line Смена: 446 ФФД: 1.0 [22:04:41]line ЗНМ: 0300000160 [22:04:41]line РНМ: 0000000000090829 [22:04:41]line Версия ККМ: 001 [22:04:41]line ФМ: 0000000000874718 [22:04:41]line ФД: 164766 [22:04:41]line ФПД: 13640289127419 [22:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164766&fm=13640289127419&tin=02508201610067®Number=0000000000090829&sum=32900 [22:04:41]written 0, free lines is 4095 [22:04:41]Connected sock=10 [22:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 0D 07 01 4F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 01 00 00 F4 03 04 00 F8 F9 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 83 02 00 35 04 06 00 0C 67 E0 96 8B FB FD 0A BC 86 E3 0C BD 5F [22:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 AC 47 00 94 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 83 02 00 F4 03 04 00 88 A0 92 66 B6 04 01 00 00 AF AA B8 ED 36 89 10 CE [22:04:42]CommunicateWithHost err = 0 [22:04:42]CheckOFDResponse [22:04:42]1017 (14) - 77093643461234 [22:04:42]1041 (16) - 0000000000874718 [22:04:42]1040 (4) - 164766 [22:04:42]1012 (4) - 13.07.2024 15:43 [22:04:42]1206 (1) - 0 [22:04:42]OFD Sender: Remove packet 164766 [22:04:42]ProducePacketName [22:04:42]name=ofd_packets/00164766 [22:04:42]NVStorageDeleteData [22:04:42]Write to MH i2c: 01 00 00 D6 16 EC [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: 01 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: 01 07 00 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: 01 07 00 D6 16 00 00 00 00 00 2C 0D 2C [22:04:42]RasterBufferAndPrint [22:04:42]line [22:04:42]line [22:04:42]line [22:04:42]line [22:04:42]line [22:04:42]written 0, free lines is 3387 [22:04:42]MH_Cut [22:04:42]Write to MH i2c: D1 01 00 DD 16 01 C5 [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: D1 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: D1 01 00 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: D1 01 00 DD 16 00 C4 [22:04:42]Write to MH i2c: 01 00 00 DE 16 F4 [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:42]OFD Sender: No OFD packet to send [22:04:42]*** Cut start [22:04:42]*** Partial cut [22:04:42]*** CUTSNS_PIN = 1 [22:04:42]*** CUTSNS_PIN = 0 [22:04:43]*** Brake cut motor [22:04:43]Read from MH i2c: 01 [22:04:43]MH_I2C_Read... [22:04:43]*** Stop cut motor [22:04:43]*** Cut end [22:04:43]Read from MH i2c: 01 07 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [22:04:43]process_action close_receipt done [22:04:43]requested_data is exist [22:04:43]produce_requested_data [22:04:43]requested_item fm.sn is exist - process it [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 11 00 00 [22:04:43]Write to MH i2c: E2 08 00 DF 16 80 11 00 00 00 00 00 00 6F [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 DF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [22:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:04:43]wFMCommunicate OK [22:04:43]requested_item fd.num is exist - process it [22:04:43]SAM_PROTO_GetFieldsCounters [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 13 00 00 [22:04:43]Write to MH i2c: E2 08 00 E0 16 80 13 00 00 00 00 00 00 72 [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 62 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 62 00 E0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [22:04: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:43]wFMCommunicate OK [22:04:43]SAM_PROTO_GetFieldsCounters done [22:04:43]requested_item shift.num is exist - process it [22:04:43]requested_item shift.opened is exist - process it [22:04:43]req_shift_opened [22:04:43]FM_GetShiftState [22:04:43]SAM_PROTO_GetShiftState [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 13 01 00 [22:04:43]Write to MH i2c: E2 08 00 E1 16 80 13 01 00 00 00 00 00 74 [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0E 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0E 00 E1 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 55 [22:04:43]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:04:43]wFMCommunicate OK [22:04:43]SAM_PROTO_GetShiftState done [22:04:43]FM_GetShiftState done [22:04:43]req_shift_opened done [22:04:43]requested_item shift.open_date is exist - process it [22:04:43]req_shift_open_date [22:04:43]req_shift_open_date done [22:04:43]produce_requested_data done [22:04:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164766,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:04:43]process_action_free close_receipt [22:04:43]json_value_free [22:04:43]json_value_free done [22:04:43]process_json_proto returns [22:04:43]Send response to host [22:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164766,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:04:43]free response buf [22:04:43]execute_script done [22:04:43]execute_script returns [22:04:43]free content buf [22:04:43]Sock 9.Close socket [22:04:43]Sock 9.Thread stoped [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]accept exits with 7 [22:08:17]New connection [22:08:17]New thread 3067104612 created [22:08:17]Thread 3067247972 joined [22:08:17]Waiting for new connection... [22:08:17] Sock 7.Parse request [22:08:17]Sock 7.Check first char [22:08:17]Sock 7.First char is OK [22:08:17]request: POST /json_proto HTTP/1.0 [22:08:17]Method: POST [22:08:17]URL: /json_proto [22:08:17]Method is POST - this is cgi request [22:08:17]url: /json_proto [22:08:17]query_string will be loaded in cgi processing [22:08:17]execute_cgi json_proto POST (null) [22:08:17]execute_cgi path=json_proto method=POST [22:08:17]POST find Content-Length [22:08:17]Host: 172.17.56.4:8080 [22:08:17]Content-Length: 790 [22:08:17]Content-Type: application/json [22:08:17] [22:08:17]POST finish read [22:08:17]Found Content-Length = 790 [22:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:17]execute_script... [22:08: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)458861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:17]POST & json_proto [22:08:17]process_json_proto [22:08:17]json parsed OK: [22:08:17]protocol is kg_v1.0 [22:08:17]action value=close_receipt [22:08:17]process_action close_receipt [22:08:17]cmd_close_receipt [22:08:17]MH_GetDate [22:08:17]Write to MH i2c: F0 00 00 E2 16 E7 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: F0 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: F0 09 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: F0 09 00 E2 16 00 D2 FA 92 66 C9 DC B2 64 6F [22:08:17]GetLastDocTimeStamp 1720908280 [22:08:17]current date 1720908498 [22:08:17]FM_GetShiftState [22:08:17]SAM_PROTO_GetShiftState [22:08:17]wFMCommunicate request_size=4 [22:08:17]MH_SAM_APDU [22:08:17]CAPDU: 80 13 01 00 [22:08:17]Write to MH i2c: E2 08 00 E3 16 80 13 01 00 00 00 00 00 76 [22:08:17]Write i2c OK [22:08:17]MH_I2C_Read... [22:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:17]Read from MH i2c: E2 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0E 00 [22:08:17]MH_I2C_Read... [22:08:17]Read from MH i2c: E2 0E 00 E3 16 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 57 [22:08:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:08:17]wFMCommunicate OK [22:08:17]SAM_PROTO_GetShiftState done [22:08:17]FM_GetShiftState done [22:08:17]opened in 1720831249 [22:08:17]opened+sec_in_day 1720917649 [22:08:17]quantity*price = 50023 [22:08:17]sum+1 = 50025 [22:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 327 13.07.2024 22:08 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164767 ФПД: 244214583355762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164767&fm=244214583355762&tin=02508201610067®Number=0000000000090829&sum=50024 [22:08:18]StoreToDocumentArchive [22:08:18]shift 446 fd 164767 [22:08:18]save to /storage/0446/doc_00164767 [22:08:18]save last doc name /storage/0446/doc_00164767 to /storage/kkm_last_doc_name [22:08:18]save OK [22:08:18]Clear old archive folders... [22:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:18]tlvbuf is 01E89C00 [22:08:18]SAM_PROTO_ClearQueue [22:08:18]wFMCommunicate request_size=4 [22:08:18]MH_SAM_APDU [22:08:18]CAPDU: 80 09 00 00 [22:08:18]Write to MH i2c: E2 08 00 F0 16 80 09 00 00 00 00 00 00 78 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [22:08:18]RAPDU: 90 00 [22:08:18]wFMCommunicate OK [22:08:18]SAM_PROTO_ClearQueue done [22:08:18]KKMCreateOFDPacket [22:08:18]OFDProtocolAddRootSTLVToBuf [22:08:18]FM_MakeSignedData [22:08:18]FM_MakeSignedData [22:08:18]SAM_PROTO_SignData [22:08:18]wFMCommunicate request_size=4 [22:08:18]MH_SAM_APDU [22:08:18]CAPDU: 80 0D 01 02 [22:08:18]Write to MH i2c: E2 08 00 F1 16 80 0D 01 02 00 00 00 00 80 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [22:08:18]RAPDU: 90 00 [22:08:18]wFMCommunicate OK [22:08:18]wFMCommunicate request_size=255 [22:08:18]MH_SAM_APDU [22:08: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D2 FA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 83 02 00 35 04 06 00 DE [22:08:18]Write to MH i2c: E2 02 01 F2 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D2 FA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 83 02 00 35 04 06 00 DE 00 00 14 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [22:08:18]RAPDU: 90 00 [22:08:18]wFMCommunicate OK [22:08:18]wFMCommunicate request_size=10 [22:08:18]MH_SAM_APDU [22:08:18]CAPDU: 80 0D 02 02 05 1C A3 7D 69 72 [22:08:18]Write to MH i2c: E2 0D 00 F3 16 80 0D 02 02 05 00 1C A3 7D 69 72 00 00 A4 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [22:08:18]RAPDU: 90 00 [22:08:18]wFMCommunicate OK [22:08:18]wFMCommunicate request_size=4 [22:08:18]MH_SAM_APDU [22:08:18]CAPDU: 80 0D 03 02 [22:08:18]Write to MH i2c: E2 08 00 F4 16 80 0D 03 02 00 00 00 00 85 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 0B 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 0B 00 F4 16 00 A8 56 0F D8 2F 23 18 0E 90 00 E3 [22:08:18]RAPDU: A8 56 0F D8 2F 23 18 0E 90 00 [22:08:18]wFMCommunicate OK [22:08:18]SAM_PROTO_SignData done [22:08:18]FM_MakeSignedData done [22:08:18]CreateOFDProtocolMessage [22:08:18]wFMCommunicate request_size=4 [22:08:18]MH_SAM_APDU [22:08:18]CAPDU: 80 11 00 00 [22:08:18]Write to MH i2c: E2 08 00 F5 16 80 11 00 00 00 00 00 00 85 [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:18]Read from MH i2c: E2 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 17 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: E2 17 00 F5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [22:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:08:18]wFMCommunicate OK [22:08:18]CreateOFDProtocolMessage done [22:08:18]OFDSenderStorePacket 164767 [22:08:18]StoreOFDPacket docnum=164767 [22:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 66 07 01 57 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D2 FA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 83 02 00 35 04 06 00 DE 1C A3 7D 69 72 A8 56 0F D8 2F 23 18 0E [22:08:18]CheckFolder [22:08:18]dirname=/storage/ofd_packets [22:08:18]CheckFolder done [22:08:18]ProducePacketName [22:08:18]name=ofd_packets/00164767 [22:08:18]NVStorageSaveData ofd_packets/00164767 [22:08:18]File name is /storage/ofd_packets/00164767 [22:08:18]Write 301 bytes [22:08:18]NVStorageSaveData done [22:08:18]OFDSenderStorePacket done [22:08:18]KKMCreateOFDPacket done [22:08:18]NVStorageSaveData kkm_last_timestamp [22:08:18]File name is /storage/kkm_last_timestamp [22:08:18]Write 4 bytes [22:08:18]NVStorageSaveData done [22:08:18]ExternCall_PrintAddStr [22:08:18]wPrintStart [22:08:18]Write to MH i2c: 01 00 00 F6 16 0C [22:08:18]Write i2c OK [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 [22:08:18]MH_I2C_Read... [22:08:18]Read from MH i2c: 01 07 00 F6 16 00 00 00 00 00 FF 0F 21 [22:08:18]RasterBufferAndPrint [22:08:18]line Счет N : (1)458861 [22:08:18]line ИНН: 02508201610067 [22:08:18]line Контрольно-Кассовый Чек [22:08:18]line ПРОДАЖА [22:08:18]line ТРК (МРК, ГНК) : 22 [22:08:18]line Товар: 2710124130 [22:08:18]line Аи-92-К-5 [22:08:18]line 7.670 * 65.22 [22:08:18]line = 500.24 [22:08:18]line НДС 12% НСП 1% [22:08:18]line > о реализуемом товаре [22:08:18]line ИТОГО: 500.24 [22:08:18]line НСП 1% : 4.43 [22:08:18]line НДС 12% : 53.12 [22:08:18]line Наличными: 0.00 [22:08:18]line Безнал.: 500.24 [22:08:18]line Место: АЗС № 72 "Партнер Нефть" [22:08:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:08:18]line СНО: Общий режим [22:08:18]line Чек 327 13.07.2024 22:08 [22:08:18]line Смена: 446 ФФД: 1.0 [22:08:18]line ЗНМ: 0300000160 [22:08:18]line РНМ: 0000000000090829 [22:08:18]line Версия ККМ: 001 [22:08:18]line Платежная система: KICB Банк [22:08:18]line ФМ: 0000000000874718 [22:08:18]line ФД: 164767 [22:08:18]line ФПД: 244214583355762 [22:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164767&fm=244214583355762&tin=02508201610067®Number=0000000000090829&sum=50024 [22:08:19]OFD Sender: Processing packet 164767 [packets to send 104, broken 103] [22:08:19]ProducePacketName [22:08:19]name=ofd_packets/00164767 [22:08:19]OFD Sender: To server: pG, [22:08:19]CommunicateWithHost lk.salyk.kg:30040 [22:08:19]ConnectInit lk.salyk.kg [22:08:19]written 0, free lines is 4095 [22:08:19]Connected sock=10 [22:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F0 66 07 01 57 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D2 FA 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 83 02 00 35 04 06 00 DE 1C A3 7D 69 72 A8 56 0F D8 2F 23 18 0E [22:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 40 3E 47 00 A7 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 34 37 31 38 10 04 04 00 9F 83 02 00 F4 03 04 00 62 A1 92 66 B6 04 01 00 00 E1 D5 DE 4F 80 25 4B D1 [22:08:19]CommunicateWithHost err = 0 [22:08:19]CheckOFDResponse [22:08:19]1017 (14) - 77093643461234 [22:08:19]1041 (16) - 0000000000874718 [22:08:19]1040 (4) - 164767 [22:08:19]1012 (4) - 13.07.2024 15:46 [22:08:19]1206 (1) - 0 [22:08:19]OFD Sender: Remove packet 164767 [22:08:19]ProducePacketName [22:08:19]name=ofd_packets/00164767 [22:08:19]NVStorageDeleteData [22:08:19]Write to MH i2c: 01 00 00 1F 17 36 [22:08:19]Write i2c OK [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: 01 [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: 01 07 00 [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: 01 07 00 1F 17 00 00 00 00 00 FF 0C 48 [22:08:19]RasterBufferAndPrint [22:08:19]line [22:08:19]line [22:08:19]line [22:08:19]line [22:08:19]line [22:08:19]written 0, free lines is 3333 [22:08:19]MH_Cut [22:08:19]Write to MH i2c: D1 01 00 26 17 01 0F [22:08:19]Write i2c OK [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: D1 [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: D1 01 00 [22:08:19]MH_I2C_Read... [22:08:19]Read from MH i2c: D1 01 00 26 17 00 0E [22:08:19]Write to MH i2c: 01 00 00 27 17 3E [22:08:19]Write i2c OK [22:08:19]MH_I2C_Read... [22:08:19]OFD Sender: No OFD packet to send [22:08:20]*** Cut start [22:08:20]*** Partial cut [22:08:20]*** CUTSNS_PIN = 1 [22:08:20]*** CUTSNS_PIN = 0 [22:08:20]*** Brake cut motor [22:08:20]Read from MH i2c: 01 [22:08:20]MH_I2C_Read... [22:08:20]*** Stop cut motor [22:08:20]*** Cut end [22:08:20]Read from MH i2c: 01 07 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: 01 07 00 27 17 00 00 00 00 00 FF 0F 53 [22:08:20]process_action close_receipt done [22:08:20]requested_data is exist [22:08:20]produce_requested_data [22:08:20]requested_item fm.sn is exist - process it [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 11 00 00 [22:08:20]Write to MH i2c: E2 08 00 28 17 80 11 00 00 00 00 00 00 B9 [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:20]Read from MH i2c: E2 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 [22:08:20]MH_I2C_Read... [22:08:20]Read from MH i2c: E2 17 00 28 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [22:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:08:20]wFMCommunicate OK [22:08:20]requested_item fd.num is exist - process it [22:08:20]SAM_PROTO_GetFieldsCounters [22:08:20]wFMCommunicate request_size=4 [22:08:20]MH_SAM_APDU [22:08:20]CAPDU: 80 13 00 00 [22:08:20]Write to MH i2c: E2 08 00 29 17 80 13 00 00 00 00 00 00 BC [22:08:20]Write i2c OK [22:08:20]MH_I2C_Read... [22:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:21]Read from MH i2c: E2 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 62 00 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 62 00 29 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [22:08: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:21]wFMCommunicate OK [22:08:21]SAM_PROTO_GetFieldsCounters done [22:08:21]requested_item shift.num is exist - process it [22:08:21]requested_item shift.opened is exist - process it [22:08:21]req_shift_opened [22:08:21]FM_GetShiftState [22:08:21]SAM_PROTO_GetShiftState [22:08:21]wFMCommunicate request_size=4 [22:08:21]MH_SAM_APDU [22:08:21]CAPDU: 80 13 01 00 [22:08:21]Write to MH i2c: E2 08 00 2A 17 80 13 01 00 00 00 00 00 BE [22:08:21]Write i2c OK [22:08:21]MH_I2C_Read... [22:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:21]Read from MH i2c: E2 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 0E 00 [22:08:21]MH_I2C_Read... [22:08:21]Read from MH i2c: E2 0E 00 2A 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 9F [22:08:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:08:21]wFMCommunicate OK [22:08:21]SAM_PROTO_GetShiftState done [22:08:21]FM_GetShiftState done [22:08:21]req_shift_opened done [22:08:21]requested_item shift.open_date is exist - process it [22:08:21]req_shift_open_date [22:08:21]req_shift_open_date done [22:08:21]produce_requested_data done [22:08:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164767,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:08:21]process_action_free close_receipt [22:08:21]json_value_free [22:08:21]json_value_free done [22:08:21]process_json_proto returns [22:08:21]Send response to host [22:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164767,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:08:21]free response buf [22:08:21]execute_script done [22:08:21]execute_script returns [22:08:21]free content buf [22:08:21]Sock 7.Close socket [22:08:21]Sock 7.Thread stoped [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:45]accept exits with 9 [22:12:45]New connection [22:12:45]New thread 3067247972 created [22:12:45]Thread 3067104612 joined [22:12:45]Waiting for new connection... [22:12:45] Sock 9.Parse request [22:12:45]Sock 9.Check first char [22:12:45]Sock 9.First char is OK [22:12:45]request: POST /json_proto HTTP/1.0 [22:12:45]Method: POST [22:12:45]URL: /json_proto [22:12:45]Method is POST - this is cgi request [22:12:45]url: /json_proto [22:12:45]query_string will be loaded in cgi processing [22:12:45]execute_cgi json_proto POST (null) [22:12:45]execute_cgi path=json_proto method=POST [22:12:45]POST find Content-Length [22:12:45]Host: 172.17.56.4:8080 [22:12:45]Content-Length: 677 [22:12:45]Content-Type: application/json [22:12:45] [22:12:45]POST finish read [22:12:45]Found Content-Length = 677 [22:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:45]execute_script... [22:12: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)458862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:45]POST & json_proto [22:12:45]process_json_proto [22:12:45]json parsed OK: [22:12:45]protocol is kg_v1.0 [22:12:45]action value=close_receipt [22:12:45]process_action close_receipt [22:12:45]cmd_close_receipt [22:12:45]MH_GetDate [22:12:45]Write to MH i2c: F0 00 00 2B 17 31 [22:12:45]Write i2c OK [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: F0 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: F0 09 00 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: F0 09 00 2B 17 00 DE FB 92 66 C9 DC B2 64 C6 [22:12:45]GetLastDocTimeStamp 1720908498 [22:12:45]current date 1720908766 [22:12:45]FM_GetShiftState [22:12:45]SAM_PROTO_GetShiftState [22:12:45]wFMCommunicate request_size=4 [22:12:45]MH_SAM_APDU [22:12:45]CAPDU: 80 13 01 00 [22:12:45]Write to MH i2c: E2 08 00 2C 17 80 13 01 00 00 00 00 00 C0 [22:12:45]Write i2c OK [22:12:45]MH_I2C_Read... [22:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:45]Read from MH i2c: E2 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: E2 0E 00 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: E2 0E 00 2C 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A1 [22:12:45]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:12:45]wFMCommunicate OK [22:12:45]SAM_PROTO_GetShiftState done [22:12:45]FM_GetShiftState done [22:12:45]opened in 1720831249 [22:12:45]opened+sec_in_day 1720917649 [22:12:45]quantity*price = 30004 [22:12:45]sum+1 = 30006 [22:12:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 328 13.07.2024 22:12 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164768 ФПД: 109660390634158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164768&fm=109660390634158&tin=02508201610067®Number=0000000000090829&sum=30000 [22:12:46]StoreToDocumentArchive [22:12:46]shift 446 fd 164768 [22:12:46]save to /storage/0446/doc_00164768 [22:12:46]save last doc name /storage/0446/doc_00164768 to /storage/kkm_last_doc_name [22:12:46]save OK [22:12:46]Clear old archive folders... [22:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:46]tlvbuf is B6EF0090 [22:12:46]SAM_PROTO_ClearQueue [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 09 00 00 [22:12:46]Write to MH i2c: E2 08 00 39 17 80 09 00 00 00 00 00 00 C2 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]SAM_PROTO_ClearQueue done [22:12:46]KKMCreateOFDPacket [22:12:46]OFDProtocolAddRootSTLVToBuf [22:12:46]FM_MakeSignedData [22:12:46]FM_MakeSignedData [22:12:46]SAM_PROTO_SignData [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 0D 01 02 [22:12:46]Write to MH i2c: E2 08 00 3A 17 80 0D 01 02 00 00 00 00 CA [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 03 00 3A 17 00 90 00 C5 [22:12:46]RAPDU: 90 00 [22:12:46]wFMCommunicate OK [22:12:46]wFMCommunicate request_size=255 [22:12:46]MH_SAM_APDU [22:12: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 01 00 00 F4 03 04 00 DE FB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 83 02 00 35 04 06 00 63 [22:12:46]Write to MH i2c: E2 02 01 3B 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 01 00 00 F4 03 04 00 DE FB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 83 02 00 35 04 06 00 63 00 00 65 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:47]Read from MH i2c: E2 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 03 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [22:12:47]RAPDU: 90 00 [22:12:47]wFMCommunicate OK [22:12:47]wFMCommunicate request_size=10 [22:12:47]MH_SAM_APDU [22:12:47]CAPDU: 80 0D 02 02 05 BC 4C A1 32 AE [22:12:47]Write to MH i2c: E2 0D 00 3C 17 80 0D 02 02 05 00 BC 4C A1 32 AE 00 00 60 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:47]Read from MH i2c: E2 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 03 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [22:12:47]RAPDU: 90 00 [22:12:47]wFMCommunicate OK [22:12:47]wFMCommunicate request_size=4 [22:12:47]MH_SAM_APDU [22:12:47]CAPDU: 80 0D 03 02 [22:12:47]Write to MH i2c: E2 08 00 3D 17 80 0D 03 02 00 00 00 00 CF [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:47]Read from MH i2c: E2 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 0B 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 0B 00 3D 17 00 15 34 89 38 0D 64 03 22 90 00 70 [22:12:47]RAPDU: 15 34 89 38 0D 64 03 22 90 00 [22:12:47]wFMCommunicate OK [22:12:47]SAM_PROTO_SignData done [22:12:47]FM_MakeSignedData done [22:12:47]CreateOFDProtocolMessage [22:12:47]wFMCommunicate request_size=4 [22:12:47]MH_SAM_APDU [22:12:47]CAPDU: 80 11 00 00 [22:12:47]Write to MH i2c: E2 08 00 3E 17 80 11 00 00 00 00 00 00 CF [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:47]Read from MH i2c: E2 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 17 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: E2 17 00 3E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [22:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:12:47]wFMCommunicate OK [22:12:47]CreateOFDProtocolMessage done [22:12:47]OFDSenderStorePacket 164768 [22:12:47]StoreOFDPacket docnum=164768 [22:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 43 01 07 01 16 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 01 00 00 F4 03 04 00 DE FB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 83 02 00 35 04 06 00 63 BC 4C A1 32 AE 15 34 89 38 0D 64 03 22 [22:12:47]CheckFolder [22:12:47]dirname=/storage/ofd_packets [22:12:47]CheckFolder done [22:12:47]ProducePacketName [22:12:47]name=ofd_packets/00164768 [22:12:47]NVStorageSaveData ofd_packets/00164768 [22:12:47]File name is /storage/ofd_packets/00164768 [22:12:47]Write 301 bytes [22:12:47]NVStorageSaveData done [22:12:47]OFDSenderStorePacket done [22:12:47]KKMCreateOFDPacket done [22:12:47]NVStorageSaveData kkm_last_timestamp [22:12:47]File name is /storage/kkm_last_timestamp [22:12:47]Write 4 bytes [22:12:47]NVStorageSaveData done [22:12:47]OFD Sender: Processing packet 164768 [packets to send 104, broken 103] [22:12:47]ProducePacketName [22:12:47]name=ofd_packets/00164768 [22:12:47]OFD Sender: To server: pG, [22:12:47]CommunicateWithHost lk.salyk.kg:30040 [22:12:47]ConnectInit lk.salyk.kg [22:12:47]ExternCall_PrintAddStr [22:12:47]wPrintStart [22:12:47]Write to MH i2c: 01 00 00 3F 17 56 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 3F 17 00 00 00 00 00 FF 0F 6B [22:12:47]RasterBufferAndPrint [22:12:47]line Счет N : (1)458862 [22:12:47]line ИНН: 02508201610067 [22:12:47]line Контрольно-Кассовый Чек [22:12:47]line ПРОДАЖА [22:12:47]line ТРК (МРК, ГНК) : 12 [22:12:47]line Товар: 2710124130 [22:12:47]line Аи-92-К-5 [22:12:47]line 4.560 * 65.80 [22:12:47]line = 300.05 [22:12:47]line НДС 12% НСП 1% [22:12:47]line > о реализуемом товаре [22:12:47]line ОКРУГЛЕНИЕ: -0.05 [22:12:47]line ИТОГО: 300.00 [22:12:47]line Внесено: 300.00 [22:12:47]line СДАЧА: 0.00 [22:12:47]line НСП 1% : 2.65 [22:12:47]line НДС 12% : 31.86 [22:12:47]line Наличными: 300.00 [22:12:47]line Безнал.: 0.00 [22:12:47]line Место: АЗС № 72 "Партнер Нефть" [22:12:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:12:47]line СНО: Общий режим [22:12:47]line Чек 328 13.07.2024 22:12 [22:12:47]line Смена: 446 ФФД: 1.0 [22:12:47]line ЗНМ: 0300000160 [22:12:47]line РНМ: 0000000000090829 [22:12:47]line Версия ККМ: 001 [22:12:47]line ФМ: 0000000000874718 [22:12:47]line ФД: 164768 [22:12:47]line ФПД: 109660390634158 [22:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164768&fm=109660390634158&tin=02508201610067®Number=0000000000090829&sum=30000 [22:12:47]Connected sock=11 [22:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 written 0, free lines is 4095 [22:12:47]37 31 38 0F 01 00 00 43 01 07 01 16 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 48 01 00 00 F4 03 04 00 DE FB 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 83 02 00 35 04 06 00 63 BC 4C A1 32 AE 15 34 89 38 0D 64 03 22 [22:12:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 06 F3 47 00 03 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 83 02 00 F4 03 04 00 6E A2 92 66 B6 04 01 00 00 F7 9D 94 7E 98 4C 05 66 [22:12:47]CommunicateWithHost err = 0 [22:12:47]CheckOFDResponse [22:12:47]1017 (14) - 77093643461234 [22:12:47]1041 (16) - 0000000000874718 [22:12:47]1040 (4) - 164768 [22:12:47]1012 (4) - 13.07.2024 15:51 [22:12:47]1206 (1) - 0 [22:12:47]OFD Sender: Remove packet 164768 [22:12:47]ProducePacketName [22:12:47]name=ofd_packets/00164768 [22:12:47]NVStorageDeleteData [22:12:47]Write to MH i2c: 01 00 00 69 17 80 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: 01 07 00 69 17 00 00 00 00 00 F7 0C 8A [22:12:47]RasterBufferAndPrint [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]line [22:12:47]written 0, free lines is 3326 [22:12:47]MH_Cut [22:12:47]Write to MH i2c: D1 01 00 70 17 01 59 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 01 00 [22:12:47]MH_I2C_Read... [22:12:47]Read from MH i2c: D1 01 00 70 17 00 58 [22:12:47]Write to MH i2c: 01 00 00 71 17 88 [22:12:47]Write i2c OK [22:12:47]MH_I2C_Read... [22:12:48]OFD Sender: No OFD packet to send [22:12:48]*** Cut start [22:12:48]*** Partial cut [22:12:48]*** CUTSNS_PIN = 1 [22:12:48]*** CUTSNS_PIN = 0 [22:12:48]*** Brake cut motor [22:12:49]Read from MH i2c: 01 [22:12:49]MH_I2C_Read... [22:12:49]*** Stop cut motor [22:12:49]*** Cut end [22:12:49]Read from MH i2c: 01 07 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: 01 07 00 71 17 00 00 00 00 00 FF 0F 9D [22:12:49]process_action close_receipt done [22:12:49]requested_data is exist [22:12:49]produce_requested_data [22:12:49]requested_item fm.sn is exist - process it [22:12:49]wFMCommunicate request_size=4 [22:12:49]MH_SAM_APDU [22:12:49]CAPDU: 80 11 00 00 [22:12:49]Write to MH i2c: E2 08 00 72 17 80 11 00 00 00 00 00 00 03 [22:12:49]Write i2c OK [22:12:49]MH_I2C_Read... [22:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:49]Read from MH i2c: E2 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 17 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 17 00 72 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [22:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:12:49]wFMCommunicate OK [22:12:49]requested_item fd.num is exist - process it [22:12:49]SAM_PROTO_GetFieldsCounters [22:12:49]wFMCommunicate request_size=4 [22:12:49]MH_SAM_APDU [22:12:49]CAPDU: 80 13 00 00 [22:12:49]Write to MH i2c: E2 08 00 73 17 80 13 00 00 00 00 00 00 06 [22:12:49]Write i2c OK [22:12:49]MH_I2C_Read... [22:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:49]Read from MH i2c: E2 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 62 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 62 00 73 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:12: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:49]wFMCommunicate OK [22:12:49]SAM_PROTO_GetFieldsCounters done [22:12:49]requested_item shift.num is exist - process it [22:12:49]requested_item shift.opened is exist - process it [22:12:49]req_shift_opened [22:12:49]FM_GetShiftState [22:12:49]SAM_PROTO_GetShiftState [22:12:49]wFMCommunicate request_size=4 [22:12:49]MH_SAM_APDU [22:12:49]CAPDU: 80 13 01 00 [22:12:49]Write to MH i2c: E2 08 00 74 17 80 13 01 00 00 00 00 00 08 [22:12:49]Write i2c OK [22:12:49]MH_I2C_Read... [22:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:49]Read from MH i2c: E2 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 0E 00 [22:12:49]MH_I2C_Read... [22:12:49]Read from MH i2c: E2 0E 00 74 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 E9 [22:12:49]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:12:49]wFMCommunicate OK [22:12:49]SAM_PROTO_GetShiftState done [22:12:49]FM_GetShiftState done [22:12:49]req_shift_opened done [22:12:49]requested_item shift.open_date is exist - process it [22:12:49]req_shift_open_date [22:12:49]req_shift_open_date done [22:12:49]produce_requested_data done [22:12:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164768,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:12:49]process_action_free close_receipt [22:12:49]json_value_free [22:12:49]json_value_free done [22:12:49]process_json_proto returns [22:12:49]Send response to host [22:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164768,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:12:49]free response buf [22:12:49]execute_script done [22:12:49]execute_script returns [22:12:49]free content buf [22:12:49]Sock 9.Close socket [22:12:49]Sock 9.Thread stoped [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:51]accept exits with 7 [22:13:51]New connection [22:13:51]New thread 3067104612 created [22:13:51]Thread 3067247972 joined [22:13:51]Waiting for new connection... [22:13:51] Sock 7.Parse request [22:13:51]Sock 7.Check first char [22:13:51]Sock 7.First char is OK [22:13:51]request: POST /json_proto HTTP/1.0 [22:13:51]Method: POST [22:13:51]URL: /json_proto [22:13:51]Method is POST - this is cgi request [22:13:51]url: /json_proto [22:13:51]query_string will be loaded in cgi processing [22:13:51]execute_cgi json_proto POST (null) [22:13:51]execute_cgi path=json_proto method=POST [22:13:51]POST find Content-Length [22:13:51]Host: 172.17.56.4:8080 [22:13:51]Content-Length: 790 [22:13:51]Content-Type: application/json [22:13:51] [22:13:51]POST finish read [22:13:51]Found Content-Length = 790 [22:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]execute_script... [22:13: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)458863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]POST & json_proto [22:13:51]process_json_proto [22:13:51]json parsed OK: [22:13:51]protocol is kg_v1.0 [22:13:51]action value=close_receipt [22:13:51]process_action close_receipt [22:13:51]cmd_close_receipt [22:13:51]MH_GetDate [22:13:51]Write to MH i2c: F0 00 00 75 17 7B [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 75 17 00 20 FC 92 66 C9 DC B2 64 53 [22:13:51]GetLastDocTimeStamp 1720908766 [22:13:51]current date 1720908832 [22:13:51]FM_GetShiftState [22:13:51]SAM_PROTO_GetShiftState [22:13:51]wFMCommunicate request_size=4 [22:13:51]MH_SAM_APDU [22:13:51]CAPDU: 80 13 01 00 [22:13:51]Write to MH i2c: E2 08 00 76 17 80 13 01 00 00 00 00 00 0A [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:51]Read from MH i2c: E2 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 76 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 EB [22:13:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:13:51]wFMCommunicate OK [22:13:51]SAM_PROTO_GetShiftState done [22:13:51]FM_GetShiftState done [22:13:51]opened in 1720831249 [22:13:51]opened+sec_in_day 1720917649 [22:13:51]quantity*price = 50023 [22:13:51]sum+1 = 50025 [22:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 329 13.07.2024 22:13 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164769 ФПД: 57353583027289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221352&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164769&fm=57353583027289&tin=02508201610067®Number=0000000000090829&sum=50024 [22:13:52]StoreToDocumentArchive [22:13:52]shift 446 fd 164769 [22:13:52]save to /storage/0446/doc_00164769 [22:13:52]save last doc name /storage/0446/doc_00164769 to /storage/kkm_last_doc_name [22:13:52]save OK [22:13:52]Clear old archive folders... [22:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:52]tlvbuf is 01E6FC20 [22:13:52]SAM_PROTO_ClearQueue [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 09 00 00 [22:13:52]Write to MH i2c: E2 08 00 83 17 80 09 00 00 00 00 00 00 0C [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]SAM_PROTO_ClearQueue done [22:13:52]KKMCreateOFDPacket [22:13:52]OFDProtocolAddRootSTLVToBuf [22:13:52]FM_MakeSignedData [22:13:52]FM_MakeSignedData [22:13:52]SAM_PROTO_SignData [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 01 02 [22:13:52]Write to MH i2c: E2 08 00 84 17 80 0D 01 02 00 00 00 00 14 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=255 [22:13:52]MH_SAM_APDU [22:13: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 20 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 83 02 00 35 04 06 00 34 [22:13:52]Write to MH i2c: E2 02 01 85 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 20 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 83 02 00 35 04 06 00 34 00 00 52 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 85 17 00 90 00 10 [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=10 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 02 02 05 29 AB F1 64 59 [22:13:52]Write to MH i2c: E2 0D 00 86 17 80 0D 02 02 05 00 29 AB F1 64 59 00 00 A3 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 03 02 [22:13:52]Write to MH i2c: E2 08 00 87 17 80 0D 03 02 00 00 00 00 19 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 0B 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 0B 00 87 17 00 69 25 23 DD 9B C6 37 72 90 00 B2 [22:13:53]RAPDU: 69 25 23 DD 9B C6 37 72 90 00 [22:13:53]wFMCommunicate OK [22:13:53]SAM_PROTO_SignData done [22:13:53]FM_MakeSignedData done [22:13:53]CreateOFDProtocolMessage [22:13:53]wFMCommunicate request_size=4 [22:13:53]MH_SAM_APDU [22:13:53]CAPDU: 80 11 00 00 [22:13:53]Write to MH i2c: E2 08 00 88 17 80 11 00 00 00 00 00 00 19 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:53]Read from MH i2c: E2 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 17 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: E2 17 00 88 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [22:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:53]wFMCommunicate OK [22:13:53]CreateOFDProtocolMessage done [22:13:53]OFDSenderStorePacket 164769 [22:13:53]StoreOFDPacket docnum=164769 [22:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 0C 07 01 90 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 20 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 83 02 00 35 04 06 00 34 29 AB F1 64 59 69 25 23 DD 9B C6 37 72 [22:13:53]CheckFolder [22:13:53]dirname=/storage/ofd_packets [22:13:53]CheckFolder done [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00164769 [22:13:53]NVStorageSaveData ofd_packets/00164769 [22:13:53]File name is /storage/ofd_packets/00164769 [22:13:53]Write 301 bytes [22:13:53]NVStorageSaveData done [22:13:53]OFDSenderStorePacket done [22:13:53]KKMCreateOFDPacket done [22:13:53]NVStorageSaveData kkm_last_timestamp [22:13:53]File name is /storage/kkm_last_timestamp [22:13:53]Write 4 bytes [22:13:53]NVStorageSaveData done [22:13:53]ExternCall_PrintAddStr [22:13:53]wPrintStart [22:13:53]Write to MH i2c: 01 00 00 89 17 A0 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [22:13:53]RasterBufferAndPrint [22:13:53]line Счет N : (1)458863 [22:13:53]line ИНН: 02508201610067 [22:13:53]line Контрольно-Кассовый Чек [22:13:53]line ПРОДАЖА [22:13:53]line ТРК (МРК, ГНК) : 22 [22:13:53]line Товар: 2710124130 [22:13:53]line Аи-92-К-5 [22:13:53]line 7.670 * 65.22 [22:13:53]line = 500.24 [22:13:53]line НДС 12% НСП 1% [22:13:53]line > о реализуемом товаре [22:13:53]line ИТОГО: 500.24 [22:13:53]line НСП 1% : 4.43 [22:13:53]line НДС 12% : 53.12 [22:13:53]line Наличными: 0.00 [22:13:53]line Безнал.: 500.24 [22:13:53]line Место: АЗС № 72 "Партнер Нефть" [22:13:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:13:53]line СНО: Общий режим [22:13:53]line Чек 329 13.07.2024 22:13 [22:13:53]line Смена: 446 ФФД: 1.0 [22:13:53]line ЗНМ: 0300000160 [22:13:53]line РНМ: 0000000000090829 [22:13:53]line Версия ККМ: 001 [22:13:53]line Платежная система: KICB Банк [22:13:53]line ФМ: 0000000000874718 [22:13:53]line ФД: 164769 [22:13:53]line ФПД: 57353583027289 [22:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221352&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164769&fm=57353583027289&tin=02508201610067®Number=0000000000090829&sum=50024 [22:13:53]OFD Sender: Processing packet 164769 [packets to send 104, broken 103] [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00164769 [22:13:53]OFD Sender: To server: pG, [22:13:53]CommunicateWithHost lk.salyk.kg:30040 [22:13:53]ConnectInit lk.salyk.kg [22:13:53]written 0, free lines is 4095 [22:13:53]Connected sock=10 [22:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 0C 07 01 90 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 20 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 83 02 00 35 04 06 00 34 29 AB F1 64 59 69 25 23 DD 9B C6 37 72 [22:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F3 12 47 00 27 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 34 37 31 38 10 04 04 00 A1 83 02 00 F4 03 04 00 B0 A2 92 66 B6 04 01 00 00 1B 4A 77 8F 18 B8 2B B2 [22:13:53]CommunicateWithHost err = 0 [22:13:53]CheckOFDResponse [22:13:53]1017 (14) - 77093643461234 [22:13:53]1041 (16) - 0000000000874718 [22:13:53]1040 (4) - 164769 [22:13:53]1012 (4) - 13.07.2024 15:52 [22:13:53]1206 (1) - 0 [22:13:53]OFD Sender: Remove packet 164769 [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00164769 [22:13:53]NVStorageDeleteData [22:13:53]Write to MH i2c: 01 00 00 B2 17 C9 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 08 0D E5 [22:13:53]RasterBufferAndPrint [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]written 0, free lines is 3342 [22:13:53]MH_Cut [22:13:53]Write to MH i2c: D1 01 00 B9 17 01 A2 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 01 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 01 00 B9 17 00 A1 [22:13:53]Write to MH i2c: 01 00 00 BA 17 D1 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:54]OFD Sender: No OFD packet to send [22:13:54]*** Cut start [22:13:54]*** Partial cut [22:13:54]*** CUTSNS_PIN = 1 [22:13:54]*** CUTSNS_PIN = 0 [22:13:54]*** Brake cut motor [22:13:55]Read from MH i2c: 01 [22:13:55]MH_I2C_Read... [22:13:55]*** Stop cut motor [22:13:55]*** Cut end [22:13:55]Read from MH i2c: 01 07 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: 01 07 00 BA 17 00 00 00 00 00 FF 0F E6 [22:13:55]process_action close_receipt done [22:13:55]requested_data is exist [22:13:55]produce_requested_data [22:13:55]requested_item fm.sn is exist - process it [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 11 00 00 [22:13:55]Write to MH i2c: E2 08 00 BB 17 80 11 00 00 00 00 00 00 4C [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 17 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 17 00 BB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [22:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:55]wFMCommunicate OK [22:13:55]requested_item fd.num is exist - process it [22:13:55]SAM_PROTO_GetFieldsCounters [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 13 00 00 [22:13:55]Write to MH i2c: E2 08 00 BC 17 80 13 00 00 00 00 00 00 4F [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 62 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 62 00 BC 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:13: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:55]wFMCommunicate OK [22:13:55]SAM_PROTO_GetFieldsCounters done [22:13:55]requested_item shift.num is exist - process it [22:13:55]requested_item shift.opened is exist - process it [22:13:55]req_shift_opened [22:13:55]FM_GetShiftState [22:13:55]SAM_PROTO_GetShiftState [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 13 01 00 [22:13:55]Write to MH i2c: E2 08 00 BD 17 80 13 01 00 00 00 00 00 51 [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 0E 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 0E 00 BD 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 32 [22:13:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:13:55]wFMCommunicate OK [22:13:55]SAM_PROTO_GetShiftState done [22:13:55]FM_GetShiftState done [22:13:55]req_shift_opened done [22:13:55]requested_item shift.open_date is exist - process it [22:13:55]req_shift_open_date [22:13:55]req_shift_open_date done [22:13:55]produce_requested_data done [22:13:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164769,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:13:55]process_action_free close_receipt [22:13:55]json_value_free [22:13:55]json_value_free done [22:13:55]process_json_proto returns [22:13:55]Send response to host [22:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164769,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:13:55]free response buf [22:13:55]execute_script done [22:13:55]execute_script returns [22:13:55]free content buf [22:13:55]Sock 7.Close socket [22:13:55]Sock 7.Thread stoped [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:10]accept exits with 9 [22:15:10]New connection [22:15:10]New thread 3067247972 created [22:15:10]Thread 3067104612 joined [22:15:10]Waiting for new connection... [22:15:10] Sock 9.Parse request [22:15:10]Sock 9.Check first char [22:15:10]Sock 9.First char is OK [22:15:10]request: POST /json_proto HTTP/1.0 [22:15:10]Method: POST [22:15:10]URL: /json_proto [22:15:10]Method is POST - this is cgi request [22:15:10]url: /json_proto [22:15:10]query_string will be loaded in cgi processing [22:15:10]execute_cgi json_proto POST (null) [22:15:10]execute_cgi path=json_proto method=POST [22:15:10]POST find Content-Length [22:15:10]Host: 172.17.56.4:8080 [22:15:10]Content-Length: 677 [22:15:10]Content-Type: application/json [22:15:10] [22:15:10]POST finish read [22:15:10]Found Content-Length = 677 [22:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]execute_script... [22:15: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)458865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]POST & json_proto [22:15:10]process_json_proto [22:15:10]json parsed OK: [22:15:10]protocol is kg_v1.0 [22:15:10]action value=close_receipt [22:15:10]process_action close_receipt [22:15:10]cmd_close_receipt [22:15:10]MH_GetDate [22:15:10]Write to MH i2c: F0 00 00 BE 17 C4 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 BE 17 00 6F FC 92 66 C9 DC B2 64 EB [22:15:10]GetLastDocTimeStamp 1720908832 [22:15:10]current date 1720908911 [22:15:10]FM_GetShiftState [22:15:10]SAM_PROTO_GetShiftState [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 13 01 00 [22:15:10]Write to MH i2c: E2 08 00 BF 17 80 13 01 00 00 00 00 00 53 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 BF 17 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 34 [22:15:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_GetShiftState done [22:15:10]FM_GetShiftState done [22:15:10]opened in 1720831249 [22:15:10]opened+sec_in_day 1720917649 [22:15:10]quantity*price = 33031 [22:15:10]sum+1 = 33033 [22:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 330 13.07.2024 22:15 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164770 ФПД: 183291619863050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221511&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164770&fm=183291619863050&tin=02508201610067®Number=0000000000090829&sum=33000 [22:15:11]StoreToDocumentArchive [22:15:11]shift 446 fd 164770 [22:15:11]save to /storage/0446/doc_00164770 [22:15:11]save last doc name /storage/0446/doc_00164770 to /storage/kkm_last_doc_name [22:15:11]save OK [22:15:11]Clear old archive folders... [22:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:11]tlvbuf is B6F22A60 [22:15:11]SAM_PROTO_ClearQueue [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 09 00 00 [22:15:11]Write to MH i2c: E2 08 00 CC 17 80 09 00 00 00 00 00 00 55 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]SAM_PROTO_ClearQueue done [22:15:11]KKMCreateOFDPacket [22:15:11]OFDProtocolAddRootSTLVToBuf [22:15:11]FM_MakeSignedData [22:15:11]FM_MakeSignedData [22:15:11]SAM_PROTO_SignData [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 01 02 [22:15:11]Write to MH i2c: E2 08 00 CD 17 80 0D 01 02 00 00 00 00 5D [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]wFMCommunicate request_size=255 [22:15:11]MH_SAM_APDU [22:15: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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 6F FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 83 02 00 35 04 06 00 A6 [22:15:11]Write to MH i2c: E2 02 01 CE 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 6F FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 83 02 00 35 04 06 00 A6 00 00 62 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=10 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 02 02 05 B3 E7 E4 6A 0A [22:15:12]Write to MH i2c: E2 0D 00 CF 17 80 0D 02 02 05 00 B3 E7 E4 6A 0A 00 00 5C [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 03 02 [22:15:12]Write to MH i2c: E2 08 00 D0 17 80 0D 03 02 00 00 00 00 62 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 D0 17 00 B4 84 40 3D C2 BE 97 D5 90 00 04 [22:15:12]RAPDU: B4 84 40 3D C2 BE 97 D5 90 00 [22:15:12]wFMCommunicate OK [22:15:12]SAM_PROTO_SignData done [22:15:12]FM_MakeSignedData done [22:15:12]CreateOFDProtocolMessage [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 11 00 00 [22:15:12]Write to MH i2c: E2 08 00 D1 17 80 11 00 00 00 00 00 00 62 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 D1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [22:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:12]wFMCommunicate OK [22:15:12]CreateOFDProtocolMessage done [22:15:12]OFDSenderStorePacket 164770 [22:15:12]StoreOFDPacket docnum=164770 [22:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 06 07 01 4C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 6F FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 83 02 00 35 04 06 00 A6 B3 E7 E4 6A 0A B4 84 40 3D C2 BE 97 D5 [22:15:12]CheckFolder [22:15:12]dirname=/storage/ofd_packets [22:15:12]CheckFolder done [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00164770 [22:15:12]NVStorageSaveData ofd_packets/00164770 [22:15:12]File name is /storage/ofd_packets/00164770 [22:15:12]Write 301 bytes [22:15:12]NVStorageSaveData done [22:15:12]OFDSenderStorePacket done [22:15:12]KKMCreateOFDPacket done [22:15:12]NVStorageSaveData kkm_last_timestamp [22:15:12]File name is /storage/kkm_last_timestamp [22:15:12]Write 4 bytes [22:15:12]NVStorageSaveData done [22:15:12]ExternCall_PrintAddStr [22:15:12]wPrintStart [22:15:12]Write to MH i2c: 01 00 00 D2 17 E9 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 FF 0F FE [22:15:12]RasterBufferAndPrint [22:15:12]line Счет N : (1)458865 [22:15:12]line ИНН: 02508201610067 [22:15:12]line Контрольно-Кассовый Чек [22:15:12]line ПРОДАЖА [22:15:12]line ТРК (МРК, ГНК) : 22 [22:15:12]line Товар: 2710124130 [22:15:12]line Аи-92-К-5 [22:15:12]line 5.020 * 65.80 [22:15:12]line = 330.32 [22:15:12]line НДС 12% НСП 1% [22:15:12]line > о реализуемом товаре [22:15:12]line ОКРУГЛЕНИЕ: -0.32 [22:15:12]line ИТОГО: 330.00 [22:15:12]line Внесено: 330.00 [22:15:12]line СДАЧА: 0.00 [22:15:12]line НСП 1% : 2.92 [22:15:12]line НДС 12% : 35.08 [22:15:12]line Наличными: 330.00 [22:15:12]line Безнал.: 0.00 [22:15:12]line Место: АЗС № 72 "Партнер Нефть" [22:15:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:15:12]line СНО: Общий режим [22:15:12]line Чек 330 13.07.2024 22:15 [22:15:12]line Смена: 446 ФФД: 1.0 [22:15:12]line ЗНМ: 0300000160 [22:15:12]line РНМ: 0000000000090829 [22:15:12]line Версия ККМ: 001 [22:15:12]line ФМ: 0000000000874718 [22:15:12]line ФД: 164770 [22:15:12]line ФПД: 183291619863050 [22:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221511&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164770&fm=183291619863050&tin=02508201610067®Number=0000000000090829&sum=33000 [22:15:12]OFD Sender: Processing packet 164770 [packets to send 104, broken 103] [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00164770 [22:15:12]OFD Sender: To server: pG, [22:15:12]CommunicateWithHost lk.salyk.kg:30040 [22:15:12]ConnectInit lk.salyk.kg [22:15:12]written 0, free lines is 4095 [22:15:12]Connected sock=10 [22:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 06 07 01 4C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 6F FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 83 02 00 35 04 06 00 A6 B3 E7 E4 6A 0A B4 84 40 3D C2 BE 97 D5 [22:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 83 98 47 00 DB 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 83 02 00 F4 03 04 00 FF A2 92 66 B6 04 01 00 00 F7 10 5E 76 12 CD 09 21 [22:15:12]CommunicateWithHost err = 0 [22:15:12]CheckOFDResponse [22:15:12]1017 (14) - 77093643461234 [22:15:12]1041 (16) - 0000000000874718 [22:15:12]1040 (4) - 164770 [22:15:12]1012 (4) - 13.07.2024 15:53 [22:15:12]1206 (1) - 0 [22:15:12]OFD Sender: Remove packet 164770 [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00164770 [22:15:12]NVStorageDeleteData [22:15:13]Write to MH i2c: 01 00 00 FC 17 13 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FB 0C 21 [22:15:13]RasterBufferAndPrint [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]written 0, free lines is 3329 [22:15:13]MH_Cut [22:15:13]Write to MH i2c: D1 01 00 03 18 01 ED [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 03 18 00 EC [22:15:13]Write to MH i2c: 01 00 00 04 18 1C [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]OFD Sender: No OFD packet to send [22:15:13]*** Cut start [22:15:13]*** Partial cut [22:15:13]*** CUTSNS_PIN = 1 [22:15:13]*** CUTSNS_PIN = 0 [22:15:13]*** Brake cut motor [22:15:14]Read from MH i2c: 01 [22:15:14]MH_I2C_Read... [22:15:14]*** Stop cut motor [22:15:14]*** Cut end [22:15:14]Read from MH i2c: 01 07 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: 01 07 00 04 18 00 00 00 00 00 FF 0F 31 [22:15:14]process_action close_receipt done [22:15:14]requested_data is exist [22:15:14]produce_requested_data [22:15:14]requested_item fm.sn is exist - process it [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 11 00 00 [22:15:14]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 05 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [22:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:14]wFMCommunicate OK [22:15:14]requested_item fd.num is exist - process it [22:15:14]SAM_PROTO_GetFieldsCounters [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 00 00 [22:15:14]Write to MH i2c: E2 08 00 06 18 80 13 00 00 00 00 00 00 9A [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 06 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetFieldsCounters done [22:15:14]requested_item shift.num is exist - process it [22:15:14]requested_item shift.opened is exist - process it [22:15:14]req_shift_opened [22:15:14]FM_GetShiftState [22:15:14]SAM_PROTO_GetShiftState [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 01 00 [22:15:14]Write to MH i2c: E2 08 00 07 18 80 13 01 00 00 00 00 00 9C [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 07 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7D [22:15:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetShiftState done [22:15:14]FM_GetShiftState done [22:15:14]req_shift_opened done [22:15:14]requested_item shift.open_date is exist - process it [22:15:14]req_shift_open_date [22:15:14]req_shift_open_date done [22:15:14]produce_requested_data done [22:15:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164770,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:15:14]process_action_free close_receipt [22:15:14]json_value_free [22:15:14]json_value_free done [22:15:14]process_json_proto returns [22:15:14]Send response to host [22:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164770,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:15:14]free response buf [22:15:14]execute_script done [22:15:14]execute_script returns [22:15:14]free content buf [22:15:14]Sock 9.Close socket [22:15:14]Sock 9.Thread stoped [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:24]accept exits with 7 [22:15:24]New connection [22:15:24]New thread 3067104612 created [22:15:24]Thread 3067247972 joined [22:15:24]Waiting for new connection... [22:15:24] Sock 7.Parse request [22:15:24]Sock 7.Check first char [22:15:24]Sock 7.First char is OK [22:15:24]request: POST /json_proto HTTP/1.0 [22:15:24]Method: POST [22:15:24]URL: /json_proto [22:15:24]Method is POST - this is cgi request [22:15:24]url: /json_proto [22:15:24]query_string will be loaded in cgi processing [22:15:24]execute_cgi json_proto POST (null) [22:15:24]execute_cgi path=json_proto method=POST [22:15:24]POST find Content-Length [22:15:24]Host: 172.17.56.4:8080 [22:15:24]Content-Length: 678 [22:15:24]Content-Type: application/json [22:15:24] [22:15:24]POST finish read [22:15:24]Found Content-Length = 678 [22:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [22:15:24]execute_script... [22:15: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)458864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [22:15:24]POST & json_proto [22:15:24]process_json_proto [22:15:24]json parsed OK: [22:15:24]protocol is kg_v1.0 [22:15:24]action value=close_receipt [22:15:24]process_action close_receipt [22:15:24]cmd_close_receipt [22:15:24]MH_GetDate [22:15:24]Write to MH i2c: F0 00 00 08 18 0F [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 09 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: F0 09 00 08 18 00 7D FC 92 66 C9 DC B2 64 44 [22:15:24]GetLastDocTimeStamp 1720908911 [22:15:24]current date 1720908925 [22:15:24]FM_GetShiftState [22:15:24]SAM_PROTO_GetShiftState [22:15:24]wFMCommunicate request_size=4 [22:15:24]MH_SAM_APDU [22:15:24]CAPDU: 80 13 01 00 [22:15:24]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [22:15:24]Write i2c OK [22:15:24]MH_I2C_Read... [22:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:24]Read from MH i2c: E2 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: E2 0E 00 [22:15:24]MH_I2C_Read... [22:15:24]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 7F [22:15:24]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:15:24]wFMCommunicate OK [22:15:24]SAM_PROTO_GetShiftState done [22:15:24]FM_GetShiftState done [22:15:24]opened in 1720831249 [22:15:24]opened+sec_in_day 1720917649 [22:15:24]quantity*price = 70011 [22:15:24]sum+1 = 70012 [22:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 331 13.07.2024 22:15 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164771 ФПД: 25003080213972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164771&fm=25003080213972&tin=02508201610067®Number=0000000000090829&sum=70000 [22:15:25]StoreToDocumentArchive [22:15:25]shift 446 fd 164771 [22:15:25]save to /storage/0446/doc_00164771 [22:15:25]save last doc name /storage/0446/doc_00164771 to /storage/kkm_last_doc_name [22:15:25]save OK [22:15:25]Clear old archive folders... [22:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:25]tlvbuf is B6F09440 [22:15:25]SAM_PROTO_ClearQueue [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 09 00 00 [22:15:25]Write to MH i2c: E2 08 00 16 18 80 09 00 00 00 00 00 00 A0 [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [22:15:25]RAPDU: 90 00 [22:15:25]wFMCommunicate OK [22:15:25]SAM_PROTO_ClearQueue done [22:15:25]KKMCreateOFDPacket [22:15:25]OFDProtocolAddRootSTLVToBuf [22:15:25]FM_MakeSignedData [22:15:25]FM_MakeSignedData [22:15:25]SAM_PROTO_SignData [22:15:25]wFMCommunicate request_size=4 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 0D 01 02 [22:15:25]Write to MH i2c: E2 08 00 17 18 80 0D 01 02 00 00 00 00 A8 [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [22:15:25]RAPDU: 90 00 [22:15:25]wFMCommunicate OK [22:15:25]wFMCommunicate request_size=255 [22:15:25]MH_SAM_APDU [22:15: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 4B 01 00 00 F4 03 04 00 7D FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 83 02 00 35 04 06 00 16 [22:15:25]Write to MH i2c: E2 02 01 18 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 4B 01 00 00 F4 03 04 00 7D FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 83 02 00 35 04 06 00 16 00 00 1F [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:25]Read from MH i2c: E2 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 [22:15:25]MH_I2C_Read... [22:15:25]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [22:15:25]RAPDU: 90 00 [22:15:25]wFMCommunicate OK [22:15:25]wFMCommunicate request_size=10 [22:15:25]MH_SAM_APDU [22:15:25]CAPDU: 80 0D 02 02 05 BD 7B B6 E5 D4 [22:15:25]Write to MH i2c: E2 0D 00 19 18 80 0D 02 02 05 00 BD 7B B6 E5 D4 00 00 5C [22:15:25]Write i2c OK [22:15:25]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [22:15:26]RAPDU: 90 00 [22:15:26]wFMCommunicate OK [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 0D 03 02 [22:15:26]Write to MH i2c: E2 08 00 1A 18 80 0D 03 02 00 00 00 00 AD [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0B 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0B 00 1A 18 00 E2 1F BC CF 61 40 26 01 90 00 02 [22:15:26]RAPDU: E2 1F BC CF 61 40 26 01 90 00 [22:15:26]wFMCommunicate OK [22:15:26]SAM_PROTO_SignData done [22:15:26]FM_MakeSignedData done [22:15:26]CreateOFDProtocolMessage [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 11 00 00 [22:15:26]Write to MH i2c: E2 08 00 1B 18 80 11 00 00 00 00 00 00 AD [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 17 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 17 00 1B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [22:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:26]wFMCommunicate OK [22:15:26]CreateOFDProtocolMessage done [22:15:26]OFDSenderStorePacket 164771 [22:15:26]StoreOFDPacket docnum=164771 [22:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 48 6F 07 01 2F 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 4B 01 00 00 F4 03 04 00 7D FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 83 02 00 35 04 06 00 16 BD 7B B6 E5 D4 E2 1F BC CF 61 40 26 01 [22:15:26]CheckFolder [22:15:26]dirname=/storage/ofd_packets [22:15:26]CheckFolder done [22:15:26]ProducePacketName [22:15:26]name=ofd_packets/00164771 [22:15:26]NVStorageSaveData ofd_packets/00164771 [22:15:26]File name is /storage/ofd_packets/00164771 [22:15:26]Write 301 bytes [22:15:26]NVStorageSaveData done [22:15:26]OFDSenderStorePacket done [22:15:26]KKMCreateOFDPacket done [22:15:26]NVStorageSaveData kkm_last_timestamp [22:15:26]File name is /storage/kkm_last_timestamp [22:15:26]Write 4 bytes [22:15:26]NVStorageSaveData done [22:15:26]ExternCall_PrintAddStr [22:15:26]wPrintStart [22:15:26]Write to MH i2c: 01 00 00 1C 18 34 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 FF 0F 49 [22:15:26]RasterBufferAndPrint [22:15:26]line Счет N : (1)458864 [22:15:26]line ИНН: 02508201610067 [22:15:26]line Контрольно-Кассовый Чек [22:15:26]line ПРОДАЖА [22:15:26]line ТРК (МРК, ГНК) : 12 [22:15:26]line Товар: 2710124130 [22:15:26]line Аи-92-К-5 [22:15:26]line 10.640 * 65.80 [22:15:26]line = 700.11 [22:15:26]line НДС 12% НСП 1% [22:15:26]line > о реализуемом товаре [22:15:26]line ОКРУГЛЕНИЕ: -0.11 [22:15:26]line ИТОГО: 700.00 [22:15:26]line Внесено: 700.00 [22:15:26]line СДАЧА: 0.00 [22:15:26]line НСП 1% : 6.20 [22:15:26]line НДС 12% : 74.35 [22:15:26]line Наличными: 700.00 [22:15:26]line Безнал.: 0.00 [22:15:26]line Место: АЗС № 72 "Партнер Нефть" [22:15:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:15:26]line СНО: Общий режим [22:15:26]line Чек 331 13.07.2024 22:15 [22:15:26]line Смена: 446 ФФД: 1.0 [22:15:26]line ЗНМ: 0300000160 [22:15:26]line РНМ: 0000000000090829 [22:15:26]line Версия ККМ: 001 [22:15:26]line ФМ: 0000000000874718 [22:15:26]line ФД: 164771 [22:15:26]line ФПД: 25003080213972 [22:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164771&fm=25003080213972&tin=02508201610067®Number=0000000000090829&sum=70000 [22:15:26]OFD Sender: Processing packet 164771 [packets to send 104, broken 103] [22:15:26]ProducePacketName [22:15:26]name=ofd_packets/00164771 [22:15:26]OFD Sender: To server: pG, [22:15:26]CommunicateWithHost lk.salyk.kg:30040 [22:15:26]ConnectInit lk.salyk.kg [22:15:26]written 0, free lines is 4095 [22:15:26]Connected sock=10 [22:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 48 6F 07 01 2F 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 4B 01 00 00 F4 03 04 00 7D FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 83 02 00 35 04 06 00 16 BD 7B B6 E5 D4 E2 1F BC CF 61 40 26 01 [22:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 EC 47 00 DF 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 34 37 31 38 10 04 04 00 A3 83 02 00 F4 03 04 00 0D A3 92 66 B6 04 01 00 00 2B 9B 54 05 C6 D0 4B AA [22:15:26]CommunicateWithHost err = 0 [22:15:26]CheckOFDResponse [22:15:26]1017 (14) - 77093643461234 [22:15:26]1041 (16) - 0000000000874718 [22:15:26]1040 (4) - 164771 [22:15:26]1012 (4) - 13.07.2024 15:53 [22:15:26]1206 (1) - 0 [22:15:26]OFD Sender: Remove packet 164771 [22:15:26]ProducePacketName [22:15:26]name=ofd_packets/00164771 [22:15:26]NVStorageDeleteData [22:15:26]Write to MH i2c: 01 00 00 46 18 5E [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 F5 0C 66 [22:15:26]RasterBufferAndPrint [22:15:26]line [22:15:26]line [22:15:26]line [22:15:26]line [22:15:26]line [22:15:26]written 0, free lines is 3323 [22:15:26]MH_Cut [22:15:26]Write to MH i2c: D1 01 00 4D 18 01 37 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: D1 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: D1 01 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: D1 01 00 4D 18 00 36 [22:15:26]Write to MH i2c: 01 00 00 4E 18 66 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:27]OFD Sender: No OFD packet to send [22:15:27]*** Cut start [22:15:27]*** Partial cut [22:15:27]*** CUTSNS_PIN = 1 [22:15:27]*** CUTSNS_PIN = 0 [22:15:27]*** Brake cut motor [22:15:28]Read from MH i2c: 01 [22:15:28]MH_I2C_Read... [22:15:28]*** Stop cut motor [22:15:28]*** Cut end [22:15:28]Read from MH i2c: 01 07 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [22:15:28]process_action close_receipt done [22:15:28]requested_data is exist [22:15:28]produce_requested_data [22:15:28]requested_item fm.sn is exist - process it [22:15:28]wFMCommunicate request_size=4 [22:15:28]MH_SAM_APDU [22:15:28]CAPDU: 80 11 00 00 [22:15:28]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:28]Read from MH i2c: E2 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 17 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [22:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:28]wFMCommunicate OK [22:15:28]requested_item fd.num is exist - process it [22:15:28]SAM_PROTO_GetFieldsCounters [22:15:28]wFMCommunicate request_size=4 [22:15:28]MH_SAM_APDU [22:15:28]CAPDU: 80 13 00 00 [22:15:28]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:28]Read from MH i2c: E2 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 62 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 62 00 50 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:15: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:28]wFMCommunicate OK [22:15:28]SAM_PROTO_GetFieldsCounters done [22:15:28]requested_item shift.num is exist - process it [22:15:28]requested_item shift.opened is exist - process it [22:15:28]req_shift_opened [22:15:28]FM_GetShiftState [22:15:28]SAM_PROTO_GetShiftState [22:15:28]wFMCommunicate request_size=4 [22:15:28]MH_SAM_APDU [22:15:28]CAPDU: 80 13 01 00 [22:15:28]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:28]Read from MH i2c: E2 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 0E 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C7 [22:15:28]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:15:28]wFMCommunicate OK [22:15:28]SAM_PROTO_GetShiftState done [22:15:28]FM_GetShiftState done [22:15:28]req_shift_opened done [22:15:28]requested_item shift.open_date is exist - process it [22:15:28]req_shift_open_date [22:15:28]req_shift_open_date done [22:15:28]produce_requested_data done [22:15:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164771,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:15:28]process_action_free close_receipt [22:15:28]json_value_free [22:15:28]json_value_free done [22:15:28]process_json_proto returns [22:15:28]Send response to host [22:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164771,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:15:28]free response buf [22:15:28]execute_script done [22:15:28]execute_script returns [22:15:28]free content buf [22:15:28]Sock 7.Close socket [22:15:28]Sock 7.Thread stoped [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:00]accept exits with 9 [22:16:00]New connection [22:16:00]New thread 3067247972 created [22:16:00]Thread 3067104612 joined [22:16:00]Waiting for new connection... [22:16:00] Sock 9.Parse request [22:16:00]Sock 9.Check first char [22:16:00]Sock 9.First char is OK [22:16:00]request: POST /json_proto HTTP/1.0 [22:16:00]Method: POST [22:16:00]URL: /json_proto [22:16:00]Method is POST - this is cgi request [22:16:00]url: /json_proto [22:16:00]query_string will be loaded in cgi processing [22:16:00]execute_cgi json_proto POST (null) [22:16:00]execute_cgi path=json_proto method=POST [22:16:00]POST find Content-Length [22:16:00]Host: 172.17.56.4:8080 [22:16:00]Content-Length: 677 [22:16:00]Content-Type: application/json [22:16:00] [22:16:00]POST finish read [22:16:00]Found Content-Length = 677 [22:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:00]execute_script... [22:16: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)458866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:00]POST & json_proto [22:16:00]process_json_proto [22:16:00]json parsed OK: [22:16:00]protocol is kg_v1.0 [22:16:00]action value=close_receipt [22:16:00]process_action close_receipt [22:16:00]cmd_close_receipt [22:16:00]MH_GetDate [22:16:00]Write to MH i2c: F0 00 00 52 18 59 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: F0 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: F0 09 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: F0 09 00 52 18 00 A1 FC 92 66 C9 DC B2 64 B2 [22:16:00]GetLastDocTimeStamp 1720908925 [22:16:00]current date 1720908961 [22:16:00]FM_GetShiftState [22:16:00]SAM_PROTO_GetShiftState [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 13 01 00 [22:16:00]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [22:16:00]Write i2c OK [22:16:00]MH_I2C_Read... [22:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:00]Read from MH i2c: E2 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 0E 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 C9 [22:16:00]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:16:00]wFMCommunicate OK [22:16:00]SAM_PROTO_GetShiftState done [22:16:00]FM_GetShiftState done [22:16:00]opened in 1720831249 [22:16:00]opened+sec_in_day 1720917649 [22:16:00]quantity*price = 20003 [22:16:00]sum+1 = 20004 [22:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 332 13.07.2024 22:16 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164772 ФПД: 23300629282024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221601&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164772&fm=23300629282024&tin=02508201610067®Number=0000000000090829&sum=20000 [22:16:01]StoreToDocumentArchive [22:16:01]shift 446 fd 164772 [22:16:01]save to /storage/0446/doc_00164772 [22:16:01]save last doc name /storage/0446/doc_00164772 to /storage/kkm_last_doc_name [22:16:01]save OK [22:16:01]Clear old archive folders... [22:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:01]tlvbuf is B6F09440 [22:16:01]SAM_PROTO_ClearQueue [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 09 00 00 [22:16:01]Write to MH i2c: E2 08 00 60 18 80 09 00 00 00 00 00 00 EA [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]SAM_PROTO_ClearQueue done [22:16:01]KKMCreateOFDPacket [22:16:01]OFDProtocolAddRootSTLVToBuf [22:16:01]FM_MakeSignedData [22:16:01]FM_MakeSignedData [22:16:01]SAM_PROTO_SignData [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 0D 01 02 [22:16:01]Write to MH i2c: E2 08 00 61 18 80 0D 01 02 00 00 00 00 F2 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=255 [22:16:01]MH_SAM_APDU [22:16: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 A1 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 83 02 00 35 04 06 00 15 [22:16:01]Write to MH i2c: E2 02 01 62 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 A1 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 83 02 00 35 04 06 00 15 00 00 EB [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=10 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 0D 02 02 05 31 19 BB 3C E8 [22:16:01]Write to MH i2c: E2 0D 00 63 18 80 0D 02 02 05 00 31 19 BB 3C E8 00 00 28 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [22:16:01]RAPDU: 90 00 [22:16:01]wFMCommunicate OK [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 0D 03 02 [22:16:01]Write to MH i2c: E2 08 00 64 18 80 0D 03 02 00 00 00 00 F7 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0B 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0B 00 64 18 00 4D B6 C8 F2 16 4A 07 2E 90 00 4A [22:16:01]RAPDU: 4D B6 C8 F2 16 4A 07 2E 90 00 [22:16:01]wFMCommunicate OK [22:16:01]SAM_PROTO_SignData done [22:16:01]FM_MakeSignedData done [22:16:01]CreateOFDProtocolMessage [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 11 00 00 [22:16:01]Write to MH i2c: E2 08 00 65 18 80 11 00 00 00 00 00 00 F7 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 65 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [22:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:16:01]wFMCommunicate OK [22:16:01]CreateOFDProtocolMessage done [22:16:01]OFDSenderStorePacket 164772 [22:16:01]StoreOFDPacket docnum=164772 [22:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 B7 07 01 1D 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 A1 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 83 02 00 35 04 06 00 15 31 19 BB 3C E8 4D B6 C8 F2 16 4A 07 2E [22:16:01]CheckFolder [22:16:01]dirname=/storage/ofd_packets [22:16:01]CheckFolder done [22:16:01]ProducePacketName [22:16:01]name=ofd_packets/00164772 [22:16:01]NVStorageSaveData ofd_packets/00164772 [22:16:01]File name is /storage/ofd_packets/00164772 [22:16:01]Write 301 bytes [22:16:01]NVStorageSaveData done [22:16:01]OFDSenderStorePacket done [22:16:01]KKMCreateOFDPacket done [22:16:01]NVStorageSaveData kkm_last_timestamp [22:16:01]File name is /storage/kkm_last_timestamp [22:16:01]Write 4 bytes [22:16:01]NVStorageSaveData done [22:16:01]ExternCall_PrintAddStr [22:16:01]wPrintStart [22:16:01]Write to MH i2c: 01 00 00 66 18 7E [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 FF 0F 93 [22:16:01]RasterBufferAndPrint [22:16:01]line Счет N : (1)458866 [22:16:01]line ИНН: 02508201610067 [22:16:01]line Контрольно-Кассовый Чек [22:16:01]line ПРОДАЖА [22:16:01]line ТРК (МРК, ГНК) : 12 [22:16:01]line Товар: 2710124130 [22:16:01]line Аи-92-К-5 [22:16:01]line 3.040 * 65.80 [22:16:01]line = 200.03 [22:16:01]line НДС 12% НСП 1% [22:16:01]line > о реализуемом товаре [22:16:01]line ОКРУГЛЕНИЕ: -0.03 [22:16:01]line ИТОГО: 200.00 [22:16:01]line Внесено: 200.00 [22:16:01]line СДАЧА: 0.00 [22:16:01]line НСП 1% : 1.77 [22:16:01]line НДС 12% : 21.24 [22:16:01]line Наличными: 200.00 [22:16:01]line Безнал.: 0.00 [22:16:01]line Место: АЗС № 72 "Партнер Нефть" [22:16:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:16:01]line СНО: Общий режим [22:16:01]line Чек 332 13.07.2024 22:16 [22:16:01]line Смена: 446 ФФД: 1.0 [22:16:01]line ЗНМ: 0300000160 [22:16:01]line РНМ: 0000000000090829 [22:16:01]line Версия ККМ: 001 [22:16:01]line ФМ: 0000000000874718 [22:16:01]line ФД: 164772 [22:16:01]line ФПД: 23300629282024 [22:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221601&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164772&fm=23300629282024&tin=02508201610067®Number=0000000000090829&sum=20000 [22:16:02]written 0, free lines is 4095 [22:16:02]OFD Sender: Processing packet 164772 [packets to send 104, broken 103] [22:16:02]ProducePacketName [22:16:02]name=ofd_packets/00164772 [22:16:02]OFD Sender: To server: pG, [22:16:02]CommunicateWithHost lk.salyk.kg:30040 [22:16:02]ConnectInit lk.salyk.kg [22:16:02]Connected sock=10 [22:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 B7 07 01 1D 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 A1 FC 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 83 02 00 35 04 06 00 15 31 19 BB 3C E8 4D B6 C8 F2 16 4A 07 2E [22:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 33 35 47 00 CA 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 83 02 00 F4 03 04 00 31 A3 92 66 B6 04 01 00 00 3F CB 55 F4 5A 32 39 85 [22:16:02]CommunicateWithHost err = 0 [22:16:02]CheckOFDResponse [22:16:02]1017 (14) - 77093643461234 [22:16:02]1041 (16) - 0000000000874718 [22:16:02]1040 (4) - 164772 [22:16:02]1012 (4) - 13.07.2024 15:54 [22:16:02]1206 (1) - 0 [22:16:02]OFD Sender: Remove packet 164772 [22:16:02]ProducePacketName [22:16:02]name=ofd_packets/00164772 [22:16:02]NVStorageDeleteData [22:16:02]Write to MH i2c: 01 00 00 90 18 A8 [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: 01 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: 01 07 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 F3 0C AE [22:16:02]RasterBufferAndPrint [22:16:02]line [22:16:02]line [22:16:02]line [22:16:02]line [22:16:02]line [22:16:02]written 0, free lines is 3322 [22:16:02]MH_Cut [22:16:02]Write to MH i2c: D1 01 00 97 18 01 81 [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: D1 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: D1 01 00 [22:16:02]MH_I2C_Read... [22:16:02]Read from MH i2c: D1 01 00 97 18 00 80 [22:16:02]Write to MH i2c: 01 00 00 98 18 B0 [22:16:02]Write i2c OK [22:16:02]MH_I2C_Read... [22:16:02]OFD Sender: No OFD packet to send [22:16:03]*** Cut start [22:16:03]*** Partial cut [22:16:03]*** CUTSNS_PIN = 1 [22:16:03]*** CUTSNS_PIN = 0 [22:16:03]*** Brake cut motor [22:16:03]Read from MH i2c: 01 [22:16:03]MH_I2C_Read... [22:16:03]*** Stop cut motor [22:16:03]*** Cut end [22:16:03]Read from MH i2c: 01 07 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [22:16:03]process_action close_receipt done [22:16:03]requested_data is exist [22:16:03]produce_requested_data [22:16:03]requested_item fm.sn is exist - process it [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 11 00 00 [22:16:03]Write to MH i2c: E2 08 00 99 18 80 11 00 00 00 00 00 00 2B [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:03]Read from MH i2c: E2 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 17 00 [22:16:03]MH_I2C_Read... [22:16:03]Read from MH i2c: E2 17 00 99 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [22:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:16:03]wFMCommunicate OK [22:16:03]requested_item fd.num is exist - process it [22:16:03]SAM_PROTO_GetFieldsCounters [22:16:03]wFMCommunicate request_size=4 [22:16:03]MH_SAM_APDU [22:16:03]CAPDU: 80 13 00 00 [22:16:03]Write to MH i2c: E2 08 00 9A 18 80 13 00 00 00 00 00 00 2E [22:16:03]Write i2c OK [22:16:03]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 62 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 62 00 9A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:16: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:04]wFMCommunicate OK [22:16:04]SAM_PROTO_GetFieldsCounters done [22:16:04]requested_item shift.num is exist - process it [22:16:04]requested_item shift.opened is exist - process it [22:16:04]req_shift_opened [22:16:04]FM_GetShiftState [22:16:04]SAM_PROTO_GetShiftState [22:16:04]wFMCommunicate request_size=4 [22:16:04]MH_SAM_APDU [22:16:04]CAPDU: 80 13 01 00 [22:16:04]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [22:16:04]Write i2c OK [22:16:04]MH_I2C_Read... [22:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:04]Read from MH i2c: E2 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0E 00 [22:16:04]MH_I2C_Read... [22:16:04]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 11 [22:16:04]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:16:04]wFMCommunicate OK [22:16:04]SAM_PROTO_GetShiftState done [22:16:04]FM_GetShiftState done [22:16:04]req_shift_opened done [22:16:04]requested_item shift.open_date is exist - process it [22:16:04]req_shift_open_date [22:16:04]req_shift_open_date done [22:16:04]produce_requested_data done [22:16:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164772,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:16:04]process_action_free close_receipt [22:16:04]json_value_free [22:16:04]json_value_free done [22:16:04]process_json_proto returns [22:16:04]Send response to host [22:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164772,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:16:04]free response buf [22:16:04]execute_script done [22:16:04]execute_script returns [22:16:04]free content buf [22:16:04]Sock 9.Close socket [22:16:04]Sock 9.Thread stoped [22:16:07]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:09]accept exits with 7 [22:19:09]New connection [22:19:09]New thread 3067104612 created [22:19:09]Thread 3067247972 joined [22:19:09]Waiting for new connection... [22:19:09] Sock 7.Parse request [22:19:09]Sock 7.Check first char [22:19:09]Sock 7.First char is OK [22:19:09]request: POST /json_proto HTTP/1.0 [22:19:09]Method: POST [22:19:09]URL: /json_proto [22:19:09]Method is POST - this is cgi request [22:19:09]url: /json_proto [22:19:09]query_string will be loaded in cgi processing [22:19:09]execute_cgi json_proto POST (null) [22:19:09]execute_cgi path=json_proto method=POST [22:19:09]POST find Content-Length [22:19:09]Host: 172.17.56.4:8080 [22:19:09]Content-Length: 677 [22:19:09]Content-Type: application/json [22:19:09] [22:19:09]POST finish read [22:19:09]Found Content-Length = 677 [22:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:09]execute_script... [22:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:09]POST & json_proto [22:19:09]process_json_proto [22:19:09]json parsed OK: [22:19:09]protocol is kg_v1.0 [22:19:09]action value=close_receipt [22:19:09]process_action close_receipt [22:19:09]cmd_close_receipt [22:19:09]MH_GetDate [22:19:09]Write to MH i2c: F0 00 00 9C 18 A3 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: F0 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: F0 09 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: F0 09 00 9C 18 00 5F FD 92 66 C9 DC B2 64 BB [22:19:09]GetLastDocTimeStamp 1720908961 [22:19:09]current date 1720909151 [22:19:09]FM_GetShiftState [22:19:09]SAM_PROTO_GetShiftState [22:19:09]wFMCommunicate request_size=4 [22:19:09]MH_SAM_APDU [22:19:09]CAPDU: 80 13 01 00 [22:19:09]Write to MH i2c: E2 08 00 9D 18 80 13 01 00 00 00 00 00 32 [22:19:09]Write i2c OK [22:19:09]MH_I2C_Read... [22:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:09]Read from MH i2c: E2 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 0E 00 [22:19:09]MH_I2C_Read... [22:19:09]Read from MH i2c: E2 0E 00 9D 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 13 [22:19:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:19:09]wFMCommunicate OK [22:19:09]SAM_PROTO_GetShiftState done [22:19:09]FM_GetShiftState done [22:19:09]opened in 1720831249 [22:19:09]opened+sec_in_day 1720917649 [22:19:09]quantity*price = 40006 [22:19:09]sum+1 = 40007 [22:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 333 13.07.2024 22:19 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164773 ФПД: 161909202181685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164773&fm=161909202181685&tin=02508201610067®Number=0000000000090829&sum=40000 [22:19:10]StoreToDocumentArchive [22:19:10]shift 446 fd 164773 [22:19:10]save to /storage/0446/doc_00164773 [22:19:10]save last doc name /storage/0446/doc_00164773 to /storage/kkm_last_doc_name [22:19:10]save OK [22:19:10]Clear old archive folders... [22:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:10]tlvbuf is 01E56AA0 [22:19:10]SAM_PROTO_ClearQueue [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 09 00 00 [22:19:10]Write to MH i2c: E2 08 00 AA 18 80 09 00 00 00 00 00 00 34 [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 03 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [22:19:10]RAPDU: 90 00 [22:19:10]wFMCommunicate OK [22:19:10]SAM_PROTO_ClearQueue done [22:19:10]KKMCreateOFDPacket [22:19:10]OFDProtocolAddRootSTLVToBuf [22:19:10]FM_MakeSignedData [22:19:10]FM_MakeSignedData [22:19:10]SAM_PROTO_SignData [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 0D 01 02 [22:19:10]Write to MH i2c: E2 08 00 AB 18 80 0D 01 02 00 00 00 00 3C [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 03 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [22:19:10]RAPDU: 90 00 [22:19:10]wFMCommunicate OK [22:19:10]wFMCommunicate request_size=255 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 5F FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 83 02 00 35 04 06 00 93 [22:19:10]Write to MH i2c: E2 02 01 AC 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 5F FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 83 02 00 35 04 06 00 93 00 00 B3 [22:19:11]Write i2c OK [22:19:11]MH_I2C_Read... [22:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:11]Read from MH i2c: E2 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 03 00 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [22:19:11]RAPDU: 90 00 [22:19:11]wFMCommunicate OK [22:19:11]wFMCommunicate request_size=10 [22:19:11]MH_SAM_APDU [22:19:11]CAPDU: 80 0D 02 02 05 41 6C 7B 5E 35 [22:19:11]Write to MH i2c: E2 0D 00 AD 18 80 0D 02 02 05 00 41 6C 7B 5E 35 00 00 04 [22:19:11]Write i2c OK [22:19:11]MH_I2C_Read... [22:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:11]Read from MH i2c: E2 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 03 00 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [22:19:11]RAPDU: 90 00 [22:19:11]wFMCommunicate OK [22:19:11]wFMCommunicate request_size=4 [22:19:11]MH_SAM_APDU [22:19:11]CAPDU: 80 0D 03 02 [22:19:11]Write to MH i2c: E2 08 00 AE 18 80 0D 03 02 00 00 00 00 41 [22:19:11]Write i2c OK [22:19:11]MH_I2C_Read... [22:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:11]Read from MH i2c: E2 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 0B 00 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 0B 00 AE 18 00 A8 40 D3 E3 CE 12 BB 03 90 00 7E [22:19:11]RAPDU: A8 40 D3 E3 CE 12 BB 03 90 00 [22:19:11]wFMCommunicate OK [22:19:11]SAM_PROTO_SignData done [22:19:11]FM_MakeSignedData done [22:19:11]CreateOFDProtocolMessage [22:19:11]wFMCommunicate request_size=4 [22:19:11]MH_SAM_APDU [22:19:11]CAPDU: 80 11 00 00 [22:19:11]Write to MH i2c: E2 08 00 AF 18 80 11 00 00 00 00 00 00 41 [22:19:11]Write i2c OK [22:19:11]MH_I2C_Read... [22:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:11]Read from MH i2c: E2 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 17 00 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: E2 17 00 AF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [22:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:19:11]wFMCommunicate OK [22:19:11]CreateOFDProtocolMessage done [22:19:11]OFDSenderStorePacket 164773 [22:19:11]StoreOFDPacket docnum=164773 [22:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DB 11 07 01 B2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 5F FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 83 02 00 35 04 06 00 93 41 6C 7B 5E 35 A8 40 D3 E3 CE 12 BB 03 [22:19:11]CheckFolder [22:19:11]dirname=/storage/ofd_packets [22:19:11]CheckFolder done [22:19:11]ProducePacketName [22:19:11]name=ofd_packets/00164773 [22:19:11]NVStorageSaveData ofd_packets/00164773 [22:19:11]File name is /storage/ofd_packets/00164773 [22:19:11]Write 301 bytes [22:19:11]NVStorageSaveData done [22:19:11]OFDSenderStorePacket done [22:19:11]KKMCreateOFDPacket done [22:19:11]NVStorageSaveData kkm_last_timestamp [22:19:11]File name is /storage/kkm_last_timestamp [22:19:11]Write 4 bytes [22:19:11]NVStorageSaveData done [22:19:11]OFD Sender: Processing packet 164773 [packets to send 104, broken 103] [22:19:11]ProducePacketName [22:19:11]name=ofd_packets/00164773 [22:19:11]OFD Sender: To server: pG, [22:19:11]CommunicateWithHost lk.salyk.kg:30040 [22:19:11]ConnectInit lk.salyk.kg [22:19:11]ExternCall_PrintAddStr [22:19:11]wPrintStart [22:19:11]Write to MH i2c: 01 00 00 B0 18 C8 [22:19:11]Write i2c OK [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: 01 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: 01 07 00 [22:19:11]MH_I2C_Read... [22:19:11]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 FF 0F DD [22:19:11]RasterBufferAndPrint [22:19:11]line Счет N : (1)458868 [22:19:11]line ИНН: 02508201610067 [22:19:11]line Контрольно-Кассовый Чек [22:19:11]line ПРОДАЖА [22:19:11]line ТРК (МРК, ГНК) : 12 [22:19:11]line Товар: 2710124130 [22:19:11]line Аи-92-К-5 [22:19:11]line 6.080 * 65.80 [22:19:11]line = 400.06 [22:19:11]line НДС 12% НСП 1% [22:19:11]line > о реализуемом товаре [22:19:11]line ОКРУГЛЕНИЕ: -0.06 [22:19:11]line ИТОГО: 400.00 [22:19:11]line Внесено: 400.00 [22:19:11]line СДАЧА: 0.00 [22:19:11]line НСП 1% : 3.54 [22:19:11]line НДС 12% : 42.48 [22:19:11]line Наличными: 400.00 [22:19:11]line Безнал.: 0.00 [22:19:11]line Место: АЗС № 72 "Партнер Нефть" [22:19:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:19:11]line СНО: Общий режим [22:19:11]line Чек 333 13.07.2024 22:19 [22:19:11]line Смена: 446 ФФД: 1.0 [22:19:11]line ЗНМ: 0300000160 [22:19:11]line РНМ: 0000000000090829 [22:19:11]line Версия ККМ: 001 [22:19:11]line ФМ: 0000000000874718 [22:19:11]line ФД: 164773 [22:19:11]line ФПД: 161909202181685 [22:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164773&fm=161909202181685&tin=02508201610067®Number=0000000000090829&sum=40000 [22:19:11]Connected sock=11 [22:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DB 11 07 01 B2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 5F FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 83 02 00 35 04 06 00 93 41 6C 7B 5E 35 A8 40 D3 E3 CE 12 BB 03 [22:19:11]written 0, free lines is 4095 [22:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 95 47 00 68 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 83 02 00 F4 03 04 00 EE A3 92 66 B6 04 01 00 00 EB 48 A0 C8 BF F9 42 2B [22:19:11]CommunicateWithHost err = 0 [22:19:11]CheckOFDResponse [22:19:11]1017 (14) - 77093643461234 [22:19:11]1041 (16) - 0000000000874718 [22:19:11]1040 (4) - 164773 [22:19:11]1012 (4) - 13.07.2024 15:57 [22:19:11]1206 (1) - 0 [22:19:11]OFD Sender: Remove packet 164773 [22:19:11]ProducePacketName [22:19:11]name=ofd_packets/00164773 [22:19:11]NVStorageDeleteData [22:19:12]Write to MH i2c: 01 00 00 DA 18 F2 [22:19:12]Write i2c OK [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: 01 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: 01 07 00 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 F6 0C FB [22:19:12]RasterBufferAndPrint [22:19:12]line [22:19:12]line [22:19:12]line [22:19:12]line [22:19:12]line [22:19:12]written 0, free lines is 3324 [22:19:12]MH_Cut [22:19:12]Write to MH i2c: D1 01 00 E1 18 01 CB [22:19:12]Write i2c OK [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: D1 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: D1 01 00 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: D1 01 00 E1 18 00 CA [22:19:12]Write to MH i2c: 01 00 00 E2 18 FA [22:19:12]Write i2c OK [22:19:12]MH_I2C_Read... [22:19:12]OFD Sender: No OFD packet to send [22:19:12]*** Cut start [22:19:12]*** Partial cut [22:19:12]*** CUTSNS_PIN = 1 [22:19:12]*** CUTSNS_PIN = 0 [22:19:13]*** Brake cut motor [22:19:13]Read from MH i2c: 01 [22:19:13]MH_I2C_Read... [22:19:13]*** Stop cut motor [22:19:13]*** Cut end [22:19:13]Read from MH i2c: 01 07 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 FF 0F 0F [22:19:13]process_action close_receipt done [22:19:13]requested_data is exist [22:19:13]produce_requested_data [22:19:13]requested_item fm.sn is exist - process it [22:19:13]wFMCommunicate request_size=4 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 11 00 00 [22:19:13]Write to MH i2c: E2 08 00 E3 18 80 11 00 00 00 00 00 00 75 [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 17 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 17 00 E3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [22:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:19:13]wFMCommunicate OK [22:19:13]requested_item fd.num is exist - process it [22:19:13]SAM_PROTO_GetFieldsCounters [22:19:13]wFMCommunicate request_size=4 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 13 00 00 [22:19:13]Write to MH i2c: E2 08 00 E4 18 80 13 00 00 00 00 00 00 78 [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 62 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 62 00 E4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [22:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:13]wFMCommunicate OK [22:19:13]SAM_PROTO_GetFieldsCounters done [22:19:13]requested_item shift.num is exist - process it [22:19:13]requested_item shift.opened is exist - process it [22:19:13]req_shift_opened [22:19:13]FM_GetShiftState [22:19:13]SAM_PROTO_GetShiftState [22:19:13]wFMCommunicate request_size=4 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 13 01 00 [22:19:13]Write to MH i2c: E2 08 00 E5 18 80 13 01 00 00 00 00 00 7A [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 0E 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 0E 00 E5 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5B [22:19:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:19:13]wFMCommunicate OK [22:19:13]SAM_PROTO_GetShiftState done [22:19:13]FM_GetShiftState done [22:19:13]req_shift_opened done [22:19:13]requested_item shift.open_date is exist - process it [22:19:13]req_shift_open_date [22:19:13]req_shift_open_date done [22:19:13]produce_requested_data done [22:19:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164773,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:19:13]process_action_free close_receipt [22:19:13]json_value_free [22:19:13]json_value_free done [22:19:13]process_json_proto returns [22:19:13]Send response to host [22:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164773,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:19:13]free response buf [22:19:13]execute_script done [22:19:13]execute_script returns [22:19:13]free content buf [22:19:13]Sock 7.Close socket [22:19:13]Sock 7.Thread stoped [22:19:14]accept exits with 9 [22:19:14]New connection [22:19:14]New thread 3067247972 created [22:19:14]Thread 3067104612 joined [22:19:14]Waiting for new connection... [22:19:14] Sock 9.Parse request [22:19:14]Sock 9.Check first char [22:19:14]Sock 9.First char is OK [22:19:14]request: POST /json_proto HTTP/1.0 [22:19:14]Method: POST [22:19:14]URL: /json_proto [22:19:14]Method is POST - this is cgi request [22:19:14]url: /json_proto [22:19:14]query_string will be loaded in cgi processing [22:19:14]execute_cgi json_proto POST (null) [22:19:14]execute_cgi path=json_proto method=POST [22:19:14]POST find Content-Length [22:19:14]Host: 172.17.56.4:8080 [22:19:14]Content-Length: 674 [22:19:14]Content-Type: application/json [22:19:14] [22:19:14]POST finish read [22:19:14]Found Content-Length = 674 [22:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:14]execute_script... [22:19: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)458867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:14]POST & json_proto [22:19:14]process_json_proto [22:19:14]json parsed OK: [22:19:14]protocol is kg_v1.0 [22:19:14]action value=close_receipt [22:19:14]process_action close_receipt [22:19:14]cmd_close_receipt [22:19:14]MH_GetDate [22:19:14]Write to MH i2c: F0 00 00 E6 18 ED [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: F0 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: F0 09 00 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: F0 09 00 E6 18 00 63 FD 92 66 C9 DC B2 64 09 [22:19:14]GetLastDocTimeStamp 1720909151 [22:19:14]current date 1720909155 [22:19:14]FM_GetShiftState [22:19:14]SAM_PROTO_GetShiftState [22:19:14]wFMCommunicate request_size=4 [22:19:14]MH_SAM_APDU [22:19:14]CAPDU: 80 13 01 00 [22:19:14]Write to MH i2c: E2 08 00 E7 18 80 13 01 00 00 00 00 00 7C [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: E2 [22:19:14]MH_I2C_Read... [22:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:14]Read from MH i2c: E2 0E 00 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: E2 0E 00 E7 18 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 5D [22:19:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:19:14]wFMCommunicate OK [22:19:14]SAM_PROTO_GetShiftState done [22:19:14]FM_GetShiftState done [22:19:14]opened in 1720831249 [22:19:14]opened+sec_in_day 1720917649 [22:19:14]quantity*price = 50042 [22:19:14]sum+1 = 50043 [22:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 334 13.07.2024 22:19 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164774 ФПД: 227251397214527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221915&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164774&fm=227251397214527&tin=02508201610067®Number=0000000000090829&sum=50000 [22:19:15]StoreToDocumentArchive [22:19:15]shift 446 fd 164774 [22:19:15]save to /storage/0446/doc_00164774 [22:19:15]save last doc name /storage/0446/doc_00164774 to /storage/kkm_last_doc_name [22:19:15]save OK [22:19:15]Clear old archive folders... [22:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:19:15]tlvbuf is B6F09920 [22:19:15]SAM_PROTO_ClearQueue [22:19:15]wFMCommunicate request_size=4 [22:19:15]MH_SAM_APDU [22:19:15]CAPDU: 80 09 00 00 [22:19:15]Write to MH i2c: E2 08 00 F4 18 80 09 00 00 00 00 00 00 7E [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:15]Read from MH i2c: E2 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 03 00 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 03 00 F4 18 00 90 00 80 [22:19:15]RAPDU: 90 00 [22:19:15]wFMCommunicate OK [22:19:15]SAM_PROTO_ClearQueue done [22:19:15]KKMCreateOFDPacket [22:19:15]OFDProtocolAddRootSTLVToBuf [22:19:15]FM_MakeSignedData [22:19:15]FM_MakeSignedData [22:19:15]SAM_PROTO_SignData [22:19:15]wFMCommunicate request_size=4 [22:19:15]MH_SAM_APDU [22:19:15]CAPDU: 80 0D 01 02 [22:19:15]Write to MH i2c: E2 08 00 F5 18 80 0D 01 02 00 00 00 00 86 [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:15]Read from MH i2c: E2 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 03 00 [22:19:15]MH_I2C_Read... [22:19:15]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [22:19:15]RAPDU: 90 00 [22:19:15]wFMCommunicate OK [22:19:15]wFMCommunicate request_size=255 [22:19:15]MH_SAM_APDU [22:19:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 63 FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 83 02 00 35 04 06 00 CE AF 16 CE [22:19:15]Write to MH i2c: E2 02 01 F6 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 63 FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 83 02 00 35 04 06 00 CE AF 16 CE 00 00 4D [22:19:15]Write i2c OK [22:19:15]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]wFMCommunicate request_size=7 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 02 02 02 41 3F [22:19:16]Write to MH i2c: E2 0A 00 F7 18 80 0D 02 02 02 00 41 3F 00 00 0D [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [22:19:16]RAPDU: 90 00 [22:19:16]wFMCommunicate OK [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 0D 03 02 [22:19:16]Write to MH i2c: E2 08 00 F8 18 80 0D 03 02 00 00 00 00 8B [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 0B 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 0B 00 F8 18 00 E8 43 60 45 32 FA 75 CA 90 00 C7 [22:19:16]RAPDU: E8 43 60 45 32 FA 75 CA 90 00 [22:19:16]wFMCommunicate OK [22:19:16]SAM_PROTO_SignData done [22:19:16]FM_MakeSignedData done [22:19:16]CreateOFDProtocolMessage [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 11 00 00 [22:19:16]Write to MH i2c: E2 08 00 F9 18 80 11 00 00 00 00 00 00 8B [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 F9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [22:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:19:16]wFMCommunicate OK [22:19:16]CreateOFDProtocolMessage done [22:19:16]OFDSenderStorePacket 164774 [22:19:16]StoreOFDPacket docnum=164774 [22:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 ED 44 04 01 E4 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 63 FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 83 02 00 35 04 06 00 CE AF 16 CE 41 3F E8 43 60 45 32 FA 75 CA [22:19:16]CheckFolder [22:19:16]dirname=/storage/ofd_packets [22:19:16]CheckFolder done [22:19:16]ProducePacketName [22:19:16]name=ofd_packets/00164774 [22:19:16]NVStorageSaveData ofd_packets/00164774 [22:19:16]File name is /storage/ofd_packets/00164774 [22:19:16]Write 298 bytes [22:19:16]NVStorageSaveData done [22:19:16]OFDSenderStorePacket done [22:19:16]KKMCreateOFDPacket done [22:19:16]NVStorageSaveData kkm_last_timestamp [22:19:16]File name is /storage/kkm_last_timestamp [22:19:16]Write 4 bytes [22:19:16]NVStorageSaveData done [22:19:16]ExternCall_PrintAddStr [22:19:16]wPrintStart [22:19:16]Write to MH i2c: 01 00 00 FA 18 12 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 FA 18 00 00 00 00 00 FF 0F 27 [22:19:16]RasterBufferAndPrint [22:19:16]line Счет N : (1)458867 [22:19:16]line ИНН: 02508201610067 [22:19:16]line Контрольно-Кассовый Чек [22:19:16]line ПРОДАЖА [22:19:16]line ТРК (МРК, ГНК) : 21 [22:19:16]line Товар: 2710194210 [22:19:16]line ДТ-К-5 [22:19:16]line 6.960 * 71.90 [22:19:16]line = 500.42 [22:19:16]line НДС 12% НСП 1% [22:19:16]line > о реализуемом товаре [22:19:16]line ОКРУГЛЕНИЕ: -0.42 [22:19:16]line ИТОГО: 500.00 [22:19:16]line Внесено: 500.00 [22:19:16]line СДАЧА: 0.00 [22:19:16]line НСП 1% : 4.43 [22:19:16]line НДС 12% : 53.14 [22:19:16]line Наличными: 500.00 [22:19:16]line Безнал.: 0.00 [22:19:16]line Место: АЗС № 72 "Партнер Нефть" [22:19:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:19:16]line СНО: Общий режим [22:19:16]line Чек 334 13.07.2024 22:19 [22:19:16]line Смена: 446 ФФД: 1.0 [22:19:16]line ЗНМ: 0300000160 [22:19:16]line РНМ: 0000000000090829 [22:19:16]line Версия ККМ: 001 [22:19:16]line ФМ: 0000000000874718 [22:19:16]line ФД: 164774 [22:19:16]line ФПД: 227251397214527 [22:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T221915&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164774&fm=227251397214527&tin=02508201610067®Number=0000000000090829&sum=50000 [22:19:16]OFD Sender: Processing packet 164774 [packets to send 104, broken 103] [22:19:16]ProducePacketName [22:19:16]name=ofd_packets/00164774 [22:19:16]OFD Sender: To server: pG, [22:19:16]CommunicateWithHost lk.salyk.kg:30040 [22:19:16]ConnectInit lk.salyk.kg [22:19:16]written 0, free lines is 4095 [22:19:16]Connected sock=10 [22:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 ED 44 04 01 E4 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 63 FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 83 02 00 35 04 06 00 CE AF 16 CE 41 3F E8 43 60 45 32 FA 75 CA [22:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 ED BE 47 00 90 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 83 02 00 F4 03 04 00 F3 A3 92 66 B6 04 01 00 00 51 88 A3 B9 49 E3 6D 92 [22:19:16]CommunicateWithHost err = 0 [22:19:16]CheckOFDResponse [22:19:16]1017 (14) - 77093643461234 [22:19:16]1041 (16) - 0000000000874718 [22:19:16]1040 (4) - 164774 [22:19:16]1012 (4) - 13.07.2024 15:57 [22:19:16]1206 (1) - 0 [22:19:16]OFD Sender: Remove packet 164774 [22:19:16]ProducePacketName [22:19:16]name=ofd_packets/00164774 [22:19:16]NVStorageDeleteData [22:19:16]Write to MH i2c: 01 00 00 24 19 3D [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 08 0D 59 [22:19:16]RasterBufferAndPrint [22:19:16]line [22:19:16]line [22:19:16]line [22:19:16]line [22:19:16]line [22:19:16]written 0, free lines is 3351 [22:19:16]MH_Cut [22:19:16]Write to MH i2c: D1 01 00 2B 19 01 16 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D1 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D1 01 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: D1 01 00 2B 19 00 15 [22:19:16]Write to MH i2c: 01 00 00 2C 19 45 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:17]OFD Sender: No OFD packet to send [22:19:17]*** Cut start [22:19:17]*** Partial cut [22:19:17]*** CUTSNS_PIN = 1 [22:19:17]*** CUTSNS_PIN = 0 [22:19:17]*** Brake cut motor [22:19:18]Read from MH i2c: 01 [22:19:18]MH_I2C_Read... [22:19:18]*** Stop cut motor [22:19:18]*** Cut end [22:19:18]Read from MH i2c: 01 07 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 FF 0F 5A [22:19:18]process_action close_receipt done [22:19:18]requested_data is exist [22:19:18]produce_requested_data [22:19:18]requested_item fm.sn is exist - process it [22:19:18]wFMCommunicate request_size=4 [22:19:18]MH_SAM_APDU [22:19:18]CAPDU: 80 11 00 00 [22:19:18]Write to MH i2c: E2 08 00 2D 19 80 11 00 00 00 00 00 00 C0 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:18]Read from MH i2c: E2 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 17 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 17 00 2D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [22:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:19:18]wFMCommunicate OK [22:19:18]requested_item fd.num is exist - process it [22:19:18]SAM_PROTO_GetFieldsCounters [22:19:18]wFMCommunicate request_size=4 [22:19:18]MH_SAM_APDU [22:19:18]CAPDU: 80 13 00 00 [22:19:18]Write to MH i2c: E2 08 00 2E 19 80 13 00 00 00 00 00 00 C3 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:18]Read from MH i2c: E2 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 62 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 62 00 2E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [22:19: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:18]wFMCommunicate OK [22:19:18]SAM_PROTO_GetFieldsCounters done [22:19:18]requested_item shift.num is exist - process it [22:19:18]requested_item shift.opened is exist - process it [22:19:18]req_shift_opened [22:19:18]FM_GetShiftState [22:19:18]SAM_PROTO_GetShiftState [22:19:18]wFMCommunicate request_size=4 [22:19:18]MH_SAM_APDU [22:19:18]CAPDU: 80 13 01 00 [22:19:18]Write to MH i2c: E2 08 00 2F 19 80 13 01 00 00 00 00 00 C5 [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:18]Read from MH i2c: E2 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 0E 00 [22:19:18]MH_I2C_Read... [22:19:18]Read from MH i2c: E2 0E 00 2F 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A6 [22:19:18]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:19:18]wFMCommunicate OK [22:19:18]SAM_PROTO_GetShiftState done [22:19:18]FM_GetShiftState done [22:19:18]req_shift_opened done [22:19:18]requested_item shift.open_date is exist - process it [22:19:18]req_shift_open_date [22:19:18]req_shift_open_date done [22:19:18]produce_requested_data done [22:19:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164774,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:19:18]process_action_free close_receipt [22:19:18]json_value_free [22:19:18]json_value_free done [22:19:18]process_json_proto returns [22:19:18]Send response to host [22:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164774,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:19:18]free response buf [22:19:18]execute_script done [22:19:18]execute_script returns [22:19:18]free content buf [22:19:18]Sock 9.Close socket [22:19:18]Sock 9.Thread stoped [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:31]accept exits with 7 [22:21:31]New connection [22:21:31]New thread 3067104612 created [22:21:31]Thread 3067247972 joined [22:21:31]Waiting for new connection... [22:21:31] Sock 7.Parse request [22:21:31]Sock 7.Check first char [22:21:31]Sock 7.First char is OK [22:21:31]request: POST /json_proto HTTP/1.0 [22:21:31]Method: POST [22:21:31]URL: /json_proto [22:21:31]Method is POST - this is cgi request [22:21:31]url: /json_proto [22:21:31]query_string will be loaded in cgi processing [22:21:31]execute_cgi json_proto POST (null) [22:21:31]execute_cgi path=json_proto method=POST [22:21:31]POST find Content-Length [22:21:31]Host: 172.17.56.4:8080 [22:21:31]Content-Length: 674 [22:21:31]Content-Type: application/json [22:21:31] [22:21:31]POST finish read [22:21:31]Found Content-Length = 674 [22:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.930, "sum" : 570.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:31]execute_script... [22:21: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)458869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 7.930, "sum" : 570.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:31]POST & json_proto [22:21:31]process_json_proto [22:21:31]json parsed OK: [22:21:31]protocol is kg_v1.0 [22:21:31]action value=close_receipt [22:21:31]process_action close_receipt [22:21:31]cmd_close_receipt [22:21:31]MH_GetDate [22:21:31]Write to MH i2c: F0 00 00 30 19 38 [22:21:31]Write i2c OK [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: F0 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: F0 09 00 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: F0 09 00 30 19 00 ED FD 92 66 C9 DC B2 64 DE [22:21:31]GetLastDocTimeStamp 1720909155 [22:21:31]current date 1720909293 [22:21:31]FM_GetShiftState [22:21:31]SAM_PROTO_GetShiftState [22:21:31]wFMCommunicate request_size=4 [22:21:31]MH_SAM_APDU [22:21:31]CAPDU: 80 13 01 00 [22:21:31]Write to MH i2c: E2 08 00 31 19 80 13 01 00 00 00 00 00 C7 [22:21:31]Write i2c OK [22:21:31]MH_I2C_Read... [22:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:31]Read from MH i2c: E2 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: E2 0E 00 [22:21:31]MH_I2C_Read... [22:21:31]Read from MH i2c: E2 0E 00 31 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 A8 [22:21:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:21:31]wFMCommunicate OK [22:21:31]SAM_PROTO_GetShiftState done [22:21:31]FM_GetShiftState done [22:21:31]opened in 1720831249 [22:21:31]opened+sec_in_day 1720917649 [22:21:31]quantity*price = 57016 [22:21:31]sum+1 = 57018 [22:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.55 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 335 13.07.2024 22:21 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164775 ФПД: 28866981052005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222133&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164775&fm=28866981052005&tin=02508201610067®Number=0000000000090829&sum=57000 [22:21:33]StoreToDocumentArchive [22:21:33]shift 446 fd 164775 [22:21:33]save to /storage/0446/doc_00164775 [22:21:33]save last doc name /storage/0446/doc_00164775 to /storage/kkm_last_doc_name [22:21:33]save OK [22:21:33]Clear old archive folders... [22:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:21:33]tlvbuf is 01E8A060 [22:21:33]SAM_PROTO_ClearQueue [22:21:33]wFMCommunicate request_size=4 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 09 00 00 [22:21:33]Write to MH i2c: E2 08 00 3E 19 80 09 00 00 00 00 00 00 C9 [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 3E 19 00 90 00 CB [22:21:33]RAPDU: 90 00 [22:21:33]wFMCommunicate OK [22:21:33]SAM_PROTO_ClearQueue done [22:21:33]KKMCreateOFDPacket [22:21:33]OFDProtocolAddRootSTLVToBuf [22:21:33]FM_MakeSignedData [22:21:33]FM_MakeSignedData [22:21:33]SAM_PROTO_SignData [22:21:33]wFMCommunicate request_size=4 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 0D 01 02 [22:21:33]Write to MH i2c: E2 08 00 3F 19 80 0D 01 02 00 00 00 00 D1 [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 3F 19 00 90 00 CC [22:21:33]RAPDU: 90 00 [22:21:33]wFMCommunicate OK [22:21:33]wFMCommunicate request_size=255 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 ED FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 83 02 00 35 04 06 00 1A 41 1E 26 [22:21:33]Write to MH i2c: E2 02 01 40 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 ED FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 83 02 00 35 04 06 00 1A 41 1E 26 00 00 95 [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 40 19 00 90 00 CD [22:21:33]RAPDU: 90 00 [22:21:33]wFMCommunicate OK [22:21:33]wFMCommunicate request_size=7 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 0D 02 02 02 BE 65 [22:21:33]Write to MH i2c: E2 0A 00 41 19 80 0D 02 02 02 00 BE 65 00 00 FB [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [22:21:33]RAPDU: 90 00 [22:21:33]wFMCommunicate OK [22:21:33]wFMCommunicate request_size=4 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 0D 03 02 [22:21:33]Write to MH i2c: E2 08 00 42 19 80 0D 03 02 00 00 00 00 D6 [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 0B 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 0B 00 42 19 00 BE 90 D9 6D 19 B7 F9 32 90 00 66 [22:21:33]RAPDU: BE 90 D9 6D 19 B7 F9 32 90 00 [22:21:33]wFMCommunicate OK [22:21:33]SAM_PROTO_SignData done [22:21:33]FM_MakeSignedData done [22:21:33]CreateOFDProtocolMessage [22:21:33]wFMCommunicate request_size=4 [22:21:33]MH_SAM_APDU [22:21:33]CAPDU: 80 11 00 00 [22:21:33]Write to MH i2c: E2 08 00 43 19 80 11 00 00 00 00 00 00 D6 [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:33]Read from MH i2c: E2 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 17 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: E2 17 00 43 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [22:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:21:33]wFMCommunicate OK [22:21:33]CreateOFDProtocolMessage done [22:21:33]OFDSenderStorePacket 164775 [22:21:33]StoreOFDPacket docnum=164775 [22:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1E 14 04 01 FD 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 ED FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 83 02 00 35 04 06 00 1A 41 1E 26 BE 65 BE 90 D9 6D 19 B7 F9 32 [22:21:33]CheckFolder [22:21:33]dirname=/storage/ofd_packets [22:21:33]CheckFolder done [22:21:33]ProducePacketName [22:21:33]name=ofd_packets/00164775 [22:21:33]NVStorageSaveData ofd_packets/00164775 [22:21:33]File name is /storage/ofd_packets/00164775 [22:21:33]Write 298 bytes [22:21:33]NVStorageSaveData done [22:21:33]OFDSenderStorePacket done [22:21:33]KKMCreateOFDPacket done [22:21:33]NVStorageSaveData kkm_last_timestamp [22:21:33]File name is /storage/kkm_last_timestamp [22:21:33]Write 4 bytes [22:21:33]NVStorageSaveData done [22:21:33]ExternCall_PrintAddStr [22:21:33]wPrintStart [22:21:33]Write to MH i2c: 01 00 00 44 19 5D [22:21:33]Write i2c OK [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: 01 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: 01 07 00 [22:21:33]MH_I2C_Read... [22:21:33]Read from MH i2c: 01 07 00 44 19 00 00 00 00 00 FF 0F 72 [22:21:33]RasterBufferAndPrint [22:21:33]line Счет N : (1)458869 [22:21:33]line ИНН: 02508201610067 [22:21:33]line Контрольно-Кассовый Чек [22:21:33]line ПРОДАЖА [22:21:33]line ТРК (МРК, ГНК) : 21 [22:21:33]line Товар: 2710194210 [22:21:33]line ДТ-К-5 [22:21:33]line 7.930 * 71.90 [22:21:33]line = 570.17 [22:21:33]line НДС 12% НСП 1% [22:21:33]line > о реализуемом товаре [22:21:33]line ОКРУГЛЕНИЕ: -0.17 [22:21:33]line ИТОГО: 570.00 [22:21:33]line Внесено: 570.00 [22:21:33]line СДАЧА: 0.00 [22:21:33]line НСП 1% : 5.05 [22:21:33]line НДС 12% : 60.55 [22:21:33]line Наличными: 570.00 [22:21:33]line Безнал.: 0.00 [22:21:33]line Место: АЗС № 72 "Партнер Нефть" [22:21:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:21:33]line СНО: Общий режим [22:21:33]line Чек 335 13.07.2024 22:21 [22:21:33]line Смена: 446 ФФД: 1.0 [22:21:33]line ЗНМ: 0300000160 [22:21:33]line РНМ: 0000000000090829 [22:21:33]line Версия ККМ: 001 [22:21:33]line ФМ: 0000000000874718 [22:21:33]line ФД: 164775 [22:21:33]line ФПД: 28866981052005 [22:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222133&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164775&fm=28866981052005&tin=02508201610067®Number=0000000000090829&sum=57000 [22:21:33]OFD Sender: Processing packet 164775 [packets to send 104, broken 103] [22:21:33]ProducePacketName [22:21:33]name=ofd_packets/00164775 [22:21:33]OFD Sender: To server: pG, [22:21:33]CommunicateWithHost lk.salyk.kg:30040 [22:21:33]ConnectInit lk.salyk.kg [22:21:33]written 0, free lines is 4095 [22:21:34]Connected sock=10 [22:21:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1E 14 04 01 FD 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 ED FD 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 83 02 00 35 04 06 00 1A 41 1E 26 BE 65 BE 90 D9 6D 19 B7 F9 32 [22:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E8 3A 47 00 55 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 83 02 00 F4 03 04 00 7C A4 92 66 B6 04 01 00 00 73 E5 3B DE FB 1E AB B0 [22:21:34]CommunicateWithHost err = 0 [22:21:34]CheckOFDResponse [22:21:34]1017 (14) - 77093643461234 [22:21:34]1041 (16) - 0000000000874718 [22:21:34]1040 (4) - 164775 [22:21:34]1012 (4) - 13.07.2024 15:59 [22:21:34]1206 (1) - 0 [22:21:34]OFD Sender: Remove packet 164775 [22:21:34]ProducePacketName [22:21:34]name=ofd_packets/00164775 [22:21:34]NVStorageDeleteData [22:21:34]Write to MH i2c: 01 00 00 6E 19 87 [22:21:34]Write i2c OK [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: 01 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: 01 07 00 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: 01 07 00 6E 19 00 00 00 00 00 E9 0C 83 [22:21:34]RasterBufferAndPrint [22:21:34]line [22:21:34]line [22:21:34]line [22:21:34]line [22:21:34]line [22:21:34]written 0, free lines is 3311 [22:21:34]MH_Cut [22:21:34]Write to MH i2c: D1 01 00 75 19 01 60 [22:21:34]Write i2c OK [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: D1 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: D1 01 00 [22:21:34]MH_I2C_Read... [22:21:34]Read from MH i2c: D1 01 00 75 19 00 5F [22:21:34]Write to MH i2c: 01 00 00 76 19 8F [22:21:34]Write i2c OK [22:21:34]MH_I2C_Read... [22:21:34]OFD Sender: No OFD packet to send [22:21:35]*** Cut start [22:21:35]*** Partial cut [22:21:35]*** CUTSNS_PIN = 1 [22:21:35]*** CUTSNS_PIN = 0 [22:21:35]*** Brake cut motor [22:21:35]Read from MH i2c: 01 [22:21:35]MH_I2C_Read... [22:21:35]*** Stop cut motor [22:21:35]*** Cut end [22:21:35]Read from MH i2c: 01 07 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 FF 0F A4 [22:21:35]process_action close_receipt done [22:21:35]requested_data is exist [22:21:35]produce_requested_data [22:21:35]requested_item fm.sn is exist - process it [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 11 00 00 [22:21:35]Write to MH i2c: E2 08 00 77 19 80 11 00 00 00 00 00 00 0A [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 17 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 17 00 77 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [22:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:21:35]wFMCommunicate OK [22:21:35]requested_item fd.num is exist - process it [22:21:35]SAM_PROTO_GetFieldsCounters [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 13 00 00 [22:21:35]Write to MH i2c: E2 08 00 78 19 80 13 00 00 00 00 00 00 0D [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 62 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 62 00 78 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:21: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:35]wFMCommunicate OK [22:21:35]SAM_PROTO_GetFieldsCounters done [22:21:35]requested_item shift.num is exist - process it [22:21:35]requested_item shift.opened is exist - process it [22:21:35]req_shift_opened [22:21:35]FM_GetShiftState [22:21:35]SAM_PROTO_GetShiftState [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 13 01 00 [22:21:35]Write to MH i2c: E2 08 00 79 19 80 13 01 00 00 00 00 00 0F [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 79 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F0 [22:21:35]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:21:35]wFMCommunicate OK [22:21:35]SAM_PROTO_GetShiftState done [22:21:35]FM_GetShiftState done [22:21:35]req_shift_opened done [22:21:35]requested_item shift.open_date is exist - process it [22:21:35]req_shift_open_date [22:21:35]req_shift_open_date done [22:21:35]produce_requested_data done [22:21:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164775,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:21:35]process_action_free close_receipt [22:21:35]json_value_free [22:21:35]json_value_free done [22:21:35]process_json_proto returns [22:21:35]Send response to host [22:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164775,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:21:35]free response buf [22:21:35]execute_script done [22:21:35]execute_script returns [22:21:35]free content buf [22:21:35]Sock 7.Close socket [22:21:35]Sock 7.Thread stoped [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:32]accept exits with 9 [22:24:32]New connection [22:24:32]New thread 3067247972 created [22:24:32]Thread 3067104612 joined [22:24:32]Waiting for new connection... [22:24:32] Sock 9.Parse request [22:24:32]Sock 9.Check first char [22:24:32]Sock 9.First char is OK [22:24:32]request: POST /json_proto HTTP/1.0 [22:24:32]Method: POST [22:24:32]URL: /json_proto [22:24:32]Method is POST - this is cgi request [22:24:32]url: /json_proto [22:24:32]query_string will be loaded in cgi processing [22:24:32]execute_cgi json_proto POST (null) [22:24:32]execute_cgi path=json_proto method=POST [22:24:32]POST find Content-Length [22:24:32]Host: 172.17.56.4:8080 [22:24:32]Content-Length: 677 [22:24:32]Content-Type: application/json [22:24:32] [22:24:32]POST finish read [22:24:32]Found Content-Length = 677 [22:24:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:32]execute_script... [22:24: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)458870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:32]POST & json_proto [22:24:32]process_json_proto [22:24:32]json parsed OK: [22:24:32]protocol is kg_v1.0 [22:24:32]action value=close_receipt [22:24:32]process_action close_receipt [22:24:32]cmd_close_receipt [22:24:32]MH_GetDate [22:24:32]Write to MH i2c: F0 00 00 7A 19 82 [22:24:32]Write i2c OK [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: F0 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: F0 09 00 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: F0 09 00 7A 19 00 A1 FE 92 66 C9 DC B2 64 DD [22:24:32]GetLastDocTimeStamp 1720909293 [22:24:32]current date 1720909473 [22:24:32]FM_GetShiftState [22:24:32]SAM_PROTO_GetShiftState [22:24:32]wFMCommunicate request_size=4 [22:24:32]MH_SAM_APDU [22:24:32]CAPDU: 80 13 01 00 [22:24:32]Write to MH i2c: E2 08 00 7B 19 80 13 01 00 00 00 00 00 11 [22:24:32]Write i2c OK [22:24:32]MH_I2C_Read... [22:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:32]Read from MH i2c: E2 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: E2 0E 00 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: E2 0E 00 7B 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F2 [22:24:32]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:24:32]wFMCommunicate OK [22:24:32]SAM_PROTO_GetShiftState done [22:24:32]FM_GetShiftState done [22:24:32]opened in 1720831249 [22:24:32]opened+sec_in_day 1720917649 [22:24:32]quantity*price = 31057 [22:24:32]sum+1 = 31059 [22:24:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 336 13.07.2024 22:24 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164776 ФПД: 256818510729189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222433&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164776&fm=256818510729189&tin=02508201610067®Number=0000000000090829&sum=31000 [22:24:33]StoreToDocumentArchive [22:24:33]shift 446 fd 164776 [22:24:33]save to /storage/0446/doc_00164776 [22:24:33]save last doc name /storage/0446/doc_00164776 to /storage/kkm_last_doc_name [22:24:33]save OK [22:24:33]Clear old archive folders... [22:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:33]tlvbuf is 01EE3B70 [22:24:33]SAM_PROTO_ClearQueue [22:24:33]wFMCommunicate request_size=4 [22:24:33]MH_SAM_APDU [22:24:33]CAPDU: 80 09 00 00 [22:24:33]Write to MH i2c: E2 08 00 88 19 80 09 00 00 00 00 00 00 13 [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:33]Read from MH i2c: E2 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 03 00 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 03 00 88 19 00 90 00 15 [22:24:33]RAPDU: 90 00 [22:24:33]wFMCommunicate OK [22:24:33]SAM_PROTO_ClearQueue done [22:24:33]KKMCreateOFDPacket [22:24:33]OFDProtocolAddRootSTLVToBuf [22:24:33]FM_MakeSignedData [22:24:33]FM_MakeSignedData [22:24:33]SAM_PROTO_SignData [22:24:33]wFMCommunicate request_size=4 [22:24:33]MH_SAM_APDU [22:24:33]CAPDU: 80 0D 01 02 [22:24:33]Write to MH i2c: E2 08 00 89 19 80 0D 01 02 00 00 00 00 1B [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:33]Read from MH i2c: E2 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 03 00 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 03 00 89 19 00 90 00 16 [22:24:33]RAPDU: 90 00 [22:24:33]wFMCommunicate OK [22:24:33]wFMCommunicate request_size=255 [22:24:33]MH_SAM_APDU [22:24: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 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 A1 FE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 83 02 00 35 04 06 00 E9 [22:24:33]Write to MH i2c: E2 02 01 8A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 A1 FE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 83 02 00 35 04 06 00 E9 00 00 26 [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 03 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 03 00 8A 19 00 90 00 17 [22:24:34]RAPDU: 90 00 [22:24:34]wFMCommunicate OK [22:24:34]wFMCommunicate request_size=10 [22:24:34]MH_SAM_APDU [22:24:34]CAPDU: 80 0D 02 02 05 93 38 1A 8F E5 [22:24:34]Write to MH i2c: E2 0D 00 8B 19 80 0D 02 02 05 00 93 38 1A 8F E5 00 00 81 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 03 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 03 00 8B 19 00 90 00 18 [22:24:34]RAPDU: 90 00 [22:24:34]wFMCommunicate OK [22:24:34]wFMCommunicate request_size=4 [22:24:34]MH_SAM_APDU [22:24:34]CAPDU: 80 0D 03 02 [22:24:34]Write to MH i2c: E2 08 00 8C 19 80 0D 03 02 00 00 00 00 20 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 0B 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 0B 00 8C 19 00 D6 97 37 5A 38 1E 27 E0 90 00 7C [22:24:34]RAPDU: D6 97 37 5A 38 1E 27 E0 90 00 [22:24:34]wFMCommunicate OK [22:24:34]SAM_PROTO_SignData done [22:24:34]FM_MakeSignedData done [22:24:34]CreateOFDProtocolMessage [22:24:34]wFMCommunicate request_size=4 [22:24:34]MH_SAM_APDU [22:24:34]CAPDU: 80 11 00 00 [22:24:34]Write to MH i2c: E2 08 00 8D 19 80 11 00 00 00 00 00 00 20 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 17 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 17 00 8D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [22:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:24:34]wFMCommunicate OK [22:24:34]CreateOFDProtocolMessage done [22:24:34]OFDSenderStorePacket 164776 [22:24:34]StoreOFDPacket docnum=164776 [22:24:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 16 07 01 61 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 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 A1 FE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 83 02 00 35 04 06 00 E9 93 38 1A 8F E5 D6 97 37 5A 38 1E 27 E0 [22:24:34]CheckFolder [22:24:34]dirname=/storage/ofd_packets [22:24:34]CheckFolder done [22:24:34]ProducePacketName [22:24:34]name=ofd_packets/00164776 [22:24:34]NVStorageSaveData ofd_packets/00164776 [22:24:34]File name is /storage/ofd_packets/00164776 [22:24:34]Write 301 bytes [22:24:34]NVStorageSaveData done [22:24:34]OFDSenderStorePacket done [22:24:34]KKMCreateOFDPacket done [22:24:34]NVStorageSaveData kkm_last_timestamp [22:24:34]File name is /storage/kkm_last_timestamp [22:24:34]Write 4 bytes [22:24:34]NVStorageSaveData done [22:24:34]OFD Sender: Processing packet 164776 [packets to send 104, broken 103] [22:24:34]ProducePacketName [22:24:34]name=ofd_packets/00164776 [22:24:34]OFD Sender: To server: pG, [22:24:34]CommunicateWithHost lk.salyk.kg:30040 [22:24:34]ConnectInit lk.salyk.kg [22:24:34]ExternCall_PrintAddStr [22:24:34]wPrintStart [22:24:34]Write to MH i2c: 01 00 00 8E 19 A7 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 8E 19 00 00 00 00 00 FF 0F BC [22:24:34]RasterBufferAndPrint [22:24:34]line Счет N : (1)458870 [22:24:34]line ИНН: 02508201610067 [22:24:34]line Контрольно-Кассовый Чек [22:24:34]line ПРОДАЖА [22:24:34]line ТРК (МРК, ГНК) : 12 [22:24:34]line Товар: 2710124130 [22:24:34]line Аи-92-К-5 [22:24:34]line 4.720 * 65.80 [22:24:34]line = 310.58 [22:24:34]line НДС 12% НСП 1% [22:24:34]line > о реализуемом товаре [22:24:34]line ОКРУГЛЕНИЕ: -0.58 [22:24:34]line ИТОГО: 310.00 [22:24:34]line Внесено: 310.00 [22:24:34]line СДАЧА: 0.00 [22:24:34]line НСП 1% : 2.75 [22:24:34]line НДС 12% : 32.98 [22:24:34]line Наличными: 310.00 [22:24:34]line Безнал.: 0.00 [22:24:34]line Место: АЗС № 72 "Партнер Нефть" [22:24:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:24:34]line СНО: Общий режим [22:24:34]line Чек 336 13.07.2024 22:24 [22:24:34]line Смена: 446 ФФД: 1.0 [22:24:34]line ЗНМ: 0300000160 [22:24:34]line РНМ: 0000000000090829 [22:24:34]line Версия ККМ: 001 [22:24:34]line ФМ: 0000000000874718 [22:24:34]line ФД: 164776 [22:24:34]line ФПД: 256818510729189 [22:24:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222433&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164776&fm=256818510729189&tin=02508201610067®Number=0000000000090829&sum=31000 [22:24:34]Connected sock=11 [22:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1A 16 07 01 61 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 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 A1 FE 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 83 02 00 35 04 06 00 E9 93 38 1A 8F E5 D6 97 37 5A 38 1E 27 E0 [22:24:34]written 0, free lines is 4095 [22:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E1 11 47 00 C0 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 83 02 00 F4 03 04 00 31 A5 92 66 B6 04 01 00 00 D9 EF 4C 55 B5 9A 65 50 [22:24:34]CommunicateWithHost err = 0 [22:24:34]CheckOFDResponse [22:24:34]1017 (14) - 77093643461234 [22:24:34]1041 (16) - 0000000000874718 [22:24:34]1040 (4) - 164776 [22:24:34]1012 (4) - 13.07.2024 16:02 [22:24:34]1206 (1) - 0 [22:24:34]OFD Sender: Remove packet 164776 [22:24:34]ProducePacketName [22:24:34]name=ofd_packets/00164776 [22:24:34]NVStorageDeleteData [22:24:34]Write to MH i2c: 01 00 00 B8 19 D1 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 B8 19 00 00 00 00 00 FE 0C E2 [22:24:34]RasterBufferAndPrint [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]written 0, free lines is 3332 [22:24:34]MH_Cut [22:24:34]Write to MH i2c: D1 01 00 BF 19 01 AA [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 01 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 01 00 BF 19 00 A9 [22:24:34]Write to MH i2c: 01 00 00 C0 19 D9 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:35]OFD Sender: No OFD packet to send [22:24:35]*** Cut start [22:24:35]*** Partial cut [22:24:35]*** CUTSNS_PIN = 1 [22:24:35]*** CUTSNS_PIN = 0 [22:24:35]*** Brake cut motor [22:24:36]Read from MH i2c: 01 [22:24:36]MH_I2C_Read... [22:24:36]*** Stop cut motor [22:24:36]*** Cut end [22:24:36]Read from MH i2c: 01 07 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [22:24:36]process_action close_receipt done [22:24:36]requested_data is exist [22:24:36]produce_requested_data [22:24:36]requested_item fm.sn is exist - process it [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 11 00 00 [22:24:36]Write to MH i2c: E2 08 00 C1 19 80 11 00 00 00 00 00 00 54 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 17 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 17 00 C1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [22:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:24:36]wFMCommunicate OK [22:24:36]requested_item fd.num is exist - process it [22:24:36]SAM_PROTO_GetFieldsCounters [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 13 00 00 [22:24:36]Write to MH i2c: E2 08 00 C2 19 80 13 00 00 00 00 00 00 57 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 62 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 62 00 C2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [22:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:36]wFMCommunicate OK [22:24:36]SAM_PROTO_GetFieldsCounters done [22:24:36]requested_item shift.num is exist - process it [22:24:36]requested_item shift.opened is exist - process it [22:24:36]req_shift_opened [22:24:36]FM_GetShiftState [22:24:36]SAM_PROTO_GetShiftState [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 13 01 00 [22:24:36]Write to MH i2c: E2 08 00 C3 19 80 13 01 00 00 00 00 00 59 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 0E 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 0E 00 C3 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3A [22:24:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:24:36]wFMCommunicate OK [22:24:36]SAM_PROTO_GetShiftState done [22:24:36]FM_GetShiftState done [22:24:36]req_shift_opened done [22:24:36]requested_item shift.open_date is exist - process it [22:24:36]req_shift_open_date [22:24:36]req_shift_open_date done [22:24:36]produce_requested_data done [22:24:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164776,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:24:36]process_action_free close_receipt [22:24:36]json_value_free [22:24:36]json_value_free done [22:24:36]process_json_proto returns [22:24:36]Send response to host [22:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164776,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:24:36]free response buf [22:24:36]execute_script done [22:24:36]execute_script returns [22:24:36]free content buf [22:24:36]Sock 9.Close socket [22:24:36]Sock 9.Thread stoped [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:27]accept exits with 7 [22:27:27]New connection [22:27:27]New thread 3067104612 created [22:27:27]Thread 3067247972 joined [22:27:27]Waiting for new connection... [22:27:27] Sock 7.Parse request [22:27:27]Sock 7.Check first char [22:27:27]Sock 7.First char is OK [22:27:27]request: POST /json_proto HTTP/1.0 [22:27:27]Method: POST [22:27:27]URL: /json_proto [22:27:27]Method is POST - this is cgi request [22:27:27]url: /json_proto [22:27:27]query_string will be loaded in cgi processing [22:27:27]execute_cgi json_proto POST (null) [22:27:27]execute_cgi path=json_proto method=POST [22:27:27]POST find Content-Length [22:27:27]Host: 172.17.56.4:8080 [22:27:27]Content-Length: 790 [22:27:27]Content-Type: application/json [22:27:27] [22:27:27]POST finish read [22:27:27]Found Content-Length = 790 [22:27:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:27]execute_script... [22:27: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)458871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:27]POST & json_proto [22:27:27]process_json_proto [22:27:27]json parsed OK: [22:27:27]protocol is kg_v1.0 [22:27:27]action value=close_receipt [22:27:27]process_action close_receipt [22:27:27]cmd_close_receipt [22:27:27]MH_GetDate [22:27:27]Write to MH i2c: F0 00 00 C4 19 CC [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 09 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 09 00 C4 19 00 51 FF 92 66 C9 DC B2 64 D8 [22:27:27]GetLastDocTimeStamp 1720909473 [22:27:27]current date 1720909649 [22:27:27]FM_GetShiftState [22:27:27]SAM_PROTO_GetShiftState [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 13 01 00 [22:27:27]Write to MH i2c: E2 08 00 C5 19 80 13 01 00 00 00 00 00 5B [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 C5 19 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3C [22:27:27]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetShiftState done [22:27:27]FM_GetShiftState done [22:27:27]opened in 1720831249 [22:27:27]opened+sec_in_day 1720917649 [22:27:27]quantity*price = 60002 [22:27:27]sum+1 = 60003 [22:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 337 13.07.2024 22:27 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164777 ФПД: 235209920433533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164777&fm=235209920433533&tin=02508201610067®Number=0000000000090829&sum=60002 [22:27:28]StoreToDocumentArchive [22:27:28]shift 446 fd 164777 [22:27:28]save to /storage/0446/doc_00164777 [22:27:28]save last doc name /storage/0446/doc_00164777 to /storage/kkm_last_doc_name [22:27:28]save OK [22:27:28]Clear old archive folders... [22:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:28]tlvbuf is 01F1A960 [22:27:28]SAM_PROTO_ClearQueue [22:27:28]wFMCommunicate request_size=4 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 09 00 00 [22:27:28]Write to MH i2c: E2 08 00 D2 19 80 09 00 00 00 00 00 00 5D [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 D2 19 00 90 00 5F [22:27:29]RAPDU: 90 00 [22:27:29]wFMCommunicate OK [22:27:29]SAM_PROTO_ClearQueue done [22:27:29]KKMCreateOFDPacket [22:27:29]OFDProtocolAddRootSTLVToBuf [22:27:29]FM_MakeSignedData [22:27:29]FM_MakeSignedData [22:27:29]SAM_PROTO_SignData [22:27:29]wFMCommunicate request_size=4 [22:27:29]MH_SAM_APDU [22:27:29]CAPDU: 80 0D 01 02 [22:27:29]Write to MH i2c: E2 08 00 D3 19 80 0D 01 02 00 00 00 00 65 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 D3 19 00 90 00 60 [22:27:29]RAPDU: 90 00 [22:27:29]wFMCommunicate OK [22:27:29]wFMCommunicate request_size=255 [22:27:29]MH_SAM_APDU [22:27: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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 51 FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 83 02 00 35 04 06 00 D5 [22:27:29]Write to MH i2c: E2 02 01 D4 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 51 FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 83 02 00 35 04 06 00 D5 00 00 6C [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 D4 19 00 90 00 61 [22:27:29]RAPDU: 90 00 [22:27:29]wFMCommunicate OK [22:27:29]wFMCommunicate request_size=10 [22:27:29]MH_SAM_APDU [22:27:29]CAPDU: 80 0D 02 02 05 EC 13 C1 4D 7D [22:27:29]Write to MH i2c: E2 0D 00 D5 19 80 0D 02 02 05 00 EC 13 C1 4D 7D 00 00 FC [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [22:27:29]RAPDU: 90 00 [22:27:29]wFMCommunicate OK [22:27:29]wFMCommunicate request_size=4 [22:27:29]MH_SAM_APDU [22:27:29]CAPDU: 80 0D 03 02 [22:27:29]Write to MH i2c: E2 08 00 D6 19 80 0D 03 02 00 00 00 00 6A [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 0B 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 0B 00 D6 19 00 F8 E3 7D 4C 0D E8 EE 78 90 00 6A [22:27:29]RAPDU: F8 E3 7D 4C 0D E8 EE 78 90 00 [22:27:29]wFMCommunicate OK [22:27:29]SAM_PROTO_SignData done [22:27:29]FM_MakeSignedData done [22:27:29]CreateOFDProtocolMessage [22:27:29]wFMCommunicate request_size=4 [22:27:29]MH_SAM_APDU [22:27:29]CAPDU: 80 11 00 00 [22:27:29]Write to MH i2c: E2 08 00 D7 19 80 11 00 00 00 00 00 00 6A [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:29]Read from MH i2c: E2 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 17 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: E2 17 00 D7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [22:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:27:29]wFMCommunicate OK [22:27:29]CreateOFDProtocolMessage done [22:27:29]OFDSenderStorePacket 164777 [22:27:29]StoreOFDPacket docnum=164777 [22:27:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 0F 07 01 15 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 51 FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 83 02 00 35 04 06 00 D5 EC 13 C1 4D 7D F8 E3 7D 4C 0D E8 EE 78 [22:27:29]CheckFolder [22:27:29]dirname=/storage/ofd_packets [22:27:29]CheckFolder done [22:27:29]ProducePacketName [22:27:29]name=ofd_packets/00164777 [22:27:29]NVStorageSaveData ofd_packets/00164777 [22:27:29]File name is /storage/ofd_packets/00164777 [22:27:29]Write 301 bytes [22:27:29]NVStorageSaveData done [22:27:29]OFDSenderStorePacket done [22:27:29]KKMCreateOFDPacket done [22:27:29]NVStorageSaveData kkm_last_timestamp [22:27:29]File name is /storage/kkm_last_timestamp [22:27:29]Write 4 bytes [22:27:29]NVStorageSaveData done [22:27:29]ExternCall_PrintAddStr [22:27:29]wPrintStart [22:27:29]Write to MH i2c: 01 00 00 D8 19 F1 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 FF 0F 06 [22:27:29]RasterBufferAndPrint [22:27:29]line Счет N : (1)458871 [22:27:29]line ИНН: 02508201610067 [22:27:29]line Контрольно-Кассовый Чек [22:27:29]line ПРОДАЖА [22:27:29]line ТРК (МРК, ГНК) : 12 [22:27:29]line Товар: 2710124130 [22:27:29]line Аи-92-К-5 [22:27:29]line 9.200 * 65.22 [22:27:29]line = 600.02 [22:27:29]line НДС 12% НСП 1% [22:27:29]line > о реализуемом товаре [22:27:29]line ИТОГО: 600.02 [22:27:29]line НСП 1% : 5.31 [22:27:29]line НДС 12% : 63.72 [22:27:29]line Наличными: 0.00 [22:27:29]line Безнал.: 600.02 [22:27:29]line Место: АЗС № 72 "Партнер Нефть" [22:27:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:27:29]line СНО: Общий режим [22:27:29]line Чек 337 13.07.2024 22:27 [22:27:29]line Смена: 446 ФФД: 1.0 [22:27:29]line ЗНМ: 0300000160 [22:27:29]line РНМ: 0000000000090829 [22:27:29]line Версия ККМ: 001 [22:27:29]line Платежная система: KICB Банк [22:27:29]line ФМ: 0000000000874718 [22:27:29]line ФД: 164777 [22:27:29]line ФПД: 235209920433533 [22:27:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164777&fm=235209920433533&tin=02508201610067®Number=0000000000090829&sum=60002 [22:27:29]written 0, free lines is 4095 [22:27:29]OFD Sender: Processing packet 164777 [packets to send 104, broken 103] [22:27:29]ProducePacketName [22:27:29]name=ofd_packets/00164777 [22:27:29]OFD Sender: To server: pG, [22:27:29]CommunicateWithHost lk.salyk.kg:30040 [22:27:29]ConnectInit lk.salyk.kg [22:27:29]Connected sock=10 [22:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 0F 07 01 15 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 51 FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 83 02 00 35 04 06 00 D5 EC 13 C1 4D 7D F8 E3 7D 4C 0D E8 EE 78 [22:27:29]Write to MH i2c: 01 00 00 01 1A 1B [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 01 1A 00 00 00 00 00 06 0D 35 [22:27:29]RasterBufferAndPrint [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]written 0, free lines is 3340 [22:27:29]MH_Cut [22:27:29]Write to MH i2c: D1 01 00 08 1A 01 F4 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 01 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 01 00 08 1A 00 F3 [22:27:29]Write to MH i2c: 01 00 00 09 1A 23 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A4 16 47 00 E6 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 83 02 00 F4 03 04 00 E0 A5 92 66 B6 04 01 00 00 11 EC E7 0C 3A 89 1C 45 [22:27:30]CommunicateWithHost err = 0 [22:27:30]CheckOFDResponse [22:27:30]1017 (14) - 77093643461234 [22:27:30]1041 (16) - 0000000000874718 [22:27:30]1040 (4) - 164777 [22:27:30]1012 (4) - 13.07.2024 16:05 [22:27:30]1206 (1) - 0 [22:27:30]OFD Sender: Remove packet 164777 [22:27:30]ProducePacketName [22:27:30]name=ofd_packets/00164777 [22:27:30]NVStorageDeleteData [22:27:30]*** Cut start [22:27:30]*** Partial cut [22:27:30]*** CUTSNS_PIN = 1 [22:27:30]*** CUTSNS_PIN = 0 [22:27:30]OFD Sender: No OFD packet to send [22:27:30]*** Brake cut motor [22:27:31]Read from MH i2c: 01 [22:27:31]MH_I2C_Read... [22:27:31]*** Stop cut motor [22:27:31]*** Cut end [22:27:31]Read from MH i2c: 01 07 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: 01 07 00 09 1A 00 00 00 00 00 FF 0F 38 [22:27:31]process_action close_receipt done [22:27:31]requested_data is exist [22:27:31]produce_requested_data [22:27:31]requested_item fm.sn is exist - process it [22:27:31]wFMCommunicate request_size=4 [22:27:31]MH_SAM_APDU [22:27:31]CAPDU: 80 11 00 00 [22:27:31]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [22:27:31]Write i2c OK [22:27:31]MH_I2C_Read... [22:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:31]Read from MH i2c: E2 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 17 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [22:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:27:31]wFMCommunicate OK [22:27:31]requested_item fd.num is exist - process it [22:27:31]SAM_PROTO_GetFieldsCounters [22:27:31]wFMCommunicate request_size=4 [22:27:31]MH_SAM_APDU [22:27:31]CAPDU: 80 13 00 00 [22:27:31]Write to MH i2c: E2 08 00 0B 1A 80 13 00 00 00 00 00 00 A1 [22:27:31]Write i2c OK [22:27:31]MH_I2C_Read... [22:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:31]Read from MH i2c: E2 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 62 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 62 00 0B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [22:27: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:31]wFMCommunicate OK [22:27:31]SAM_PROTO_GetFieldsCounters done [22:27:31]requested_item shift.num is exist - process it [22:27:31]requested_item shift.opened is exist - process it [22:27:31]req_shift_opened [22:27:31]FM_GetShiftState [22:27:31]SAM_PROTO_GetShiftState [22:27:31]wFMCommunicate request_size=4 [22:27:31]MH_SAM_APDU [22:27:31]CAPDU: 80 13 01 00 [22:27:31]Write to MH i2c: E2 08 00 0C 1A 80 13 01 00 00 00 00 00 A3 [22:27:31]Write i2c OK [22:27:31]MH_I2C_Read... [22:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:31]Read from MH i2c: E2 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 0E 00 [22:27:31]MH_I2C_Read... [22:27:31]Read from MH i2c: E2 0E 00 0C 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 84 [22:27:31]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:27:31]wFMCommunicate OK [22:27:31]SAM_PROTO_GetShiftState done [22:27:31]FM_GetShiftState done [22:27:31]req_shift_opened done [22:27:31]requested_item shift.open_date is exist - process it [22:27:31]req_shift_open_date [22:27:31]req_shift_open_date done [22:27:31]produce_requested_data done [22:27:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164777,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:27:31]process_action_free close_receipt [22:27:31]json_value_free [22:27:31]json_value_free done [22:27:31]process_json_proto returns [22:27:31]Send response to host [22:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164777,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:27:31]free response buf [22:27:31]execute_script done [22:27:31]execute_script returns [22:27:31]free content buf [22:27:31]Sock 7.Close socket [22:27:31]Sock 7.Thread stoped [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:13]accept exits with 9 [22:29:13]New connection [22:29:13]New thread 3067247972 created [22:29:13]Thread 3067104612 joined [22:29:13]Waiting for new connection... [22:29:13] Sock 9.Parse request [22:29:13]Sock 9.Check first char [22:29:13]Sock 9.First char is OK [22:29:13]request: POST /json_proto HTTP/1.0 [22:29:13]Method: POST [22:29:13]URL: /json_proto [22:29:13]Method is POST - this is cgi request [22:29:13]url: /json_proto [22:29:13]query_string will be loaded in cgi processing [22:29:13]execute_cgi json_proto POST (null) [22:29:13]execute_cgi path=json_proto method=POST [22:29:13]POST find Content-Length [22:29:13]Host: 172.17.56.4:8080 [22:29:13]Content-Length: 677 [22:29:13]Content-Type: application/json [22:29:13] [22:29:13]POST finish read [22:29:13]Found Content-Length = 677 [22:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:13]execute_script... [22:29: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)458872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:13]POST & json_proto [22:29:13]process_json_proto [22:29:13]json parsed OK: [22:29:13]protocol is kg_v1.0 [22:29:13]action value=close_receipt [22:29:13]process_action close_receipt [22:29:13]cmd_close_receipt [22:29:13]MH_GetDate [22:29:13]Write to MH i2c: F0 00 00 0D 1A 16 [22:29:13]Write i2c OK [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: F0 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: F0 09 00 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: F0 09 00 0D 1A 00 BA FF 92 66 C9 DC B2 64 8B [22:29:13]GetLastDocTimeStamp 1720909649 [22:29:13]current date 1720909754 [22:29:13]FM_GetShiftState [22:29:13]SAM_PROTO_GetShiftState [22:29:13]wFMCommunicate request_size=4 [22:29:13]MH_SAM_APDU [22:29:13]CAPDU: 80 13 01 00 [22:29:13]Write to MH i2c: E2 08 00 0E 1A 80 13 01 00 00 00 00 00 A5 [22:29:13]Write i2c OK [22:29:13]MH_I2C_Read... [22:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:13]Read from MH i2c: E2 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: E2 0E 00 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: E2 0E 00 0E 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 86 [22:29:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:29:13]wFMCommunicate OK [22:29:13]SAM_PROTO_GetShiftState done [22:29:13]FM_GetShiftState done [22:29:13]opened in 1720831249 [22:29:13]opened+sec_in_day 1720917649 [22:29:13]quantity*price = 50008 [22:29:13]sum+1 = 50009 [22:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 338 13.07.2024 22:29 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164778 ФПД: 22607007815516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222914&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164778&fm=22607007815516&tin=02508201610067®Number=0000000000090829&sum=50000 [22:29:14]StoreToDocumentArchive [22:29:14]shift 446 fd 164778 [22:29:14]save to /storage/0446/doc_00164778 [22:29:14]save last doc name /storage/0446/doc_00164778 to /storage/kkm_last_doc_name [22:29:14]save OK [22:29:14]Clear old archive folders... [22:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:14]tlvbuf is 01EB7610 [22:29:14]SAM_PROTO_ClearQueue [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 09 00 00 [22:29:14]Write to MH i2c: E2 08 00 1B 1A 80 09 00 00 00 00 00 00 A7 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [22:29:14]RAPDU: 90 00 [22:29:14]wFMCommunicate OK [22:29:14]SAM_PROTO_ClearQueue done [22:29:14]KKMCreateOFDPacket [22:29:14]OFDProtocolAddRootSTLVToBuf [22:29:14]FM_MakeSignedData [22:29:14]FM_MakeSignedData [22:29:14]SAM_PROTO_SignData [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 0D 01 02 [22:29:14]Write to MH i2c: E2 08 00 1C 1A 80 0D 01 02 00 00 00 00 AF [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [22:29:14]RAPDU: 90 00 [22:29:14]wFMCommunicate OK [22:29:14]wFMCommunicate request_size=255 [22:29:14]MH_SAM_APDU [22:29: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 01 00 00 F4 03 04 00 BA FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 83 02 00 35 04 06 00 14 [22:29:14]Write to MH i2c: E2 02 01 1D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 01 00 00 F4 03 04 00 BA FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 83 02 00 35 04 06 00 14 00 00 2E [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [22:29:14]RAPDU: 90 00 [22:29:14]wFMCommunicate OK [22:29:14]wFMCommunicate request_size=10 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 0D 02 02 05 8F 9A AB 97 5C [22:29:14]Write to MH i2c: E2 0D 00 1E 1A 80 0D 02 02 05 00 8F 9A AB 97 5C 00 00 83 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 03 00 1E 1A 00 90 00 AC [22:29:14]RAPDU: 90 00 [22:29:14]wFMCommunicate OK [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 0D 03 02 [22:29:14]Write to MH i2c: E2 08 00 1F 1A 80 0D 03 02 00 00 00 00 B4 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0B 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0B 00 1F 1A 00 71 D9 1E 2E A2 8E 22 AD 90 00 4A [22:29:14]RAPDU: 71 D9 1E 2E A2 8E 22 AD 90 00 [22:29:14]wFMCommunicate OK [22:29:14]SAM_PROTO_SignData done [22:29:14]FM_MakeSignedData done [22:29:14]CreateOFDProtocolMessage [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 11 00 00 [22:29:14]Write to MH i2c: E2 08 00 20 1A 80 11 00 00 00 00 00 00 B4 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 17 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 17 00 20 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [22:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:29:14]wFMCommunicate OK [22:29:14]CreateOFDProtocolMessage done [22:29:14]OFDSenderStorePacket 164778 [22:29:14]StoreOFDPacket docnum=164778 [22:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 46 07 01 11 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 01 00 00 F4 03 04 00 BA FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 83 02 00 35 04 06 00 14 8F 9A AB 97 5C 71 D9 1E 2E A2 8E 22 AD [22:29:14]CheckFolder [22:29:14]dirname=/storage/ofd_packets [22:29:14]CheckFolder done [22:29:14]ProducePacketName [22:29:14]name=ofd_packets/00164778 [22:29:14]NVStorageSaveData ofd_packets/00164778 [22:29:14]File name is /storage/ofd_packets/00164778 [22:29:14]Write 301 bytes [22:29:14]NVStorageSaveData done [22:29:14]OFDSenderStorePacket done [22:29:14]KKMCreateOFDPacket done [22:29:14]NVStorageSaveData kkm_last_timestamp [22:29:14]File name is /storage/kkm_last_timestamp [22:29:14]Write 4 bytes [22:29:14]NVStorageSaveData done [22:29:14]ExternCall_PrintAddStr [22:29:14]wPrintStart [22:29:14]Write to MH i2c: 01 00 00 21 1A 3B [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: 01 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: 01 07 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: 01 07 00 21 1A 00 00 00 00 00 FF 0F 50 [22:29:14]RasterBufferAndPrint [22:29:14]line Счет N : (1)458872 [22:29:14]line ИНН: 02508201610067 [22:29:14]line Контрольно-Кассовый Чек [22:29:14]line ПРОДАЖА [22:29:14]line ТРК (МРК, ГНК) : 12 [22:29:14]line Товар: 2710124130 [22:29:14]line Аи-92-К-5 [22:29:14]line 7.600 * 65.80 [22:29:14]line = 500.08 [22:29:14]line НДС 12% НСП 1% [22:29:14]line > о реализуемом товаре [22:29:14]line ОКРУГЛЕНИЕ: -0.08 [22:29:14]line ИТОГО: 500.00 [22:29:14]line Внесено: 500.00 [22:29:14]line СДАЧА: 0.00 [22:29:14]line НСП 1% : 4.42 [22:29:14]line НДС 12% : 53.11 [22:29:14]line Наличными: 500.00 [22:29:14]line Безнал.: 0.00 [22:29:14]line Место: АЗС № 72 "Партнер Нефть" [22:29:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:29:14]line СНО: Общий режим [22:29:14]line Чек 338 13.07.2024 22:29 [22:29:14]line Смена: 446 ФФД: 1.0 [22:29:14]line ЗНМ: 0300000160 [22:29:14]line РНМ: 0000000000090829 [22:29:14]line Версия ККМ: 001 [22:29:14]line ФМ: 0000000000874718 [22:29:14]line ФД: 164778 [22:29:14]line ФПД: 22607007815516 [22:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T222914&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164778&fm=22607007815516&tin=02508201610067®Number=0000000000090829&sum=50000 [22:29:15]OFD Sender: Processing packet 164778 [packets to send 104, broken 103] [22:29:15]ProducePacketName [22:29:15]name=ofd_packets/00164778 [22:29:15]OFD Sender: To server: pG, [22:29:15]CommunicateWithHost lk.salyk.kg:30040 [22:29:15]ConnectInit lk.salyk.kg [22:29:15]written 0, free lines is 4095 [22:29:15]Connected sock=11 [22:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 46 07 01 11 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 52 01 00 00 F4 03 04 00 BA FF 92 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 83 02 00 35 04 06 00 14 8F 9A AB 97 5C 71 D9 1E 2E A2 8E 22 AD [22:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 69 47 00 B1 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 83 02 00 F4 03 04 00 4A A6 92 66 B6 04 01 00 00 B8 DE 8C 51 7A 9C 62 D1 [22:29:15]CommunicateWithHost err = 0 [22:29:15]CheckOFDResponse [22:29:15]1017 (14) - 77093643461234 [22:29:15]1041 (16) - 0000000000874718 [22:29:15]1040 (4) - 164778 [22:29:15]1012 (4) - 13.07.2024 16:07 [22:29:15]1206 (1) - 0 [22:29:15]OFD Sender: Remove packet 164778 [22:29:15]ProducePacketName [22:29:15]name=ofd_packets/00164778 [22:29:15]NVStorageDeleteData [22:29:15]Write to MH i2c: 01 00 00 4B 1A 65 [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: 01 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: 01 07 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: 01 07 00 4B 1A 00 00 00 00 00 F3 0C 6B [22:29:15]RasterBufferAndPrint [22:29:15]line [22:29:15]line [22:29:15]line [22:29:15]line [22:29:15]line [22:29:15]written 0, free lines is 3322 [22:29:15]MH_Cut [22:29:15]Write to MH i2c: D1 01 00 52 1A 01 3E [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: D1 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: D1 01 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: D1 01 00 52 1A 00 3D [22:29:15]Write to MH i2c: 01 00 00 53 1A 6D [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]OFD Sender: No OFD packet to send [22:29:16]*** Cut start [22:29:16]*** Partial cut [22:29:16]*** CUTSNS_PIN = 1 [22:29:16]*** CUTSNS_PIN = 0 [22:29:16]*** Brake cut motor [22:29:16]Read from MH i2c: 01 [22:29:16]MH_I2C_Read... [22:29:16]*** Stop cut motor [22:29:16]*** Cut end [22:29:16]Read from MH i2c: 01 07 00 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FF 0F 82 [22:29:16]process_action close_receipt done [22:29:16]requested_data is exist [22:29:16]produce_requested_data [22:29:16]requested_item fm.sn is exist - process it [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 11 00 00 [22:29:16]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:16]Read from MH i2c: E2 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 17 00 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [22:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:29:16]wFMCommunicate OK [22:29:16]requested_item fd.num is exist - process it [22:29:16]SAM_PROTO_GetFieldsCounters [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 13 00 00 [22:29:16]Write to MH i2c: E2 08 00 55 1A 80 13 00 00 00 00 00 00 EB [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:16]Read from MH i2c: E2 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 62 00 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 62 00 55 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [22:29: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:16]wFMCommunicate OK [22:29:16]SAM_PROTO_GetFieldsCounters done [22:29:16]requested_item shift.num is exist - process it [22:29:16]requested_item shift.opened is exist - process it [22:29:16]req_shift_opened [22:29:16]FM_GetShiftState [22:29:16]SAM_PROTO_GetShiftState [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 13 01 00 [22:29:16]Write to MH i2c: E2 08 00 56 1A 80 13 01 00 00 00 00 00 ED [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0E 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0E 00 56 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 CE [22:29:17]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_GetShiftState done [22:29:17]FM_GetShiftState done [22:29:17]req_shift_opened done [22:29:17]requested_item shift.open_date is exist - process it [22:29:17]req_shift_open_date [22:29:17]req_shift_open_date done [22:29:17]produce_requested_data done [22:29:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164778,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:29:17]process_action_free close_receipt [22:29:17]json_value_free [22:29:17]json_value_free done [22:29:17]process_json_proto returns [22:29:17]Send response to host [22:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164778,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:29:17]free response buf [22:29:17]execute_script done [22:29:17]execute_script returns [22:29:17]free content buf [22:29:17]Sock 9.Close socket [22:29:17]Sock 9.Thread stoped [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:16]accept exits with 7 [22:38:16]New connection [22:38:16]New thread 3067104612 created [22:38:16]Thread 3067247972 joined [22:38:16]Waiting for new connection... [22:38:16] Sock 7.Parse request [22:38:16]Sock 7.Check first char [22:38:16]Sock 7.First char is OK [22:38:16]request: POST /json_proto HTTP/1.0 [22:38:16]Method: POST [22:38:16]URL: /json_proto [22:38:16]Method is POST - this is cgi request [22:38:16]url: /json_proto [22:38:16]query_string will be loaded in cgi processing [22:38:16]execute_cgi json_proto POST (null) [22:38:16]execute_cgi path=json_proto method=POST [22:38:16]POST find Content-Length [22:38:16]Host: 172.17.56.4:8080 [22:38:16]Content-Length: 677 [22:38:16]Content-Type: application/json [22:38:16] [22:38:16]POST finish read [22:38:16]Found Content-Length = 677 [22:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:16]execute_script... [22:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:16]POST & json_proto [22:38:16]process_json_proto [22:38:16]json parsed OK: [22:38:16]protocol is kg_v1.0 [22:38:16]action value=close_receipt [22:38:16]process_action close_receipt [22:38:16]cmd_close_receipt [22:38:16]MH_GetDate [22:38:16]Write to MH i2c: F0 00 00 57 1A 60 [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 09 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: F0 09 00 57 1A 00 DA 01 93 66 C9 DC B2 64 F8 [22:38:16]GetLastDocTimeStamp 1720909754 [22:38:16]current date 1720910298 [22:38:16]FM_GetShiftState [22:38:16]SAM_PROTO_GetShiftState [22:38:16]wFMCommunicate request_size=4 [22:38:16]MH_SAM_APDU [22:38:16]CAPDU: 80 13 01 00 [22:38:16]Write to MH i2c: E2 08 00 58 1A 80 13 01 00 00 00 00 00 EF [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:16]Read from MH i2c: E2 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 58 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D0 [22:38:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:38:16]wFMCommunicate OK [22:38:16]SAM_PROTO_GetShiftState done [22:38:16]FM_GetShiftState done [22:38:16]opened in 1720831249 [22:38:16]opened+sec_in_day 1720917649 [22:38:16]quantity*price = 50008 [22:38:16]sum+1 = 50009 [22:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 339 13.07.2024 22:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164779 ФПД: 230965356163770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164779&fm=230965356163770&tin=02508201610067®Number=0000000000090829&sum=50000 [22:38:18]StoreToDocumentArchive [22:38:18]shift 446 fd 164779 [22:38:18]save to /storage/0446/doc_00164779 [22:38:18]save last doc name /storage/0446/doc_00164779 to /storage/kkm_last_doc_name [22:38:18]save OK [22:38:18]Clear old archive folders... [22:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:18]tlvbuf is B6F9D3B0 [22:38:18]SAM_PROTO_ClearQueue [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 09 00 00 [22:38:18]Write to MH i2c: E2 08 00 65 1A 80 09 00 00 00 00 00 00 F1 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]SAM_PROTO_ClearQueue done [22:38:18]KKMCreateOFDPacket [22:38:18]OFDProtocolAddRootSTLVToBuf [22:38:18]FM_MakeSignedData [22:38:18]FM_MakeSignedData [22:38:18]SAM_PROTO_SignData [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 01 02 [22:38:18]Write to MH i2c: E2 08 00 66 1A 80 0D 01 02 00 00 00 00 F9 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=255 [22:38:18]MH_SAM_APDU [22:38: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 01 00 00 F4 03 04 00 DA 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 83 02 00 35 04 06 00 D2 [22:38:18]Write to MH i2c: E2 02 01 67 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 01 00 00 F4 03 04 00 DA 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 83 02 00 35 04 06 00 D2 00 00 5B [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=10 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 02 02 05 0F D0 02 72 BA [22:38:18]Write to MH i2c: E2 0D 00 68 1A 80 0D 02 02 05 00 0F D0 02 72 BA 00 00 13 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [22:38:18]RAPDU: 90 00 [22:38:18]wFMCommunicate OK [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 0D 03 02 [22:38:18]Write to MH i2c: E2 08 00 69 1A 80 0D 03 02 00 00 00 00 FE [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 0B 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 0B 00 69 1A 00 21 88 57 7F 7B 8E CE DE 90 00 33 [22:38:18]RAPDU: 21 88 57 7F 7B 8E CE DE 90 00 [22:38:18]wFMCommunicate OK [22:38:18]SAM_PROTO_SignData done [22:38:18]FM_MakeSignedData done [22:38:18]CreateOFDProtocolMessage [22:38:18]wFMCommunicate request_size=4 [22:38:18]MH_SAM_APDU [22:38:18]CAPDU: 80 11 00 00 [22:38:18]Write to MH i2c: E2 08 00 6A 1A 80 11 00 00 00 00 00 00 FE [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:18]Read from MH i2c: E2 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 17 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: E2 17 00 6A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [22:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:38:18]wFMCommunicate OK [22:38:18]CreateOFDProtocolMessage done [22:38:18]OFDSenderStorePacket 164779 [22:38:18]StoreOFDPacket docnum=164779 [22:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 BD 07 01 BC 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 01 00 00 F4 03 04 00 DA 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 83 02 00 35 04 06 00 D2 0F D0 02 72 BA 21 88 57 7F 7B 8E CE DE [22:38:18]CheckFolder [22:38:18]dirname=/storage/ofd_packets [22:38:18]CheckFolder done [22:38:18]ProducePacketName [22:38:18]name=ofd_packets/00164779 [22:38:18]NVStorageSaveData ofd_packets/00164779 [22:38:18]File name is /storage/ofd_packets/00164779 [22:38:18]Write 301 bytes [22:38:18]NVStorageSaveData done [22:38:18]OFDSenderStorePacket done [22:38:18]KKMCreateOFDPacket done [22:38:18]NVStorageSaveData kkm_last_timestamp [22:38:18]File name is /storage/kkm_last_timestamp [22:38:18]Write 4 bytes [22:38:18]NVStorageSaveData done [22:38:18]ExternCall_PrintAddStr [22:38:18]wPrintStart [22:38:18]Write to MH i2c: 01 00 00 6B 1A 85 [22:38:18]Write i2c OK [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 07 00 [22:38:18]MH_I2C_Read... [22:38:18]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 FF 0F 9A [22:38:18]RasterBufferAndPrint [22:38:18]line Счет N : (1)458873 [22:38:18]line ИНН: 02508201610067 [22:38:18]line Контрольно-Кассовый Чек [22:38:18]line ПРОДАЖА [22:38:18]line ТРК (МРК, ГНК) : 22 [22:38:18]line Товар: 2710124130 [22:38:18]line Аи-92-К-5 [22:38:18]line 7.600 * 65.80 [22:38:18]line = 500.08 [22:38:18]line НДС 12% НСП 1% [22:38:18]line > о реализуемом товаре [22:38:18]line ОКРУГЛЕНИЕ: -0.08 [22:38:18]line ИТОГО: 500.00 [22:38:18]line Внесено: 500.00 [22:38:18]line СДАЧА: 0.00 [22:38:18]line НСП 1% : 4.42 [22:38:18]line НДС 12% : 53.11 [22:38:18]line Наличными: 500.00 [22:38:18]line Безнал.: 0.00 [22:38:18]line Место: АЗС № 72 "Партнер Нефть" [22:38:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:38:18]line СНО: Общий режим [22:38:18]line Чек 339 13.07.2024 22:38 [22:38:18]line Смена: 446 ФФД: 1.0 [22:38:18]line ЗНМ: 0300000160 [22:38:18]line РНМ: 0000000000090829 [22:38:18]line Версия ККМ: 001 [22:38:18]line ФМ: 0000000000874718 [22:38:18]line ФД: 164779 [22:38:18]line ФПД: 230965356163770 [22:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223818&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164779&fm=230965356163770&tin=02508201610067®Number=0000000000090829&sum=50000 [22:38:18]OFD Sender: Processing packet 164779 [packets to send 104, broken 103] [22:38:18]ProducePacketName [22:38:18]name=ofd_packets/00164779 [22:38:18]OFD Sender: To server: pG, [22:38:18]CommunicateWithHost lk.salyk.kg:30040 [22:38:18]ConnectInit lk.salyk.kg [22:38:18]written 0, free lines is 4095 [22:38:18]Connected sock=10 [22:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 BD 07 01 BC 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 53 01 00 00 F4 03 04 00 DA 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 83 02 00 35 04 06 00 D2 0F D0 02 72 BA 21 88 57 7F 7B 8E CE DE [22:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B9 07 47 00 F1 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 83 02 00 F4 03 04 00 69 A8 92 66 B6 04 01 00 00 60 BC FF 3D A8 65 64 DC [22:38:19]CommunicateWithHost err = 0 [22:38:19]CheckOFDResponse [22:38:19]1017 (14) - 77093643461234 [22:38:19]1041 (16) - 0000000000874718 [22:38:19]1040 (4) - 164779 [22:38:19]1012 (4) - 13.07.2024 16:16 [22:38:19]1206 (1) - 0 [22:38:19]OFD Sender: Remove packet 164779 [22:38:19]ProducePacketName [22:38:19]name=ofd_packets/00164779 [22:38:19]NVStorageDeleteData [22:38:19]Write to MH i2c: 01 00 00 95 1A AF [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 07 00 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 F4 0C B6 [22:38:19]RasterBufferAndPrint [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]line [22:38:19]written 0, free lines is 3324 [22:38:19]MH_Cut [22:38:19]Write to MH i2c: D1 01 00 9C 1A 01 88 [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 01 00 [22:38:19]MH_I2C_Read... [22:38:19]Read from MH i2c: D1 01 00 9C 1A 00 87 [22:38:19]Write to MH i2c: 01 00 00 9D 1A B7 [22:38:19]Write i2c OK [22:38:19]MH_I2C_Read... [22:38:19]OFD Sender: No OFD packet to send [22:38:20]*** Cut start [22:38:20]*** Partial cut [22:38:20]*** CUTSNS_PIN = 1 [22:38:20]*** CUTSNS_PIN = 0 [22:38:20]*** Brake cut motor [22:38:20]Read from MH i2c: 01 [22:38:20]MH_I2C_Read... [22:38:20]*** Stop cut motor [22:38:20]*** Cut end [22:38:20]Read from MH i2c: 01 07 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [22:38:20]process_action close_receipt done [22:38:20]requested_data is exist [22:38:20]produce_requested_data [22:38:20]requested_item fm.sn is exist - process it [22:38:20]wFMCommunicate request_size=4 [22:38:20]MH_SAM_APDU [22:38:20]CAPDU: 80 11 00 00 [22:38:20]Write to MH i2c: E2 08 00 9E 1A 80 11 00 00 00 00 00 00 32 [22:38:20]Write i2c OK [22:38:20]MH_I2C_Read... [22:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:20]Read from MH i2c: E2 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 17 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 17 00 9E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [22:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:38:20]wFMCommunicate OK [22:38:20]requested_item fd.num is exist - process it [22:38:20]SAM_PROTO_GetFieldsCounters [22:38:20]wFMCommunicate request_size=4 [22:38:20]MH_SAM_APDU [22:38:20]CAPDU: 80 13 00 00 [22:38:20]Write to MH i2c: E2 08 00 9F 1A 80 13 00 00 00 00 00 00 35 [22:38:20]Write i2c OK [22:38:20]MH_I2C_Read... [22:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:20]Read from MH i2c: E2 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 62 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 62 00 9F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:20]wFMCommunicate OK [22:38:20]SAM_PROTO_GetFieldsCounters done [22:38:20]requested_item shift.num is exist - process it [22:38:20]requested_item shift.opened is exist - process it [22:38:20]req_shift_opened [22:38:20]FM_GetShiftState [22:38:20]SAM_PROTO_GetShiftState [22:38:20]wFMCommunicate request_size=4 [22:38:20]MH_SAM_APDU [22:38:20]CAPDU: 80 13 01 00 [22:38:20]Write to MH i2c: E2 08 00 A0 1A 80 13 01 00 00 00 00 00 37 [22:38:20]Write i2c OK [22:38:20]MH_I2C_Read... [22:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:20]Read from MH i2c: E2 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 0E 00 [22:38:20]MH_I2C_Read... [22:38:20]Read from MH i2c: E2 0E 00 A0 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 18 [22:38:20]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:38:20]wFMCommunicate OK [22:38:20]SAM_PROTO_GetShiftState done [22:38:20]FM_GetShiftState done [22:38:20]req_shift_opened done [22:38:20]requested_item shift.open_date is exist - process it [22:38:20]req_shift_open_date [22:38:20]req_shift_open_date done [22:38:20]produce_requested_data done [22:38:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164779,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:38:20]process_action_free close_receipt [22:38:20]json_value_free [22:38:20]json_value_free done [22:38:20]process_json_proto returns [22:38:20]Send response to host [22:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164779,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:38:20]free response buf [22:38:20]execute_script done [22:38:20]execute_script returns [22:38:20]free content buf [22:38:20]Sock 7.Close socket [22:38:20]Sock 7.Thread stoped [22:38:21]accept exits with 9 [22:38:21]New connection [22:38:21]New thread 3067247972 created [22:38:21]Thread 3067104612 joined [22:38:21]Waiting for new connection... [22:38:21] Sock 9.Parse request [22:38:21]Sock 9.Check first char [22:38:21]Sock 9.First char is OK [22:38:21]request: POST /json_proto HTTP/1.0 [22:38:21]Method: POST [22:38:21]URL: /json_proto [22:38:21]Method is POST - this is cgi request [22:38:21]url: /json_proto [22:38:21]query_string will be loaded in cgi processing [22:38:21]execute_cgi json_proto POST (null) [22:38:21]execute_cgi path=json_proto method=POST [22:38:21]POST find Content-Length [22:38:21]Host: 172.17.56.4:8080 [22:38:21]Content-Length: 677 [22:38:21]Content-Type: application/json [22:38:21] [22:38:21]POST finish read [22:38:21]Found Content-Length = 677 [22:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:21]execute_script... [22:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:21]POST & json_proto [22:38:21]process_json_proto [22:38:21]json parsed OK: [22:38:21]protocol is kg_v1.0 [22:38:21]action value=close_receipt [22:38:21]process_action close_receipt [22:38:21]cmd_close_receipt [22:38:21]MH_GetDate [22:38:21]Write to MH i2c: F0 00 00 A1 1A AA [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: F0 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: F0 09 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: F0 09 00 A1 1A 00 DE 01 93 66 C9 DC B2 64 46 [22:38:21]GetLastDocTimeStamp 1720910298 [22:38:21]current date 1720910302 [22:38:21]FM_GetShiftState [22:38:21]SAM_PROTO_GetShiftState [22:38:21]wFMCommunicate request_size=4 [22:38:21]MH_SAM_APDU [22:38:21]CAPDU: 80 13 01 00 [22:38:21]Write to MH i2c: E2 08 00 A2 1A 80 13 01 00 00 00 00 00 39 [22:38:21]Write i2c OK [22:38:21]MH_I2C_Read... [22:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:21]Read from MH i2c: E2 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 0E 00 [22:38:21]MH_I2C_Read... [22:38:21]Read from MH i2c: E2 0E 00 A2 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1A [22:38:21]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:38:21]wFMCommunicate OK [22:38:21]SAM_PROTO_GetShiftState done [22:38:21]FM_GetShiftState done [22:38:21]opened in 1720831249 [22:38:21]opened+sec_in_day 1720917649 [22:38:21]quantity*price = 50008 [22:38:21]sum+1 = 50009 [22:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 340 13.07.2024 22:38 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164780 ФПД: 177692928244451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164780&fm=177692928244451&tin=02508201610067®Number=0000000000090829&sum=50000 [22:38:22]StoreToDocumentArchive [22:38:22]shift 446 fd 164780 [22:38:22]save to /storage/0446/doc_00164780 [22:38:22]save last doc name /storage/0446/doc_00164780 to /storage/kkm_last_doc_name [22:38:22]save OK [22:38:22]Clear old archive folders... [22:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:22]tlvbuf is 01F17DF0 [22:38:22]SAM_PROTO_ClearQueue [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 09 00 00 [22:38:22]Write to MH i2c: E2 08 00 AF 1A 80 09 00 00 00 00 00 00 3B [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 03 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [22:38:22]RAPDU: 90 00 [22:38:22]wFMCommunicate OK [22:38:22]SAM_PROTO_ClearQueue done [22:38:22]KKMCreateOFDPacket [22:38:22]OFDProtocolAddRootSTLVToBuf [22:38:22]FM_MakeSignedData [22:38:22]FM_MakeSignedData [22:38:22]SAM_PROTO_SignData [22:38:22]wFMCommunicate request_size=4 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 0D 01 02 [22:38:22]Write to MH i2c: E2 08 00 B0 1A 80 0D 01 02 00 00 00 00 43 [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:22]Read from MH i2c: E2 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 03 00 [22:38:22]MH_I2C_Read... [22:38:22]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [22:38:22]RAPDU: 90 00 [22:38:22]wFMCommunicate OK [22:38:22]wFMCommunicate request_size=255 [22:38:22]MH_SAM_APDU [22:38:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 DE 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 83 02 00 35 04 06 00 A1 [22:38:22]Write to MH i2c: E2 02 01 B1 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 DE 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 83 02 00 35 04 06 00 A1 00 00 7A [22:38:22]Write i2c OK [22:38:22]MH_I2C_Read... [22:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:23]Read from MH i2c: E2 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 03 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [22:38:23]RAPDU: 90 00 [22:38:23]wFMCommunicate OK [22:38:23]wFMCommunicate request_size=10 [22:38:23]MH_SAM_APDU [22:38:23]CAPDU: 80 0D 02 02 05 9C 5B DD FA E3 [22:38:23]Write to MH i2c: E2 0D 00 B2 1A 80 0D 02 02 05 00 9C 5B DD FA E3 00 00 01 [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:23]Read from MH i2c: E2 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 03 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [22:38:23]RAPDU: 90 00 [22:38:23]wFMCommunicate OK [22:38:23]wFMCommunicate request_size=4 [22:38:23]MH_SAM_APDU [22:38:23]CAPDU: 80 0D 03 02 [22:38:23]Write to MH i2c: E2 08 00 B3 1A 80 0D 03 02 00 00 00 00 48 [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:23]Read from MH i2c: E2 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 0B 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 0B 00 B3 1A 00 E3 75 D5 95 FC 94 25 28 90 00 E8 [22:38:23]RAPDU: E3 75 D5 95 FC 94 25 28 90 00 [22:38:23]wFMCommunicate OK [22:38:23]SAM_PROTO_SignData done [22:38:23]FM_MakeSignedData done [22:38:23]CreateOFDProtocolMessage [22:38:23]wFMCommunicate request_size=4 [22:38:23]MH_SAM_APDU [22:38:23]CAPDU: 80 11 00 00 [22:38:23]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:23]Read from MH i2c: E2 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 17 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [22:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:38:23]wFMCommunicate OK [22:38:23]CreateOFDProtocolMessage done [22:38:23]OFDSenderStorePacket 164780 [22:38:23]StoreOFDPacket docnum=164780 [22:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB 93 07 01 53 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 DE 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 83 02 00 35 04 06 00 A1 9C 5B DD FA E3 E3 75 D5 95 FC 94 25 28 [22:38:23]CheckFolder [22:38:23]dirname=/storage/ofd_packets [22:38:23]CheckFolder done [22:38:23]ProducePacketName [22:38:23]name=ofd_packets/00164780 [22:38:23]NVStorageSaveData ofd_packets/00164780 [22:38:23]File name is /storage/ofd_packets/00164780 [22:38:23]Write 301 bytes [22:38:23]NVStorageSaveData done [22:38:23]OFDSenderStorePacket done [22:38:23]KKMCreateOFDPacket done [22:38:23]NVStorageSaveData kkm_last_timestamp [22:38:23]File name is /storage/kkm_last_timestamp [22:38:23]Write 4 bytes [22:38:23]NVStorageSaveData done [22:38:23]ExternCall_PrintAddStr [22:38:23]wPrintStart [22:38:23]Write to MH i2c: 01 00 00 B5 1A CF [22:38:23]Write i2c OK [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: 01 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: 01 07 00 [22:38:23]MH_I2C_Read... [22:38:23]Read from MH i2c: 01 07 00 B5 1A 00 00 00 00 00 FF 0F E4 [22:38:23]RasterBufferAndPrint [22:38:23]line Счет N : (1)458874 [22:38:23]line ИНН: 02508201610067 [22:38:23]line Контрольно-Кассовый Чек [22:38:23]line ПРОДАЖА [22:38:23]line ТРК (МРК, ГНК) : 12 [22:38:23]line Товар: 2710124130 [22:38:23]line Аи-92-К-5 [22:38:23]line 7.600 * 65.80 [22:38:23]line = 500.08 [22:38:23]line НДС 12% НСП 1% [22:38:23]line > о реализуемом товаре [22:38:23]line ОКРУГЛЕНИЕ: -0.08 [22:38:23]line ИТОГО: 500.00 [22:38:23]line Внесено: 500.00 [22:38:23]line СДАЧА: 0.00 [22:38:23]line НСП 1% : 4.42 [22:38:23]line НДС 12% : 53.11 [22:38:23]line Наличными: 500.00 [22:38:23]line Безнал.: 0.00 [22:38:23]line Место: АЗС № 72 "Партнер Нефть" [22:38:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:38:23]line СНО: Общий режим [22:38:23]line Чек 340 13.07.2024 22:38 [22:38:23]line Смена: 446 ФФД: 1.0 [22:38:23]line ЗНМ: 0300000160 [22:38:23]line РНМ: 0000000000090829 [22:38:23]line Версия ККМ: 001 [22:38:23]line ФМ: 0000000000874718 [22:38:23]line ФД: 164780 [22:38:23]line ФПД: 177692928244451 [22:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164780&fm=177692928244451&tin=02508201610067®Number=0000000000090829&sum=50000 [22:38:23]OFD Sender: Processing packet 164780 [packets to send 104, broken 103] [22:38:23]ProducePacketName [22:38:23]name=ofd_packets/00164780 [22:38:23]OFD Sender: To server: pG, [22:38:23]CommunicateWithHost lk.salyk.kg:30040 [22:38:23]ConnectInit lk.salyk.kg [22:38:23]written 0, free lines is 4095 [22:38:23]Connected sock=10 [22:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB 93 07 01 53 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 54 01 00 00 F4 03 04 00 DE 01 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 83 02 00 35 04 06 00 A1 9C 5B DD FA E3 E3 75 D5 95 FC 94 25 28 [22:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD DB 47 00 0A 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 83 02 00 F4 03 04 00 6E A8 92 66 B6 04 01 00 00 96 EC BF DE D8 BA B8 84 [22:38:24]CommunicateWithHost err = 0 [22:38:24]CheckOFDResponse [22:38:24]1017 (14) - 77093643461234 [22:38:24]1041 (16) - 0000000000874718 [22:38:24]1040 (4) - 164780 [22:38:24]1012 (4) - 13.07.2024 16:16 [22:38:24]1206 (1) - 0 [22:38:24]OFD Sender: Remove packet 164780 [22:38:24]ProducePacketName [22:38:24]name=ofd_packets/00164780 [22:38:24]NVStorageDeleteData [22:38:24]Write to MH i2c: 01 00 00 DF 1A F9 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 07 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 F2 0C FE [22:38:24]RasterBufferAndPrint [22:38:24]line [22:38:24]line [22:38:24]line [22:38:24]line [22:38:24]line [22:38:24]written 0, free lines is 3323 [22:38:24]MH_Cut [22:38:24]Write to MH i2c: D1 01 00 E6 1A 01 D2 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: D1 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: D1 01 00 [22:38:24]MH_I2C_Read... [22:38:24]Read from MH i2c: D1 01 00 E6 1A 00 D1 [22:38:24]Write to MH i2c: 01 00 00 E7 1A 01 [22:38:24]Write i2c OK [22:38:24]MH_I2C_Read... [22:38:24]OFD Sender: No OFD packet to send [22:38:24]*** Cut start [22:38:24]*** Partial cut [22:38:24]*** CUTSNS_PIN = 1 [22:38:24]*** CUTSNS_PIN = 0 [22:38:25]*** Brake cut motor [22:38:25]Read from MH i2c: 01 [22:38:25]MH_I2C_Read... [22:38:25]*** Stop cut motor [22:38:25]*** Cut end [22:38:25]Read from MH i2c: 01 07 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 FF 0F 16 [22:38:25]process_action close_receipt done [22:38:25]requested_data is exist [22:38:25]produce_requested_data [22:38:25]requested_item fm.sn is exist - process it [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 11 00 00 [22:38:25]Write to MH i2c: E2 08 00 E8 1A 80 11 00 00 00 00 00 00 7C [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 17 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 17 00 E8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [22:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:38:25]wFMCommunicate OK [22:38:25]requested_item fd.num is exist - process it [22:38:25]SAM_PROTO_GetFieldsCounters [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 13 00 00 [22:38:25]Write to MH i2c: E2 08 00 E9 1A 80 13 00 00 00 00 00 00 7F [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 62 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 62 00 E9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [22:38: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:25]wFMCommunicate OK [22:38:25]SAM_PROTO_GetFieldsCounters done [22:38:25]requested_item shift.num is exist - process it [22:38:25]requested_item shift.opened is exist - process it [22:38:25]req_shift_opened [22:38:25]FM_GetShiftState [22:38:25]SAM_PROTO_GetShiftState [22:38:25]wFMCommunicate request_size=4 [22:38:25]MH_SAM_APDU [22:38:25]CAPDU: 80 13 01 00 [22:38:25]Write to MH i2c: E2 08 00 EA 1A 80 13 01 00 00 00 00 00 81 [22:38:25]Write i2c OK [22:38:25]MH_I2C_Read... [22:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:25]Read from MH i2c: E2 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 0E 00 [22:38:25]MH_I2C_Read... [22:38:25]Read from MH i2c: E2 0E 00 EA 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 62 [22:38:25]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:38:25]wFMCommunicate OK [22:38:25]SAM_PROTO_GetShiftState done [22:38:25]FM_GetShiftState done [22:38:25]req_shift_opened done [22:38:25]requested_item shift.open_date is exist - process it [22:38:25]req_shift_open_date [22:38:25]req_shift_open_date done [22:38:25]produce_requested_data done [22:38:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164780,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:38:25]process_action_free close_receipt [22:38:25]json_value_free [22:38:25]json_value_free done [22:38:25]process_json_proto returns [22:38:25]Send response to host [22:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164780,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:38:25]free response buf [22:38:25]execute_script done [22:38:25]execute_script returns [22:38:25]free content buf [22:38:25]Sock 9.Close socket [22:38:25]Sock 9.Thread stoped [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:12]accept exits with 7 [22:39:12]New connection [22:39:12]New thread 3067104612 created [22:39:12]Thread 3067247972 joined [22:39:12]Waiting for new connection... [22:39:12] Sock 7.Parse request [22:39:12]Sock 7.Check first char [22:39:12]Sock 7.First char is OK [22:39:12]request: POST /json_proto HTTP/1.0 [22:39:12]Method: POST [22:39:12]URL: /json_proto [22:39:12]Method is POST - this is cgi request [22:39:12]url: /json_proto [22:39:12]query_string will be loaded in cgi processing [22:39:12]execute_cgi json_proto POST (null) [22:39:12]execute_cgi path=json_proto method=POST [22:39:12]POST find Content-Length [22:39:12]Host: 172.17.56.4:8080 [22:39:12]Content-Length: 790 [22:39:12]Content-Type: application/json [22:39:12] [22:39:12]POST finish read [22:39:12]Found Content-Length = 790 [22:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:12]execute_script... [22:39: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)458875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:12]POST & json_proto [22:39:12]process_json_proto [22:39:12]json parsed OK: [22:39:12]protocol is kg_v1.0 [22:39:12]action value=close_receipt [22:39:12]process_action close_receipt [22:39:12]cmd_close_receipt [22:39:12]MH_GetDate [22:39:12]Write to MH i2c: F0 00 00 EB 1A F4 [22:39:12]Write i2c OK [22:39:12]MH_I2C_Read... [22:39:12]Read from MH i2c: F0 [22:39:12]MH_I2C_Read... [22:39:12]Read from MH i2c: F0 09 00 [22:39:12]MH_I2C_Read... [22:39:12]Read from MH i2c: F0 09 00 EB 1A 00 11 02 93 66 C9 DC B2 64 C4 [22:39:12]GetLastDocTimeStamp 1720910302 [22:39:12]current date 1720910353 [22:39:12]FM_GetShiftState [22:39:12]SAM_PROTO_GetShiftState [22:39:12]wFMCommunicate request_size=4 [22:39:12]MH_SAM_APDU [22:39:12]CAPDU: 80 13 01 00 [22:39:12]Write to MH i2c: E2 08 00 EC 1A 80 13 01 00 00 00 00 00 83 [22:39:12]Write i2c OK [22:39:12]MH_I2C_Read... [22:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:12]Read from MH i2c: E2 [22:39:12]MH_I2C_Read... [22:39:12]Read from MH i2c: E2 0E 00 [22:39:12]MH_I2C_Read... [22:39:12]Read from MH i2c: E2 0E 00 EC 1A 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 64 [22:39:12]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:39:12]wFMCommunicate OK [22:39:12]SAM_PROTO_GetShiftState done [22:39:12]FM_GetShiftState done [22:39:12]opened in 1720831249 [22:39:12]opened+sec_in_day 1720917649 [22:39:12]quantity*price = 40045 [22:39:12]sum+1 = 40046 [22:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 341 13.07.2024 22:39 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164781 ФПД: 212142041206655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223913&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164781&fm=212142041206655&tin=02508201610067®Number=0000000000090829&sum=40045 [22:39:13]StoreToDocumentArchive [22:39:13]shift 446 fd 164781 [22:39:13]save to /storage/0446/doc_00164781 [22:39:13]save last doc name /storage/0446/doc_00164781 to /storage/kkm_last_doc_name [22:39:13]save OK [22:39:13]Clear old archive folders... [22:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:13]tlvbuf is 01EE3D90 [22:39:13]SAM_PROTO_ClearQueue [22:39:13]wFMCommunicate request_size=4 [22:39:13]MH_SAM_APDU [22:39:13]CAPDU: 80 09 00 00 [22:39:13]Write to MH i2c: E2 08 00 F9 1A 80 09 00 00 00 00 00 00 85 [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:13]Read from MH i2c: E2 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [22:39:13]RAPDU: 90 00 [22:39:13]wFMCommunicate OK [22:39:13]SAM_PROTO_ClearQueue done [22:39:13]KKMCreateOFDPacket [22:39:13]OFDProtocolAddRootSTLVToBuf [22:39:13]FM_MakeSignedData [22:39:13]FM_MakeSignedData [22:39:13]SAM_PROTO_SignData [22:39:13]wFMCommunicate request_size=4 [22:39:13]MH_SAM_APDU [22:39:13]CAPDU: 80 0D 01 02 [22:39:13]Write to MH i2c: E2 08 00 FA 1A 80 0D 01 02 00 00 00 00 8D [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:13]Read from MH i2c: E2 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [22:39:13]RAPDU: 90 00 [22:39:13]wFMCommunicate OK [22:39:13]wFMCommunicate request_size=255 [22:39:13]MH_SAM_APDU [22:39: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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 11 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 83 02 00 35 04 06 00 C0 [22:39:13]Write to MH i2c: E2 02 01 FB 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 11 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 83 02 00 35 04 06 00 C0 00 00 81 [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:13]Read from MH i2c: E2 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [22:39:13]RAPDU: 90 00 [22:39:13]wFMCommunicate OK [22:39:13]wFMCommunicate request_size=10 [22:39:13]MH_SAM_APDU [22:39:13]CAPDU: 80 0D 02 02 05 F1 2B 02 0F 7F [22:39:13]Write to MH i2c: E2 0D 00 FC 1A 80 0D 02 02 05 00 F1 2B 02 0F 7F 00 00 46 [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:13]Read from MH i2c: E2 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [22:39:13]RAPDU: 90 00 [22:39:13]wFMCommunicate OK [22:39:13]wFMCommunicate request_size=4 [22:39:13]MH_SAM_APDU [22:39:13]CAPDU: 80 0D 03 02 [22:39:13]Write to MH i2c: E2 08 00 FD 1A 80 0D 03 02 00 00 00 00 92 [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:13]Read from MH i2c: E2 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 0B 00 [22:39:13]MH_I2C_Read... [22:39:13]Read from MH i2c: E2 0B 00 FD 1A 00 67 37 08 BD 6E 3E 9C 5F 90 00 9D [22:39:13]RAPDU: 67 37 08 BD 6E 3E 9C 5F 90 00 [22:39:13]wFMCommunicate OK [22:39:13]SAM_PROTO_SignData done [22:39:13]FM_MakeSignedData done [22:39:13]CreateOFDProtocolMessage [22:39:13]wFMCommunicate request_size=4 [22:39:13]MH_SAM_APDU [22:39:13]CAPDU: 80 11 00 00 [22:39:13]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [22:39:13]Write i2c OK [22:39:13]MH_I2C_Read... [22:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:14]Read from MH i2c: E2 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: E2 17 00 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [22:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:39:14]wFMCommunicate OK [22:39:14]CreateOFDProtocolMessage done [22:39:14]OFDSenderStorePacket 164781 [22:39:14]StoreOFDPacket docnum=164781 [22:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 D9 07 01 8D 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 11 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 83 02 00 35 04 06 00 C0 F1 2B 02 0F 7F 67 37 08 BD 6E 3E 9C 5F [22:39:14]CheckFolder [22:39:14]dirname=/storage/ofd_packets [22:39:14]CheckFolder done [22:39:14]ProducePacketName [22:39:14]name=ofd_packets/00164781 [22:39:14]NVStorageSaveData ofd_packets/00164781 [22:39:14]File name is /storage/ofd_packets/00164781 [22:39:14]Write 301 bytes [22:39:14]NVStorageSaveData done [22:39:14]OFDSenderStorePacket done [22:39:14]KKMCreateOFDPacket done [22:39:14]NVStorageSaveData kkm_last_timestamp [22:39:14]File name is /storage/kkm_last_timestamp [22:39:14]Write 4 bytes [22:39:14]NVStorageSaveData done [22:39:14]OFD Sender: Processing packet 164781 [packets to send 104, broken 103] [22:39:14]ProducePacketName [22:39:14]name=ofd_packets/00164781 [22:39:14]OFD Sender: To server: pG, [22:39:14]CommunicateWithHost lk.salyk.kg:30040 [22:39:14]ConnectInit lk.salyk.kg [22:39:14]ExternCall_PrintAddStr [22:39:14]wPrintStart [22:39:14]Write to MH i2c: 01 00 00 FF 1A 19 [22:39:14]Write i2c OK [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 07 00 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 07 00 FF 1A 00 00 00 00 00 FF 0F 2E [22:39:14]RasterBufferAndPrint [22:39:14]line Счет N : (1)458875 [22:39:14]line ИНН: 02508201610067 [22:39:14]line Контрольно-Кассовый Чек [22:39:14]line ПРОДАЖА [22:39:14]line ТРК (МРК, ГНК) : 12 [22:39:14]line Товар: 2710124130 [22:39:14]line Аи-92-К-5 [22:39:14]line 6.140 * 65.22 [22:39:14]line = 400.45 [22:39:14]line НДС 12% НСП 1% [22:39:14]line > о реализуемом товаре [22:39:14]line ИТОГО: 400.45 [22:39:14]line НСП 1% : 3.54 [22:39:14]line НДС 12% : 42.53 [22:39:14]line Наличными: 0.00 [22:39:14]line Безнал.: 400.45 [22:39:14]line Место: АЗС № 72 "Партнер Нефть" [22:39:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:39:14]line СНО: Общий режим [22:39:14]line Чек 341 13.07.2024 22:39 [22:39:14]line Смена: 446 ФФД: 1.0 [22:39:14]line ЗНМ: 0300000160 [22:39:14]line РНМ: 0000000000090829 [22:39:14]line Версия ККМ: 001 [22:39:14]line Платежная система: KICB Банк [22:39:14]line ФМ: 0000000000874718 [22:39:14]line ФД: 164781 [22:39:14]line ФПД: 212142041206655 [22:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223913&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164781&fm=212142041206655&tin=02508201610067®Number=0000000000090829&sum=40045 [22:39:14]Connected sock=11 [22:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 D9 07 01 8D 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 11 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 83 02 00 35 04 06 00 C0 F1 2B 02 0F 7F 67 37 08 BD 6E 3E 9C 5F [22:39:14]written 0, free lines is 4095 [22:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 F2 47 00 4C 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 34 37 31 38 10 04 04 00 AD 83 02 00 F4 03 04 00 A1 A8 92 66 B6 04 01 00 00 34 92 0B DD BF 0E 38 C1 [22:39:14]CommunicateWithHost err = 0 [22:39:14]CheckOFDResponse [22:39:14]1017 (14) - 77093643461234 [22:39:14]1041 (16) - 0000000000874718 [22:39:14]1040 (4) - 164781 [22:39:14]1012 (4) - 13.07.2024 16:17 [22:39:14]1206 (1) - 0 [22:39:14]OFD Sender: Remove packet 164781 [22:39:14]ProducePacketName [22:39:14]name=ofd_packets/00164781 [22:39:14]NVStorageDeleteData [22:39:14]Write to MH i2c: 01 00 00 28 1B 43 [22:39:14]Write i2c OK [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 07 00 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: 01 07 00 28 1B 00 00 00 00 00 FE 0C 54 [22:39:14]RasterBufferAndPrint [22:39:14]line [22:39:14]line [22:39:14]line [22:39:14]line [22:39:14]line [22:39:14]written 0, free lines is 3332 [22:39:14]MH_Cut [22:39:14]Write to MH i2c: D1 01 00 2F 1B 01 1C [22:39:14]Write i2c OK [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: D1 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: D1 01 00 [22:39:14]MH_I2C_Read... [22:39:14]Read from MH i2c: D1 01 00 2F 1B 00 1B [22:39:14]Write to MH i2c: 01 00 00 30 1B 4B [22:39:14]Write i2c OK [22:39:14]MH_I2C_Read... [22:39:15]OFD Sender: No OFD packet to send [22:39:15]*** Cut start [22:39:15]*** Partial cut [22:39:15]*** CUTSNS_PIN = 1 [22:39:15]*** CUTSNS_PIN = 0 [22:39:15]*** Brake cut motor [22:39:16]Read from MH i2c: 01 [22:39:16]MH_I2C_Read... [22:39:16]*** Stop cut motor [22:39:16]*** Cut end [22:39:16]Read from MH i2c: 01 07 00 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: 01 07 00 30 1B 00 00 00 00 00 FF 0F 60 [22:39:16]process_action close_receipt done [22:39:16]requested_data is exist [22:39:16]produce_requested_data [22:39:16]requested_item fm.sn is exist - process it [22:39:16]wFMCommunicate request_size=4 [22:39:16]MH_SAM_APDU [22:39:16]CAPDU: 80 11 00 00 [22:39:16]Write to MH i2c: E2 08 00 31 1B 80 11 00 00 00 00 00 00 C6 [22:39:16]Write i2c OK [22:39:16]MH_I2C_Read... [22:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:16]Read from MH i2c: E2 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 17 00 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 17 00 31 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [22:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:39:16]wFMCommunicate OK [22:39:16]requested_item fd.num is exist - process it [22:39:16]SAM_PROTO_GetFieldsCounters [22:39:16]wFMCommunicate request_size=4 [22:39:16]MH_SAM_APDU [22:39:16]CAPDU: 80 13 00 00 [22:39:16]Write to MH i2c: E2 08 00 32 1B 80 13 00 00 00 00 00 00 C9 [22:39:16]Write i2c OK [22:39:16]MH_I2C_Read... [22:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:16]Read from MH i2c: E2 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 62 00 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 62 00 32 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:39: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:16]wFMCommunicate OK [22:39:16]SAM_PROTO_GetFieldsCounters done [22:39:16]requested_item shift.num is exist - process it [22:39:16]requested_item shift.opened is exist - process it [22:39:16]req_shift_opened [22:39:16]FM_GetShiftState [22:39:16]SAM_PROTO_GetShiftState [22:39:16]wFMCommunicate request_size=4 [22:39:16]MH_SAM_APDU [22:39:16]CAPDU: 80 13 01 00 [22:39:16]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [22:39:16]Write i2c OK [22:39:16]MH_I2C_Read... [22:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:16]Read from MH i2c: E2 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 0E 00 [22:39:16]MH_I2C_Read... [22:39:16]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AC [22:39:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:39:16]wFMCommunicate OK [22:39:16]SAM_PROTO_GetShiftState done [22:39:16]FM_GetShiftState done [22:39:16]req_shift_opened done [22:39:16]requested_item shift.open_date is exist - process it [22:39:16]req_shift_open_date [22:39:16]req_shift_open_date done [22:39:16]produce_requested_data done [22:39:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164781,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:39:16]process_action_free close_receipt [22:39:16]json_value_free [22:39:16]json_value_free done [22:39:16]process_json_proto returns [22:39:16]Send response to host [22:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164781,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:39:16]free response buf [22:39:16]execute_script done [22:39:16]execute_script returns [22:39:16]free content buf [22:39:16]Sock 7.Close socket [22:39:16]Sock 7.Thread stoped [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:19]accept exits with 9 [22:40:19]New connection [22:40:19]New thread 3067247972 created [22:40:19]Thread 3067104612 joined [22:40:19]Waiting for new connection... [22:40:19] Sock 9.Parse request [22:40:19]Sock 9.Check first char [22:40:19]Sock 9.First char is OK [22:40:19]request: POST /json_proto HTTP/1.0 [22:40:19]Method: POST [22:40:19]URL: /json_proto [22:40:19]Method is POST - this is cgi request [22:40:19]url: /json_proto [22:40:19]query_string will be loaded in cgi processing [22:40:19]execute_cgi json_proto POST (null) [22:40:19]execute_cgi path=json_proto method=POST [22:40:19]POST find Content-Length [22:40:19]Host: 172.17.56.4:8080 [22:40:19]Content-Length: 677 [22:40:19]Content-Type: application/json [22:40:19] [22:40:19]POST finish read [22:40:19]Found Content-Length = 677 [22:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [22:40:19]execute_script... [22:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [22:40:19]POST & json_proto [22:40:19]process_json_proto [22:40:19]json parsed OK: [22:40:19]protocol is kg_v1.0 [22:40:19]action value=close_receipt [22:40:19]process_action close_receipt [22:40:19]cmd_close_receipt [22:40:19]MH_GetDate [22:40:19]Write to MH i2c: F0 00 00 34 1B 3E [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: F0 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: F0 09 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: F0 09 00 34 1B 00 54 02 93 66 C9 DC B2 64 51 [22:40:19]GetLastDocTimeStamp 1720910353 [22:40:19]current date 1720910420 [22:40:19]FM_GetShiftState [22:40:19]SAM_PROTO_GetShiftState [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 13 01 00 [22:40:19]Write to MH i2c: E2 08 00 35 1B 80 13 01 00 00 00 00 00 CD [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 0E 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 0E 00 35 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 AE [22:40:19]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:40:19]wFMCommunicate OK [22:40:19]SAM_PROTO_GetShiftState done [22:40:19]FM_GetShiftState done [22:40:19]opened in 1720831249 [22:40:19]opened+sec_in_day 1720917649 [22:40:19]quantity*price = 55008 [22:40:19]sum+1 = 55010 [22:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 342 13.07.2024 22:40 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164782 ФПД: 35079960072807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224020&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164782&fm=35079960072807&tin=02508201610067®Number=0000000000090829&sum=55000 [22:40:20]StoreToDocumentArchive [22:40:20]shift 446 fd 164782 [22:40:20]save to /storage/0446/doc_00164782 [22:40:20]save last doc name /storage/0446/doc_00164782 to /storage/kkm_last_doc_name [22:40:20]save OK [22:40:20]Clear old archive folders... [22:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:20]tlvbuf is 01EC8590 [22:40:20]SAM_PROTO_ClearQueue [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 09 00 00 [22:40:20]Write to MH i2c: E2 08 00 42 1B 80 09 00 00 00 00 00 00 CF [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]SAM_PROTO_ClearQueue done [22:40:20]KKMCreateOFDPacket [22:40:20]OFDProtocolAddRootSTLVToBuf [22:40:20]FM_MakeSignedData [22:40:20]FM_MakeSignedData [22:40:20]SAM_PROTO_SignData [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 0D 01 02 [22:40:20]Write to MH i2c: E2 08 00 43 1B 80 0D 01 02 00 00 00 00 D7 [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]wFMCommunicate request_size=255 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 56 01 00 00 F4 03 04 00 54 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 83 02 00 35 04 06 00 1F [22:40:20]Write to MH i2c: E2 02 01 44 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 56 01 00 00 F4 03 04 00 54 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 83 02 00 35 04 06 00 1F 00 00 16 [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:21]Read from MH i2c: E2 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 03 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [22:40:21]RAPDU: 90 00 [22:40:21]wFMCommunicate OK [22:40:21]wFMCommunicate request_size=10 [22:40:21]MH_SAM_APDU [22:40:21]CAPDU: 80 0D 02 02 05 E7 B0 8F 12 67 [22:40:21]Write to MH i2c: E2 0D 00 45 1B 80 0D 02 02 05 00 E7 B0 8F 12 67 00 00 83 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:21]Read from MH i2c: E2 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 03 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [22:40:21]RAPDU: 90 00 [22:40:21]wFMCommunicate OK [22:40:21]wFMCommunicate request_size=4 [22:40:21]MH_SAM_APDU [22:40:21]CAPDU: 80 0D 03 02 [22:40:21]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:21]Read from MH i2c: E2 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 0B 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 0B 00 46 1B 00 81 91 C2 67 2B 39 93 C9 90 00 D8 [22:40:21]RAPDU: 81 91 C2 67 2B 39 93 C9 90 00 [22:40:21]wFMCommunicate OK [22:40:21]SAM_PROTO_SignData done [22:40:21]FM_MakeSignedData done [22:40:21]CreateOFDProtocolMessage [22:40:21]wFMCommunicate request_size=4 [22:40:21]MH_SAM_APDU [22:40:21]CAPDU: 80 11 00 00 [22:40:21]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:21]Read from MH i2c: E2 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 17 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [22:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:40:21]wFMCommunicate OK [22:40:21]CreateOFDProtocolMessage done [22:40:21]OFDSenderStorePacket 164782 [22:40:21]StoreOFDPacket docnum=164782 [22:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA A1 07 01 AB 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 56 01 00 00 F4 03 04 00 54 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 83 02 00 35 04 06 00 1F E7 B0 8F 12 67 81 91 C2 67 2B 39 93 C9 [22:40:21]CheckFolder [22:40:21]dirname=/storage/ofd_packets [22:40:21]CheckFolder done [22:40:21]ProducePacketName [22:40:21]name=ofd_packets/00164782 [22:40:21]NVStorageSaveData ofd_packets/00164782 [22:40:21]File name is /storage/ofd_packets/00164782 [22:40:21]Write 301 bytes [22:40:21]NVStorageSaveData done [22:40:21]OFDSenderStorePacket done [22:40:21]KKMCreateOFDPacket done [22:40:21]NVStorageSaveData kkm_last_timestamp [22:40:21]File name is /storage/kkm_last_timestamp [22:40:21]Write 4 bytes [22:40:21]NVStorageSaveData done [22:40:21]ExternCall_PrintAddStr [22:40:21]wPrintStart [22:40:21]Write to MH i2c: 01 00 00 48 1B 63 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [22:40:21]RasterBufferAndPrint [22:40:21]line Счет N : (1)458876 [22:40:21]line ИНН: 02508201610067 [22:40:21]line Контрольно-Кассовый Чек [22:40:21]line ПРОДАЖА [22:40:21]line ТРК (МРК, ГНК) : 12 [22:40:21]line Товар: 2710124130 [22:40:21]line Аи-92-К-5 [22:40:21]line 8.360 * 65.80 [22:40:21]line = 550.09 [22:40:21]line НДС 12% НСП 1% [22:40:21]line > о реализуемом товаре [22:40:21]line ОКРУГЛЕНИЕ: -0.09 [22:40:21]line ИТОГО: 550.00 [22:40:21]line Внесено: 550.00 [22:40:21]line СДАЧА: 0.00 [22:40:21]line НСП 1% : 4.87 [22:40:21]line НДС 12% : 58.42 [22:40:21]line Наличными: 550.00 [22:40:21]line Безнал.: 0.00 [22:40:21]line Место: АЗС № 72 "Партнер Нефть" [22:40:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:40:21]line СНО: Общий режим [22:40:21]line Чек 342 13.07.2024 22:40 [22:40:21]line Смена: 446 ФФД: 1.0 [22:40:21]line ЗНМ: 0300000160 [22:40:21]line РНМ: 0000000000090829 [22:40:21]line Версия ККМ: 001 [22:40:21]line ФМ: 0000000000874718 [22:40:21]line ФД: 164782 [22:40:21]line ФПД: 35079960072807 [22:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224020&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164782&fm=35079960072807&tin=02508201610067®Number=0000000000090829&sum=55000 [22:40:21]OFD Sender: Processing packet 164782 [packets to send 104, broken 103] [22:40:21]ProducePacketName [22:40:21]name=ofd_packets/00164782 [22:40:21]OFD Sender: To server: pG, [22:40:21]CommunicateWithHost lk.salyk.kg:30040 [22:40:21]ConnectInit lk.salyk.kg [22:40:21]written 0, free lines is 4095 [22:40:21]Connected sock=10 [22:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA A1 07 01 AB 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 56 01 00 00 F4 03 04 00 54 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 83 02 00 35 04 06 00 1F E7 B0 8F 12 67 81 91 C2 67 2B 39 93 C9 [22:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 B4 47 00 A2 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 83 02 00 F4 03 04 00 E4 A8 92 66 B6 04 01 00 00 9C D1 07 73 8D B6 64 86 [22:40:21]CommunicateWithHost err = 0 [22:40:21]CheckOFDResponse [22:40:21]1017 (14) - 77093643461234 [22:40:21]1041 (16) - 0000000000874718 [22:40:21]1040 (4) - 164782 [22:40:21]1012 (4) - 13.07.2024 16:18 [22:40:21]1206 (1) - 0 [22:40:21]OFD Sender: Remove packet 164782 [22:40:21]ProducePacketName [22:40:21]name=ofd_packets/00164782 [22:40:21]NVStorageDeleteData [22:40:21]Write to MH i2c: 01 00 00 72 1B 8D [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 F7 0C 97 [22:40:21]RasterBufferAndPrint [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]line [22:40:21]written 0, free lines is 3326 [22:40:22]MH_Cut [22:40:22]Write to MH i2c: D1 01 00 79 1B 01 66 [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: D1 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: D1 01 00 [22:40:22]MH_I2C_Read... [22:40:22]Read from MH i2c: D1 01 00 79 1B 00 65 [22:40:22]Write to MH i2c: 01 00 00 7A 1B 95 [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:22]OFD Sender: No OFD packet to send [22:40:22]*** Cut start [22:40:22]*** Partial cut [22:40:22]*** CUTSNS_PIN = 1 [22:40:22]*** CUTSNS_PIN = 0 [22:40:22]*** Brake cut motor [22:40:23]Read from MH i2c: 01 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: 01 07 00 [22:40:23]MH_I2C_Read... [22:40:23]*** Stop cut motor [22:40:23]*** Cut end [22:40:23]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [22:40:23]process_action close_receipt done [22:40:23]requested_data is exist [22:40:23]produce_requested_data [22:40:23]requested_item fm.sn is exist - process it [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 11 00 00 [22:40:23]Write to MH i2c: E2 08 00 7B 1B 80 11 00 00 00 00 00 00 10 [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 17 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 17 00 7B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [22:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:40:23]wFMCommunicate OK [22:40:23]requested_item fd.num is exist - process it [22:40:23]SAM_PROTO_GetFieldsCounters [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 13 00 00 [22:40:23]Write to MH i2c: E2 08 00 7C 1B 80 13 00 00 00 00 00 00 13 [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 62 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 62 00 7C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [22:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:23]wFMCommunicate OK [22:40:23]SAM_PROTO_GetFieldsCounters done [22:40:23]requested_item shift.num is exist - process it [22:40:23]requested_item shift.opened is exist - process it [22:40:23]req_shift_opened [22:40:23]FM_GetShiftState [22:40:23]SAM_PROTO_GetShiftState [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 13 01 00 [22:40:23]Write to MH i2c: E2 08 00 7D 1B 80 13 01 00 00 00 00 00 15 [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0E 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0E 00 7D 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F6 [22:40:23]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:40:23]wFMCommunicate OK [22:40:23]SAM_PROTO_GetShiftState done [22:40:23]FM_GetShiftState done [22:40:23]req_shift_opened done [22:40:23]requested_item shift.open_date is exist - process it [22:40:23]req_shift_open_date [22:40:23]req_shift_open_date done [22:40:23]produce_requested_data done [22:40:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164782,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:40:23]process_action_free close_receipt [22:40:23]json_value_free [22:40:23]json_value_free done [22:40:23]process_json_proto returns [22:40:23]Send response to host [22:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164782,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:40:23]free response buf [22:40:23]execute_script done [22:40:23]execute_script returns [22:40:23]free content buf [22:40:23]Sock 9.Close socket [22:40:23]Sock 9.Thread stoped [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]accept exits with 7 [22:43:07]New connection [22:43:07]New thread 3067104612 created [22:43:07]Thread 3067247972 joined [22:43:07]Waiting for new connection... [22:43:07] Sock 7.Parse request [22:43:07]Sock 7.Check first char [22:43:07]Sock 7.First char is OK [22:43:07]request: POST /json_proto HTTP/1.0 [22:43:07]Method: POST [22:43:07]URL: /json_proto [22:43:07]Method is POST - this is cgi request [22:43:07]url: /json_proto [22:43:07]query_string will be loaded in cgi processing [22:43:07]execute_cgi json_proto POST (null) [22:43:07]execute_cgi path=json_proto method=POST [22:43:07]POST find Content-Length [22:43:07]Host: 172.17.56.4:8080 [22:43:07]Content-Length: 790 [22:43:07]Content-Type: application/json [22:43:07] [22:43:07]POST finish read [22:43:07]Found Content-Length = 790 [22:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:07]execute_script... [22:43: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)458877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:07]POST & json_proto [22:43:07]process_json_proto [22:43:07]json parsed OK: [22:43:07]protocol is kg_v1.0 [22:43:07]action value=close_receipt [22:43:07]process_action close_receipt [22:43:07]cmd_close_receipt [22:43:07]MH_GetDate [22:43:07]Write to MH i2c: F0 00 00 7E 1B 88 [22:43:07]Write i2c OK [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: F0 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: F0 09 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: F0 09 00 7E 1B 00 FC 02 93 66 C9 DC B2 64 43 [22:43:07]GetLastDocTimeStamp 1720910420 [22:43:07]current date 1720910588 [22:43:07]FM_GetShiftState [22:43:07]SAM_PROTO_GetShiftState [22:43:07]wFMCommunicate request_size=4 [22:43:07]MH_SAM_APDU [22:43:07]CAPDU: 80 13 01 00 [22:43:07]Write to MH i2c: E2 08 00 7F 1B 80 13 01 00 00 00 00 00 17 [22:43:07]Write i2c OK [22:43:07]MH_I2C_Read... [22:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:07]Read from MH i2c: E2 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 [22:43:07]MH_I2C_Read... [22:43:07]Read from MH i2c: E2 0E 00 7F 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 F8 [22:43:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:43:07]wFMCommunicate OK [22:43:07]SAM_PROTO_GetShiftState done [22:43:07]FM_GetShiftState done [22:43:07]opened in 1720831249 [22:43:07]opened+sec_in_day 1720917649 [22:43:07]quantity*price = 60002 [22:43:07]sum+1 = 60003 [22:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 343 13.07.2024 22:43 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164783 ФПД: 30104540137745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224308&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164783&fm=30104540137745&tin=02508201610067®Number=0000000000090829&sum=60002 [22:43:08]StoreToDocumentArchive [22:43:08]shift 446 fd 164783 [22:43:08]save to /storage/0446/doc_00164783 [22:43:08]save last doc name /storage/0446/doc_00164783 to /storage/kkm_last_doc_name [22:43:08]save OK [22:43:08]Clear old archive folders... [22:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:08]tlvbuf is 01ED4680 [22:43:08]SAM_PROTO_ClearQueue [22:43:08]wFMCommunicate request_size=4 [22:43:08]MH_SAM_APDU [22:43:08]CAPDU: 80 09 00 00 [22:43:08]Write to MH i2c: E2 08 00 8C 1B 80 09 00 00 00 00 00 00 19 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [22:43:08]RAPDU: 90 00 [22:43:08]wFMCommunicate OK [22:43:08]SAM_PROTO_ClearQueue done [22:43:08]KKMCreateOFDPacket [22:43:08]OFDProtocolAddRootSTLVToBuf [22:43:08]FM_MakeSignedData [22:43:08]FM_MakeSignedData [22:43:08]SAM_PROTO_SignData [22:43:08]wFMCommunicate request_size=4 [22:43:08]MH_SAM_APDU [22:43:08]CAPDU: 80 0D 01 02 [22:43:08]Write to MH i2c: E2 08 00 8D 1B 80 0D 01 02 00 00 00 00 21 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [22:43:08]RAPDU: 90 00 [22:43:08]wFMCommunicate OK [22:43:08]wFMCommunicate request_size=255 [22:43:08]MH_SAM_APDU [22:43: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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 FC 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 83 02 00 35 04 06 00 1B [22:43:08]Write to MH i2c: E2 02 01 8E 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 FC 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 83 02 00 35 04 06 00 1B 00 00 29 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [22:43:08]RAPDU: 90 00 [22:43:08]wFMCommunicate OK [22:43:08]wFMCommunicate request_size=10 [22:43:08]MH_SAM_APDU [22:43:08]CAPDU: 80 0D 02 02 05 61 42 6B C9 11 [22:43:08]Write to MH i2c: E2 0D 00 8F 1B 80 0D 02 02 05 00 61 42 6B C9 11 00 00 16 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [22:43:08]RAPDU: 90 00 [22:43:08]wFMCommunicate OK [22:43:08]wFMCommunicate request_size=4 [22:43:08]MH_SAM_APDU [22:43:08]CAPDU: 80 0D 03 02 [22:43:08]Write to MH i2c: E2 08 00 90 1B 80 0D 03 02 00 00 00 00 26 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 0B 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 0B 00 90 1B 00 E5 E9 BB 6C 71 D3 5A 31 90 00 EB [22:43:08]RAPDU: E5 E9 BB 6C 71 D3 5A 31 90 00 [22:43:08]wFMCommunicate OK [22:43:08]SAM_PROTO_SignData done [22:43:08]FM_MakeSignedData done [22:43:08]CreateOFDProtocolMessage [22:43:08]wFMCommunicate request_size=4 [22:43:08]MH_SAM_APDU [22:43:08]CAPDU: 80 11 00 00 [22:43:08]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:08]Read from MH i2c: E2 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 17 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: E2 17 00 91 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [22:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:43:08]wFMCommunicate OK [22:43:08]CreateOFDProtocolMessage done [22:43:08]OFDSenderStorePacket 164783 [22:43:08]StoreOFDPacket docnum=164783 [22:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC B8 07 01 8F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 FC 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 83 02 00 35 04 06 00 1B 61 42 6B C9 11 E5 E9 BB 6C 71 D3 5A 31 [22:43:08]CheckFolder [22:43:08]dirname=/storage/ofd_packets [22:43:08]CheckFolder done [22:43:08]ProducePacketName [22:43:08]name=ofd_packets/00164783 [22:43:08]NVStorageSaveData ofd_packets/00164783 [22:43:08]File name is /storage/ofd_packets/00164783 [22:43:08]Write 301 bytes [22:43:08]NVStorageSaveData done [22:43:08]OFDSenderStorePacket done [22:43:08]KKMCreateOFDPacket done [22:43:08]NVStorageSaveData kkm_last_timestamp [22:43:08]File name is /storage/kkm_last_timestamp [22:43:08]Write 4 bytes [22:43:08]NVStorageSaveData done [22:43:08]ExternCall_PrintAddStr [22:43:08]wPrintStart [22:43:08]Write to MH i2c: 01 00 00 92 1B AD [22:43:08]Write i2c OK [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: 01 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: 01 07 00 [22:43:08]MH_I2C_Read... [22:43:08]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [22:43:08]RasterBufferAndPrint [22:43:08]line Счет N : (1)458877 [22:43:08]line ИНН: 02508201610067 [22:43:08]line Контрольно-Кассовый Чек [22:43:08]line ПРОДАЖА [22:43:08]line ТРК (МРК, ГНК) : 12 [22:43:08]line Товар: 2710124130 [22:43:08]line Аи-92-К-5 [22:43:08]line 9.200 * 65.22 [22:43:08]line = 600.02 [22:43:08]line НДС 12% НСП 1% [22:43:08]line > о реализуемом товаре [22:43:08]line ИТОГО: 600.02 [22:43:08]line НСП 1% : 5.31 [22:43:08]line НДС 12% : 63.72 [22:43:08]line Наличными: 0.00 [22:43:08]line Безнал.: 600.02 [22:43:08]line Место: АЗС № 72 "Партнер Нефть" [22:43:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:43:08]line СНО: Общий режим [22:43:08]line Чек 343 13.07.2024 22:43 [22:43:08]line Смена: 446 ФФД: 1.0 [22:43:08]line ЗНМ: 0300000160 [22:43:08]line РНМ: 0000000000090829 [22:43:08]line Версия ККМ: 001 [22:43:08]line Платежная система: KICB Банк [22:43:08]line ФМ: 0000000000874718 [22:43:08]line ФД: 164783 [22:43:08]line ФПД: 30104540137745 [22:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224308&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164783&fm=30104540137745&tin=02508201610067®Number=0000000000090829&sum=60002 [22:43:09]OFD Sender: Processing packet 164783 [packets to send 104, broken 103] [22:43:09]ProducePacketName [22:43:09]name=ofd_packets/00164783 [22:43:09]OFD Sender: To server: pG, [22:43:09]CommunicateWithHost lk.salyk.kg:30040 [22:43:09]ConnectInit lk.salyk.kg [22:43:09]written 0, free lines is 4095 [22:43:09]Connected sock=10 [22:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC B8 07 01 8F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 FC 02 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 83 02 00 35 04 06 00 1B 61 42 6B C9 11 E5 E9 BB 6C 71 D3 5A 31 [22:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 52 83 47 00 D5 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 34 37 31 38 10 04 04 00 AF 83 02 00 F4 03 04 00 8C A9 92 66 B6 04 01 00 00 B0 07 D1 7F 14 A1 6B 77 [22:43:09]CommunicateWithHost err = 0 [22:43:09]CheckOFDResponse [22:43:09]1017 (14) - 77093643461234 [22:43:09]1041 (16) - 0000000000874718 [22:43:09]1040 (4) - 164783 [22:43:09]1012 (4) - 13.07.2024 16:21 [22:43:09]1206 (1) - 0 [22:43:09]OFD Sender: Remove packet 164783 [22:43:09]ProducePacketName [22:43:09]name=ofd_packets/00164783 [22:43:09]NVStorageDeleteData [22:43:09]Write to MH i2c: 01 00 00 BB 1B D6 [22:43:09]Write i2c OK [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: 01 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: 01 07 00 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: 01 07 00 BB 1B 00 00 00 00 00 04 0D EE [22:43:09]RasterBufferAndPrint [22:43:09]line [22:43:09]line [22:43:09]line [22:43:09]line [22:43:09]line [22:43:09]written 0, free lines is 3338 [22:43:09]MH_Cut [22:43:09]Write to MH i2c: D1 01 00 C2 1B 01 AF [22:43:09]Write i2c OK [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: D1 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: D1 01 00 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: D1 01 00 C2 1B 00 AE [22:43:09]Write to MH i2c: 01 00 00 C3 1B DE [22:43:09]Write i2c OK [22:43:09]MH_I2C_Read... [22:43:10]OFD Sender: No OFD packet to send [22:43:10]*** Cut start [22:43:10]*** Partial cut [22:43:10]*** CUTSNS_PIN = 1 [22:43:10]*** CUTSNS_PIN = 0 [22:43:10]*** Brake cut motor [22:43:10]Read from MH i2c: 01 [22:43:10]MH_I2C_Read... [22:43:10]*** Stop cut motor [22:43:10]*** Cut end [22:43:10]Read from MH i2c: 01 07 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [22:43:10]process_action close_receipt done [22:43:10]requested_data is exist [22:43:10]produce_requested_data [22:43:10]requested_item fm.sn is exist - process it [22:43:10]wFMCommunicate request_size=4 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 11 00 00 [22:43:10]Write to MH i2c: E2 08 00 C4 1B 80 11 00 00 00 00 00 00 59 [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 [22:43:11]MH_I2C_Read... [22:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:11]Read from MH i2c: E2 17 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 17 00 C4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [22:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:43:11]wFMCommunicate OK [22:43:11]requested_item fd.num is exist - process it [22:43:11]SAM_PROTO_GetFieldsCounters [22:43:11]wFMCommunicate request_size=4 [22:43:11]MH_SAM_APDU [22:43:11]CAPDU: 80 13 00 00 [22:43:11]Write to MH i2c: E2 08 00 C5 1B 80 13 00 00 00 00 00 00 5C [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:11]Read from MH i2c: E2 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 62 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 62 00 C5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [22:43: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:11]wFMCommunicate OK [22:43:11]SAM_PROTO_GetFieldsCounters done [22:43:11]requested_item shift.num is exist - process it [22:43:11]requested_item shift.opened is exist - process it [22:43:11]req_shift_opened [22:43:11]FM_GetShiftState [22:43:11]SAM_PROTO_GetShiftState [22:43:11]wFMCommunicate request_size=4 [22:43:11]MH_SAM_APDU [22:43:11]CAPDU: 80 13 01 00 [22:43:11]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:11]Read from MH i2c: E2 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 0E 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 3F [22:43:11]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:43:11]wFMCommunicate OK [22:43:11]SAM_PROTO_GetShiftState done [22:43:11]FM_GetShiftState done [22:43:11]req_shift_opened done [22:43:11]requested_item shift.open_date is exist - process it [22:43:11]req_shift_open_date [22:43:11]req_shift_open_date done [22:43:11]produce_requested_data done [22:43:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164783,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:43:11]process_action_free close_receipt [22:43:11]json_value_free [22:43:11]json_value_free done [22:43:11]process_json_proto returns [22:43:11]Send response to host [22:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164783,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:43:11]free response buf [22:43:11]execute_script done [22:43:11]execute_script returns [22:43:11]free content buf [22:43:11]Sock 7.Close socket [22:43:11]Sock 7.Thread stoped [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:50:57]accept exits with 9 [22:50:57]New connection [22:50:57]New thread 3067247972 created [22:50:57]Thread 3067104612 joined [22:50:57]Waiting for new connection... [22:50:57] Sock 9.Parse request [22:50:57]Sock 9.Check first char [22:50:57]Sock 9.First char is OK [22:50:57]request: POST /json_proto HTTP/1.0 [22:50:57]Method: POST [22:50:57]URL: /json_proto [22:50:57]Method is POST - this is cgi request [22:50:57]url: /json_proto [22:50:57]query_string will be loaded in cgi processing [22:50:57]execute_cgi json_proto POST (null) [22:50:57]execute_cgi path=json_proto method=POST [22:50:57]POST find Content-Length [22:50:57]Host: 172.17.56.4:8080 [22:50:57]Content-Length: 790 [22:50:57]Content-Type: application/json [22:50:57] [22:50:57]POST finish read [22:50:57]Found Content-Length = 790 [22:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:57]execute_script... [22:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:57]POST & json_proto [22:50:57]process_json_proto [22:50:57]json parsed OK: [22:50:57]protocol is kg_v1.0 [22:50:57]action value=close_receipt [22:50:57]process_action close_receipt [22:50:57]cmd_close_receipt [22:50:57]MH_GetDate [22:50:57]Write to MH i2c: F0 00 00 C7 1B D1 [22:50:57]Write i2c OK [22:50:57]MH_I2C_Read... [22:50:57]Read from MH i2c: F0 [22:50:57]MH_I2C_Read... [22:50:57]Read from MH i2c: F0 09 00 [22:50:57]MH_I2C_Read... [22:50:57]Read from MH i2c: F0 09 00 C7 1B 00 D2 04 93 66 C9 DC B2 64 64 [22:50:57]GetLastDocTimeStamp 1720910588 [22:50:57]current date 1720911058 [22:50:57]FM_GetShiftState [22:50:57]SAM_PROTO_GetShiftState [22:50:57]wFMCommunicate request_size=4 [22:50:57]MH_SAM_APDU [22:50:57]CAPDU: 80 13 01 00 [22:50:57]Write to MH i2c: E2 08 00 C8 1B 80 13 01 00 00 00 00 00 60 [22:50:57]Write i2c OK [22:50:57]MH_I2C_Read... [22:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:57]Read from MH i2c: E2 [22:50:57]MH_I2C_Read... [22:50:57]Read from MH i2c: E2 0E 00 [22:50:57]MH_I2C_Read... [22:50:57]Read from MH i2c: E2 0E 00 C8 1B 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 41 [22:50:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:50:57]wFMCommunicate OK [22:50:57]SAM_PROTO_GetShiftState done [22:50:57]FM_GetShiftState done [22:50:57]opened in 1720831249 [22:50:57]opened+sec_in_day 1720917649 [22:50:57]quantity*price = 30001 [22:50:57]sum+1 = 30002 [22:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 344 13.07.2024 22:50 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164784 ФПД: 249771512858371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225058&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164784&fm=249771512858371&tin=02508201610067®Number=0000000000090829&sum=30001 [22:50:58]StoreToDocumentArchive [22:50:58]shift 446 fd 164784 [22:50:58]save to /storage/0446/doc_00164784 [22:50:58]save last doc name /storage/0446/doc_00164784 to /storage/kkm_last_doc_name [22:50:58]save OK [22:50:58]Clear old archive folders... [22:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:58]tlvbuf is 01EE4370 [22:50:58]SAM_PROTO_ClearQueue [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 09 00 00 [22:50:58]Write to MH i2c: E2 08 00 D5 1B 80 09 00 00 00 00 00 00 62 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]SAM_PROTO_ClearQueue done [22:50:58]KKMCreateOFDPacket [22:50:58]OFDProtocolAddRootSTLVToBuf [22:50:58]FM_MakeSignedData [22:50:58]FM_MakeSignedData [22:50:58]SAM_PROTO_SignData [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 01 02 [22:50:58]Write to MH i2c: E2 08 00 D6 1B 80 0D 01 02 00 00 00 00 6A [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]wFMCommunicate request_size=255 [22:50:58]MH_SAM_APDU [22:50: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 D2 04 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 83 02 00 35 04 06 00 E3 [22:50:58]Write to MH i2c: E2 02 01 D7 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 D2 04 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 83 02 00 35 04 06 00 E3 00 00 8F [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [22:50:58]RAPDU: 90 00 [22:50:58]wFMCommunicate OK [22:50:58]wFMCommunicate request_size=10 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 0D 02 02 05 2A 76 4C 87 03 [22:50:58]Write to MH i2c: E2 0D 00 D8 1B 80 0D 02 02 05 00 2A 76 4C 87 03 00 00 ED [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:59]Read from MH i2c: E2 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 03 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [22:50:59]RAPDU: 90 00 [22:50:59]wFMCommunicate OK [22:50:59]wFMCommunicate request_size=4 [22:50:59]MH_SAM_APDU [22:50:59]CAPDU: 80 0D 03 02 [22:50:59]Write to MH i2c: E2 08 00 D9 1B 80 0D 03 02 00 00 00 00 6F [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:59]Read from MH i2c: E2 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 0B 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 0B 00 D9 1B 00 7A BF 1A 10 60 90 37 71 90 00 6B [22:50:59]RAPDU: 7A BF 1A 10 60 90 37 71 90 00 [22:50:59]wFMCommunicate OK [22:50:59]SAM_PROTO_SignData done [22:50:59]FM_MakeSignedData done [22:50:59]CreateOFDProtocolMessage [22:50:59]wFMCommunicate request_size=4 [22:50:59]MH_SAM_APDU [22:50:59]CAPDU: 80 11 00 00 [22:50:59]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:59]Read from MH i2c: E2 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 17 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 17 00 DA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [22:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:50:59]wFMCommunicate OK [22:50:59]CreateOFDProtocolMessage done [22:50:59]OFDSenderStorePacket 164784 [22:50:59]StoreOFDPacket docnum=164784 [22:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC 28 07 01 41 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 D2 04 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 83 02 00 35 04 06 00 E3 2A 76 4C 87 03 7A BF 1A 10 60 90 37 71 [22:50:59]CheckFolder [22:50:59]dirname=/storage/ofd_packets [22:50:59]CheckFolder done [22:50:59]ProducePacketName [22:50:59]name=ofd_packets/00164784 [22:50:59]NVStorageSaveData ofd_packets/00164784 [22:50:59]File name is /storage/ofd_packets/00164784 [22:50:59]Write 301 bytes [22:50:59]NVStorageSaveData done [22:50:59]OFDSenderStorePacket done [22:50:59]KKMCreateOFDPacket done [22:50:59]NVStorageSaveData kkm_last_timestamp [22:50:59]File name is /storage/kkm_last_timestamp [22:50:59]Write 4 bytes [22:50:59]NVStorageSaveData done [22:50:59]ExternCall_PrintAddStr [22:50:59]wPrintStart [22:50:59]Write to MH i2c: 01 00 00 DB 1B F6 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [22:50:59]RasterBufferAndPrint [22:50:59]line Счет N : (1)458878 [22:50:59]line ИНН: 02508201610067 [22:50:59]line Контрольно-Кассовый Чек [22:50:59]line ПРОДАЖА [22:50:59]line ТРК (МРК, ГНК) : 12 [22:50:59]line Товар: 2710124130 [22:50:59]line Аи-92-К-5 [22:50:59]line 4.600 * 65.22 [22:50:59]line = 300.01 [22:50:59]line НДС 12% НСП 1% [22:50:59]line > о реализуемом товаре [22:50:59]line ИТОГО: 300.01 [22:50:59]line НСП 1% : 2.65 [22:50:59]line НДС 12% : 31.86 [22:50:59]line Наличными: 0.00 [22:50:59]line Безнал.: 300.01 [22:50:59]line Место: АЗС № 72 "Партнер Нефть" [22:50:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:50:59]line СНО: Общий режим [22:50:59]line Чек 344 13.07.2024 22:50 [22:50:59]line Смена: 446 ФФД: 1.0 [22:50:59]line ЗНМ: 0300000160 [22:50:59]line РНМ: 0000000000090829 [22:50:59]line Версия ККМ: 001 [22:50:59]line Платежная система: KICB Банк [22:50:59]line ФМ: 0000000000874718 [22:50:59]line ФД: 164784 [22:50:59]line ФПД: 249771512858371 [22:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225058&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164784&fm=249771512858371&tin=02508201610067®Number=0000000000090829&sum=30001 [22:50:59]written 0, free lines is 4095 [22:50:59]OFD Sender: Processing packet 164784 [packets to send 104, broken 103] [22:50:59]ProducePacketName [22:50:59]name=ofd_packets/00164784 [22:50:59]OFD Sender: To server: pG, [22:50:59]CommunicateWithHost lk.salyk.kg:30040 [22:50:59]ConnectInit lk.salyk.kg [22:50:59]Connected sock=7 [22:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC 28 07 01 41 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 D2 04 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 83 02 00 35 04 06 00 E3 2A 76 4C 87 03 7A BF 1A 10 60 90 37 71 [22:50:59]Write to MH i2c: 01 00 00 04 1C 20 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: 01 07 00 04 1C 00 00 00 00 00 07 0D 3B [22:50:59]RasterBufferAndPrint [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]line [22:50:59]written 0, free lines is 3341 [22:50:59]MH_Cut [22:50:59]Write to MH i2c: D1 01 00 0B 1C 01 F9 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 01 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: D1 01 00 0B 1C 00 F8 [22:50:59]Write to MH i2c: 01 00 00 0C 1C 28 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B A2 47 00 AB 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 34 37 31 38 10 04 04 00 B0 83 02 00 F4 03 04 00 62 AB 92 66 B6 04 01 00 00 59 79 89 C1 3C 9B D0 90 [22:50:59]CommunicateWithHost err = 0 [22:50:59]CheckOFDResponse [22:50:59]1017 (14) - 77093643461234 [22:50:59]1041 (16) - 0000000000874718 [22:50:59]1040 (4) - 164784 [22:50:59]1012 (4) - 13.07.2024 16:29 [22:50:59]1206 (1) - 0 [22:50:59]OFD Sender: Remove packet 164784 [22:50:59]ProducePacketName [22:50:59]name=ofd_packets/00164784 [22:50:59]NVStorageDeleteData [22:51:00]*** Cut start [22:51:00]*** Partial cut [22:51:00]*** CUTSNS_PIN = 1 [22:51:00]OFD Sender: No OFD packet to send [22:51:00]*** CUTSNS_PIN = 0 [22:51:00]*** Brake cut motor [22:51:00]Read from MH i2c: 01 [22:51:00]MH_I2C_Read... [22:51:00]*** Stop cut motor [22:51:00]*** Cut end [22:51:00]Read from MH i2c: 01 07 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [22:51:00]process_action close_receipt done [22:51:00]requested_data is exist [22:51:00]produce_requested_data [22:51:00]requested_item fm.sn is exist - process it [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 11 00 00 [22:51:00]Write to MH i2c: E2 08 00 0D 1C 80 11 00 00 00 00 00 00 A3 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [22:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:51:00]wFMCommunicate OK [22:51:00]requested_item fd.num is exist - process it [22:51:00]SAM_PROTO_GetFieldsCounters [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 13 00 00 [22:51:00]Write to MH i2c: E2 08 00 0E 1C 80 13 00 00 00 00 00 00 A6 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:01]Read from MH i2c: E2 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 62 00 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 62 00 0E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [22:51: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:01]wFMCommunicate OK [22:51:01]SAM_PROTO_GetFieldsCounters done [22:51:01]requested_item shift.num is exist - process it [22:51:01]requested_item shift.opened is exist - process it [22:51:01]req_shift_opened [22:51:01]FM_GetShiftState [22:51:01]SAM_PROTO_GetShiftState [22:51:01]wFMCommunicate request_size=4 [22:51:01]MH_SAM_APDU [22:51:01]CAPDU: 80 13 01 00 [22:51:01]Write to MH i2c: E2 08 00 0F 1C 80 13 01 00 00 00 00 00 A8 [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:01]Read from MH i2c: E2 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 0E 00 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 0E 00 0F 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 89 [22:51:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:51:01]wFMCommunicate OK [22:51:01]SAM_PROTO_GetShiftState done [22:51:01]FM_GetShiftState done [22:51:01]req_shift_opened done [22:51:01]requested_item shift.open_date is exist - process it [22:51:01]req_shift_open_date [22:51:01]req_shift_open_date done [22:51:01]produce_requested_data done [22:51:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164784,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:51:01]process_action_free close_receipt [22:51:01]json_value_free [22:51:01]json_value_free done [22:51:01]process_json_proto returns [22:51:01]Send response to host [22:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164784,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:51:01]free response buf [22:51:01]execute_script done [22:51:01]execute_script returns [22:51:01]free content buf [22:51:01]Sock 9.Close socket [22:51:01]Sock 9.Thread stoped [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:03]accept exits with 10 [22:53:03]New connection [22:53:03]New thread 3067104612 created [22:53:03]Thread 3067247972 joined [22:53:03]Waiting for new connection... [22:53:03] Sock 10.Parse request [22:53:03]Sock 10.Check first char [22:53:03]Sock 10.First char is OK [22:53:03]request: POST /json_proto HTTP/1.0 [22:53:03]Method: POST [22:53:03]URL: /json_proto [22:53:03]Method is POST - this is cgi request [22:53:03]url: /json_proto [22:53:03]query_string will be loaded in cgi processing [22:53:03]execute_cgi json_proto POST (null) [22:53:03]execute_cgi path=json_proto method=POST [22:53:03]POST find Content-Length [22:53:03]Host: 172.17.56.4:8080 [22:53:03]Content-Length: 682 [22:53:03]Content-Type: application/json [22:53:03] [22:53:03]POST finish read [22:53:03]Found Content-Length = 682 [22:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:03]execute_script... [22:53: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)458879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:03]POST & json_proto [22:53:03]process_json_proto [22:53:03]json parsed OK: [22:53:03]protocol is kg_v1.0 [22:53:03]action value=close_receipt [22:53:03]process_action close_receipt [22:53:03]cmd_close_receipt [22:53:03]MH_GetDate [22:53:03]Write to MH i2c: F0 00 00 10 1C 1B [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: F0 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: F0 09 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: F0 09 00 10 1C 00 50 05 93 66 C9 DC B2 64 2D [22:53:03]GetLastDocTimeStamp 1720911058 [22:53:03]current date 1720911184 [22:53:03]FM_GetShiftState [22:53:03]SAM_PROTO_GetShiftState [22:53:03]wFMCommunicate request_size=4 [22:53:03]MH_SAM_APDU [22:53:03]CAPDU: 80 13 01 00 [22:53:03]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [22:53:03]Write i2c OK [22:53:03]MH_I2C_Read... [22:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:03]Read from MH i2c: E2 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 0E 00 [22:53:03]MH_I2C_Read... [22:53:03]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 8B [22:53:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:53:03]wFMCommunicate OK [22:53:03]SAM_PROTO_GetShiftState done [22:53:03]FM_GetShiftState done [22:53:03]opened in 1720831249 [22:53:03]opened+sec_in_day 1720917649 [22:53:03]quantity*price = 100016 [22:53:03]sum+1 = 100017 [22:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 345 13.07.2024 22:53 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164785 ФПД: 15437597476425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225304&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164785&fm=15437597476425&tin=02508201610067®Number=0000000000090829&sum=100000 [22:53:04]StoreToDocumentArchive [22:53:04]shift 446 fd 164785 [22:53:04]save to /storage/0446/doc_00164785 [22:53:04]save last doc name /storage/0446/doc_00164785 to /storage/kkm_last_doc_name [22:53:04]save OK [22:53:04]Clear old archive folders... [22:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:04]tlvbuf is B6F9D4D0 [22:53:04]SAM_PROTO_ClearQueue [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 09 00 00 [22:53:04]Write to MH i2c: E2 08 00 1E 1C 80 09 00 00 00 00 00 00 AC [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [22:53:04]RAPDU: 90 00 [22:53:04]wFMCommunicate OK [22:53:04]SAM_PROTO_ClearQueue done [22:53:04]KKMCreateOFDPacket [22:53:04]OFDProtocolAddRootSTLVToBuf [22:53:04]FM_MakeSignedData [22:53:04]FM_MakeSignedData [22:53:04]SAM_PROTO_SignData [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 0D 01 02 [22:53:04]Write to MH i2c: E2 08 00 1F 1C 80 0D 01 02 00 00 00 00 B4 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [22:53:04]RAPDU: 90 00 [22:53:04]wFMCommunicate OK [22:53:04]wFMCommunicate request_size=255 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 50 05 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 83 02 00 35 04 06 00 0E [22:53:04]Write to MH i2c: E2 02 01 20 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 50 05 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 83 02 00 35 04 06 00 0E 00 00 7A [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:04]Read from MH i2c: E2 03 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [22:53:04]RAPDU: 90 00 [22:53:04]wFMCommunicate OK [22:53:04]wFMCommunicate request_size=10 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 0D 02 02 05 0A 58 83 86 49 [22:53:04]Write to MH i2c: E2 0D 00 21 1C 80 0D 02 02 05 00 0A 58 83 86 49 00 00 75 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [22:53:04]RAPDU: 90 00 [22:53:04]wFMCommunicate OK [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 0D 03 02 [22:53:04]Write to MH i2c: E2 08 00 22 1C 80 0D 03 02 00 00 00 00 B9 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0B 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 0B 00 22 1C 00 DB A5 96 A6 96 FA 3E D6 90 00 1A [22:53:04]RAPDU: DB A5 96 A6 96 FA 3E D6 90 00 [22:53:04]wFMCommunicate OK [22:53:04]SAM_PROTO_SignData done [22:53:04]FM_MakeSignedData done [22:53:04]CreateOFDProtocolMessage [22:53:04]wFMCommunicate request_size=4 [22:53:04]MH_SAM_APDU [22:53:04]CAPDU: 80 11 00 00 [22:53:04]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:04]Read from MH i2c: E2 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 17 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [22:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:53:04]wFMCommunicate OK [22:53:04]CreateOFDProtocolMessage done [22:53:04]OFDSenderStorePacket 164785 [22:53:04]StoreOFDPacket docnum=164785 [22:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 89 07 01 DF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 50 05 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 83 02 00 35 04 06 00 0E 0A 58 83 86 49 DB A5 96 A6 96 FA 3E D6 [22:53:04]CheckFolder [22:53:04]dirname=/storage/ofd_packets [22:53:04]CheckFolder done [22:53:04]ProducePacketName [22:53:04]name=ofd_packets/00164785 [22:53:04]NVStorageSaveData ofd_packets/00164785 [22:53:04]File name is /storage/ofd_packets/00164785 [22:53:04]Write 301 bytes [22:53:04]NVStorageSaveData done [22:53:04]OFDSenderStorePacket done [22:53:04]KKMCreateOFDPacket done [22:53:04]NVStorageSaveData kkm_last_timestamp [22:53:04]File name is /storage/kkm_last_timestamp [22:53:04]Write 4 bytes [22:53:04]NVStorageSaveData done [22:53:04]ExternCall_PrintAddStr [22:53:04]wPrintStart [22:53:04]Write to MH i2c: 01 00 00 24 1C 40 [22:53:04]Write i2c OK [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 07 00 [22:53:04]MH_I2C_Read... [22:53:04]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 FF 0F 55 [22:53:04]RasterBufferAndPrint [22:53:04]line Счет N : (1)458879 [22:53:04]line ИНН: 02508201610067 [22:53:04]line Контрольно-Кассовый Чек [22:53:04]line ПРОДАЖА [22:53:04]line ТРК (МРК, ГНК) : 22 [22:53:04]line Товар: 2710124130 [22:53:04]line Аи-92-К-5 [22:53:04]line 15.200 * 65.80 [22:53:04]line = 1000.16 [22:53:04]line НДС 12% НСП 1% [22:53:04]line > о реализуемом товаре [22:53:04]line ОКРУГЛЕНИЕ: -0.16 [22:53:04]line ИТОГО: 1000.00 [22:53:04]line Внесено: 1000.00 [22:53:04]line СДАЧА: 0.00 [22:53:04]line НСП 1% : 8.85 [22:53:04]line НДС 12% : 106.21 [22:53:04]line Наличными: 1000.00 [22:53:04]line Безнал.: 0.00 [22:53:04]line Место: АЗС № 72 "Партнер Нефть" [22:53:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:53:04]line СНО: Общий режим [22:53:04]line Чек 345 13.07.2024 22:53 [22:53:04]line Смена: 446 ФФД: 1.0 [22:53:04]line ЗНМ: 0300000160 [22:53:04]line РНМ: 0000000000090829 [22:53:04]line Версия ККМ: 001 [22:53:04]line ФМ: 0000000000874718 [22:53:04]line ФД: 164785 [22:53:04]line ФПД: 15437597476425 [22:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225304&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164785&fm=15437597476425&tin=02508201610067®Number=0000000000090829&sum=100000 [22:53:05]OFD Sender: Processing packet 164785 [packets to send 104, broken 103] [22:53:05]ProducePacketName [22:53:05]name=ofd_packets/00164785 [22:53:05]OFD Sender: To server: pG, [22:53:05]CommunicateWithHost lk.salyk.kg:30040 [22:53:05]ConnectInit lk.salyk.kg [22:53:05]written 0, free lines is 4095 [22:53:05]Connected sock=9 [22:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 89 07 01 DF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 50 05 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 83 02 00 35 04 06 00 0E 0A 58 83 86 49 DB A5 96 A6 96 FA 3E D6 [22:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 5D 47 00 E3 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 83 02 00 F4 03 04 00 E0 AB 92 66 B6 04 01 00 00 FC 5F B4 C1 F1 98 56 4A [22:53:05]CommunicateWithHost err = 0 [22:53:05]CheckOFDResponse [22:53:05]1017 (14) - 77093643461234 [22:53:05]1041 (16) - 0000000000874718 [22:53:05]1040 (4) - 164785 [22:53:05]1012 (4) - 13.07.2024 16:31 [22:53:05]1206 (1) - 0 [22:53:05]OFD Sender: Remove packet 164785 [22:53:05]ProducePacketName [22:53:05]name=ofd_packets/00164785 [22:53:05]NVStorageDeleteData [22:53:05]Write to MH i2c: 01 00 00 4E 1C 6A [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: 01 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: 01 07 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: 01 07 00 4E 1C 00 00 00 00 00 FD 0C 7A [22:53:05]RasterBufferAndPrint [22:53:05]line [22:53:05]line [22:53:05]line [22:53:05]line [22:53:05]line [22:53:05]written 0, free lines is 3331 [22:53:05]MH_Cut [22:53:05]Write to MH i2c: D1 01 00 55 1C 01 43 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: D1 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: D1 01 00 [22:53:05]MH_I2C_Read... [22:53:05]Read from MH i2c: D1 01 00 55 1C 00 42 [22:53:05]Write to MH i2c: 01 00 00 56 1C 72 [22:53:05]Write i2c OK [22:53:05]MH_I2C_Read... [22:53:06]OFD Sender: No OFD packet to send [22:53:06]*** Cut start [22:53:06]*** Partial cut [22:53:06]*** CUTSNS_PIN = 1 [22:53:06]*** CUTSNS_PIN = 0 [22:53:06]*** Brake cut motor [22:53:06]Read from MH i2c: 01 [22:53:06]MH_I2C_Read... [22:53:06]*** Stop cut motor [22:53:06]*** Cut end [22:53:06]Read from MH i2c: 01 07 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 FF 0F 87 [22:53:06]process_action close_receipt done [22:53:06]requested_data is exist [22:53:06]produce_requested_data [22:53:06]requested_item fm.sn is exist - process it [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 11 00 00 [22:53:06]Write to MH i2c: E2 08 00 57 1C 80 11 00 00 00 00 00 00 ED [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:06]Read from MH i2c: E2 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 17 00 [22:53:06]MH_I2C_Read... [22:53:06]Read from MH i2c: E2 17 00 57 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [22:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:53:06]wFMCommunicate OK [22:53:06]requested_item fd.num is exist - process it [22:53:06]SAM_PROTO_GetFieldsCounters [22:53:06]wFMCommunicate request_size=4 [22:53:06]MH_SAM_APDU [22:53:06]CAPDU: 80 13 00 00 [22:53:06]Write to MH i2c: E2 08 00 58 1C 80 13 00 00 00 00 00 00 F0 [22:53:06]Write i2c OK [22:53:06]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 62 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 62 00 58 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [22:53: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:07]wFMCommunicate OK [22:53:07]SAM_PROTO_GetFieldsCounters done [22:53:07]requested_item shift.num is exist - process it [22:53:07]requested_item shift.opened is exist - process it [22:53:07]req_shift_opened [22:53:07]FM_GetShiftState [22:53:07]SAM_PROTO_GetShiftState [22:53:07]wFMCommunicate request_size=4 [22:53:07]MH_SAM_APDU [22:53:07]CAPDU: 80 13 01 00 [22:53:07]Write to MH i2c: E2 08 00 59 1C 80 13 01 00 00 00 00 00 F2 [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0E 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0E 00 59 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D3 [22:53:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [22:53:07]wFMCommunicate OK [22:53:07]SAM_PROTO_GetShiftState done [22:53:07]FM_GetShiftState done [22:53:07]req_shift_opened done [22:53:07]requested_item shift.open_date is exist - process it [22:53:07]req_shift_open_date [22:53:07]req_shift_open_date done [22:53:07]produce_requested_data done [22:53:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164785,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [22:53:07]process_action_free close_receipt [22:53:07]json_value_free [22:53:07]json_value_free done [22:53:07]process_json_proto returns [22:53:07]Send response to host [22:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164785,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [22:53:07]free response buf [22:53:07]execute_script done [22:53:07]execute_script returns [22:53:07]free content buf [22:53:07]Sock 10.Close socket [22:53:07]Sock 10.Thread stoped [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:54]accept exits with 7 [23:00:54]New connection [23:00:54]New thread 3067247972 created [23:00:54]Thread 3067104612 joined [23:00:54]Waiting for new connection... [23:00:54] Sock 7.Parse request [23:00:54]Sock 7.Check first char [23:00:54]Sock 7.First char is OK [23:00:54]request: POST /json_proto HTTP/1.0 [23:00:54]Method: POST [23:00:54]URL: /json_proto [23:00:54]Method is POST - this is cgi request [23:00:54]url: /json_proto [23:00:54]query_string will be loaded in cgi processing [23:00:54]execute_cgi json_proto POST (null) [23:00:54]execute_cgi path=json_proto method=POST [23:00:54]POST find Content-Length [23:00:54]Host: 172.17.56.4:8080 [23:00:54]Content-Length: 677 [23:00:54]Content-Type: application/json [23:00:54] [23:00:54]POST finish read [23:00:54]Found Content-Length = 677 [23:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:54]execute_script... [23:00: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)458880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:54]POST & json_proto [23:00:54]process_json_proto [23:00:54]json parsed OK: [23:00:54]protocol is kg_v1.0 [23:00:54]action value=close_receipt [23:00:54]process_action close_receipt [23:00:54]cmd_close_receipt [23:00:54]MH_GetDate [23:00:54]Write to MH i2c: F0 00 00 5A 1C 65 [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 09 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: F0 09 00 5A 1C 00 28 07 93 66 C9 DC B2 64 51 [23:00:54]GetLastDocTimeStamp 1720911184 [23:00:54]current date 1720911656 [23:00:54]FM_GetShiftState [23:00:54]SAM_PROTO_GetShiftState [23:00:54]wFMCommunicate request_size=4 [23:00:54]MH_SAM_APDU [23:00:54]CAPDU: 80 13 01 00 [23:00:54]Write to MH i2c: E2 08 00 5B 1C 80 13 01 00 00 00 00 00 F4 [23:00:54]Write i2c OK [23:00:54]MH_I2C_Read... [23:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:54]Read from MH i2c: E2 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: E2 0E 00 [23:00:54]MH_I2C_Read... [23:00:54]Read from MH i2c: E2 0E 00 5B 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D5 [23:00:54]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:00:54]wFMCommunicate OK [23:00:54]SAM_PROTO_GetShiftState done [23:00:54]FM_GetShiftState done [23:00:54]opened in 1720831249 [23:00:54]opened+sec_in_day 1720917649 [23:00:54]quantity*price = 30004 [23:00:54]sum+1 = 30006 [23:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 346 13.07.2024 23:00 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164786 ФПД: 11626135305308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164786&fm=11626135305308&tin=02508201610067®Number=0000000000090829&sum=30000 [23:00:55]StoreToDocumentArchive [23:00:55]shift 446 fd 164786 [23:00:55]save to /storage/0446/doc_00164786 [23:00:55]save last doc name /storage/0446/doc_00164786 to /storage/kkm_last_doc_name [23:00:55]save OK [23:00:55]Clear old archive folders... [23:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:55]tlvbuf is 01F10870 [23:00:55]SAM_PROTO_ClearQueue [23:00:55]wFMCommunicate request_size=4 [23:00:55]MH_SAM_APDU [23:00:55]CAPDU: 80 09 00 00 [23:00:55]Write to MH i2c: E2 08 00 68 1C 80 09 00 00 00 00 00 00 F6 [23:00:55]Write i2c OK [23:00:55]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]SAM_PROTO_ClearQueue done [23:00:56]KKMCreateOFDPacket [23:00:56]OFDProtocolAddRootSTLVToBuf [23:00:56]FM_MakeSignedData [23:00:56]FM_MakeSignedData [23:00:56]SAM_PROTO_SignData [23:00:56]wFMCommunicate request_size=4 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 0D 01 02 [23:00:56]Write to MH i2c: E2 08 00 69 1C 80 0D 01 02 00 00 00 00 FE [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]wFMCommunicate request_size=255 [23:00:56]MH_SAM_APDU [23:00: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 5A 01 00 00 F4 03 04 00 28 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 83 02 00 35 04 06 00 0A [23:00:56]Write to MH i2c: E2 02 01 6A 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 5A 01 00 00 F4 03 04 00 28 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 83 02 00 35 04 06 00 0A 00 00 BB [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]wFMCommunicate request_size=10 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 0D 02 02 05 92 EB AA 3C 5C [23:00:56]Write to MH i2c: E2 0D 00 6B 1C 80 0D 02 02 05 00 92 EB AA 3C 5C 00 00 CA [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [23:00:56]RAPDU: 90 00 [23:00:56]wFMCommunicate OK [23:00:56]wFMCommunicate request_size=4 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 0D 03 02 [23:00:56]Write to MH i2c: E2 08 00 6C 1C 80 0D 03 02 00 00 00 00 03 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 0B 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 0B 00 6C 1C 00 74 D2 C3 DD 46 40 53 3D 90 00 00 [23:00:56]RAPDU: 74 D2 C3 DD 46 40 53 3D 90 00 [23:00:56]wFMCommunicate OK [23:00:56]SAM_PROTO_SignData done [23:00:56]FM_MakeSignedData done [23:00:56]CreateOFDProtocolMessage [23:00:56]wFMCommunicate request_size=4 [23:00:56]MH_SAM_APDU [23:00:56]CAPDU: 80 11 00 00 [23:00:56]Write to MH i2c: E2 08 00 6D 1C 80 11 00 00 00 00 00 00 03 [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:56]Read from MH i2c: E2 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 17 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: E2 17 00 6D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [23:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:00:56]wFMCommunicate OK [23:00:56]CreateOFDProtocolMessage done [23:00:56]OFDSenderStorePacket 164786 [23:00:56]StoreOFDPacket docnum=164786 [23:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2D AA 07 01 95 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 5A 01 00 00 F4 03 04 00 28 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 83 02 00 35 04 06 00 0A 92 EB AA 3C 5C 74 D2 C3 DD 46 40 53 3D [23:00:56]CheckFolder [23:00:56]dirname=/storage/ofd_packets [23:00:56]CheckFolder done [23:00:56]ProducePacketName [23:00:56]name=ofd_packets/00164786 [23:00:56]NVStorageSaveData ofd_packets/00164786 [23:00:56]File name is /storage/ofd_packets/00164786 [23:00:56]Write 301 bytes [23:00:56]NVStorageSaveData done [23:00:56]OFDSenderStorePacket done [23:00:56]KKMCreateOFDPacket done [23:00:56]NVStorageSaveData kkm_last_timestamp [23:00:56]File name is /storage/kkm_last_timestamp [23:00:56]Write 4 bytes [23:00:56]NVStorageSaveData done [23:00:56]OFD Sender: Processing packet 164786 [packets to send 104, broken 103] [23:00:56]ProducePacketName [23:00:56]name=ofd_packets/00164786 [23:00:56]OFD Sender: To server: pG, [23:00:56]CommunicateWithHost lk.salyk.kg:30040 [23:00:56]ConnectInit lk.salyk.kg [23:00:56]ExternCall_PrintAddStr [23:00:56]wPrintStart [23:00:56]Write to MH i2c: 01 00 00 6E 1C 8A [23:00:56]Write i2c OK [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 [23:00:56]MH_I2C_Read... [23:00:56]Read from MH i2c: 01 07 00 6E 1C 00 00 00 00 00 FF 0F 9F [23:00:56]RasterBufferAndPrint [23:00:56]line Счет N : (1)458880 [23:00:56]line ИНН: 02508201610067 [23:00:56]line Контрольно-Кассовый Чек [23:00:56]line ПРОДАЖА [23:00:56]line ТРК (МРК, ГНК) : 12 [23:00:56]line Товар: 2710124130 [23:00:56]line Аи-92-К-5 [23:00:56]line 4.560 * 65.80 [23:00:56]line = 300.05 [23:00:56]line НДС 12% НСП 1% [23:00:56]line > о реализуемом товаре [23:00:56]line ОКРУГЛЕНИЕ: -0.05 [23:00:56]line ИТОГО: 300.00 [23:00:56]line Внесено: 300.00 [23:00:56]line СДАЧА: 0.00 [23:00:56]line НСП 1% : 2.65 [23:00:56]line НДС 12% : 31.86 [23:00:56]line Наличными: 300.00 [23:00:56]line Безнал.: 0.00 [23:00:56]line Место: АЗС № 72 "Партнер Нефть" [23:00:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:00:56]line СНО: Общий режим [23:00:56]line Чек 346 13.07.2024 23:00 [23:00:56]line Смена: 446 ФФД: 1.0 [23:00:56]line ЗНМ: 0300000160 [23:00:56]line РНМ: 0000000000090829 [23:00:56]line Версия ККМ: 001 [23:00:56]line ФМ: 0000000000874718 [23:00:56]line ФД: 164786 [23:00:56]line ФПД: 11626135305308 [23:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164786&fm=11626135305308&tin=02508201610067®Number=0000000000090829&sum=30000 [23:00:56]Connected sock=11 [23:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2D AA 07 01 95 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 5A 01 00 00 F4 03 04 00 28 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 83 02 00 35 04 06 00 0A 92 EB AA 3C 5C 74 D2 C3 DD 46 40 53 3D [23:00:56]written 0, free lines is 4095 [23:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 83 DF 47 00 F0 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 83 02 00 F4 03 04 00 B7 AD 92 66 B6 04 01 00 00 D7 22 BE 52 46 80 23 9C [23:00:57]CommunicateWithHost err = 0 [23:00:57]CheckOFDResponse [23:00:57]1017 (14) - 77093643461234 [23:00:57]1041 (16) - 0000000000874718 [23:00:57]1040 (4) - 164786 [23:00:57]1012 (4) - 13.07.2024 16:39 [23:00:57]1206 (1) - 0 [23:00:57]OFD Sender: Remove packet 164786 [23:00:57]ProducePacketName [23:00:57]name=ofd_packets/00164786 [23:00:57]NVStorageDeleteData [23:00:57]Write to MH i2c: 01 00 00 98 1C B4 [23:00:57]Write i2c OK [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: 01 [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: 01 07 00 [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 F0 0C B7 [23:00:57]RasterBufferAndPrint [23:00:57]line [23:00:57]line [23:00:57]line [23:00:57]line [23:00:57]line [23:00:57]written 0, free lines is 3319 [23:00:57]MH_Cut [23:00:57]Write to MH i2c: D1 01 00 9F 1C 01 8D [23:00:57]Write i2c OK [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: D1 [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: D1 01 00 [23:00:57]MH_I2C_Read... [23:00:57]Read from MH i2c: D1 01 00 9F 1C 00 8C [23:00:57]Write to MH i2c: 01 00 00 A0 1C BC [23:00:57]Write i2c OK [23:00:57]MH_I2C_Read... [23:00:57]OFD Sender: No OFD packet to send [23:00:57]*** Cut start [23:00:57]*** Partial cut [23:00:57]*** CUTSNS_PIN = 1 [23:00:58]*** CUTSNS_PIN = 0 [23:00:58]*** Brake cut motor [23:00:58]Read from MH i2c: 01 [23:00:58]MH_I2C_Read... [23:00:58]*** Stop cut motor [23:00:58]*** Cut end [23:00:58]Read from MH i2c: 01 07 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [23:00:58]process_action close_receipt done [23:00:58]requested_data is exist [23:00:58]produce_requested_data [23:00:58]requested_item fm.sn is exist - process it [23:00:58]wFMCommunicate request_size=4 [23:00:58]MH_SAM_APDU [23:00:58]CAPDU: 80 11 00 00 [23:00:58]Write to MH i2c: E2 08 00 A1 1C 80 11 00 00 00 00 00 00 37 [23:00:58]Write i2c OK [23:00:58]MH_I2C_Read... [23:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:58]Read from MH i2c: E2 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 17 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 17 00 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [23:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:00:58]wFMCommunicate OK [23:00:58]requested_item fd.num is exist - process it [23:00:58]SAM_PROTO_GetFieldsCounters [23:00:58]wFMCommunicate request_size=4 [23:00:58]MH_SAM_APDU [23:00:58]CAPDU: 80 13 00 00 [23:00:58]Write to MH i2c: E2 08 00 A2 1C 80 13 00 00 00 00 00 00 3A [23:00:58]Write i2c OK [23:00:58]MH_I2C_Read... [23:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:58]Read from MH i2c: E2 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 62 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 62 00 A2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:00: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:58]wFMCommunicate OK [23:00:58]SAM_PROTO_GetFieldsCounters done [23:00:58]requested_item shift.num is exist - process it [23:00:58]requested_item shift.opened is exist - process it [23:00:58]req_shift_opened [23:00:58]FM_GetShiftState [23:00:58]SAM_PROTO_GetShiftState [23:00:58]wFMCommunicate request_size=4 [23:00:58]MH_SAM_APDU [23:00:58]CAPDU: 80 13 01 00 [23:00:58]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [23:00:58]Write i2c OK [23:00:58]MH_I2C_Read... [23:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:58]Read from MH i2c: E2 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 0E 00 [23:00:58]MH_I2C_Read... [23:00:58]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1D [23:00:58]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:00:58]wFMCommunicate OK [23:00:58]SAM_PROTO_GetShiftState done [23:00:58]FM_GetShiftState done [23:00:58]req_shift_opened done [23:00:58]requested_item shift.open_date is exist - process it [23:00:58]req_shift_open_date [23:00:58]req_shift_open_date done [23:00:58]produce_requested_data done [23:00:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164786,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:00:58]process_action_free close_receipt [23:00:58]json_value_free [23:00:58]json_value_free done [23:00:58]process_json_proto returns [23:00:58]Send response to host [23:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164786,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:00:58]free response buf [23:00:58]execute_script done [23:00:58]execute_script returns [23:00:58]free content buf [23:00:58]Sock 7.Close socket [23:00:58]Sock 7.Thread stoped [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:51]accept exits with 9 [23:03:51]New connection [23:03:51]New thread 3067104612 created [23:03:51]Thread 3067247972 joined [23:03:51]Waiting for new connection... [23:03:51] Sock 9.Parse request [23:03:51]Sock 9.Check first char [23:03:51]Sock 9.First char is OK [23:03:51]request: POST /json_proto HTTP/1.0 [23:03:51]Method: POST [23:03:51]URL: /json_proto [23:03:51]Method is POST - this is cgi request [23:03:51]url: /json_proto [23:03:51]query_string will be loaded in cgi processing [23:03:51]execute_cgi json_proto POST (null) [23:03:51]execute_cgi path=json_proto method=POST [23:03:51]POST find Content-Length [23:03:51]Host: 172.17.56.4:8080 [23:03:51]Content-Length: 677 [23:03:51]Content-Type: application/json [23:03:51] [23:03:51]POST finish read [23:03:51]Found Content-Length = 677 [23:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:51]execute_script... [23:03: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)458881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:51]POST & json_proto [23:03:51]process_json_proto [23:03:51]json parsed OK: [23:03:51]protocol is kg_v1.0 [23:03:51]action value=close_receipt [23:03:51]process_action close_receipt [23:03:51]cmd_close_receipt [23:03:51]MH_GetDate [23:03:51]Write to MH i2c: F0 00 00 A4 1C AF [23:03:51]Write i2c OK [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: F0 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: F0 09 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: F0 09 00 A4 1C 00 D9 07 93 66 C9 DC B2 64 4C [23:03:51]GetLastDocTimeStamp 1720911656 [23:03:51]current date 1720911833 [23:03:51]FM_GetShiftState [23:03:51]SAM_PROTO_GetShiftState [23:03:51]wFMCommunicate request_size=4 [23:03:51]MH_SAM_APDU [23:03:51]CAPDU: 80 13 01 00 [23:03:51]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [23:03:51]Write i2c OK [23:03:51]MH_I2C_Read... [23:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:51]Read from MH i2c: E2 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 0E 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 1F [23:03:51]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:03:51]wFMCommunicate OK [23:03:51]SAM_PROTO_GetShiftState done [23:03:51]FM_GetShiftState done [23:03:51]opened in 1720831249 [23:03:51]opened+sec_in_day 1720917649 [23:03:51]quantity*price = 20003 [23:03:51]sum+1 = 20004 [23:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 347 13.07.2024 23:03 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164787 ФПД: 72968566932617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164787&fm=72968566932617&tin=02508201610067®Number=0000000000090829&sum=20000 [23:03:52]StoreToDocumentArchive [23:03:52]shift 446 fd 164787 [23:03:52]save to /storage/0446/doc_00164787 [23:03:52]save last doc name /storage/0446/doc_00164787 to /storage/kkm_last_doc_name [23:03:52]save OK [23:03:52]Clear old archive folders... [23:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:03:52]tlvbuf is 01F1B2D0 [23:03:52]SAM_PROTO_ClearQueue [23:03:52]wFMCommunicate request_size=4 [23:03:52]MH_SAM_APDU [23:03:52]CAPDU: 80 09 00 00 [23:03:52]Write to MH i2c: E2 08 00 B2 1C 80 09 00 00 00 00 00 00 40 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]SAM_PROTO_ClearQueue done [23:03:53]KKMCreateOFDPacket [23:03:53]OFDProtocolAddRootSTLVToBuf [23:03:53]FM_MakeSignedData [23:03:53]FM_MakeSignedData [23:03:53]SAM_PROTO_SignData [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 0D 01 02 [23:03:53]Write to MH i2c: E2 08 00 B3 1C 80 0D 01 02 00 00 00 00 48 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]wFMCommunicate request_size=255 [23:03:53]MH_SAM_APDU [23:03: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D9 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 83 02 00 35 04 06 00 42 [23:03:53]Write to MH i2c: E2 02 01 B4 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D9 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 83 02 00 35 04 06 00 42 00 00 D0 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]wFMCommunicate request_size=10 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 0D 02 02 05 5D 51 83 04 89 [23:03:53]Write to MH i2c: E2 0D 00 B5 1C 80 0D 02 02 05 00 5D 51 83 04 89 00 00 13 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [23:03:53]RAPDU: 90 00 [23:03:53]wFMCommunicate OK [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 0D 03 02 [23:03:53]Write to MH i2c: E2 08 00 B6 1C 80 0D 03 02 00 00 00 00 4D [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 0B 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 0B 00 B6 1C 00 12 87 1D 89 8F 2A 5E E7 90 00 8B [23:03:53]RAPDU: 12 87 1D 89 8F 2A 5E E7 90 00 [23:03:53]wFMCommunicate OK [23:03:53]SAM_PROTO_SignData done [23:03:53]FM_MakeSignedData done [23:03:53]CreateOFDProtocolMessage [23:03:53]wFMCommunicate request_size=4 [23:03:53]MH_SAM_APDU [23:03:53]CAPDU: 80 11 00 00 [23:03:53]Write to MH i2c: E2 08 00 B7 1C 80 11 00 00 00 00 00 00 4D [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:53]Read from MH i2c: E2 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 17 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: E2 17 00 B7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [23:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:03:53]wFMCommunicate OK [23:03:53]CreateOFDProtocolMessage done [23:03:53]OFDSenderStorePacket 164787 [23:03:53]StoreOFDPacket docnum=164787 [23:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 92 07 01 1A 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D9 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 83 02 00 35 04 06 00 42 5D 51 83 04 89 12 87 1D 89 8F 2A 5E E7 [23:03:53]CheckFolder [23:03:53]dirname=/storage/ofd_packets [23:03:53]CheckFolder done [23:03:53]ProducePacketName [23:03:53]name=ofd_packets/00164787 [23:03:53]NVStorageSaveData ofd_packets/00164787 [23:03:53]File name is /storage/ofd_packets/00164787 [23:03:53]Write 301 bytes [23:03:53]NVStorageSaveData done [23:03:53]OFDSenderStorePacket done [23:03:53]KKMCreateOFDPacket done [23:03:53]NVStorageSaveData kkm_last_timestamp [23:03:53]File name is /storage/kkm_last_timestamp [23:03:53]Write 4 bytes [23:03:53]NVStorageSaveData done [23:03:53]ExternCall_PrintAddStr [23:03:53]wPrintStart [23:03:53]Write to MH i2c: 01 00 00 B8 1C D4 [23:03:53]Write i2c OK [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: 01 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: 01 07 00 [23:03:53]MH_I2C_Read... [23:03:53]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [23:03:53]RasterBufferAndPrint [23:03:53]line Счет N : (1)458881 [23:03:53]line ИНН: 02508201610067 [23:03:53]line Контрольно-Кассовый Чек [23:03:53]line ПРОДАЖА [23:03:53]line ТРК (МРК, ГНК) : 12 [23:03:53]line Товар: 2710124130 [23:03:53]line Аи-92-К-5 [23:03:53]line 3.040 * 65.80 [23:03:53]line = 200.03 [23:03:53]line НДС 12% НСП 1% [23:03:53]line > о реализуемом товаре [23:03:53]line ОКРУГЛЕНИЕ: -0.03 [23:03:53]line ИТОГО: 200.00 [23:03:53]line Внесено: 200.00 [23:03:53]line СДАЧА: 0.00 [23:03:53]line НСП 1% : 1.77 [23:03:53]line НДС 12% : 21.24 [23:03:53]line Наличными: 200.00 [23:03:53]line Безнал.: 0.00 [23:03:53]line Место: АЗС № 72 "Партнер Нефть" [23:03:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:03:53]line СНО: Общий режим [23:03:53]line Чек 347 13.07.2024 23:03 [23:03:53]line Смена: 446 ФФД: 1.0 [23:03:53]line ЗНМ: 0300000160 [23:03:53]line РНМ: 0000000000090829 [23:03:53]line Версия ККМ: 001 [23:03:53]line ФМ: 0000000000874718 [23:03:53]line ФД: 164787 [23:03:53]line ФПД: 72968566932617 [23:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164787&fm=72968566932617&tin=02508201610067®Number=0000000000090829&sum=20000 [23:03:53]written 0, free lines is 4095 [23:03:53]OFD Sender: Processing packet 164787 [packets to send 104, broken 103] [23:03:53]ProducePacketName [23:03:53]name=ofd_packets/00164787 [23:03:53]OFD Sender: To server: pG, [23:03:53]CommunicateWithHost lk.salyk.kg:30040 [23:03:53]ConnectInit lk.salyk.kg [23:03:53]Connected sock=10 [23:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 92 07 01 1A 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 D9 07 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 83 02 00 35 04 06 00 42 5D 51 83 04 89 12 87 1D 89 8F 2A 5E E7 [23:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D 48 47 00 BA 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 34 37 31 38 10 04 04 00 B3 83 02 00 F4 03 04 00 68 AE 92 66 B6 04 01 00 00 3E E1 B1 F3 FB 42 22 FA [23:03:54]CommunicateWithHost err = 0 [23:03:54]CheckOFDResponse [23:03:54]1017 (14) - 77093643461234 [23:03:54]1041 (16) - 0000000000874718 [23:03:54]1040 (4) - 164787 [23:03:54]1012 (4) - 13.07.2024 16:42 [23:03:54]1206 (1) - 0 [23:03:54]OFD Sender: Remove packet 164787 [23:03:54]ProducePacketName [23:03:54]name=ofd_packets/00164787 [23:03:54]NVStorageDeleteData [23:03:54]Write to MH i2c: 01 00 00 E2 1C FE [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: 01 07 00 E2 1C 00 00 00 00 00 F0 0C 01 [23:03:54]RasterBufferAndPrint [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]line [23:03:54]written 0, free lines is 3318 [23:03:54]MH_Cut [23:03:54]Write to MH i2c: D1 01 00 E9 1C 01 D7 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: D1 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: D1 01 00 [23:03:54]MH_I2C_Read... [23:03:54]Read from MH i2c: D1 01 00 E9 1C 00 D6 [23:03:54]Write to MH i2c: 01 00 00 EA 1C 06 [23:03:54]Write i2c OK [23:03:54]MH_I2C_Read... [23:03:54]OFD Sender: No OFD packet to send [23:03:54]*** Cut start [23:03:54]*** Partial cut [23:03:54]*** CUTSNS_PIN = 1 [23:03:55]*** CUTSNS_PIN = 0 [23:03:55]*** Brake cut motor [23:03:55]Read from MH i2c: 01 [23:03:55]MH_I2C_Read... [23:03:55]*** Stop cut motor [23:03:55]*** Cut end [23:03:55]Read from MH i2c: 01 07 00 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 FF 0F 1B [23:03:55]process_action close_receipt done [23:03:55]requested_data is exist [23:03:55]produce_requested_data [23:03:55]requested_item fm.sn is exist - process it [23:03:55]wFMCommunicate request_size=4 [23:03:55]MH_SAM_APDU [23:03:55]CAPDU: 80 11 00 00 [23:03:55]Write to MH i2c: E2 08 00 EB 1C 80 11 00 00 00 00 00 00 81 [23:03:55]Write i2c OK [23:03:55]MH_I2C_Read... [23:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:55]Read from MH i2c: E2 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 17 00 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 17 00 EB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [23:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:03:55]wFMCommunicate OK [23:03:55]requested_item fd.num is exist - process it [23:03:55]SAM_PROTO_GetFieldsCounters [23:03:55]wFMCommunicate request_size=4 [23:03:55]MH_SAM_APDU [23:03:55]CAPDU: 80 13 00 00 [23:03:55]Write to MH i2c: E2 08 00 EC 1C 80 13 00 00 00 00 00 00 84 [23:03:55]Write i2c OK [23:03:55]MH_I2C_Read... [23:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:55]Read from MH i2c: E2 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 62 00 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 62 00 EC 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [23:03: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:55]wFMCommunicate OK [23:03:55]SAM_PROTO_GetFieldsCounters done [23:03:55]requested_item shift.num is exist - process it [23:03:55]requested_item shift.opened is exist - process it [23:03:55]req_shift_opened [23:03:55]FM_GetShiftState [23:03:55]SAM_PROTO_GetShiftState [23:03:55]wFMCommunicate request_size=4 [23:03:55]MH_SAM_APDU [23:03:55]CAPDU: 80 13 01 00 [23:03:55]Write to MH i2c: E2 08 00 ED 1C 80 13 01 00 00 00 00 00 86 [23:03:55]Write i2c OK [23:03:55]MH_I2C_Read... [23:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:55]Read from MH i2c: E2 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 0E 00 [23:03:55]MH_I2C_Read... [23:03:55]Read from MH i2c: E2 0E 00 ED 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 67 [23:03:55]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:03:55]wFMCommunicate OK [23:03:55]SAM_PROTO_GetShiftState done [23:03:55]FM_GetShiftState done [23:03:55]req_shift_opened done [23:03:55]requested_item shift.open_date is exist - process it [23:03:55]req_shift_open_date [23:03:55]req_shift_open_date done [23:03:55]produce_requested_data done [23:03:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164787,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:03:55]process_action_free close_receipt [23:03:55]json_value_free [23:03:55]json_value_free done [23:03:55]process_json_proto returns [23:03:55]Send response to host [23:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164787,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:03:55]free response buf [23:03:55]execute_script done [23:03:55]execute_script returns [23:03:55]free content buf [23:03:55]Sock 9.Close socket [23:03:55]Sock 9.Thread stoped [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:36]accept exits with 7 [23:10:36]New connection [23:10:36]New thread 3067247972 created [23:10:36]Thread 3067104612 joined [23:10:36]Waiting for new connection... [23:10:36] Sock 7.Parse request [23:10:36]Sock 7.Check first char [23:10:36]Sock 7.First char is OK [23:10:36]request: POST /json_proto HTTP/1.0 [23:10:36]Method: POST [23:10:36]URL: /json_proto [23:10:36]Method is POST - this is cgi request [23:10:36]url: /json_proto [23:10:36]query_string will be loaded in cgi processing [23:10:36]execute_cgi json_proto POST (null) [23:10:36]execute_cgi path=json_proto method=POST [23:10:36]POST find Content-Length [23:10:36]Host: 172.17.56.4:8080 [23:10:36]Content-Length: 677 [23:10:36]Content-Type: application/json [23:10:36] [23:10:36]POST finish read [23:10:36]Found Content-Length = 677 [23:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:36]execute_script... [23:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:36]POST & json_proto [23:10:36]process_json_proto [23:10:36]json parsed OK: [23:10:36]protocol is kg_v1.0 [23:10:36]action value=close_receipt [23:10:36]process_action close_receipt [23:10:36]cmd_close_receipt [23:10:36]MH_GetDate [23:10:36]Write to MH i2c: F0 00 00 EE 1C F9 [23:10:36]Write i2c OK [23:10:36]MH_I2C_Read... [23:10:36]Read from MH i2c: F0 [23:10:36]MH_I2C_Read... [23:10:36]Read from MH i2c: F0 09 00 [23:10:36]MH_I2C_Read... [23:10:36]Read from MH i2c: F0 09 00 EE 1C 00 6D 09 93 66 C9 DC B2 64 2C [23:10:36]GetLastDocTimeStamp 1720911833 [23:10:36]current date 1720912237 [23:10:36]FM_GetShiftState [23:10:36]SAM_PROTO_GetShiftState [23:10:36]wFMCommunicate request_size=4 [23:10:36]MH_SAM_APDU [23:10:36]CAPDU: 80 13 01 00 [23:10:36]Write to MH i2c: E2 08 00 EF 1C 80 13 01 00 00 00 00 00 88 [23:10:36]Write i2c OK [23:10:36]MH_I2C_Read... [23:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:36]Read from MH i2c: E2 [23:10:36]MH_I2C_Read... [23:10:36]Read from MH i2c: E2 0E 00 [23:10:36]MH_I2C_Read... [23:10:36]Read from MH i2c: E2 0E 00 EF 1C 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 69 [23:10:36]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:10:36]wFMCommunicate OK [23:10:36]SAM_PROTO_GetShiftState done [23:10:36]FM_GetShiftState done [23:10:36]opened in 1720831249 [23:10:36]opened+sec_in_day 1720917649 [23:10:36]quantity*price = 24017 [23:10:36]sum+1 = 24018 [23:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 348 13.07.2024 23:10 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164788 ФПД: 93592004512894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164788&fm=93592004512894&tin=02508201610067®Number=0000000000090829&sum=24000 [23:10:37]StoreToDocumentArchive [23:10:37]shift 446 fd 164788 [23:10:37]save to /storage/0446/doc_00164788 [23:10:37]save last doc name /storage/0446/doc_00164788 to /storage/kkm_last_doc_name [23:10:37]save OK [23:10:37]Clear old archive folders... [23:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:37]tlvbuf is 01F1F130 [23:10:37]SAM_PROTO_ClearQueue [23:10:37]wFMCommunicate request_size=4 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 09 00 00 [23:10:37]Write to MH i2c: E2 08 00 FC 1C 80 09 00 00 00 00 00 00 8A [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [23:10:37]RAPDU: 90 00 [23:10:37]wFMCommunicate OK [23:10:37]SAM_PROTO_ClearQueue done [23:10:37]KKMCreateOFDPacket [23:10:37]OFDProtocolAddRootSTLVToBuf [23:10:37]FM_MakeSignedData [23:10:37]FM_MakeSignedData [23:10:37]SAM_PROTO_SignData [23:10:37]wFMCommunicate request_size=4 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 0D 01 02 [23:10:37]Write to MH i2c: E2 08 00 FD 1C 80 0D 01 02 00 00 00 00 92 [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [23:10:37]RAPDU: 90 00 [23:10:37]wFMCommunicate OK [23:10:37]wFMCommunicate request_size=255 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 6D 09 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 83 02 00 35 04 06 00 55 [23:10:37]Write to MH i2c: E2 02 01 FE 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 6D 09 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 83 02 00 35 04 06 00 55 00 00 13 [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [23:10:37]RAPDU: 90 00 [23:10:37]wFMCommunicate OK [23:10:37]wFMCommunicate request_size=10 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 0D 02 02 05 1F 16 2E CC 7E [23:10:37]Write to MH i2c: E2 0D 00 FF 1C 80 0D 02 02 05 00 1F 16 2E CC 7E 00 00 4C [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [23:10:37]RAPDU: 90 00 [23:10:37]wFMCommunicate OK [23:10:37]wFMCommunicate request_size=4 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 0D 03 02 [23:10:37]Write to MH i2c: E2 08 00 00 1D 80 0D 03 02 00 00 00 00 98 [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 0B 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 0B 00 00 1D 00 B4 A6 A5 E8 B8 42 85 8D 90 00 8C [23:10:37]RAPDU: B4 A6 A5 E8 B8 42 85 8D 90 00 [23:10:37]wFMCommunicate OK [23:10:37]SAM_PROTO_SignData done [23:10:37]FM_MakeSignedData done [23:10:37]CreateOFDProtocolMessage [23:10:37]wFMCommunicate request_size=4 [23:10:37]MH_SAM_APDU [23:10:37]CAPDU: 80 11 00 00 [23:10:37]Write to MH i2c: E2 08 00 01 1D 80 11 00 00 00 00 00 00 98 [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:37]Read from MH i2c: E2 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 17 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: E2 17 00 01 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [23:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:10:37]wFMCommunicate OK [23:10:37]CreateOFDProtocolMessage done [23:10:37]OFDSenderStorePacket 164788 [23:10:37]StoreOFDPacket docnum=164788 [23:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 19 07 01 0A 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 6D 09 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 83 02 00 35 04 06 00 55 1F 16 2E CC 7E B4 A6 A5 E8 B8 42 85 8D [23:10:37]CheckFolder [23:10:37]dirname=/storage/ofd_packets [23:10:37]CheckFolder done [23:10:37]ProducePacketName [23:10:37]name=ofd_packets/00164788 [23:10:37]NVStorageSaveData ofd_packets/00164788 [23:10:37]File name is /storage/ofd_packets/00164788 [23:10:37]Write 301 bytes [23:10:37]NVStorageSaveData done [23:10:37]OFDSenderStorePacket done [23:10:37]KKMCreateOFDPacket done [23:10:37]NVStorageSaveData kkm_last_timestamp [23:10:37]File name is /storage/kkm_last_timestamp [23:10:37]Write 4 bytes [23:10:37]NVStorageSaveData done [23:10:37]ExternCall_PrintAddStr [23:10:37]wPrintStart [23:10:37]Write to MH i2c: 01 00 00 02 1D 1F [23:10:37]Write i2c OK [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 [23:10:37]MH_I2C_Read... [23:10:37]Read from MH i2c: 01 07 00 02 1D 00 00 00 00 00 FF 0F 34 [23:10:37]RasterBufferAndPrint [23:10:37]line Счет N : (1)458882 [23:10:37]line ИНН: 02508201610067 [23:10:37]line Контрольно-Кассовый Чек [23:10:37]line ПРОДАЖА [23:10:37]line ТРК (МРК, ГНК) : 12 [23:10:37]line Товар: 2710124130 [23:10:37]line Аи-92-К-5 [23:10:37]line 3.650 * 65.80 [23:10:37]line = 240.17 [23:10:37]line НДС 12% НСП 1% [23:10:37]line > о реализуемом товаре [23:10:37]line ОКРУГЛЕНИЕ: -0.17 [23:10:37]line ИТОГО: 240.00 [23:10:37]line Внесено: 240.00 [23:10:37]line СДАЧА: 0.00 [23:10:37]line НСП 1% : 2.12 [23:10:37]line НДС 12% : 25.50 [23:10:37]line Наличными: 240.00 [23:10:37]line Безнал.: 0.00 [23:10:37]line Место: АЗС № 72 "Партнер Нефть" [23:10:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:10:37]line СНО: Общий режим [23:10:37]line Чек 348 13.07.2024 23:10 [23:10:37]line Смена: 446 ФФД: 1.0 [23:10:37]line ЗНМ: 0300000160 [23:10:37]line РНМ: 0000000000090829 [23:10:37]line Версия ККМ: 001 [23:10:37]line ФМ: 0000000000874718 [23:10:37]line ФД: 164788 [23:10:37]line ФПД: 93592004512894 [23:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164788&fm=93592004512894&tin=02508201610067®Number=0000000000090829&sum=24000 [23:10:38]OFD Sender: Processing packet 164788 [packets to send 104, broken 103] [23:10:38]ProducePacketName [23:10:38]name=ofd_packets/00164788 [23:10:38]OFD Sender: To server: pG, [23:10:38]CommunicateWithHost lk.salyk.kg:30040 [23:10:38]ConnectInit lk.salyk.kg [23:10:38]written 0, free lines is 4095 [23:10:38]Connected sock=10 [23:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 19 07 01 0A 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 6D 09 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 83 02 00 35 04 06 00 55 1F 16 2E CC 7E B4 A6 A5 E8 B8 42 85 8D [23:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E B7 47 00 8E 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 83 02 00 F4 03 04 00 FD AF 92 66 B6 04 01 00 00 04 1A B3 5A 56 8A F6 23 [23:10:38]CommunicateWithHost err = 0 [23:10:38]CheckOFDResponse [23:10:38]1017 (14) - 77093643461234 [23:10:38]1041 (16) - 0000000000874718 [23:10:38]1040 (4) - 164788 [23:10:38]1012 (4) - 13.07.2024 16:49 [23:10:38]1206 (1) - 0 [23:10:38]OFD Sender: Remove packet 164788 [23:10:38]ProducePacketName [23:10:38]name=ofd_packets/00164788 [23:10:38]NVStorageDeleteData [23:10:38]Write to MH i2c: 01 00 00 2C 1D 49 [23:10:38]Write i2c OK [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: 01 [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: 01 07 00 [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 F0 0C 4C [23:10:38]RasterBufferAndPrint [23:10:38]line [23:10:38]line [23:10:38]line [23:10:38]line [23:10:38]line [23:10:38]written 0, free lines is 3319 [23:10:38]MH_Cut [23:10:38]Write to MH i2c: D1 01 00 33 1D 01 22 [23:10:38]Write i2c OK [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: D1 [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: D1 01 00 [23:10:38]MH_I2C_Read... [23:10:38]Read from MH i2c: D1 01 00 33 1D 00 21 [23:10:38]Write to MH i2c: 01 00 00 34 1D 51 [23:10:38]Write i2c OK [23:10:38]MH_I2C_Read... [23:10:38]OFD Sender: No OFD packet to send [23:10:39]*** Cut start [23:10:39]*** Partial cut [23:10:39]*** CUTSNS_PIN = 1 [23:10:39]*** CUTSNS_PIN = 0 [23:10:39]*** Brake cut motor [23:10:39]Read from MH i2c: 01 [23:10:39]MH_I2C_Read... [23:10:39]*** Stop cut motor [23:10:39]*** Cut end [23:10:39]Read from MH i2c: 01 07 00 [23:10:39]MH_I2C_Read... [23:10:39]Read from MH i2c: 01 07 00 34 1D 00 00 00 00 00 FF 0F 66 [23:10:39]process_action close_receipt done [23:10:39]requested_data is exist [23:10:39]produce_requested_data [23:10:39]requested_item fm.sn is exist - process it [23:10:39]wFMCommunicate request_size=4 [23:10:39]MH_SAM_APDU [23:10:39]CAPDU: 80 11 00 00 [23:10:39]Write to MH i2c: E2 08 00 35 1D 80 11 00 00 00 00 00 00 CC [23:10:39]Write i2c OK [23:10:39]MH_I2C_Read... [23:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:39]Read from MH i2c: E2 [23:10:39]MH_I2C_Read... [23:10:39]Read from MH i2c: E2 17 00 [23:10:39]MH_I2C_Read... [23:10:39]Read from MH i2c: E2 17 00 35 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [23:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:10:39]wFMCommunicate OK [23:10:39]requested_item fd.num is exist - process it [23:10:39]SAM_PROTO_GetFieldsCounters [23:10:39]wFMCommunicate request_size=4 [23:10:39]MH_SAM_APDU [23:10:39]CAPDU: 80 13 00 00 [23:10:39]Write to MH i2c: E2 08 00 36 1D 80 13 00 00 00 00 00 00 CF [23:10:39]Write i2c OK [23:10:39]MH_I2C_Read... [23:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:39]Read from MH i2c: E2 [23:10:39]MH_I2C_Read... [23:10:39]Read from MH i2c: E2 62 00 [23:10:39]MH_I2C_Read... [23:10:39]Read from MH i2c: E2 62 00 36 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [23:10: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:39]wFMCommunicate OK [23:10:39]SAM_PROTO_GetFieldsCounters done [23:10:39]requested_item shift.num is exist - process it [23:10:39]requested_item shift.opened is exist - process it [23:10:39]req_shift_opened [23:10:39]FM_GetShiftState [23:10:39]SAM_PROTO_GetShiftState [23:10:39]wFMCommunicate request_size=4 [23:10:39]MH_SAM_APDU [23:10:39]CAPDU: 80 13 01 00 [23:10:39]Write to MH i2c: E2 08 00 37 1D 80 13 01 00 00 00 00 00 D1 [23:10:39]Write i2c OK [23:10:39]MH_I2C_Read... [23:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:40]Read from MH i2c: E2 [23:10:40]MH_I2C_Read... [23:10:40]Read from MH i2c: E2 0E 00 [23:10:40]MH_I2C_Read... [23:10:40]Read from MH i2c: E2 0E 00 37 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B2 [23:10:40]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:10:40]wFMCommunicate OK [23:10:40]SAM_PROTO_GetShiftState done [23:10:40]FM_GetShiftState done [23:10:40]req_shift_opened done [23:10:40]requested_item shift.open_date is exist - process it [23:10:40]req_shift_open_date [23:10:40]req_shift_open_date done [23:10:40]produce_requested_data done [23:10:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164788,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:10:40]process_action_free close_receipt [23:10:40]json_value_free [23:10:40]json_value_free done [23:10:40]process_json_proto returns [23:10:40]Send response to host [23:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164788,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:10:40]free response buf [23:10:40]execute_script done [23:10:40]execute_script returns [23:10:40]free content buf [23:10:40]Sock 7.Close socket [23:10:40]Sock 7.Thread stoped [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:03]accept exits with 9 [23:17:03]New connection [23:17:03]New thread 3067104612 created [23:17:03]Thread 3067247972 joined [23:17:03]Waiting for new connection... [23:17:03] Sock 9.Parse request [23:17:03]Sock 9.Check first char [23:17:03]Sock 9.First char is OK [23:17:03]request: POST /json_proto HTTP/1.0 [23:17:03]Method: POST [23:17:03]URL: /json_proto [23:17:03]Method is POST - this is cgi request [23:17:03]url: /json_proto [23:17:03]query_string will be loaded in cgi processing [23:17:03]execute_cgi json_proto POST (null) [23:17:03]execute_cgi path=json_proto method=POST [23:17:03]POST find Content-Length [23:17:03]Host: 172.17.56.4:8080 [23:17:03]Content-Length: 682 [23:17:03]Content-Type: application/json [23:17:03] [23:17:03]POST finish read [23:17:03]Found Content-Length = 682 [23:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 21.280, "sum" : 1400.22, "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" ] } } [23:17:03]execute_script... [23:17: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)458883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 21.280, "sum" : 1400.22, "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" ] } } [23:17:03]POST & json_proto [23:17:03]process_json_proto [23:17:03]json parsed OK: [23:17:03]protocol is kg_v1.0 [23:17:03]action value=close_receipt [23:17:03]process_action close_receipt [23:17:03]cmd_close_receipt [23:17:03]MH_GetDate [23:17:03]Write to MH i2c: F0 00 00 38 1D 44 [23:17:03]Write i2c OK [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: F0 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: F0 09 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: F0 09 00 38 1D 00 F0 0A 93 66 C9 DC B2 64 FB [23:17:03]GetLastDocTimeStamp 1720912237 [23:17:03]current date 1720912624 [23:17:03]FM_GetShiftState [23:17:03]SAM_PROTO_GetShiftState [23:17:03]wFMCommunicate request_size=4 [23:17:03]MH_SAM_APDU [23:17:03]CAPDU: 80 13 01 00 [23:17:03]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [23:17:03]Write i2c OK [23:17:03]MH_I2C_Read... [23:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:03]Read from MH i2c: E2 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 0E 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B4 [23:17:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:17:03]wFMCommunicate OK [23:17:03]SAM_PROTO_GetShiftState done [23:17:03]FM_GetShiftState done [23:17:03]opened in 1720831249 [23:17:03]opened+sec_in_day 1720917649 [23:17:03]quantity*price = 140022 [23:17:03]sum+1 = 140023 [23:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 349 13.07.2024 23:17 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164789 ФПД: 40873943327693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231704&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164789&fm=40873943327693&tin=02508201610067®Number=0000000000090829&sum=140000 [23:17:04]StoreToDocumentArchive [23:17:04]shift 446 fd 164789 [23:17:04]save to /storage/0446/doc_00164789 [23:17:04]save last doc name /storage/0446/doc_00164789 to /storage/kkm_last_doc_name [23:17:04]save OK [23:17:04]Clear old archive folders... [23:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:04]tlvbuf is 01E8E0A0 [23:17:04]SAM_PROTO_ClearQueue [23:17:04]wFMCommunicate request_size=4 [23:17:04]MH_SAM_APDU [23:17:04]CAPDU: 80 09 00 00 [23:17:04]Write to MH i2c: E2 08 00 46 1D 80 09 00 00 00 00 00 00 D5 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [23:17:04]RAPDU: 90 00 [23:17:04]wFMCommunicate OK [23:17:04]SAM_PROTO_ClearQueue done [23:17:04]KKMCreateOFDPacket [23:17:04]OFDProtocolAddRootSTLVToBuf [23:17:04]FM_MakeSignedData [23:17:04]FM_MakeSignedData [23:17:04]SAM_PROTO_SignData [23:17:04]wFMCommunicate request_size=4 [23:17:04]MH_SAM_APDU [23:17:04]CAPDU: 80 0D 01 02 [23:17:04]Write to MH i2c: E2 08 00 47 1D 80 0D 01 02 00 00 00 00 DD [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]OFD Sender: No OFD packet to send [23:17:04]Read from MH i2c: E2 03 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 47 1D 00 90 00 D8 [23:17:04]RAPDU: 90 00 [23:17:04]wFMCommunicate OK [23:17:04]wFMCommunicate request_size=255 [23:17:04]MH_SAM_APDU [23:17: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 20 53 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 F0 0A 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 83 02 00 35 04 06 00 25 [23:17:04]Write to MH i2c: E2 02 01 48 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 F0 0A 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 83 02 00 35 04 06 00 25 00 00 E9 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [23:17:04]RAPDU: 90 00 [23:17:04]wFMCommunicate OK [23:17:04]wFMCommunicate request_size=10 [23:17:04]MH_SAM_APDU [23:17:04]CAPDU: 80 0D 02 02 05 2C B4 DF 63 CD [23:17:04]Write to MH i2c: E2 0D 00 49 1D 80 0D 02 02 05 00 2C B4 DF 63 CD 00 00 D9 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [23:17:04]RAPDU: 90 00 [23:17:04]wFMCommunicate OK [23:17:04]wFMCommunicate request_size=4 [23:17:04]MH_SAM_APDU [23:17:04]CAPDU: 80 0D 03 02 [23:17:04]Write to MH i2c: E2 08 00 4A 1D 80 0D 03 02 00 00 00 00 E2 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 0B 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 0B 00 4A 1D 00 1B 3D 96 8B 16 A3 9E BA 90 00 6D [23:17:04]RAPDU: 1B 3D 96 8B 16 A3 9E BA 90 00 [23:17:04]wFMCommunicate OK [23:17:04]SAM_PROTO_SignData done [23:17:04]FM_MakeSignedData done [23:17:04]CreateOFDProtocolMessage [23:17:04]wFMCommunicate request_size=4 [23:17:04]MH_SAM_APDU [23:17:04]CAPDU: 80 11 00 00 [23:17:04]Write to MH i2c: E2 08 00 4B 1D 80 11 00 00 00 00 00 00 E2 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:04]Read from MH i2c: E2 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 17 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: E2 17 00 4B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [23:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:17:04]wFMCommunicate OK [23:17:04]CreateOFDProtocolMessage done [23:17:04]OFDSenderStorePacket 164789 [23:17:04]StoreOFDPacket docnum=164789 [23:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 38 07 01 A2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 F0 0A 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 83 02 00 35 04 06 00 25 2C B4 DF 63 CD 1B 3D 96 8B 16 A3 9E BA [23:17:04]CheckFolder [23:17:04]dirname=/storage/ofd_packets [23:17:04]CheckFolder done [23:17:04]ProducePacketName [23:17:04]name=ofd_packets/00164789 [23:17:04]NVStorageSaveData ofd_packets/00164789 [23:17:04]File name is /storage/ofd_packets/00164789 [23:17:04]Write 301 bytes [23:17:04]NVStorageSaveData done [23:17:04]OFDSenderStorePacket done [23:17:04]KKMCreateOFDPacket done [23:17:04]NVStorageSaveData kkm_last_timestamp [23:17:04]File name is /storage/kkm_last_timestamp [23:17:04]Write 4 bytes [23:17:04]NVStorageSaveData done [23:17:04]ExternCall_PrintAddStr [23:17:04]wPrintStart [23:17:04]Write to MH i2c: 01 00 00 4C 1D 69 [23:17:04]Write i2c OK [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: 01 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: 01 07 00 [23:17:04]MH_I2C_Read... [23:17:04]Read from MH i2c: 01 07 00 4C 1D 00 00 00 00 00 FF 0F 7E [23:17:04]RasterBufferAndPrint [23:17:04]line Счет N : (1)458883 [23:17:04]line ИНН: 02508201610067 [23:17:04]line Контрольно-Кассовый Чек [23:17:04]line ПРОДАЖА [23:17:04]line ТРК (МРК, ГНК) : 12 [23:17:04]line Товар: 2710124130 [23:17:04]line Аи-92-К-5 [23:17:04]line 21.280 * 65.80 [23:17:04]line = 1400.22 [23:17:04]line НДС 12% НСП 1% [23:17:04]line > о реализуемом товаре [23:17:04]line ОКРУГЛЕНИЕ: -0.22 [23:17:04]line ИТОГО: 1400.00 [23:17:04]line Внесено: 1400.00 [23:17:04]line СДАЧА: 0.00 [23:17:04]line НСП 1% : 12.39 [23:17:04]line НДС 12% : 148.70 [23:17:04]line Наличными: 1400.00 [23:17:04]line Безнал.: 0.00 [23:17:04]line Место: АЗС № 72 "Партнер Нефть" [23:17:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:17:04]line СНО: Общий режим [23:17:04]line Чек 349 13.07.2024 23:17 [23:17:04]line Смена: 446 ФФД: 1.0 [23:17:04]line ЗНМ: 0300000160 [23:17:04]line РНМ: 0000000000090829 [23:17:04]line Версия ККМ: 001 [23:17:04]line ФМ: 0000000000874718 [23:17:04]line ФД: 164789 [23:17:04]line ФПД: 40873943327693 [23:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231704&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164789&fm=40873943327693&tin=02508201610067®Number=0000000000090829&sum=140000 [23:17:05]written 0, free lines is 4095 [23:17:05]OFD Sender: Processing packet 164789 [packets to send 104, broken 103] [23:17:05]ProducePacketName [23:17:05]name=ofd_packets/00164789 [23:17:05]OFD Sender: To server: pG, [23:17:05]CommunicateWithHost lk.salyk.kg:30040 [23:17:05]ConnectInit lk.salyk.kg [23:17:05]Connected sock=10 [23:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 38 07 01 A2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 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 5D 01 00 00 F4 03 04 00 F0 0A 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 83 02 00 35 04 06 00 25 2C B4 DF 63 CD 1B 3D 96 8B 16 A3 9E BA [23:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AA 56 47 00 20 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 34 37 31 38 10 04 04 00 B5 83 02 00 F4 03 04 00 80 B1 92 66 B6 04 01 00 00 80 24 B1 9C FD 9F 5B D3 [23:17:05]CommunicateWithHost err = 0 [23:17:05]CheckOFDResponse [23:17:05]1017 (14) - 77093643461234 [23:17:05]1041 (16) - 0000000000874718 [23:17:05]1040 (4) - 164789 [23:17:05]1012 (4) - 13.07.2024 16:55 [23:17:05]1206 (1) - 0 [23:17:05]OFD Sender: Remove packet 164789 [23:17:05]ProducePacketName [23:17:05]name=ofd_packets/00164789 [23:17:05]NVStorageDeleteData [23:17:05]Write to MH i2c: 01 00 00 76 1D 93 [23:17:05]Write i2c OK [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: 01 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: 01 07 00 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: 01 07 00 76 1D 00 00 00 00 00 FE 0C A4 [23:17:05]RasterBufferAndPrint [23:17:05]line [23:17:05]line [23:17:05]line [23:17:05]line [23:17:05]line [23:17:05]written 0, free lines is 3332 [23:17:05]MH_Cut [23:17:05]Write to MH i2c: D1 01 00 7D 1D 01 6C [23:17:05]Write i2c OK [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: D1 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: D1 01 00 [23:17:05]MH_I2C_Read... [23:17:05]Read from MH i2c: D1 01 00 7D 1D 00 6B [23:17:05]Write to MH i2c: 01 00 00 7E 1D 9B [23:17:05]Write i2c OK [23:17:05]MH_I2C_Read... [23:17:05]OFD Sender: No OFD packet to send [23:17:06]*** Cut start [23:17:06]*** Partial cut [23:17:06]*** CUTSNS_PIN = 1 [23:17:06]*** CUTSNS_PIN = 0 [23:17:06]*** Brake cut motor [23:17:06]Read from MH i2c: 01 [23:17:06]MH_I2C_Read... [23:17:06]*** Stop cut motor [23:17:06]*** Cut end [23:17:06]Read from MH i2c: 01 07 00 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [23:17:06]process_action close_receipt done [23:17:06]requested_data is exist [23:17:06]produce_requested_data [23:17:06]requested_item fm.sn is exist - process it [23:17:06]wFMCommunicate request_size=4 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 11 00 00 [23:17:06]Write to MH i2c: E2 08 00 7F 1D 80 11 00 00 00 00 00 00 16 [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:06]Read from MH i2c: E2 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 17 00 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 17 00 7F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [23:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:17:06]wFMCommunicate OK [23:17:06]requested_item fd.num is exist - process it [23:17:06]SAM_PROTO_GetFieldsCounters [23:17:06]wFMCommunicate request_size=4 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 13 00 00 [23:17:06]Write to MH i2c: E2 08 00 80 1D 80 13 00 00 00 00 00 00 19 [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:06]Read from MH i2c: E2 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 62 00 [23:17:06]MH_I2C_Read... [23:17:06]Read from MH i2c: E2 62 00 80 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [23:17: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:06]wFMCommunicate OK [23:17:06]SAM_PROTO_GetFieldsCounters done [23:17:06]requested_item shift.num is exist - process it [23:17:06]requested_item shift.opened is exist - process it [23:17:06]req_shift_opened [23:17:06]FM_GetShiftState [23:17:06]SAM_PROTO_GetShiftState [23:17:06]wFMCommunicate request_size=4 [23:17:06]MH_SAM_APDU [23:17:06]CAPDU: 80 13 01 00 [23:17:06]Write to MH i2c: E2 08 00 81 1D 80 13 01 00 00 00 00 00 1B [23:17:06]Write i2c OK [23:17:06]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0E 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0E 00 81 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FC [23:17:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:17:07]wFMCommunicate OK [23:17:07]SAM_PROTO_GetShiftState done [23:17:07]FM_GetShiftState done [23:17:07]req_shift_opened done [23:17:07]requested_item shift.open_date is exist - process it [23:17:07]req_shift_open_date [23:17:07]req_shift_open_date done [23:17:07]produce_requested_data done [23:17:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164789,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:17:07]process_action_free close_receipt [23:17:07]json_value_free [23:17:07]json_value_free done [23:17:07]process_json_proto returns [23:17:07]Send response to host [23:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164789,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:17:07]free response buf [23:17:07]execute_script done [23:17:07]execute_script returns [23:17:07]free content buf [23:17:07]Sock 9.Close socket [23:17:07]Sock 9.Thread stoped [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:05]accept exits with 7 [23:20:05]New connection [23:20:05]New thread 3067247972 created [23:20:05]Thread 3067104612 joined [23:20:05]Waiting for new connection... [23:20:05] Sock 7.Parse request [23:20:05]Sock 7.Check first char [23:20:05]Sock 7.First char is OK [23:20:05]request: POST /json_proto HTTP/1.0 [23:20:05]Method: POST [23:20:05]URL: /json_proto [23:20:05]Method is POST - this is cgi request [23:20:05]url: /json_proto [23:20:05]query_string will be loaded in cgi processing [23:20:05]execute_cgi json_proto POST (null) [23:20:05]execute_cgi path=json_proto method=POST [23:20:05]POST find Content-Length [23:20:05]Host: 172.17.56.4:8080 [23:20:05]Content-Length: 677 [23:20:05]Content-Type: application/json [23:20:05] [23:20:05]POST finish read [23:20:05]Found Content-Length = 677 [23:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.670, "sum" : 241.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 241.00, "total" : 241.00, "payments": [ { "type": 0, "sum" : 241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:05]execute_script... [23:20: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)458884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.670, "sum" : 241.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 241.00, "total" : 241.00, "payments": [ { "type": 0, "sum" : 241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:05]POST & json_proto [23:20:05]process_json_proto [23:20:05]json parsed OK: [23:20:05]protocol is kg_v1.0 [23:20:05]action value=close_receipt [23:20:05]process_action close_receipt [23:20:05]cmd_close_receipt [23:20:05]MH_GetDate [23:20:05]Write to MH i2c: F0 00 00 82 1D 8E [23:20:05]Write i2c OK [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: F0 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: F0 09 00 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: F0 09 00 82 1D 00 A6 0B 93 66 C9 DC B2 64 FC [23:20:05]GetLastDocTimeStamp 1720912624 [23:20:05]current date 1720912806 [23:20:05]FM_GetShiftState [23:20:05]SAM_PROTO_GetShiftState [23:20:05]wFMCommunicate request_size=4 [23:20:05]MH_SAM_APDU [23:20:05]CAPDU: 80 13 01 00 [23:20:05]Write to MH i2c: E2 08 00 83 1D 80 13 01 00 00 00 00 00 1D [23:20:05]Write i2c OK [23:20:05]MH_I2C_Read... [23:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:05]Read from MH i2c: E2 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: E2 0E 00 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: E2 0E 00 83 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 FE [23:20:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:20:05]wFMCommunicate OK [23:20:05]SAM_PROTO_GetShiftState done [23:20:05]FM_GetShiftState done [23:20:05]opened in 1720831249 [23:20:05]opened+sec_in_day 1720917649 [23:20:05]quantity*price = 24148 [23:20:05]sum+1 = 24150 [23:20:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 241.00 Внесено: 241.00 СДАЧА: 0.00 НСП 1% : 2.14 НДС 12% : 25.64 Наличными: 241.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 350 13.07.2024 23:20 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164790 ФПД: 17801719998971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164790&fm=17801719998971&tin=02508201610067®Number=0000000000090829&sum=24100 [23:20:06]StoreToDocumentArchive [23:20:06]shift 446 fd 164790 [23:20:06]save to /storage/0446/doc_00164790 [23:20:06]save last doc name /storage/0446/doc_00164790 to /storage/kkm_last_doc_name [23:20:06]save OK [23:20:06]Clear old archive folders... [23:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:06]tlvbuf is 01EDEC20 [23:20:06]SAM_PROTO_ClearQueue [23:20:06]wFMCommunicate request_size=4 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 09 00 00 [23:20:06]Write to MH i2c: E2 08 00 90 1D 80 09 00 00 00 00 00 00 1F [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [23:20:06]RAPDU: 90 00 [23:20:06]wFMCommunicate OK [23:20:06]SAM_PROTO_ClearQueue done [23:20:06]KKMCreateOFDPacket [23:20:06]OFDProtocolAddRootSTLVToBuf [23:20:06]FM_MakeSignedData [23:20:06]FM_MakeSignedData [23:20:06]SAM_PROTO_SignData [23:20:06]wFMCommunicate request_size=4 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 0D 01 02 [23:20:06]Write to MH i2c: E2 08 00 91 1D 80 0D 01 02 00 00 00 00 27 [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 91 1D 00 90 00 22 [23:20:06]RAPDU: 90 00 [23:20:06]wFMCommunicate OK [23:20:06]wFMCommunicate request_size=255 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0A 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 0B 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 83 02 00 35 04 06 00 10 [23:20:06]Write to MH i2c: E2 02 01 92 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0A 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 0B 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 83 02 00 35 04 06 00 10 00 00 16 [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 92 1D 00 90 00 23 [23:20:06]RAPDU: 90 00 [23:20:06]wFMCommunicate OK [23:20:06]wFMCommunicate request_size=10 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 0D 02 02 05 30 C9 32 69 FB [23:20:06]Write to MH i2c: E2 0D 00 93 1D 80 0D 02 02 05 00 30 C9 32 69 FB 00 00 C3 [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [23:20:06]RAPDU: 90 00 [23:20:06]wFMCommunicate OK [23:20:06]wFMCommunicate request_size=4 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 0D 03 02 [23:20:06]Write to MH i2c: E2 08 00 94 1D 80 0D 03 02 00 00 00 00 2C [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 0B 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 0B 00 94 1D 00 40 8B 9C A4 3E 9E 2A 7C 90 00 BA [23:20:06]RAPDU: 40 8B 9C A4 3E 9E 2A 7C 90 00 [23:20:06]wFMCommunicate OK [23:20:06]SAM_PROTO_SignData done [23:20:06]FM_MakeSignedData done [23:20:06]CreateOFDProtocolMessage [23:20:06]wFMCommunicate request_size=4 [23:20:06]MH_SAM_APDU [23:20:06]CAPDU: 80 11 00 00 [23:20:06]Write to MH i2c: E2 08 00 95 1D 80 11 00 00 00 00 00 00 2C [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:06]Read from MH i2c: E2 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 17 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: E2 17 00 95 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [23:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:20:06]wFMCommunicate OK [23:20:06]CreateOFDProtocolMessage done [23:20:06]OFDSenderStorePacket 164790 [23:20:06]StoreOFDPacket docnum=164790 [23:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 26 07 01 53 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 56 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0A 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 0B 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 83 02 00 35 04 06 00 10 30 C9 32 69 FB 40 8B 9C A4 3E 9E 2A 7C [23:20:06]CheckFolder [23:20:06]dirname=/storage/ofd_packets [23:20:06]CheckFolder done [23:20:06]ProducePacketName [23:20:06]name=ofd_packets/00164790 [23:20:06]NVStorageSaveData ofd_packets/00164790 [23:20:06]File name is /storage/ofd_packets/00164790 [23:20:06]Write 301 bytes [23:20:06]NVStorageSaveData done [23:20:06]OFDSenderStorePacket done [23:20:06]KKMCreateOFDPacket done [23:20:06]NVStorageSaveData kkm_last_timestamp [23:20:06]File name is /storage/kkm_last_timestamp [23:20:06]Write 4 bytes [23:20:06]NVStorageSaveData done [23:20:06]ExternCall_PrintAddStr [23:20:06]wPrintStart [23:20:06]Write to MH i2c: 01 00 00 96 1D B3 [23:20:06]Write i2c OK [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: 01 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: 01 07 00 [23:20:06]MH_I2C_Read... [23:20:06]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 FF 0F C8 [23:20:06]RasterBufferAndPrint [23:20:06]line Счет N : (1)458884 [23:20:06]line ИНН: 02508201610067 [23:20:06]line Контрольно-Кассовый Чек [23:20:06]line ПРОДАЖА [23:20:06]line ТРК (МРК, ГНК) : 22 [23:20:06]line Товар: 2710124130 [23:20:06]line Аи-92-К-5 [23:20:06]line 3.670 * 65.80 [23:20:06]line = 241.49 [23:20:06]line НДС 12% НСП 1% [23:20:06]line > о реализуемом товаре [23:20:06]line ОКРУГЛЕНИЕ: -0.49 [23:20:06]line ИТОГО: 241.00 [23:20:06]line Внесено: 241.00 [23:20:06]line СДАЧА: 0.00 [23:20:06]line НСП 1% : 2.14 [23:20:06]line НДС 12% : 25.64 [23:20:06]line Наличными: 241.00 [23:20:06]line Безнал.: 0.00 [23:20:06]line Место: АЗС № 72 "Партнер Нефть" [23:20:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:20:06]line СНО: Общий режим [23:20:06]line Чек 350 13.07.2024 23:20 [23:20:06]line Смена: 446 ФФД: 1.0 [23:20:06]line ЗНМ: 0300000160 [23:20:06]line РНМ: 0000000000090829 [23:20:06]line Версия ККМ: 001 [23:20:06]line ФМ: 0000000000874718 [23:20:06]line ФД: 164790 [23:20:06]line ФПД: 17801719998971 [23:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164790&fm=17801719998971&tin=02508201610067®Number=0000000000090829&sum=24100 [23:20:07]written 0, free lines is 4095 [23:20:07]OFD Sender: Processing packet 164790 [packets to send 104, broken 103] [23:20:07]ProducePacketName [23:20:07]name=ofd_packets/00164790 [23:20:07]OFD Sender: To server: pG, [23:20:07]CommunicateWithHost lk.salyk.kg:30040 [23:20:07]ConnectInit lk.salyk.kg [23:20:07]Connected sock=10 [23:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 26 07 01 53 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 56 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 55 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0A 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 0B 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 83 02 00 35 04 06 00 10 30 C9 32 69 FB 40 8B 9C A4 3E 9E 2A 7C [23:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 91 47 00 B3 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 83 02 00 F4 03 04 00 36 B2 92 66 B6 04 01 00 00 E4 89 59 04 2F 92 49 D0 [23:20:07]CommunicateWithHost err = 0 [23:20:07]CheckOFDResponse [23:20:07]1017 (14) - 77093643461234 [23:20:07]1041 (16) - 0000000000874718 [23:20:07]1040 (4) - 164790 [23:20:07]1012 (4) - 13.07.2024 16:58 [23:20:07]1206 (1) - 0 [23:20:07]OFD Sender: Remove packet 164790 [23:20:07]ProducePacketName [23:20:07]name=ofd_packets/00164790 [23:20:07]NVStorageDeleteData [23:20:07]Write to MH i2c: 01 00 00 C0 1D DD [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 07 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 07 00 C0 1D 00 00 00 00 00 F4 0C E4 [23:20:07]RasterBufferAndPrint [23:20:07]line [23:20:07]line [23:20:07]line [23:20:07]line [23:20:07]line [23:20:07]written 0, free lines is 3323 [23:20:07]MH_Cut [23:20:07]Write to MH i2c: D1 01 00 C7 1D 01 B6 [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: D1 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: D1 01 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: D1 01 00 C7 1D 00 B5 [23:20:07]Write to MH i2c: 01 00 00 C8 1D E5 [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]OFD Sender: No OFD packet to send [23:20:08]*** Cut start [23:20:08]*** Partial cut [23:20:08]*** CUTSNS_PIN = 1 [23:20:08]*** CUTSNS_PIN = 0 [23:20:08]*** Brake cut motor [23:20:08]Read from MH i2c: 01 [23:20:08]MH_I2C_Read... [23:20:08]*** Stop cut motor [23:20:08]*** Cut end [23:20:08]Read from MH i2c: 01 07 00 [23:20:08]MH_I2C_Read... [23:20:08]Read from MH i2c: 01 07 00 C8 1D 00 00 00 00 00 FF 0F FA [23:20:08]process_action close_receipt done [23:20:08]requested_data is exist [23:20:08]produce_requested_data [23:20:08]requested_item fm.sn is exist - process it [23:20:08]wFMCommunicate request_size=4 [23:20:08]MH_SAM_APDU [23:20:08]CAPDU: 80 11 00 00 [23:20:08]Write to MH i2c: E2 08 00 C9 1D 80 11 00 00 00 00 00 00 60 [23:20:08]Write i2c OK [23:20:08]MH_I2C_Read... [23:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:08]Read from MH i2c: E2 [23:20:08]MH_I2C_Read... [23:20:08]Read from MH i2c: E2 17 00 [23:20:08]MH_I2C_Read... [23:20:08]Read from MH i2c: E2 17 00 C9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [23:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:20:08]wFMCommunicate OK [23:20:08]requested_item fd.num is exist - process it [23:20:08]SAM_PROTO_GetFieldsCounters [23:20:08]wFMCommunicate request_size=4 [23:20:08]MH_SAM_APDU [23:20:08]CAPDU: 80 13 00 00 [23:20:08]Write to MH i2c: E2 08 00 CA 1D 80 13 00 00 00 00 00 00 63 [23:20:08]Write i2c OK [23:20:08]MH_I2C_Read... [23:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:09]Read from MH i2c: E2 [23:20:09]MH_I2C_Read... [23:20:09]Read from MH i2c: E2 62 00 [23:20:09]MH_I2C_Read... [23:20:09]Read from MH i2c: E2 62 00 CA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [23:20: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:09]wFMCommunicate OK [23:20:09]SAM_PROTO_GetFieldsCounters done [23:20:09]requested_item shift.num is exist - process it [23:20:09]requested_item shift.opened is exist - process it [23:20:09]req_shift_opened [23:20:09]FM_GetShiftState [23:20:09]SAM_PROTO_GetShiftState [23:20:09]wFMCommunicate request_size=4 [23:20:09]MH_SAM_APDU [23:20:09]CAPDU: 80 13 01 00 [23:20:09]Write to MH i2c: E2 08 00 CB 1D 80 13 01 00 00 00 00 00 65 [23:20:09]Write i2c OK [23:20:09]MH_I2C_Read... [23:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:09]Read from MH i2c: E2 [23:20:09]MH_I2C_Read... [23:20:09]Read from MH i2c: E2 0E 00 [23:20:09]MH_I2C_Read... [23:20:09]Read from MH i2c: E2 0E 00 CB 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 46 [23:20:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:20:09]wFMCommunicate OK [23:20:09]SAM_PROTO_GetShiftState done [23:20:09]FM_GetShiftState done [23:20:09]req_shift_opened done [23:20:09]requested_item shift.open_date is exist - process it [23:20:09]req_shift_open_date [23:20:09]req_shift_open_date done [23:20:09]produce_requested_data done [23:20:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164790,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:20:09]process_action_free close_receipt [23:20:09]json_value_free [23:20:09]json_value_free done [23:20:09]process_json_proto returns [23:20:09]Send response to host [23:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164790,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:20:09]free response buf [23:20:09]execute_script done [23:20:09]execute_script returns [23:20:09]free content buf [23:20:09]Sock 7.Close socket [23:20:09]Sock 7.Thread stoped [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:01]accept exits with 9 [23:30:01]New connection [23:30:01]New thread 3067104612 created [23:30:01]Thread 3067247972 joined [23:30:01]Waiting for new connection... [23:30:01] Sock 9.Parse request [23:30:01]Sock 9.Check first char [23:30:01]Sock 9.First char is OK [23:30:01]request: POST /json_proto HTTP/1.0 [23:30:01]Method: POST [23:30:01]URL: /json_proto [23:30:01]Method is POST - this is cgi request [23:30:01]url: /json_proto [23:30:01]query_string will be loaded in cgi processing [23:30:01]execute_cgi json_proto POST (null) [23:30:01]execute_cgi path=json_proto method=POST [23:30:01]POST find Content-Length [23:30:01]Host: 172.17.56.4:8080 [23:30:01]Content-Length: 790 [23:30:01]Content-Type: application/json [23:30:01] [23:30:01]POST finish read [23:30:01]Found Content-Length = 790 [23:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.840, "sum" : 250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:01]execute_script... [23:30: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)458886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.840, "sum" : 250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:01]POST & json_proto [23:30:01]process_json_proto [23:30:01]json parsed OK: [23:30:01]protocol is kg_v1.0 [23:30:01]action value=close_receipt [23:30:01]process_action close_receipt [23:30:01]cmd_close_receipt [23:30:01]MH_GetDate [23:30:01]Write to MH i2c: F0 00 00 CC 1D D8 [23:30:01]Write i2c OK [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 09 00 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: F0 09 00 CC 1D 00 FB 0D 93 66 C9 DC B2 64 9D [23:30:01]GetLastDocTimeStamp 1720912806 [23:30:01]current date 1720913403 [23:30:01]FM_GetShiftState [23:30:01]SAM_PROTO_GetShiftState [23:30:01]wFMCommunicate request_size=4 [23:30:01]MH_SAM_APDU [23:30:01]CAPDU: 80 13 01 00 [23:30:01]Write to MH i2c: E2 08 00 CD 1D 80 13 01 00 00 00 00 00 67 [23:30:01]Write i2c OK [23:30:01]MH_I2C_Read... [23:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:01]Read from MH i2c: E2 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: E2 0E 00 [23:30:01]MH_I2C_Read... [23:30:01]Read from MH i2c: E2 0E 00 CD 1D 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 48 [23:30:01]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:30:01]wFMCommunicate OK [23:30:01]SAM_PROTO_GetShiftState done [23:30:01]FM_GetShiftState done [23:30:01]opened in 1720831249 [23:30:01]opened+sec_in_day 1720917649 [23:30:01]quantity*price = 25044 [23:30:01]sum+1 = 25045 [23:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.44 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 0.00 Безнал.: 250.44 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 351 13.07.2024 23:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164791 ФПД: 187152294822104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164791&fm=187152294822104&tin=02508201610067®Number=0000000000090829&sum=25044 [23:30:03]StoreToDocumentArchive [23:30:03]shift 446 fd 164791 [23:30:03]save to /storage/0446/doc_00164791 [23:30:03]save last doc name /storage/0446/doc_00164791 to /storage/kkm_last_doc_name [23:30:03]save OK [23:30:03]Clear old archive folders... [23:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:03]tlvbuf is 01F389E0 [23:30:03]SAM_PROTO_ClearQueue [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 09 00 00 [23:30:03]Write to MH i2c: E2 08 00 DA 1D 80 09 00 00 00 00 00 00 69 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 DA 1D 00 90 00 6B [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]SAM_PROTO_ClearQueue done [23:30:03]KKMCreateOFDPacket [23:30:03]OFDProtocolAddRootSTLVToBuf [23:30:03]FM_MakeSignedData [23:30:03]FM_MakeSignedData [23:30:03]SAM_PROTO_SignData [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 01 02 [23:30:03]Write to MH i2c: E2 08 00 DB 1D 80 0D 01 02 00 00 00 00 71 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 DB 1D 00 90 00 6C [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=255 [23:30:03]MH_SAM_APDU [23:30: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 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 FB 0D 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 83 02 00 35 04 06 00 AA [23:30:03]Write to MH i2c: E2 02 01 DC 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 FB 0D 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 83 02 00 35 04 06 00 AA 00 00 13 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=10 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 02 02 05 36 CA 0D 40 D8 [23:30:03]Write to MH i2c: E2 0D 00 DD 1D 80 0D 02 02 05 00 36 CA 0D 40 D8 00 00 A3 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [23:30:03]RAPDU: 90 00 [23:30:03]wFMCommunicate OK [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 0D 03 02 [23:30:03]Write to MH i2c: E2 08 00 DE 1D 80 0D 03 02 00 00 00 00 76 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0B 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 0B 00 DE 1D 00 96 EC BC C3 2F 9A F4 42 90 00 77 [23:30:03]RAPDU: 96 EC BC C3 2F 9A F4 42 90 00 [23:30:03]wFMCommunicate OK [23:30:03]SAM_PROTO_SignData done [23:30:03]FM_MakeSignedData done [23:30:03]CreateOFDProtocolMessage [23:30:03]wFMCommunicate request_size=4 [23:30:03]MH_SAM_APDU [23:30:03]CAPDU: 80 11 00 00 [23:30:03]Write to MH i2c: E2 08 00 DF 1D 80 11 00 00 00 00 00 00 76 [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:03]Read from MH i2c: E2 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 17 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: E2 17 00 DF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [23:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:03]wFMCommunicate OK [23:30:03]CreateOFDProtocolMessage done [23:30:03]OFDSenderStorePacket 164791 [23:30:03]StoreOFDPacket docnum=164791 [23:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 5E 07 01 4E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 FB 0D 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 83 02 00 35 04 06 00 AA 36 CA 0D 40 D8 96 EC BC C3 2F 9A F4 42 [23:30:03]CheckFolder [23:30:03]dirname=/storage/ofd_packets [23:30:03]CheckFolder done [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164791 [23:30:03]NVStorageSaveData ofd_packets/00164791 [23:30:03]File name is /storage/ofd_packets/00164791 [23:30:03]Write 301 bytes [23:30:03]NVStorageSaveData done [23:30:03]OFDSenderStorePacket done [23:30:03]KKMCreateOFDPacket done [23:30:03]NVStorageSaveData kkm_last_timestamp [23:30:03]File name is /storage/kkm_last_timestamp [23:30:03]Write 4 bytes [23:30:03]NVStorageSaveData done [23:30:03]ExternCall_PrintAddStr [23:30:03]wPrintStart [23:30:03]Write to MH i2c: 01 00 00 E0 1D FD [23:30:03]Write i2c OK [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 07 00 [23:30:03]MH_I2C_Read... [23:30:03]Read from MH i2c: 01 07 00 E0 1D 00 00 00 00 00 FF 0F 12 [23:30:03]RasterBufferAndPrint [23:30:03]line Счет N : (1)458886 [23:30:03]line ИНН: 02508201610067 [23:30:03]line Контрольно-Кассовый Чек [23:30:03]line ПРОДАЖА [23:30:03]line ТРК (МРК, ГНК) : 12 [23:30:03]line Товар: 2710124130 [23:30:03]line Аи-92-К-5 [23:30:03]line 3.840 * 65.22 [23:30:03]line = 250.44 [23:30:03]line НДС 12% НСП 1% [23:30:03]line > о реализуемом товаре [23:30:03]line ИТОГО: 250.44 [23:30:03]line НСП 1% : 2.22 [23:30:03]line НДС 12% : 26.59 [23:30:03]line Наличными: 0.00 [23:30:03]line Безнал.: 250.44 [23:30:03]line Место: АЗС № 72 "Партнер Нефть" [23:30:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:30:03]line СНО: Общий режим [23:30:03]line Чек 351 13.07.2024 23:30 [23:30:03]line Смена: 446 ФФД: 1.0 [23:30:03]line ЗНМ: 0300000160 [23:30:03]line РНМ: 0000000000090829 [23:30:03]line Версия ККМ: 001 [23:30:03]line Платежная система: KICB Банк [23:30:03]line ФМ: 0000000000874718 [23:30:03]line ФД: 164791 [23:30:03]line ФПД: 187152294822104 [23:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164791&fm=187152294822104&tin=02508201610067®Number=0000000000090829&sum=25044 [23:30:03]written 0, free lines is 4095 [23:30:03]OFD Sender: Processing packet 164791 [packets to send 104, broken 103] [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164791 [23:30:03]OFD Sender: To server: pG, [23:30:03]CommunicateWithHost lk.salyk.kg:30040 [23:30:03]ConnectInit lk.salyk.kg [23:30:03]Connected sock=10 [23:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 5E 07 01 4E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 D4 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 FB 0D 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 83 02 00 35 04 06 00 AA 36 CA 0D 40 D8 96 EC BC C3 2F 9A F4 42 [23:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 65 47 00 7A 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 83 02 00 F4 03 04 00 8A B4 92 66 B6 04 01 00 00 43 A8 C2 2F 66 9B 86 74 [23:30:03]CommunicateWithHost err = 0 [23:30:03]CheckOFDResponse [23:30:03]1017 (14) - 77093643461234 [23:30:03]1041 (16) - 0000000000874718 [23:30:03]1040 (4) - 164791 [23:30:03]1012 (4) - 13.07.2024 17:08 [23:30:03]1206 (1) - 0 [23:30:03]OFD Sender: Remove packet 164791 [23:30:03]ProducePacketName [23:30:03]name=ofd_packets/00164791 [23:30:03]NVStorageDeleteData [23:30:04]Write to MH i2c: 01 00 00 09 1E 27 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: 01 07 00 09 1E 00 00 00 00 00 0D 0D 48 [23:30:04]RasterBufferAndPrint [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]line [23:30:04]written 0, free lines is 3350 [23:30:04]MH_Cut [23:30:04]Write to MH i2c: D1 01 00 10 1E 01 00 [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 01 00 [23:30:04]MH_I2C_Read... [23:30:04]Read from MH i2c: D1 01 00 10 1E 00 FF [23:30:04]Write to MH i2c: 01 00 00 11 1E 2F [23:30:04]Write i2c OK [23:30:04]MH_I2C_Read... [23:30:04]OFD Sender: No OFD packet to send [23:30:04]*** Cut start [23:30:04]*** Partial cut [23:30:04]*** CUTSNS_PIN = 1 [23:30:04]*** CUTSNS_PIN = 0 [23:30:04]*** Brake cut motor [23:30:05]Read from MH i2c: 01 [23:30:05]MH_I2C_Read... [23:30:05]*** Stop cut motor [23:30:05]*** Cut end [23:30:05]Read from MH i2c: 01 07 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 FF 0F 44 [23:30:05]process_action close_receipt done [23:30:05]requested_data is exist [23:30:05]produce_requested_data [23:30:05]requested_item fm.sn is exist - process it [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 11 00 00 [23:30:05]Write to MH i2c: E2 08 00 12 1E 80 11 00 00 00 00 00 00 AA [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 17 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 17 00 12 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [23:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:05]wFMCommunicate OK [23:30:05]requested_item fd.num is exist - process it [23:30:05]SAM_PROTO_GetFieldsCounters [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 13 00 00 [23:30:05]Write to MH i2c: E2 08 00 13 1E 80 13 00 00 00 00 00 00 AD [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 62 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 62 00 13 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [23:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:05]wFMCommunicate OK [23:30:05]SAM_PROTO_GetFieldsCounters done [23:30:05]requested_item shift.num is exist - process it [23:30:05]requested_item shift.opened is exist - process it [23:30:05]req_shift_opened [23:30:05]FM_GetShiftState [23:30:05]SAM_PROTO_GetShiftState [23:30:05]wFMCommunicate request_size=4 [23:30:05]MH_SAM_APDU [23:30:05]CAPDU: 80 13 01 00 [23:30:05]Write to MH i2c: E2 08 00 14 1E 80 13 01 00 00 00 00 00 AF [23:30:05]Write i2c OK [23:30:05]MH_I2C_Read... [23:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:05]Read from MH i2c: E2 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 0E 00 [23:30:05]MH_I2C_Read... [23:30:05]Read from MH i2c: E2 0E 00 14 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 90 [23:30:05]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:30:05]wFMCommunicate OK [23:30:05]SAM_PROTO_GetShiftState done [23:30:05]FM_GetShiftState done [23:30:05]req_shift_opened done [23:30:05]requested_item shift.open_date is exist - process it [23:30:05]req_shift_open_date [23:30:05]req_shift_open_date done [23:30:05]produce_requested_data done [23:30:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164791,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:30:05]process_action_free close_receipt [23:30:05]json_value_free [23:30:05]json_value_free done [23:30:05]process_json_proto returns [23:30:05]Send response to host [23:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164791,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:30:05]free response buf [23:30:05]execute_script done [23:30:05]execute_script returns [23:30:05]free content buf [23:30:05]Sock 9.Close socket [23:30:05]Sock 9.Thread stoped [23:30:09]OFD Sender: No OFD packet to send [23:30:10]accept exits with 7 [23:30:10]New connection [23:30:10]New thread 3067247972 created [23:30:10]Thread 3067104612 joined [23:30:10]Waiting for new connection... [23:30:10] Sock 7.Parse request [23:30:10]Sock 7.Check first char [23:30:10]Sock 7.First char is OK [23:30:10]request: POST /json_proto HTTP/1.0 [23:30:10]Method: POST [23:30:10]URL: /json_proto [23:30:10]Method is POST - this is cgi request [23:30:10]url: /json_proto [23:30:10]query_string will be loaded in cgi processing [23:30:10]execute_cgi json_proto POST (null) [23:30:10]execute_cgi path=json_proto method=POST [23:30:10]POST find Content-Length [23:30:10]Host: 172.17.56.4:8080 [23:30:10]Content-Length: 793 [23:30:10]Content-Type: application/json [23:30:10] [23:30:10]POST finish read [23:30:10]Found Content-Length = 793 [23:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:10]execute_script... [23:30: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)458885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:10]POST & json_proto [23:30:10]process_json_proto [23:30:10]json parsed OK: [23:30:10]protocol is kg_v1.0 [23:30:10]action value=close_receipt [23:30:10]process_action close_receipt [23:30:10]cmd_close_receipt [23:30:10]MH_GetDate [23:30:10]Write to MH i2c: F0 00 00 15 1E 22 [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: F0 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: F0 09 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: F0 09 00 15 1E 00 04 0E 93 66 C9 DC B2 64 F1 [23:30:10]GetLastDocTimeStamp 1720913403 [23:30:10]current date 1720913412 [23:30:10]FM_GetShiftState [23:30:10]SAM_PROTO_GetShiftState [23:30:10]wFMCommunicate request_size=4 [23:30:10]MH_SAM_APDU [23:30:10]CAPDU: 80 13 01 00 [23:30:10]Write to MH i2c: E2 08 00 16 1E 80 13 01 00 00 00 00 00 B1 [23:30:10]Write i2c OK [23:30:10]MH_I2C_Read... [23:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:10]Read from MH i2c: E2 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 0E 00 [23:30:10]MH_I2C_Read... [23:30:10]Read from MH i2c: E2 0E 00 16 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 92 [23:30:10]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:30:10]wFMCommunicate OK [23:30:10]SAM_PROTO_GetShiftState done [23:30:10]FM_GetShiftState done [23:30:10]opened in 1720831249 [23:30:10]opened+sec_in_day 1720917649 [23:30:10]quantity*price = 100047 [23:30:10]sum+1 = 100048 [23:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 352 13.07.2024 23:30 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164792 ФПД: 181296697811771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233012&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164792&fm=181296697811771&tin=02508201610067®Number=0000000000090829&sum=100047 [23:30:11]StoreToDocumentArchive [23:30:11]shift 446 fd 164792 [23:30:11]save to /storage/0446/doc_00164792 [23:30:11]save last doc name /storage/0446/doc_00164792 to /storage/kkm_last_doc_name [23:30:11]save OK [23:30:11]Clear old archive folders... [23:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:11]tlvbuf is 01E574C0 [23:30:11]SAM_PROTO_ClearQueue [23:30:11]wFMCommunicate request_size=4 [23:30:11]MH_SAM_APDU [23:30:11]CAPDU: 80 09 00 00 [23:30:11]Write to MH i2c: E2 08 00 23 1E 80 09 00 00 00 00 00 00 B3 [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:11]Read from MH i2c: E2 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: E2 03 00 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: E2 03 00 23 1E 00 90 00 B5 [23:30:11]RAPDU: 90 00 [23:30:11]wFMCommunicate OK [23:30:11]SAM_PROTO_ClearQueue done [23:30:11]KKMCreateOFDPacket [23:30:11]OFDProtocolAddRootSTLVToBuf [23:30:11]FM_MakeSignedData [23:30:11]FM_MakeSignedData [23:30:11]SAM_PROTO_SignData [23:30:11]wFMCommunicate request_size=4 [23:30:11]MH_SAM_APDU [23:30:11]CAPDU: 80 0D 01 02 [23:30:11]Write to MH i2c: E2 08 00 24 1E 80 0D 01 02 00 00 00 00 BB [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:11]Read from MH i2c: E2 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: E2 03 00 [23:30:11]MH_I2C_Read... [23:30:11]Read from MH i2c: E2 03 00 24 1E 00 90 00 B6 [23:30:11]RAPDU: 90 00 [23:30:11]wFMCommunicate OK [23:30:11]wFMCommunicate request_size=255 [23:30:11]MH_SAM_APDU [23:30: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 04 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 83 02 00 35 04 06 00 A4 [23:30:11]Write to MH i2c: E2 02 01 25 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 04 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 83 02 00 35 04 06 00 A4 00 00 B4 [23:30:11]Write i2c OK [23:30:11]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 03 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 03 00 25 1E 00 90 00 B7 [23:30:12]RAPDU: 90 00 [23:30:12]wFMCommunicate OK [23:30:12]wFMCommunicate request_size=10 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 0D 02 02 05 E3 6D 45 A3 3B [23:30:12]Write to MH i2c: E2 0D 00 26 1E 80 0D 02 02 05 00 E3 6D 45 A3 3B 00 00 3B [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 03 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 03 00 26 1E 00 90 00 B8 [23:30:12]RAPDU: 90 00 [23:30:12]wFMCommunicate OK [23:30:12]wFMCommunicate request_size=4 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 0D 03 02 [23:30:12]Write to MH i2c: E2 08 00 27 1E 80 0D 03 02 00 00 00 00 C0 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 0B 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 0B 00 27 1E 00 11 06 FF A2 B1 41 C1 2B 90 00 57 [23:30:12]RAPDU: 11 06 FF A2 B1 41 C1 2B 90 00 [23:30:12]wFMCommunicate OK [23:30:12]SAM_PROTO_SignData done [23:30:12]FM_MakeSignedData done [23:30:12]CreateOFDProtocolMessage [23:30:12]wFMCommunicate request_size=4 [23:30:12]MH_SAM_APDU [23:30:12]CAPDU: 80 11 00 00 [23:30:12]Write to MH i2c: E2 08 00 28 1E 80 11 00 00 00 00 00 00 C0 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:12]Read from MH i2c: E2 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 17 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: E2 17 00 28 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [23:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:12]wFMCommunicate OK [23:30:12]CreateOFDProtocolMessage done [23:30:12]OFDSenderStorePacket 164792 [23:30:12]StoreOFDPacket docnum=164792 [23:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 4C 07 01 B8 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 04 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 83 02 00 35 04 06 00 A4 E3 6D 45 A3 3B 11 06 FF A2 B1 41 C1 2B [23:30:12]CheckFolder [23:30:12]dirname=/storage/ofd_packets [23:30:12]CheckFolder done [23:30:12]ProducePacketName [23:30:12]name=ofd_packets/00164792 [23:30:12]NVStorageSaveData ofd_packets/00164792 [23:30:12]File name is /storage/ofd_packets/00164792 [23:30:12]Write 301 bytes [23:30:12]NVStorageSaveData done [23:30:12]OFDSenderStorePacket done [23:30:12]KKMCreateOFDPacket done [23:30:12]NVStorageSaveData kkm_last_timestamp [23:30:12]File name is /storage/kkm_last_timestamp [23:30:12]Write 4 bytes [23:30:12]NVStorageSaveData done [23:30:12]ExternCall_PrintAddStr [23:30:12]wPrintStart [23:30:12]Write to MH i2c: 01 00 00 29 1E 47 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 29 1E 00 00 00 00 00 FF 0F 5C [23:30:12]RasterBufferAndPrint [23:30:12]line Счет N : (1)458885 [23:30:12]line ИНН: 02508201610067 [23:30:12]line Контрольно-Кассовый Чек [23:30:12]line ПРОДАЖА [23:30:12]line ТРК (МРК, ГНК) : 22 [23:30:12]line Товар: 2710124130 [23:30:12]line Аи-92-К-5 [23:30:12]line 15.340 * 65.22 [23:30:12]line = 1000.47 [23:30:12]line НДС 12% НСП 1% [23:30:12]line > о реализуемом товаре [23:30:12]line ИТОГО: 1000.47 [23:30:12]line НСП 1% : 8.85 [23:30:12]line НДС 12% : 106.24 [23:30:12]line Наличными: 0.00 [23:30:12]line Безнал.: 1000.47 [23:30:12]line Место: АЗС № 72 "Партнер Нефть" [23:30:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:30:12]line СНО: Общий режим [23:30:12]line Чек 352 13.07.2024 23:30 [23:30:12]line Смена: 446 ФФД: 1.0 [23:30:12]line ЗНМ: 0300000160 [23:30:12]line РНМ: 0000000000090829 [23:30:12]line Версия ККМ: 001 [23:30:12]line Платежная система: KICB Банк [23:30:12]line ФМ: 0000000000874718 [23:30:12]line ФД: 164792 [23:30:12]line ФПД: 181296697811771 [23:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233012&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164792&fm=181296697811771&tin=02508201610067®Number=0000000000090829&sum=100047 [23:30:12]written 0, free lines is 4095 [23:30:12]OFD Sender: Processing packet 164792 [packets to send 104, broken 103] [23:30:12]ProducePacketName [23:30:12]name=ofd_packets/00164792 [23:30:12]OFD Sender: To server: pG, [23:30:12]CommunicateWithHost lk.salyk.kg:30040 [23:30:12]ConnectInit lk.salyk.kg [23:30:12]Connected sock=10 [23:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 4C 07 01 B8 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 04 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 83 02 00 35 04 06 00 A4 E3 6D 45 A3 3B 11 06 FF A2 B1 41 C1 2B [23:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D A2 47 00 D8 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 34 37 31 38 10 04 04 00 B8 83 02 00 F4 03 04 00 93 B4 92 66 B6 04 01 00 00 50 35 C6 84 5B 35 F2 BA [23:30:12]CommunicateWithHost err = 0 [23:30:12]CheckOFDResponse [23:30:12]1017 (14) - 77093643461234 [23:30:12]1041 (16) - 0000000000874718 [23:30:12]1040 (4) - 164792 [23:30:12]1012 (4) - 13.07.2024 17:08 [23:30:12]1206 (1) - 0 [23:30:12]OFD Sender: Remove packet 164792 [23:30:12]ProducePacketName [23:30:12]name=ofd_packets/00164792 [23:30:12]NVStorageDeleteData [23:30:12]Write to MH i2c: 01 00 00 52 1E 70 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 09 0D 8D [23:30:12]RasterBufferAndPrint [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]written 0, free lines is 3349 [23:30:12]MH_Cut [23:30:12]Write to MH i2c: D1 01 00 59 1E 01 49 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 01 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 01 00 59 1E 00 48 [23:30:12]Write to MH i2c: 01 00 00 5A 1E 78 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:13]OFD Sender: No OFD packet to send [23:30:13]*** Cut start [23:30:13]*** Partial cut [23:30:13]*** CUTSNS_PIN = 1 [23:30:13]*** CUTSNS_PIN = 0 [23:30:13]*** Brake cut motor [23:30:13]Read from MH i2c: 01 [23:30:13]MH_I2C_Read... [23:30:13]*** Stop cut motor [23:30:13]*** Cut end [23:30:13]Read from MH i2c: 01 07 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: 01 07 00 5A 1E 00 00 00 00 00 FF 0F 8D [23:30:13]process_action close_receipt done [23:30:13]requested_data is exist [23:30:13]produce_requested_data [23:30:13]requested_item fm.sn is exist - process it [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 11 00 00 [23:30:13]Write to MH i2c: E2 08 00 5B 1E 80 11 00 00 00 00 00 00 F3 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:13]Read from MH i2c: E2 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 17 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 17 00 5B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [23:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:30:13]wFMCommunicate OK [23:30:13]requested_item fd.num is exist - process it [23:30:13]SAM_PROTO_GetFieldsCounters [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 13 00 00 [23:30:13]Write to MH i2c: E2 08 00 5C 1E 80 13 00 00 00 00 00 00 F6 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:14]Read from MH i2c: E2 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 62 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 62 00 5C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [23:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:14]wFMCommunicate OK [23:30:14]SAM_PROTO_GetFieldsCounters done [23:30:14]requested_item shift.num is exist - process it [23:30:14]requested_item shift.opened is exist - process it [23:30:14]req_shift_opened [23:30:14]FM_GetShiftState [23:30:14]SAM_PROTO_GetShiftState [23:30:14]wFMCommunicate request_size=4 [23:30:14]MH_SAM_APDU [23:30:14]CAPDU: 80 13 01 00 [23:30:14]Write to MH i2c: E2 08 00 5D 1E 80 13 01 00 00 00 00 00 F8 [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:14]Read from MH i2c: E2 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 0E 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 0E 00 5D 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 D9 [23:30:14]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:30:14]wFMCommunicate OK [23:30:14]SAM_PROTO_GetShiftState done [23:30:14]FM_GetShiftState done [23:30:14]req_shift_opened done [23:30:14]requested_item shift.open_date is exist - process it [23:30:14]req_shift_open_date [23:30:14]req_shift_open_date done [23:30:14]produce_requested_data done [23:30:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164792,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:30:14]process_action_free close_receipt [23:30:14]json_value_free [23:30:14]json_value_free done [23:30:14]process_json_proto returns [23:30:14]Send response to host [23:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164792,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:30:14]free response buf [23:30:14]execute_script done [23:30:14]execute_script returns [23:30:14]free content buf [23:30:14]Sock 7.Close socket [23:30:14]Sock 7.Thread stoped [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]accept exits with 9 [23:32:13]New connection [23:32:13]New thread 3067104612 created [23:32:13]Thread 3067247972 joined [23:32:13]Waiting for new connection... [23:32:13] Sock 9.Parse request [23:32:13]Sock 9.Check first char [23:32:13]Sock 9.First char is OK [23:32:13]request: POST /json_proto HTTP/1.0 [23:32:13]Method: POST [23:32:13]URL: /json_proto [23:32:13]Method is POST - this is cgi request [23:32:13]url: /json_proto [23:32:13]query_string will be loaded in cgi processing [23:32:13]execute_cgi json_proto POST (null) [23:32:13]execute_cgi path=json_proto method=POST [23:32:13]POST find Content-Length [23:32:13]Host: 172.17.56.4:8080 [23:32:13]Content-Length: 790 [23:32:13]Content-Type: application/json [23:32:13] [23:32:13]POST finish read [23:32:13]Found Content-Length = 790 [23:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:13]execute_script... [23:32: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)458887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:13]POST & json_proto [23:32:13]process_json_proto [23:32:13]json parsed OK: [23:32:13]protocol is kg_v1.0 [23:32:13]action value=close_receipt [23:32:13]process_action close_receipt [23:32:13]cmd_close_receipt [23:32:13]MH_GetDate [23:32:13]Write to MH i2c: F0 00 00 5E 1E 6B [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: F0 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: F0 09 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: F0 09 00 5E 1E 00 7E 0E 93 66 C9 DC B2 64 B4 [23:32:13]GetLastDocTimeStamp 1720913412 [23:32:13]current date 1720913534 [23:32:13]FM_GetShiftState [23:32:13]SAM_PROTO_GetShiftState [23:32:13]wFMCommunicate request_size=4 [23:32:13]MH_SAM_APDU [23:32:13]CAPDU: 80 13 01 00 [23:32:13]Write to MH i2c: E2 08 00 5F 1E 80 13 01 00 00 00 00 00 FA [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:13]Read from MH i2c: E2 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 5F 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 DB [23:32:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:32:13]wFMCommunicate OK [23:32:13]SAM_PROTO_GetShiftState done [23:32:13]FM_GetShiftState done [23:32:13]opened in 1720831249 [23:32:13]opened+sec_in_day 1720917649 [23:32:13]quantity*price = 50023 [23:32:13]sum+1 = 50025 [23:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 353 13.07.2024 23:32 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164793 ФПД: 49022795305012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164793&fm=49022795305012&tin=02508201610067®Number=0000000000090829&sum=50024 [23:32:14]StoreToDocumentArchive [23:32:14]shift 446 fd 164793 [23:32:14]save to /storage/0446/doc_00164793 [23:32:14]save last doc name /storage/0446/doc_00164793 to /storage/kkm_last_doc_name [23:32:14]save OK [23:32:14]Clear old archive folders... [23:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:14]tlvbuf is 01E9B620 [23:32:14]SAM_PROTO_ClearQueue [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 09 00 00 [23:32:14]Write to MH i2c: E2 08 00 6C 1E 80 09 00 00 00 00 00 00 FC [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [23:32:14]RAPDU: 90 00 [23:32:14]wFMCommunicate OK [23:32:14]SAM_PROTO_ClearQueue done [23:32:14]KKMCreateOFDPacket [23:32:14]OFDProtocolAddRootSTLVToBuf [23:32:14]FM_MakeSignedData [23:32:14]FM_MakeSignedData [23:32:14]SAM_PROTO_SignData [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 0D 01 02 [23:32:14]Write to MH i2c: E2 08 00 6D 1E 80 0D 01 02 00 00 00 00 04 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [23:32:14]RAPDU: 90 00 [23:32:14]wFMCommunicate OK [23:32:14]wFMCommunicate request_size=255 [23:32:14]MH_SAM_APDU [23:32: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 7E 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 83 02 00 35 04 06 00 2C [23:32:14]Write to MH i2c: E2 02 01 6E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 7E 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 83 02 00 35 04 06 00 2C 00 00 DB [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 6E 1E 00 90 00 00 [23:32:14]RAPDU: 90 00 [23:32:14]wFMCommunicate OK [23:32:14]wFMCommunicate request_size=10 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 0D 02 02 05 96 02 4C D0 34 [23:32:14]Write to MH i2c: E2 0D 00 6F 1E 80 0D 02 02 05 00 96 02 4C D0 34 00 00 F9 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [23:32:14]RAPDU: 90 00 [23:32:14]wFMCommunicate OK [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 0D 03 02 [23:32:14]Write to MH i2c: E2 08 00 70 1E 80 0D 03 02 00 00 00 00 09 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 0B 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 0B 00 70 1E 00 34 B3 E4 D5 73 2F A4 D1 90 00 C1 [23:32:14]RAPDU: 34 B3 E4 D5 73 2F A4 D1 90 00 [23:32:14]wFMCommunicate OK [23:32:14]SAM_PROTO_SignData done [23:32:14]FM_MakeSignedData done [23:32:14]CreateOFDProtocolMessage [23:32:14]wFMCommunicate request_size=4 [23:32:14]MH_SAM_APDU [23:32:14]CAPDU: 80 11 00 00 [23:32:14]Write to MH i2c: E2 08 00 71 1E 80 11 00 00 00 00 00 00 09 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:14]Read from MH i2c: E2 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 17 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: E2 17 00 71 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [23:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:32:14]wFMCommunicate OK [23:32:14]CreateOFDProtocolMessage done [23:32:14]OFDSenderStorePacket 164793 [23:32:14]StoreOFDPacket docnum=164793 [23:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 13 07 01 1F 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 7E 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 83 02 00 35 04 06 00 2C 96 02 4C D0 34 34 B3 E4 D5 73 2F A4 D1 [23:32:14]CheckFolder [23:32:14]dirname=/storage/ofd_packets [23:32:14]CheckFolder done [23:32:14]ProducePacketName [23:32:14]name=ofd_packets/00164793 [23:32:14]NVStorageSaveData ofd_packets/00164793 [23:32:14]File name is /storage/ofd_packets/00164793 [23:32:14]Write 301 bytes [23:32:14]NVStorageSaveData done [23:32:14]OFDSenderStorePacket done [23:32:14]KKMCreateOFDPacket done [23:32:14]NVStorageSaveData kkm_last_timestamp [23:32:14]File name is /storage/kkm_last_timestamp [23:32:14]Write 4 bytes [23:32:14]NVStorageSaveData done [23:32:14]ExternCall_PrintAddStr [23:32:14]wPrintStart [23:32:14]Write to MH i2c: 01 00 00 72 1E 90 [23:32:14]Write i2c OK [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: 01 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: 01 07 00 [23:32:14]MH_I2C_Read... [23:32:14]Read from MH i2c: 01 07 00 72 1E 00 00 00 00 00 FF 0F A5 [23:32:14]RasterBufferAndPrint [23:32:14]line Счет N : (1)458887 [23:32:14]line ИНН: 02508201610067 [23:32:14]line Контрольно-Кассовый Чек [23:32:14]line ПРОДАЖА [23:32:14]line ТРК (МРК, ГНК) : 22 [23:32:14]line Товар: 2710124130 [23:32:14]line Аи-92-К-5 [23:32:14]line 7.670 * 65.22 [23:32:14]line = 500.24 [23:32:14]line НДС 12% НСП 1% [23:32:14]line > о реализуемом товаре [23:32:14]line ИТОГО: 500.24 [23:32:14]line НСП 1% : 4.43 [23:32:14]line НДС 12% : 53.12 [23:32:14]line Наличными: 0.00 [23:32:14]line Безнал.: 500.24 [23:32:14]line Место: АЗС № 72 "Партнер Нефть" [23:32:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:32:14]line СНО: Общий режим [23:32:14]line Чек 353 13.07.2024 23:32 [23:32:14]line Смена: 446 ФФД: 1.0 [23:32:14]line ЗНМ: 0300000160 [23:32:14]line РНМ: 0000000000090829 [23:32:14]line Версия ККМ: 001 [23:32:14]line Платежная система: KICB Банк [23:32:14]line ФМ: 0000000000874718 [23:32:14]line ФД: 164793 [23:32:14]line ФПД: 49022795305012 [23:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164793&fm=49022795305012&tin=02508201610067®Number=0000000000090829&sum=50024 [23:32:14]written 0, free lines is 4095 [23:32:14]OFD Sender: Processing packet 164793 [packets to send 104, broken 103] [23:32:14]ProducePacketName [23:32:14]name=ofd_packets/00164793 [23:32:14]OFD Sender: To server: pG, [23:32:15]CommunicateWithHost lk.salyk.kg:30040 [23:32:15]ConnectInit lk.salyk.kg [23:32:15]Connected sock=10 [23:32:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 13 07 01 1F 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 7E 0E 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 83 02 00 35 04 06 00 2C 96 02 4C D0 34 34 B3 E4 D5 73 2F A4 D1 [23:32:15]Write to MH i2c: 01 00 00 9B 1E B9 [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: 01 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: 01 07 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 09 0D D6 [23:32:15]RasterBufferAndPrint [23:32:15]line [23:32:15]line [23:32:15]line [23:32:15]line [23:32:15]line [23:32:15]written 0, free lines is 3343 [23:32:15]MH_Cut [23:32:15]Write to MH i2c: D1 01 00 A2 1E 01 92 [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: D1 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: D1 01 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: D1 01 00 A2 1E 00 91 [23:32:15]Write to MH i2c: 01 00 00 A3 1E C1 [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F7 B0 47 00 44 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 34 37 31 38 10 04 04 00 B9 83 02 00 F4 03 04 00 0E B5 92 66 B6 04 01 00 00 34 E1 B4 BC AD 25 73 DF [23:32:15]CommunicateWithHost err = 0 [23:32:15]CheckOFDResponse [23:32:15]1017 (14) - 77093643461234 [23:32:15]1041 (16) - 0000000000874718 [23:32:15]1040 (4) - 164793 [23:32:15]1012 (4) - 13.07.2024 17:10 [23:32:15]1206 (1) - 0 [23:32:15]OFD Sender: Remove packet 164793 [23:32:15]ProducePacketName [23:32:15]name=ofd_packets/00164793 [23:32:15]NVStorageDeleteData [23:32:15]*** Cut start [23:32:15]*** Partial cut [23:32:15]*** CUTSNS_PIN = 1 [23:32:15]OFD Sender: No OFD packet to send [23:32:15]*** CUTSNS_PIN = 0 [23:32:16]*** Brake cut motor [23:32:16]Read from MH i2c: 01 [23:32:16]MH_I2C_Read... [23:32:16]*** Stop cut motor [23:32:16]*** Cut end [23:32:16]Read from MH i2c: 01 07 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 FF 0F D6 [23:32:16]process_action close_receipt done [23:32:16]requested_data is exist [23:32:16]produce_requested_data [23:32:16]requested_item fm.sn is exist - process it [23:32:16]wFMCommunicate request_size=4 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 11 00 00 [23:32:16]Write to MH i2c: E2 08 00 A4 1E 80 11 00 00 00 00 00 00 3C [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 17 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 17 00 A4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [23:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:32:16]wFMCommunicate OK [23:32:16]requested_item fd.num is exist - process it [23:32:16]SAM_PROTO_GetFieldsCounters [23:32:16]wFMCommunicate request_size=4 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 13 00 00 [23:32:16]Write to MH i2c: E2 08 00 A5 1E 80 13 00 00 00 00 00 00 3F [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 62 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 62 00 A5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [23:32: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:16]wFMCommunicate OK [23:32:16]SAM_PROTO_GetFieldsCounters done [23:32:16]requested_item shift.num is exist - process it [23:32:16]requested_item shift.opened is exist - process it [23:32:16]req_shift_opened [23:32:16]FM_GetShiftState [23:32:16]SAM_PROTO_GetShiftState [23:32:16]wFMCommunicate request_size=4 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 13 01 00 [23:32:16]Write to MH i2c: E2 08 00 A6 1E 80 13 01 00 00 00 00 00 41 [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 0E 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 0E 00 A6 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 22 [23:32:16]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:32:16]wFMCommunicate OK [23:32:16]SAM_PROTO_GetShiftState done [23:32:16]FM_GetShiftState done [23:32:16]req_shift_opened done [23:32:16]requested_item shift.open_date is exist - process it [23:32:16]req_shift_open_date [23:32:16]req_shift_open_date done [23:32:16]produce_requested_data done [23:32:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164793,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:32:16]process_action_free close_receipt [23:32:16]json_value_free [23:32:16]json_value_free done [23:32:16]process_json_proto returns [23:32:16]Send response to host [23:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164793,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:32:16]free response buf [23:32:16]execute_script done [23:32:16]execute_script returns [23:32:16]free content buf [23:32:16]Sock 9.Close socket [23:32:16]Sock 9.Thread stoped [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:53]accept exits with 7 [23:34:53]New connection [23:34:53]New thread 3067247972 created [23:34:53]Thread 3067104612 joined [23:34:53]Waiting for new connection... [23:34:53] Sock 7.Parse request [23:34:53]Sock 7.Check first char [23:34:53]Sock 7.First char is OK [23:34:53]request: POST /json_proto HTTP/1.0 [23:34:53]Method: POST [23:34:53]URL: /json_proto [23:34:53]Method is POST - this is cgi request [23:34:53]url: /json_proto [23:34:53]query_string will be loaded in cgi processing [23:34:53]execute_cgi json_proto POST (null) [23:34:53]execute_cgi path=json_proto method=POST [23:34:53]POST find Content-Length [23:34:53]Host: 172.17.56.4:8080 [23:34:53]Content-Length: 677 [23:34:53]Content-Type: application/json [23:34:53] [23:34:53]POST finish read [23:34:53]Found Content-Length = 677 [23:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:53]execute_script... [23:34: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)458888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:53]POST & json_proto [23:34:53]process_json_proto [23:34:53]json parsed OK: [23:34:53]protocol is kg_v1.0 [23:34:53]action value=close_receipt [23:34:53]process_action close_receipt [23:34:53]cmd_close_receipt [23:34:53]MH_GetDate [23:34:53]Write to MH i2c: F0 00 00 A7 1E B4 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: F0 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: F0 09 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: F0 09 00 A7 1E 00 1F 0F 93 66 C9 DC B2 64 9F [23:34:53]GetLastDocTimeStamp 1720913534 [23:34:53]current date 1720913695 [23:34:53]FM_GetShiftState [23:34:53]SAM_PROTO_GetShiftState [23:34:53]wFMCommunicate request_size=4 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 13 01 00 [23:34:53]Write to MH i2c: E2 08 00 A8 1E 80 13 01 00 00 00 00 00 43 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 0E 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 0E 00 A8 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 24 [23:34:53]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:34:53]wFMCommunicate OK [23:34:53]SAM_PROTO_GetShiftState done [23:34:53]FM_GetShiftState done [23:34:53]opened in 1720831249 [23:34:53]opened+sec_in_day 1720917649 [23:34:53]quantity*price = 24017 [23:34:53]sum+1 = 24018 [23:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 354 13.07.2024 23:34 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164794 ФПД: 144032076686261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164794&fm=144032076686261&tin=02508201610067®Number=0000000000090829&sum=24000 [23:34:55]StoreToDocumentArchive [23:34:55]shift 446 fd 164794 [23:34:55]save to /storage/0446/doc_00164794 [23:34:55]save last doc name /storage/0446/doc_00164794 to /storage/kkm_last_doc_name [23:34:55]save OK [23:34:55]Clear old archive folders... [23:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:55]tlvbuf is 01EAC240 [23:34:55]SAM_PROTO_ClearQueue [23:34:55]wFMCommunicate request_size=4 [23:34:55]MH_SAM_APDU [23:34:55]CAPDU: 80 09 00 00 [23:34:55]Write to MH i2c: E2 08 00 B5 1E 80 09 00 00 00 00 00 00 45 [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [23:34:55]RAPDU: 90 00 [23:34:55]wFMCommunicate OK [23:34:55]SAM_PROTO_ClearQueue done [23:34:55]KKMCreateOFDPacket [23:34:55]OFDProtocolAddRootSTLVToBuf [23:34:55]FM_MakeSignedData [23:34:55]FM_MakeSignedData [23:34:55]SAM_PROTO_SignData [23:34:55]wFMCommunicate request_size=4 [23:34:55]MH_SAM_APDU [23:34:55]CAPDU: 80 0D 01 02 [23:34:55]Write to MH i2c: E2 08 00 B6 1E 80 0D 01 02 00 00 00 00 4D [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [23:34:55]RAPDU: 90 00 [23:34:55]wFMCommunicate OK [23:34:55]wFMCommunicate request_size=255 [23:34:55]MH_SAM_APDU [23:34: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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 1F 0F 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 83 02 00 35 04 06 00 82 [23:34:55]Write to MH i2c: E2 02 01 B7 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 1F 0F 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 83 02 00 35 04 06 00 82 00 00 BF [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 B7 1E 00 90 00 49 [23:34:55]RAPDU: 90 00 [23:34:55]wFMCommunicate OK [23:34:55]wFMCommunicate request_size=10 [23:34:55]MH_SAM_APDU [23:34:55]CAPDU: 80 0D 02 02 05 FF 14 C4 63 B5 [23:34:55]Write to MH i2c: E2 0D 00 B8 1E 80 0D 02 02 05 00 FF 14 C4 63 B5 00 00 49 [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 03 00 B8 1E 00 90 00 4A [23:34:55]RAPDU: 90 00 [23:34:55]wFMCommunicate OK [23:34:55]wFMCommunicate request_size=4 [23:34:55]MH_SAM_APDU [23:34:55]CAPDU: 80 0D 03 02 [23:34:55]Write to MH i2c: E2 08 00 B9 1E 80 0D 03 02 00 00 00 00 52 [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 0B 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 0B 00 B9 1E 00 5E 4A 67 64 58 4E 32 1A 90 00 B8 [23:34:55]RAPDU: 5E 4A 67 64 58 4E 32 1A 90 00 [23:34:55]wFMCommunicate OK [23:34:55]SAM_PROTO_SignData done [23:34:55]FM_MakeSignedData done [23:34:55]CreateOFDProtocolMessage [23:34:55]wFMCommunicate request_size=4 [23:34:55]MH_SAM_APDU [23:34:55]CAPDU: 80 11 00 00 [23:34:55]Write to MH i2c: E2 08 00 BA 1E 80 11 00 00 00 00 00 00 52 [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:55]Read from MH i2c: E2 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 17 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: E2 17 00 BA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [23:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:34:55]wFMCommunicate OK [23:34:55]CreateOFDProtocolMessage done [23:34:55]OFDSenderStorePacket 164794 [23:34:55]StoreOFDPacket docnum=164794 [23:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 C7 07 01 87 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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 1F 0F 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 83 02 00 35 04 06 00 82 FF 14 C4 63 B5 5E 4A 67 64 58 4E 32 1A [23:34:55]CheckFolder [23:34:55]dirname=/storage/ofd_packets [23:34:55]CheckFolder done [23:34:55]ProducePacketName [23:34:55]name=ofd_packets/00164794 [23:34:55]NVStorageSaveData ofd_packets/00164794 [23:34:55]File name is /storage/ofd_packets/00164794 [23:34:55]Write 301 bytes [23:34:55]NVStorageSaveData done [23:34:55]OFDSenderStorePacket done [23:34:55]KKMCreateOFDPacket done [23:34:55]NVStorageSaveData kkm_last_timestamp [23:34:55]File name is /storage/kkm_last_timestamp [23:34:55]Write 4 bytes [23:34:55]NVStorageSaveData done [23:34:55]ExternCall_PrintAddStr [23:34:55]wPrintStart [23:34:55]Write to MH i2c: 01 00 00 BB 1E D9 [23:34:55]Write i2c OK [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: 01 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: 01 07 00 [23:34:55]MH_I2C_Read... [23:34:55]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 FF 0F EE [23:34:55]RasterBufferAndPrint [23:34:55]line Счет N : (1)458888 [23:34:55]line ИНН: 02508201610067 [23:34:55]line Контрольно-Кассовый Чек [23:34:55]line ПРОДАЖА [23:34:55]line ТРК (МРК, ГНК) : 12 [23:34:55]line Товар: 2710124130 [23:34:55]line Аи-92-К-5 [23:34:55]line 3.650 * 65.80 [23:34:55]line = 240.17 [23:34:55]line НДС 12% НСП 1% [23:34:55]line > о реализуемом товаре [23:34:55]line ОКРУГЛЕНИЕ: -0.17 [23:34:55]line ИТОГО: 240.00 [23:34:55]line Внесено: 240.00 [23:34:55]line СДАЧА: 0.00 [23:34:55]line НСП 1% : 2.12 [23:34:55]line НДС 12% : 25.50 [23:34:55]line Наличными: 240.00 [23:34:55]line Безнал.: 0.00 [23:34:55]line Место: АЗС № 72 "Партнер Нефть" [23:34:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:34:55]line СНО: Общий режим [23:34:55]line Чек 354 13.07.2024 23:34 [23:34:55]line Смена: 446 ФФД: 1.0 [23:34:55]line ЗНМ: 0300000160 [23:34:55]line РНМ: 0000000000090829 [23:34:55]line Версия ККМ: 001 [23:34:55]line ФМ: 0000000000874718 [23:34:55]line ФД: 164794 [23:34:55]line ФПД: 144032076686261 [23:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164794&fm=144032076686261&tin=02508201610067®Number=0000000000090829&sum=24000 [23:34:55]written 0, free lines is 4095 [23:34:55]OFD Sender: Processing packet 164794 [packets to send 104, broken 103] [23:34:55]ProducePacketName [23:34:55]name=ofd_packets/00164794 [23:34:55]OFD Sender: To server: pG, [23:34:55]CommunicateWithHost lk.salyk.kg:30040 [23:34:55]ConnectInit lk.salyk.kg [23:34:56]Connected sock=10 [23:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 C7 07 01 87 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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 1F 0F 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 83 02 00 35 04 06 00 82 FF 14 C4 63 B5 5E 4A 67 64 58 4E 32 1A [23:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 F9 47 00 1C 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 83 02 00 F4 03 04 00 AF B5 92 66 B6 04 01 00 00 C9 A8 EE 26 E4 33 2F 96 [23:34:56]CommunicateWithHost err = 0 [23:34:56]CheckOFDResponse [23:34:56]1017 (14) - 77093643461234 [23:34:56]1041 (16) - 0000000000874718 [23:34:56]1040 (4) - 164794 [23:34:56]1012 (4) - 13.07.2024 17:13 [23:34:56]1206 (1) - 0 [23:34:56]OFD Sender: Remove packet 164794 [23:34:56]ProducePacketName [23:34:56]name=ofd_packets/00164794 [23:34:56]NVStorageDeleteData [23:34:56]Write to MH i2c: 01 00 00 E5 1E 03 [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: 01 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: 01 07 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: 01 07 00 E5 1E 00 00 00 00 00 09 0D 20 [23:34:56]RasterBufferAndPrint [23:34:56]line [23:34:56]line [23:34:56]line [23:34:56]line [23:34:56]line [23:34:56]written 0, free lines is 3343 [23:34:56]MH_Cut [23:34:56]Write to MH i2c: D1 01 00 EC 1E 01 DC [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: D1 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: D1 01 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: D1 01 00 EC 1E 00 DB [23:34:56]Write to MH i2c: 01 00 00 ED 1E 0B [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]OFD Sender: No OFD packet to send [23:34:57]*** Cut start [23:34:57]*** Partial cut [23:34:57]*** CUTSNS_PIN = 1 [23:34:57]*** CUTSNS_PIN = 0 [23:34:57]*** Brake cut motor [23:34:57]Read from MH i2c: 01 [23:34:57]MH_I2C_Read... [23:34:57]*** Stop cut motor [23:34:57]*** Cut end [23:34:57]Read from MH i2c: 01 07 00 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: 01 07 00 ED 1E 00 00 00 00 00 FF 0F 20 [23:34:57]process_action close_receipt done [23:34:57]requested_data is exist [23:34:57]produce_requested_data [23:34:57]requested_item fm.sn is exist - process it [23:34:57]wFMCommunicate request_size=4 [23:34:57]MH_SAM_APDU [23:34:57]CAPDU: 80 11 00 00 [23:34:57]Write to MH i2c: E2 08 00 EE 1E 80 11 00 00 00 00 00 00 86 [23:34:57]Write i2c OK [23:34:57]MH_I2C_Read... [23:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:57]Read from MH i2c: E2 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 17 00 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 17 00 EE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [23:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:34:57]wFMCommunicate OK [23:34:57]requested_item fd.num is exist - process it [23:34:57]SAM_PROTO_GetFieldsCounters [23:34:57]wFMCommunicate request_size=4 [23:34:57]MH_SAM_APDU [23:34:57]CAPDU: 80 13 00 00 [23:34:57]Write to MH i2c: E2 08 00 EF 1E 80 13 00 00 00 00 00 00 89 [23:34:57]Write i2c OK [23:34:57]MH_I2C_Read... [23:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:57]Read from MH i2c: E2 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 62 00 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 62 00 EF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23:34: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:57]wFMCommunicate OK [23:34:57]SAM_PROTO_GetFieldsCounters done [23:34:57]requested_item shift.num is exist - process it [23:34:57]requested_item shift.opened is exist - process it [23:34:57]req_shift_opened [23:34:57]FM_GetShiftState [23:34:57]SAM_PROTO_GetShiftState [23:34:57]wFMCommunicate request_size=4 [23:34:57]MH_SAM_APDU [23:34:57]CAPDU: 80 13 01 00 [23:34:57]Write to MH i2c: E2 08 00 F0 1E 80 13 01 00 00 00 00 00 8B [23:34:57]Write i2c OK [23:34:57]MH_I2C_Read... [23:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:57]Read from MH i2c: E2 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 0E 00 [23:34:57]MH_I2C_Read... [23:34:57]Read from MH i2c: E2 0E 00 F0 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6C [23:34:57]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:34:57]wFMCommunicate OK [23:34:57]SAM_PROTO_GetShiftState done [23:34:57]FM_GetShiftState done [23:34:57]req_shift_opened done [23:34:57]requested_item shift.open_date is exist - process it [23:34:57]req_shift_open_date [23:34:57]req_shift_open_date done [23:34:57]produce_requested_data done [23:34:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164794,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:34:57]process_action_free close_receipt [23:34:57]json_value_free [23:34:57]json_value_free done [23:34:57]process_json_proto returns [23:34:57]Send response to host [23:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164794,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:34:57]free response buf [23:34:57]execute_script done [23:34:57]execute_script returns [23:34:57]free content buf [23:34:57]Sock 7.Close socket [23:34:57]Sock 7.Thread stoped [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:09]accept exits with 9 [23:54:09]New connection [23:54:09]New thread 3067104612 created [23:54:09]Thread 3067247972 joined [23:54:09]Waiting for new connection... [23:54:09] Sock 9.Parse request [23:54:09]Sock 9.Check first char [23:54:09]Sock 9.First char is OK [23:54:09]request: POST /json_proto HTTP/1.0 [23:54:09]Method: POST [23:54:09]URL: /json_proto [23:54:09]Method is POST - this is cgi request [23:54:09]url: /json_proto [23:54:09]query_string will be loaded in cgi processing [23:54:09]execute_cgi json_proto POST (null) [23:54:09]execute_cgi path=json_proto method=POST [23:54:09]POST find Content-Length [23:54:09]Host: 172.17.56.4:8080 [23:54:09]Content-Length: 677 [23:54:09]Content-Type: application/json [23:54:09] [23:54:09]POST finish read [23:54:09]Found Content-Length = 677 [23:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:09]execute_script... [23:54: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)458889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:09]POST & json_proto [23:54:09]process_json_proto [23:54:09]json parsed OK: [23:54:09]protocol is kg_v1.0 [23:54:09]action value=close_receipt [23:54:09]process_action close_receipt [23:54:09]cmd_close_receipt [23:54:09]MH_GetDate [23:54:09]Write to MH i2c: F0 00 00 F1 1E FE [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 F1 1E 00 A2 13 93 66 C9 DC B2 64 70 [23:54:09]GetLastDocTimeStamp 1720913695 [23:54:09]current date 1720914850 [23:54:09]FM_GetShiftState [23:54:09]SAM_PROTO_GetShiftState [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 13 01 00 [23:54:09]Write to MH i2c: E2 08 00 F2 1E 80 13 01 00 00 00 00 00 8D [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0E 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0E 00 F2 1E 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 6E [23:54:09]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_GetShiftState done [23:54:09]FM_GetShiftState done [23:54:09]opened in 1720831249 [23:54:09]opened+sec_in_day 1720917649 [23:54:09]quantity*price = 50008 [23:54:09]sum+1 = 50009 [23:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 355 13.07.2024 23:54 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164795 ФПД: 154105900997681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164795&fm=154105900997681&tin=02508201610067®Number=0000000000090829&sum=50000 [23:54:10]StoreToDocumentArchive [23:54:10]shift 446 fd 164795 [23:54:10]save to /storage/0446/doc_00164795 [23:54:10]save last doc name /storage/0446/doc_00164795 to /storage/kkm_last_doc_name [23:54:10]save OK [23:54:10]Clear old archive folders... [23:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:10]tlvbuf is 01ED4670 [23:54:10]SAM_PROTO_ClearQueue [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 09 00 00 [23:54:10]Write to MH i2c: E2 08 00 FF 1E 80 09 00 00 00 00 00 00 8F [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_ClearQueue done [23:54:10]KKMCreateOFDPacket [23:54:10]OFDProtocolAddRootSTLVToBuf [23:54:10]FM_MakeSignedData [23:54:10]FM_MakeSignedData [23:54:10]SAM_PROTO_SignData [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 0D 01 02 [23:54:10]Write to MH i2c: E2 08 00 00 1F 80 0D 01 02 00 00 00 00 98 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=255 [23:54:10]MH_SAM_APDU [23:54: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 01 00 00 F4 03 04 00 A2 13 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 83 02 00 35 04 06 00 8C [23:54:10]Write to MH i2c: E2 02 01 01 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 01 00 00 F4 03 04 00 A2 13 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 83 02 00 35 04 06 00 8C 00 00 AE [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=10 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 0D 02 02 05 28 93 7C 9C 31 [23:54:10]Write to MH i2c: E2 0D 00 02 1F 80 0D 02 02 05 00 28 93 7C 9C 31 00 00 A9 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 02 1F 00 90 00 95 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 0D 03 02 [23:54:10]Write to MH i2c: E2 08 00 03 1F 80 0D 03 02 00 00 00 00 9D [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0B 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0B 00 03 1F 00 21 AE 53 86 87 8C C4 85 90 00 A2 [23:54:10]RAPDU: 21 AE 53 86 87 8C C4 85 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_SignData done [23:54:10]FM_MakeSignedData done [23:54:10]CreateOFDProtocolMessage [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 11 00 00 [23:54:10]Write to MH i2c: E2 08 00 04 1F 80 11 00 00 00 00 00 00 9D [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 04 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [23:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:10]wFMCommunicate OK [23:54:10]CreateOFDProtocolMessage done [23:54:10]OFDSenderStorePacket 164795 [23:54:10]StoreOFDPacket docnum=164795 [23:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 F0 07 01 E8 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 01 00 00 F4 03 04 00 A2 13 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 83 02 00 35 04 06 00 8C 28 93 7C 9C 31 21 AE 53 86 87 8C C4 85 [23:54:10]CheckFolder [23:54:10]dirname=/storage/ofd_packets [23:54:10]CheckFolder done [23:54:10]ProducePacketName [23:54:10]name=ofd_packets/00164795 [23:54:10]NVStorageSaveData ofd_packets/00164795 [23:54:10]File name is /storage/ofd_packets/00164795 [23:54:10]Write 301 bytes [23:54:10]NVStorageSaveData done [23:54:10]OFDSenderStorePacket done [23:54:10]KKMCreateOFDPacket done [23:54:10]NVStorageSaveData kkm_last_timestamp [23:54:10]File name is /storage/kkm_last_timestamp [23:54:10]Write 4 bytes [23:54:10]NVStorageSaveData done [23:54:10]ExternCall_PrintAddStr [23:54:10]wPrintStart [23:54:10]Write to MH i2c: 01 00 00 05 1F 24 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 05 1F 00 00 00 00 00 FF 0F 39 [23:54:10]RasterBufferAndPrint [23:54:10]line Счет N : (1)458889 [23:54:10]line ИНН: 02508201610067 [23:54:10]line Контрольно-Кассовый Чек [23:54:10]line ПРОДАЖА [23:54:10]line ТРК (МРК, ГНК) : 22 [23:54:10]line Товар: 2710124130 [23:54:10]line Аи-92-К-5 [23:54:10]line 7.600 * 65.80 [23:54:10]line = 500.08 [23:54:10]line НДС 12% НСП 1% [23:54:10]line > о реализуемом товаре [23:54:10]line ОКРУГЛЕНИЕ: -0.08 [23:54:10]line ИТОГО: 500.00 [23:54:10]line Внесено: 500.00 [23:54:10]line СДАЧА: 0.00 [23:54:10]line НСП 1% : 4.42 [23:54:10]line НДС 12% : 53.11 [23:54:10]line Наличными: 500.00 [23:54:10]line Безнал.: 0.00 [23:54:10]line Место: АЗС № 72 "Партнер Нефть" [23:54:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:54:10]line СНО: Общий режим [23:54:10]line Чек 355 13.07.2024 23:54 [23:54:10]line Смена: 446 ФФД: 1.0 [23:54:10]line ЗНМ: 0300000160 [23:54:10]line РНМ: 0000000000090829 [23:54:10]line Версия ККМ: 001 [23:54:10]line ФМ: 0000000000874718 [23:54:10]line ФД: 164795 [23:54:10]line ФПД: 154105900997681 [23:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235410&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164795&fm=154105900997681&tin=02508201610067®Number=0000000000090829&sum=50000 [23:54:11]OFD Sender: Processing packet 164795 [packets to send 104, broken 103] [23:54:11]ProducePacketName [23:54:11]name=ofd_packets/00164795 [23:54:11]OFD Sender: To server: pG, [23:54:11]CommunicateWithHost lk.salyk.kg:30040 [23:54:11]ConnectInit lk.salyk.kg [23:54:11]written 0, free lines is 4095 [23:54:11]Connected sock=10 [23:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 F0 07 01 E8 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 01 00 00 F4 03 04 00 A2 13 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 83 02 00 35 04 06 00 8C 28 93 7C 9C 31 21 AE 53 86 87 8C C4 85 [23:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F7 BF 47 00 ED AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 83 02 00 F4 03 04 00 32 BA 92 66 B6 04 01 00 00 4A 4D EE A1 C6 D7 8C B6 [23:54:11]CommunicateWithHost err = 0 [23:54:11]CheckOFDResponse [23:54:11]1017 (14) - 77093643461234 [23:54:11]1041 (16) - 0000000000874718 [23:54:11]1040 (4) - 164795 [23:54:11]1012 (4) - 13.07.2024 17:32 [23:54:11]1206 (1) - 0 [23:54:11]OFD Sender: Remove packet 164795 [23:54:11]ProducePacketName [23:54:11]name=ofd_packets/00164795 [23:54:11]NVStorageDeleteData [23:54:11]Write to MH i2c: 01 00 00 2F 1F 4E [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 08 0D 6A [23:54:11]RasterBufferAndPrint [23:54:11]line [23:54:11]line [23:54:11]line [23:54:11]line [23:54:11]line [23:54:11]written 0, free lines is 3342 [23:54:11]MH_Cut [23:54:11]Write to MH i2c: D1 01 00 36 1F 01 27 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D1 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D1 01 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: D1 01 00 36 1F 00 26 [23:54:11]Write to MH i2c: 01 00 00 37 1F 56 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:12]OFD Sender: No OFD packet to send [23:54:12]*** Cut start [23:54:12]*** Partial cut [23:54:12]*** CUTSNS_PIN = 1 [23:54:12]*** CUTSNS_PIN = 0 [23:54:12]*** Brake cut motor [23:54:12]Read from MH i2c: 01 [23:54:12]MH_I2C_Read... [23:54:12]*** Stop cut motor [23:54:12]*** Cut end [23:54:12]Read from MH i2c: 01 07 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 FF 0F 6B [23:54:12]process_action close_receipt done [23:54:12]requested_data is exist [23:54:12]produce_requested_data [23:54:12]requested_item fm.sn is exist - process it [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 11 00 00 [23:54:12]Write to MH i2c: E2 08 00 38 1F 80 11 00 00 00 00 00 00 D1 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 17 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 17 00 38 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [23:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:13]wFMCommunicate OK [23:54:13]requested_item fd.num is exist - process it [23:54:13]SAM_PROTO_GetFieldsCounters [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 13 00 00 [23:54:13]Write to MH i2c: E2 08 00 39 1F 80 13 00 00 00 00 00 00 D4 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 62 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 62 00 39 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:54: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:13]wFMCommunicate OK [23:54:13]SAM_PROTO_GetFieldsCounters done [23:54:13]requested_item shift.num is exist - process it [23:54:13]requested_item shift.opened is exist - process it [23:54:13]req_shift_opened [23:54:13]FM_GetShiftState [23:54:13]SAM_PROTO_GetShiftState [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 13 01 00 [23:54:13]Write to MH i2c: E2 08 00 3A 1F 80 13 01 00 00 00 00 00 D6 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 0E 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 0E 00 3A 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B7 [23:54:13]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [23:54:13]wFMCommunicate OK [23:54:13]SAM_PROTO_GetShiftState done [23:54:13]FM_GetShiftState done [23:54:13]req_shift_opened done [23:54:13]requested_item shift.open_date is exist - process it [23:54:13]req_shift_open_date [23:54:13]req_shift_open_date done [23:54:13]produce_requested_data done [23:54:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164795,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [23:54:13]process_action_free close_receipt [23:54:13]json_value_free [23:54:13]json_value_free done [23:54:13]process_json_proto returns [23:54:13]Send response to host [23:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164795,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [23:54:13]free response buf [23:54:13]execute_script done [23:54:13]execute_script returns [23:54:13]free content buf [23:54:13]Sock 9.Close socket [23:54:13]Sock 9.Thread stoped [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:03]accept exits with 7 [00:07:03]New connection [00:07:03]New thread 3067247972 created [00:07:03]Thread 3067104612 joined [00:07:03]Waiting for new connection... [00:07:03] Sock 7.Parse request [00:07:03]Sock 7.Check first char [00:07:03]Sock 7.First char is OK [00:07:03]request: POST /json_proto HTTP/1.0 [00:07:03]Method: POST [00:07:03]URL: /json_proto [00:07:03]Method is POST - this is cgi request [00:07:03]url: /json_proto [00:07:03]query_string will be loaded in cgi processing [00:07:03]execute_cgi json_proto POST (null) [00:07:03]execute_cgi path=json_proto method=POST [00:07:03]POST find Content-Length [00:07:03]Host: 172.17.56.4:8080 [00:07:03]Content-Length: 677 [00:07:03]Content-Type: application/json [00:07:03] [00:07:03]POST finish read [00:07:03]Found Content-Length = 677 [00:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.580, "sum" : 630.36, "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" ] } } [00:07:03]execute_script... [00:07: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)458890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.580, "sum" : 630.36, "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" ] } } [00:07:03]POST & json_proto [00:07:03]process_json_proto [00:07:03]json parsed OK: [00:07:03]protocol is kg_v1.0 [00:07:03]action value=close_receipt [00:07:03]process_action close_receipt [00:07:03]cmd_close_receipt [00:07:03]MH_GetDate [00:07:03]Write to MH i2c: F0 00 00 3B 1F 49 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: F0 09 00 3B 1F 00 A9 16 93 66 C9 DC B2 64 C5 [00:07:03]GetLastDocTimeStamp 1720914850 [00:07:03]current date 1720915625 [00:07:03]FM_GetShiftState [00:07:03]SAM_PROTO_GetShiftState [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 13 01 00 [00:07:03]Write to MH i2c: E2 08 00 3C 1F 80 13 01 00 00 00 00 00 D8 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 0E 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 0E 00 3C 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 B9 [00:07:03]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetShiftState done [00:07:03]FM_GetShiftState done [00:07:03]opened in 1720831249 [00:07:03]opened+sec_in_day 1720917649 [00:07:03]quantity*price = 63036 [00:07:03]sum+1 = 63037 [00:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.94 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 356 14.07.2024 00:07 Смена: 446 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164796 ФПД: 197902969019224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164796&fm=197902969019224&tin=02508201610067®Number=0000000000090829&sum=63000 [00:07:05]StoreToDocumentArchive [00:07:05]shift 446 fd 164796 [00:07:05]save to /storage/0446/doc_00164796 [00:07:05]save last doc name /storage/0446/doc_00164796 to /storage/kkm_last_doc_name [00:07:05]save OK [00:07:05]Clear old archive folders... [00:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:07:05]tlvbuf is 01EAC6A0 [00:07:05]SAM_PROTO_ClearQueue [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 09 00 00 [00:07:05]Write to MH i2c: E2 08 00 49 1F 80 09 00 00 00 00 00 00 DA [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_ClearQueue done [00:07:05]KKMCreateOFDPacket [00:07:05]OFDProtocolAddRootSTLVToBuf [00:07:05]FM_MakeSignedData [00:07:05]FM_MakeSignedData [00:07:05]SAM_PROTO_SignData [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 01 02 [00:07:05]Write to MH i2c: E2 08 00 4A 1F 80 0D 01 02 00 00 00 00 E2 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=255 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3C 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 26 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 64 01 00 00 F4 03 04 00 A9 16 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 83 02 00 35 04 06 00 B3 [00:07:05]Write to MH i2c: E2 02 01 4B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3C 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 26 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 64 01 00 00 F4 03 04 00 A9 16 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 83 02 00 35 04 06 00 B3 00 00 DE [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=10 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 02 02 05 FD E0 2B 1B 58 [00:07:05]Write to MH i2c: E2 0D 00 4C 1F 80 0D 02 02 05 00 FD E0 2B 1B 58 00 00 6A [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 03 02 [00:07:05]Write to MH i2c: E2 08 00 4D 1F 80 0D 03 02 00 00 00 00 E7 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 0B 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 0B 00 4D 1F 00 7F FD C9 3C 72 0F 09 E0 90 00 D3 [00:07:05]RAPDU: 7F FD C9 3C 72 0F 09 E0 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_SignData done [00:07:05]FM_MakeSignedData done [00:07:05]CreateOFDProtocolMessage [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 11 00 00 [00:07:05]Write to MH i2c: E2 08 00 4E 1F 80 11 00 00 00 00 00 00 E7 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 17 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 17 00 4E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [00:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:07:05]wFMCommunicate OK [00:07:05]CreateOFDProtocolMessage done [00:07:05]OFDSenderStorePacket 164796 [00:07:05]StoreOFDPacket docnum=164796 [00:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 0F 07 01 DB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3C 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 26 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 64 01 00 00 F4 03 04 00 A9 16 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 83 02 00 35 04 06 00 B3 FD E0 2B 1B 58 7F FD C9 3C 72 0F 09 E0 [00:07:05]CheckFolder [00:07:05]dirname=/storage/ofd_packets [00:07:05]CheckFolder done [00:07:05]ProducePacketName [00:07:05]name=ofd_packets/00164796 [00:07:05]NVStorageSaveData ofd_packets/00164796 [00:07:05]File name is /storage/ofd_packets/00164796 [00:07:05]Write 301 bytes [00:07:05]NVStorageSaveData done [00:07:05]OFDSenderStorePacket done [00:07:05]KKMCreateOFDPacket done [00:07:05]NVStorageSaveData kkm_last_timestamp [00:07:05]File name is /storage/kkm_last_timestamp [00:07:05]Write 4 bytes [00:07:05]NVStorageSaveData done [00:07:05]ExternCall_PrintAddStr [00:07:05]wPrintStart [00:07:05]Write to MH i2c: 01 00 00 4F 1F 6E [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: 01 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: 01 07 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: 01 07 00 4F 1F 00 00 00 00 00 FF 0F 83 [00:07:05]RasterBufferAndPrint [00:07:05]line Счет N : (1)458890 [00:07:05]line ИНН: 02508201610067 [00:07:05]line Контрольно-Кассовый Чек [00:07:05]line ПРОДАЖА [00:07:05]line ТРК (МРК, ГНК) : 22 [00:07:05]line Товар: 2710124130 [00:07:05]line Аи-92-К-5 [00:07:05]line 9.580 * 65.80 [00:07:05]line = 630.36 [00:07:05]line НДС 12% НСП 1% [00:07:05]line > о реализуемом товаре [00:07:05]line ОКРУГЛЕНИЕ: -0.36 [00:07:05]line ИТОГО: 630.00 [00:07:05]line Внесено: 630.00 [00:07:05]line СДАЧА: 0.00 [00:07:05]line НСП 1% : 5.58 [00:07:05]line НДС 12% : 66.94 [00:07:05]line Наличными: 630.00 [00:07:05]line Безнал.: 0.00 [00:07:05]line Место: АЗС № 72 "Партнер Нефть" [00:07:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:07:05]line СНО: Общий режим [00:07:05]line Чек 356 14.07.2024 00:07 [00:07:05]line Смена: 446 ФФД: 1.0 [00:07:05]line ЗНМ: 0300000160 [00:07:05]line РНМ: 0000000000090829 [00:07:05]line Версия ККМ: 001 [00:07:05]line ФМ: 0000000000874718 [00:07:05]line ФД: 164796 [00:07:05]line ФПД: 197902969019224 [00:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164796&fm=197902969019224&tin=02508201610067®Number=0000000000090829&sum=63000 [00:07:05]OFD Sender: Processing packet 164796 [packets to send 104, broken 103] [00:07:05]ProducePacketName [00:07:05]name=ofd_packets/00164796 [00:07:05]OFD Sender: To server: pG, [00:07:05]CommunicateWithHost lk.salyk.kg:30040 [00:07:05]ConnectInit lk.salyk.kg [00:07:05]written 0, free lines is 4095 [00:07:05]Connected sock=10 [00:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 0F 07 01 DB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3C 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 26 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 64 01 00 00 F4 03 04 00 A9 16 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 83 02 00 35 04 06 00 B3 FD E0 2B 1B 58 7F FD C9 3C 72 0F 09 E0 [00:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F8 4F 47 00 04 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 34 37 31 38 10 04 04 00 BC 83 02 00 F4 03 04 00 39 BD 92 66 B6 04 01 00 00 F6 D7 D2 29 AB D0 7F DF [00:07:06]CommunicateWithHost err = 0 [00:07:06]CheckOFDResponse [00:07:06]1017 (14) - 77093643461234 [00:07:06]1041 (16) - 0000000000874718 [00:07:06]1040 (4) - 164796 [00:07:06]1012 (4) - 13.07.2024 17:45 [00:07:06]1206 (1) - 0 [00:07:06]OFD Sender: Remove packet 164796 [00:07:06]ProducePacketName [00:07:06]name=ofd_packets/00164796 [00:07:06]NVStorageDeleteData [00:07:06]Write to MH i2c: 01 00 00 79 1F 98 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: 01 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: 01 07 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: 01 07 00 79 1F 00 00 00 00 00 11 0D BD [00:07:06]RasterBufferAndPrint [00:07:06]line [00:07:06]line [00:07:06]line [00:07:06]line [00:07:06]line [00:07:06]written 0, free lines is 3351 [00:07:06]MH_Cut [00:07:06]Write to MH i2c: D1 01 00 80 1F 01 71 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: D1 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: D1 01 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: D1 01 00 80 1F 00 70 [00:07:06]Write to MH i2c: 01 00 00 81 1F A0 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]OFD Sender: No OFD packet to send [00:07:07]*** Cut start [00:07:07]*** Partial cut [00:07:07]*** CUTSNS_PIN = 1 [00:07:07]*** CUTSNS_PIN = 0 [00:07:07]*** Brake cut motor [00:07:07]Read from MH i2c: 01 [00:07:07]MH_I2C_Read... [00:07:07]*** Stop cut motor [00:07:07]*** Cut end [00:07:07]Read from MH i2c: 01 07 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: 01 07 00 81 1F 00 00 00 00 00 FF 0F B5 [00:07:07]process_action close_receipt done [00:07:07]requested_data is exist [00:07:07]produce_requested_data [00:07:07]requested_item fm.sn is exist - process it [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 11 00 00 [00:07:07]Write to MH i2c: E2 08 00 82 1F 80 11 00 00 00 00 00 00 1B [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 17 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 17 00 82 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [00:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:07:07]wFMCommunicate OK [00:07:07]requested_item fd.num is exist - process it [00:07:07]SAM_PROTO_GetFieldsCounters [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 00 00 [00:07:07]Write to MH i2c: E2 08 00 83 1F 80 13 00 00 00 00 00 00 1E [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 62 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 62 00 83 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [00:07: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 83 02 00 0E 04 04 00 BE 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetFieldsCounters done [00:07:07]requested_item shift.num is exist - process it [00:07:07]requested_item shift.opened is exist - process it [00:07:07]req_shift_opened [00:07:07]FM_GetShiftState [00:07:07]SAM_PROTO_GetShiftState [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 13 01 00 [00:07:07]Write to MH i2c: E2 08 00 84 1F 80 13 01 00 00 00 00 00 20 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0E 00 84 1F 00 09 00 01 11 CD 91 66 00 00 00 00 90 00 01 [00:07:07]RAPDU: 09 00 01 11 CD 91 66 00 00 00 00 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetShiftState done [00:07:07]FM_GetShiftState done [00:07:07]req_shift_opened done [00:07:07]requested_item shift.open_date is exist - process it [00:07:07]req_shift_open_date [00:07:07]req_shift_open_date done [00:07:07]produce_requested_data done [00:07:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164796,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249} [00:07:07]process_action_free close_receipt [00:07:07]json_value_free [00:07:07]json_value_free done [00:07:07]process_json_proto returns [00:07:07]Send response to host [00:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164796,"shift.num":446,"shift.opened":1,"shift.open_date":1720831249}}} [00:07:07]free response buf [00:07:07]execute_script done [00:07:07]execute_script returns [00:07:07]free content buf [00:07:07]Sock 7.Close socket [00:07:07]Sock 7.Thread stoped [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [01:48:34]ConnectInit Can't connect to host [01:48:38]OFD Sender: Processing packet 164797 [packets to send 116, broken 103] [01:48:38]ProducePacketName [01:48:38]name=ofd_packets/00164797 [01:48:38]OFD Sender: To server: pG, [01:48:38]CommunicateWithHost lk.salyk.kg:30040 [01:48:38]ConnectInit lk.salyk.kg [01:48:38]Connected sock=8 [01:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 5D 07 01 2B B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 30 17 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 83 02 00 35 04 06 00 90 C6 C6 54 80 C8 8B 3E 8C 92 52 FC 10 A9 [01:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 14 47 00 08 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 34 37 31 38 10 04 04 00 BD 83 02 00 F4 03 04 00 04 D5 92 66 B6 04 01 00 00 71 EE FD 00 E6 F5 02 D5 [01:48:38]CommunicateWithHost err = 0 [01:48:38]CheckOFDResponse [01:48:38]1017 (14) - 77093643461234 [01:48:38]1041 (16) - 0000000000874718 [01:48:38]1040 (4) - 164797 [01:48:38]1012 (4) - 13.07.2024 19:27 [01:48:38]1206 (1) - 0 [01:48:38]OFD Sender: Remove packet 164797 [01:48:38]ProducePacketName [01:48:38]name=ofd_packets/00164797 [01:48:38]NVStorageDeleteData [01:48:38]OFD Sender: Processing packet 164798 [packets to send 115, broken 103] [01:48:38]ProducePacketName [01:48:38]name=ofd_packets/00164798 [01:48:38]OFD Sender: To server: pG, [01:48:38]CommunicateWithHost lk.salyk.kg:30040 [01:48:38]ConnectInit lk.salyk.kg [01:48:39]Connected sock=8 [01:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 D8 07 01 23 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 66 01 00 00 F4 03 04 00 64 17 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 83 02 00 35 04 06 00 99 7C F1 17 BD 15 AF 4D 7A 83 34 25 EE A7 [01:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B F9 47 00 08 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 83 02 00 F4 03 04 00 04 D5 92 66 B6 04 01 00 00 51 A5 15 5F 93 AF 01 31 [01:48:39]CommunicateWithHost err = 0 [01:48:39]CheckOFDResponse [01:48:39]1017 (14) - 77093643461234 [01:48:39]1041 (16) - 0000000000874718 [01:48:39]1040 (4) - 164798 [01:48:39]1012 (4) - 13.07.2024 19:27 [01:48:39]1206 (1) - 0 [01:48:39]OFD Sender: Remove packet 164798 [01:48:39]ProducePacketName [01:48:39]name=ofd_packets/00164798 [01:48:39]NVStorageDeleteData [01:48:39]OFD Sender: Processing packet 164799 [packets to send 114, broken 103] [01:48:39]ProducePacketName [01:48:39]name=ofd_packets/00164799 [01:48:39]OFD Sender: To server: pG, [01:48:39]CommunicateWithHost lk.salyk.kg:30040 [01:48:39]ConnectInit lk.salyk.kg [01:48:39]Connected sock=8 [01:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5C 18 07 01 8E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 52 18 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 83 02 00 35 04 06 00 4E A8 67 D2 11 81 03 B9 A5 0A C4 61 50 6F [01:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 51 47 00 22 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 83 02 00 F4 03 04 00 05 D5 92 66 B6 04 01 00 00 B7 54 64 2E 66 B6 34 FB [01:48:40]CommunicateWithHost err = 0 [01:48:40]CheckOFDResponse [01:48:40]1017 (14) - 77093643461234 [01:48:40]1041 (16) - 0000000000874718 [01:48:40]1040 (4) - 164799 [01:48:40]1012 (4) - 13.07.2024 19:27 [01:48:40]1206 (1) - 0 [01:48:40]OFD Sender: Remove packet 164799 [01:48:40]ProducePacketName [01:48:40]name=ofd_packets/00164799 [01:48:40]NVStorageDeleteData [01:48:40]OFD Sender: Processing packet 164800 [packets to send 113, broken 103] [01:48:40]ProducePacketName [01:48:40]name=ofd_packets/00164800 [01:48:40]OFD Sender: To server: pG, [01:48:40]CommunicateWithHost lk.salyk.kg:30040 [01:48:40]ConnectInit lk.salyk.kg [01:48:40]Connected sock=8 [01:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 87 30 04 01 FC E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 F0 18 93 66 0E 04 04 00 BE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 83 02 00 35 04 06 00 AD 54 25 90 77 FF A8 A7 4E 3C EE 79 45 7E [01:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A CD 47 00 08 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 34 37 31 38 10 04 04 00 C0 83 02 00 F4 03 04 00 06 D5 92 66 B6 04 01 00 00 88 28 DB C6 DE 83 E3 42 [01:48:40]CommunicateWithHost err = 0 [01:48:40]CheckOFDResponse [01:48:40]1017 (14) - 77093643461234 [01:48:40]1041 (16) - 0000000000874718 [01:48:40]1040 (4) - 164800 [01:48:40]1012 (4) - 13.07.2024 19:27 [01:48:40]1206 (1) - 0 [01:48:40]OFD Sender: Remove packet 164800 [01:48:40]ProducePacketName [01:48:40]name=ofd_packets/00164800 [01:48:40]NVStorageDeleteData [01:48:41]OFD Sender: Processing packet 164801 [packets to send 112, broken 103] [01:48:41]ProducePacketName [01:48:41]name=ofd_packets/00164801 [01:48:41]OFD Sender: To server: pG, [01:48:41]CommunicateWithHost lk.salyk.kg:30040 [01:48:41]ConnectInit lk.salyk.kg [01:48:41]Connected sock=8 [01:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 84 05 00 00 3B 74 7C 05 CA 54 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 E9 1B 93 66 0E 04 04 00 BE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 5E 04 04 00 68 01 00 00 57 04 04 00 6A 01 00 00 AA 04 DE 04 6E 04 04 00 68 01 00 00 69 04 A5 00 6F 04 04 00 67 01 00 00 B1 04 04 00 09 5F 6B 01 70 04 04 00 68 CA 3F 01 72 04 03 00 A1 94 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 C4 98 26 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 2F 37 03 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 10 02 02 70 04 03 00 10 02 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 97 36 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8D 04 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 C1 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 D3 86 59 7F 1A D2 EF 05 AE 44 0D 0B D3 85 [01:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D6 40 47 00 71 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 34 37 31 38 10 04 04 00 C1 83 02 00 F4 03 04 00 07 D5 92 66 B6 04 01 00 00 F8 6B 49 1B 99 BC F3 CD [01:48:41]CommunicateWithHost err = 0 [01:48:41]CheckOFDResponse [01:48:41]1017 (14) - 77093643461234 [01:48:41]1041 (16) - 0000000000874718 [01:48:41]1040 (4) - 164801 [01:48:41]1012 (4) - 13.07.2024 19:27 [01:48:41]1206 (1) - 0 [01:48:41]OFD Sender: Remove packet 164801 [01:48:41]ProducePacketName [01:48:41]name=ofd_packets/00164801 [01:48:41]NVStorageDeleteData [01:48:42]OFD Sender: Processing packet 164802 [packets to send 111, broken 103] [01:48:42]ProducePacketName [01:48:42]name=ofd_packets/00164802 [01:48:42]OFD Sender: To server: pG, [01:48:42]CommunicateWithHost lk.salyk.kg:30040 [01:48:42]ConnectInit lk.salyk.kg [01:48:42]Connected sock=8 [01:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F2 00 00 00 0C 2E EA 00 B3 F6 5A 02 01 00 02 00 DE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 5E 1D 93 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 B1 22 9C 45 A2 AD BA 29 0C DB F9 72 73 E1 [01:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A9 11 47 00 E9 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 34 37 31 38 10 04 04 00 C2 83 02 00 F4 03 04 00 07 D5 92 66 B6 04 01 00 00 34 0E EF 3D 76 37 37 18 [01:48:42]CommunicateWithHost err = 0 [01:48:42]CheckOFDResponse [01:48:42]1017 (14) - 77093643461234 [01:48:42]1041 (16) - 0000000000874718 [01:48:42]1040 (4) - 164802 [01:48:42]1012 (4) - 13.07.2024 19:27 [01:48:42]1206 (1) - 0 [01:48:42]OFD Sender: Remove packet 164802 [01:48:42]ProducePacketName [01:48:42]name=ofd_packets/00164802 [01:48:42]NVStorageDeleteData [01:48:42]OFD Sender: Processing packet 164803 [packets to send 110, broken 103] [01:48:42]ProducePacketName [01:48:42]name=ofd_packets/00164803 [01:48:42]OFD Sender: To server: pG, [01:48:42]CommunicateWithHost lk.salyk.kg:30040 [01:48:42]ConnectInit lk.salyk.kg [01:48:43]Connected sock=8 [01:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 F1 07 01 C3 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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 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 1D 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 01 00 00 00 F4 03 04 00 A4 1E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 83 02 00 35 04 06 00 58 37 DC CA F6 F2 FF D9 54 9C 1F 65 09 53 [01:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9F 09 47 00 C9 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 34 37 31 38 10 04 04 00 C3 83 02 00 F4 03 04 00 08 D5 92 66 B6 04 01 00 00 3B 6D E8 E1 D6 57 89 1F [01:48:43]CommunicateWithHost err = 0 [01:48:43]CheckOFDResponse [01:48:43]1017 (14) - 77093643461234 [01:48:43]1041 (16) - 0000000000874718 [01:48:43]1040 (4) - 164803 [01:48:43]1012 (4) - 13.07.2024 19:27 [01:48:43]1206 (1) - 0 [01:48:43]OFD Sender: Remove packet 164803 [01:48:43]ProducePacketName [01:48:43]name=ofd_packets/00164803 [01:48:43]NVStorageDeleteData [01:48:43]OFD Sender: Processing packet 164804 [packets to send 109, broken 103] [01:48:43]ProducePacketName [01:48:43]name=ofd_packets/00164804 [01:48:43]OFD Sender: To server: pG, [01:48:43]CommunicateWithHost lk.salyk.kg:30040 [01:48:43]ConnectInit lk.salyk.kg [01:48:43]Connected sock=8 [01:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 00 07 01 AF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 02 00 00 00 F4 03 04 00 05 1F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 83 02 00 35 04 06 00 06 6A F5 63 68 95 3B 65 3A 7C 0A FB C0 A2 [01:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9E B5 47 00 98 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 34 37 31 38 10 04 04 00 C4 83 02 00 F4 03 04 00 09 D5 92 66 B6 04 01 00 00 9A F1 EE 08 A8 07 01 9B [01:48:44]CommunicateWithHost err = 0 [01:48:44]CheckOFDResponse [01:48:44]1017 (14) - 77093643461234 [01:48:44]1041 (16) - 0000000000874718 [01:48:44]1040 (4) - 164804 [01:48:44]1012 (4) - 13.07.2024 19:27 [01:48:44]1206 (1) - 0 [01:48:44]OFD Sender: Remove packet 164804 [01:48:44]ProducePacketName [01:48:44]name=ofd_packets/00164804 [01:48:44]NVStorageDeleteData [01:48:44]OFD Sender: Processing packet 164805 [packets to send 108, broken 103] [01:48:44]ProducePacketName [01:48:44]name=ofd_packets/00164805 [01:48:44]OFD Sender: To server: pG, [01:48:44]CommunicateWithHost lk.salyk.kg:30040 [01:48:44]ConnectInit lk.salyk.kg [01:48:44]Connected sock=8 [01:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 2D 6C 04 01 59 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 47 22 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 83 02 00 35 04 06 00 D2 EE F1 1B 04 96 9A 43 54 B2 FD 25 0C 8D [01:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 29 47 00 8C 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 34 37 31 38 10 04 04 00 C5 83 02 00 F4 03 04 00 0A D5 92 66 B6 04 01 00 00 72 1E 94 A0 FE F9 86 15 [01:48:44]CommunicateWithHost err = 0 [01:48:44]CheckOFDResponse [01:48:44]1017 (14) - 77093643461234 [01:48:44]1041 (16) - 0000000000874718 [01:48:44]1040 (4) - 164805 [01:48:44]1012 (4) - 13.07.2024 19:27 [01:48:44]1206 (1) - 0 [01:48:44]OFD Sender: Remove packet 164805 [01:48:44]ProducePacketName [01:48:44]name=ofd_packets/00164805 [01:48:44]NVStorageDeleteData [01:48:45]OFD Sender: Processing packet 164806 [packets to send 107, broken 103] [01:48:45]ProducePacketName [01:48:45]name=ofd_packets/00164806 [01:48:45]OFD Sender: To server: pG, [01:48:45]CommunicateWithHost lk.salyk.kg:30040 [01:48:45]ConnectInit lk.salyk.kg [01:48:45]Connected sock=9 [01:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA FB 07 01 FE A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 04 00 00 00 F4 03 04 00 17 23 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 83 02 00 35 04 06 00 D2 A4 95 D1 59 F0 AF 4A 12 BC 30 8E 96 F3 [01:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EC F7 47 00 64 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 83 02 00 F4 03 04 00 0B D5 92 66 B6 04 01 00 00 42 73 7C 80 CE 37 E6 D8 [01:48:45]CommunicateWithHost err = 0 [01:48:45]CheckOFDResponse [01:48:45]1017 (14) - 77093643461234 [01:48:45]1041 (16) - 0000000000874718 [01:48:45]1040 (4) - 164806 [01:48:45]1012 (4) - 13.07.2024 19:27 [01:48:45]1206 (1) - 0 [01:48:45]OFD Sender: Remove packet 164806 [01:48:45]ProducePacketName [01:48:45]name=ofd_packets/00164806 [01:48:45]NVStorageDeleteData [01:48:46]OFD Sender: Processing packet 164807 [packets to send 106, broken 103] [01:48:46]ProducePacketName [01:48:46]name=ofd_packets/00164807 [01:48:46]OFD Sender: To server: pG, [01:48:46]CommunicateWithHost lk.salyk.kg:30040 [01:48:46]ConnectInit lk.salyk.kg [01:48:46]Connected sock=8 [01:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A 8F 07 01 77 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D0 23 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 83 02 00 35 04 06 00 2C 26 E1 03 78 9A 99 AE 15 49 6E F7 98 D9 [01:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CE 38 47 00 13 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 83 02 00 F4 03 04 00 0B D5 92 66 B6 04 01 00 00 4B 55 31 3E 0D 6A BC 7D [01:48:46]CommunicateWithHost err = 0 [01:48:46]CheckOFDResponse [01:48:46]1017 (14) - 77093643461234 [01:48:46]1041 (16) - 0000000000874718 [01:48:46]1040 (4) - 164807 [01:48:46]1012 (4) - 13.07.2024 19:27 [01:48:46]1206 (1) - 0 [01:48:46]OFD Sender: Remove packet 164807 [01:48:46]ProducePacketName [01:48:46]name=ofd_packets/00164807 [01:48:46]NVStorageDeleteData [01:48:46]OFD Sender: Processing packet 164808 [packets to send 105, broken 103] [01:48:46]ProducePacketName [01:48:46]name=ofd_packets/00164808 [01:48:46]OFD Sender: To server: pG, [01:48:46]CommunicateWithHost lk.salyk.kg:30040 [01:48:46]ConnectInit lk.salyk.kg [01:48:47]Connected sock=8 [01:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F1 52 07 01 BA 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F6 29 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 83 02 00 35 04 06 00 E9 82 06 07 69 95 73 81 BA E9 E7 B1 ED 6D [01:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 82 47 00 18 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 34 37 31 38 10 04 04 00 C8 83 02 00 F4 03 04 00 0C D5 92 66 B6 04 01 00 00 06 E9 D0 9C B6 3D B9 CD [01:48:47]CommunicateWithHost err = 0 [01:48:47]CheckOFDResponse [01:48:47]1017 (14) - 77093643461234 [01:48:47]1041 (16) - 0000000000874718 [01:48:47]1040 (4) - 164808 [01:48:47]1012 (4) - 13.07.2024 19:27 [01:48:47]1206 (1) - 0 [01:48:47]OFD Sender: Remove packet 164808 [01:48:47]ProducePacketName [01:48:47]name=ofd_packets/00164808 [01:48:47]NVStorageDeleteData [01:48:47]OFD Sender: Processing packet 164809 [packets to send 104, broken 103] [01:48:47]ProducePacketName [01:48:47]name=ofd_packets/00164809 [01:48:47]OFD Sender: To server: pG, [01:48:47]CommunicateWithHost lk.salyk.kg:30040 [01:48:47]ConnectInit lk.salyk.kg [01:48:47]Connected sock=8 [01:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 0E 07 01 9B 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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 33 2D 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 83 02 00 35 04 06 00 AD 61 94 5D AB 30 BB 7B AD 32 D1 A3 FF 3B [01:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 F6 47 00 FA 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 34 37 31 38 10 04 04 00 C9 83 02 00 F4 03 04 00 0D D5 92 66 B6 04 01 00 00 15 91 7C 6A 57 6B EA 1D [01:48:48]CommunicateWithHost err = 0 [01:48:48]CheckOFDResponse [01:48:48]1017 (14) - 77093643461234 [01:48:48]1041 (16) - 0000000000874718 [01:48:48]1040 (4) - 164809 [01:48:48]1012 (4) - 13.07.2024 19:27 [01:48:48]1206 (1) - 0 [01:48:48]OFD Sender: Remove packet 164809 [01:48:48]ProducePacketName [01:48:48]name=ofd_packets/00164809 [01:48:48]NVStorageDeleteData [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:18]accept exits with 11 [02:01:18]New connection [02:01:18]New thread 3067428196 created [02:01:18]Thread 3067571556 joined [02:01:18]Waiting for new connection... [02:01:18] Sock 11.Parse request [02:01:18]Sock 11.Check first char [02:01:18]Sock 11.First char is OK [02:01:18]request: POST /json_proto HTTP/1.0 [02:01:18]Method: POST [02:01:18]URL: /json_proto [02:01:18]Method is POST - this is cgi request [02:01:18]url: /json_proto [02:01:18]query_string will be loaded in cgi processing [02:01:18]execute_cgi json_proto POST (null) [02:01:18]execute_cgi path=json_proto method=POST [02:01:18]POST find Content-Length [02:01:18]Host: 172.17.56.4:8080 [02:01:18]Content-Length: 677 [02:01:18]Content-Type: application/json [02:01:18] [02:01:18]POST finish read [02:01:18]Found Content-Length = 677 [02:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:18]execute_script... [02:01:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:01:18]POST & json_proto [02:01:18]process_json_proto [02:01:18]json parsed OK: [02:01:18]protocol is kg_v1.0 [02:01:18]action value=close_receipt [02:01:18]process_action close_receipt [02:01:18]cmd_close_receipt [02:01:18]MH_GetDate [02:01:18]Write to MH i2c: F0 00 00 73 03 65 [02:01:18]Write i2c OK [02:01:18]MH_I2C_Read... [02:01:18]Read from MH i2c: F0 [02:01:18]MH_I2C_Read... [02:01:18]Read from MH i2c: F0 09 00 [02:01:18]MH_I2C_Read... [02:01:18]Read from MH i2c: F0 09 00 73 03 00 6F 31 93 66 C9 DC B2 64 C2 [02:01:18]GetLastDocTimeStamp 1720921395 [02:01:18]current date 1720922479 [02:01:18]FM_GetShiftState [02:01:18]SAM_PROTO_GetShiftState [02:01:18]wFMCommunicate request_size=4 [02:01:18]MH_SAM_APDU [02:01:18]CAPDU: 80 13 01 00 [02:01:18]Write to MH i2c: E2 08 00 74 03 80 13 01 00 00 00 00 00 F4 [02:01:18]Write i2c OK [02:01:18]MH_I2C_Read... [02:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:18]Read from MH i2c: E2 [02:01:18]MH_I2C_Read... [02:01:18]Read from MH i2c: E2 0E 00 [02:01:18]MH_I2C_Read... [02:01:18]Read from MH i2c: E2 0E 00 74 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 74 [02:01:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:01:18]wFMCommunicate OK [02:01:18]SAM_PROTO_GetShiftState done [02:01:18]FM_GetShiftState done [02:01:18]opened in 1720917342 [02:01:18]opened+sec_in_day 1721003742 [02:01:18]quantity*price = 50008 [02:01:18]sum+1 = 50009 [02:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 8 14.07.2024 02:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164810 ФПД: 123370827928602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020119&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164810&fm=123370827928602&tin=02508201610067®Number=0000000000090829&sum=50000 [02:01:19]StoreToDocumentArchive [02:01:19]shift 447 fd 164810 [02:01:19]save to /storage/0447/doc_00164810 [02:01:19]save last doc name /storage/0447/doc_00164810 to /storage/kkm_last_doc_name [02:01:19]save OK [02:01:19]Clear old archive folders... [02:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:01:19]tlvbuf is 0164BF80 [02:01:19]SAM_PROTO_ClearQueue [02:01:19]wFMCommunicate request_size=4 [02:01:19]MH_SAM_APDU [02:01:19]CAPDU: 80 09 00 00 [02:01:19]Write to MH i2c: E2 08 00 81 03 80 09 00 00 00 00 00 00 F6 [02:01:19]Write i2c OK [02:01:19]MH_I2C_Read... [02:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:19]Read from MH i2c: E2 [02:01:19]MH_I2C_Read... [02:01:19]Read from MH i2c: E2 03 00 [02:01:19]MH_I2C_Read... [02:01:19]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [02:01:19]RAPDU: 90 00 [02:01:19]wFMCommunicate OK [02:01:19]SAM_PROTO_ClearQueue done [02:01:19]KKMCreateOFDPacket [02:01:19]OFDProtocolAddRootSTLVToBuf [02:01:19]FM_MakeSignedData [02:01:19]FM_MakeSignedData [02:01:19]SAM_PROTO_SignData [02:01:19]wFMCommunicate request_size=4 [02:01:19]MH_SAM_APDU [02:01:19]CAPDU: 80 0D 01 02 [02:01:19]Write to MH i2c: E2 08 00 82 03 80 0D 01 02 00 00 00 00 FE [02:01:19]Write i2c OK [02:01:19]MH_I2C_Read... [02:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:19]Read from MH i2c: E2 [02:01:19]MH_I2C_Read... [02:01:19]Read from MH i2c: E2 03 00 [02:01:19]MH_I2C_Read... [02:01:19]Read from MH i2c: E2 03 00 82 03 00 90 00 F9 [02:01:19]RAPDU: 90 00 [02:01:19]wFMCommunicate OK [02:01:19]wFMCommunicate request_size=255 [02:01:19]MH_SAM_APDU [02:01:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6F 31 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 83 02 00 35 04 06 00 70 [02:01:19]Write to MH i2c: E2 02 01 83 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6F 31 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 83 02 00 35 04 06 00 70 00 00 97 [02:01:19]Write i2c OK [02:01:19]MH_I2C_Read... [02:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:20]Read from MH i2c: E2 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 03 00 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [02:01:20]RAPDU: 90 00 [02:01:20]wFMCommunicate OK [02:01:20]wFMCommunicate request_size=10 [02:01:20]MH_SAM_APDU [02:01:20]CAPDU: 80 0D 02 02 05 34 82 5F D4 1A [02:01:20]Write to MH i2c: E2 0D 00 84 03 80 0D 02 02 05 00 34 82 5F D4 1A 00 00 0E [02:01:20]Write i2c OK [02:01:20]MH_I2C_Read... [02:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:20]Read from MH i2c: E2 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 03 00 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [02:01:20]RAPDU: 90 00 [02:01:20]wFMCommunicate OK [02:01:20]wFMCommunicate request_size=4 [02:01:20]MH_SAM_APDU [02:01:20]CAPDU: 80 0D 03 02 [02:01:20]Write to MH i2c: E2 08 00 85 03 80 0D 03 02 00 00 00 00 03 [02:01:20]Write i2c OK [02:01:20]MH_I2C_Read... [02:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:20]Read from MH i2c: E2 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 0B 00 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 0B 00 85 03 00 A1 3B 69 0C E3 A8 44 DE 90 00 02 [02:01:20]RAPDU: A1 3B 69 0C E3 A8 44 DE 90 00 [02:01:20]wFMCommunicate OK [02:01:20]SAM_PROTO_SignData done [02:01:20]FM_MakeSignedData done [02:01:20]CreateOFDProtocolMessage [02:01:20]wFMCommunicate request_size=4 [02:01:20]MH_SAM_APDU [02:01:20]CAPDU: 80 11 00 00 [02:01:20]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [02:01:20]Write i2c OK [02:01:20]MH_I2C_Read... [02:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:20]Read from MH i2c: E2 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 17 00 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [02:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:01:20]wFMCommunicate OK [02:01:20]CreateOFDProtocolMessage done [02:01:20]OFDSenderStorePacket 164810 [02:01:20]StoreOFDPacket docnum=164810 [02:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FB 46 07 01 C7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6F 31 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 83 02 00 35 04 06 00 70 34 82 5F D4 1A A1 3B 69 0C E3 A8 44 DE [02:01:20]CheckFolder [02:01:20]dirname=/storage/ofd_packets [02:01:20]CheckFolder done [02:01:20]ProducePacketName [02:01:20]name=ofd_packets/00164810 [02:01:20]NVStorageSaveData ofd_packets/00164810 [02:01:20]File name is /storage/ofd_packets/00164810 [02:01:20]Write 301 bytes [02:01:20]NVStorageSaveData done [02:01:20]OFDSenderStorePacket done [02:01:20]KKMCreateOFDPacket done [02:01:20]NVStorageSaveData kkm_last_timestamp [02:01:20]File name is /storage/kkm_last_timestamp [02:01:20]Write 4 bytes [02:01:20]NVStorageSaveData done [02:01:20]ExternCall_PrintAddStr [02:01:20]wPrintStart [02:01:20]Write to MH i2c: 01 00 00 87 03 8A [02:01:20]Write i2c OK [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: 01 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: 01 07 00 [02:01:20]MH_I2C_Read... [02:01:20]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FF 0F 9F [02:01:20]RasterBufferAndPrint [02:01:20]line Счет N : (1)458903 [02:01:20]line ИНН: 02508201610067 [02:01:20]line Контрольно-Кассовый Чек [02:01:20]line ПРОДАЖА [02:01:20]line ТРК (МРК, ГНК) : 12 [02:01:20]line Товар: 2710124130 [02:01:20]line Аи-92-К-5 [02:01:20]line 7.600 * 65.80 [02:01:20]line = 500.08 [02:01:20]line НДС 12% НСП 1% [02:01:20]line > о реализуемом товаре [02:01:20]line ОКРУГЛЕНИЕ: -0.08 [02:01:20]line ИТОГО: 500.00 [02:01:20]line Внесено: 500.00 [02:01:20]line СДАЧА: 0.00 [02:01:20]line НСП 1% : 4.42 [02:01:20]line НДС 12% : 53.11 [02:01:20]line Наличными: 500.00 [02:01:20]line Безнал.: 0.00 [02:01:20]line Место: АЗС № 72 "Партнер Нефть" [02:01:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:01:20]line СНО: Общий режим [02:01:20]line Чек 8 14.07.2024 02:01 [02:01:20]line Смена: 447 ФФД: 1.0 [02:01:20]line ЗНМ: 0300000160 [02:01:20]line РНМ: 0000000000090829 [02:01:20]line Версия ККМ: 001 [02:01:20]line ФМ: 0000000000874718 [02:01:20]line ФД: 164810 [02:01:20]line ФПД: 123370827928602 [02:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020119&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164810&fm=123370827928602&tin=02508201610067®Number=0000000000090829&sum=50000 [02:01:20]OFD Sender: Processing packet 164810 [packets to send 104, broken 103] [02:01:20]ProducePacketName [02:01:20]name=ofd_packets/00164810 [02:01:20]OFD Sender: To server: pG, [02:01:20]CommunicateWithHost lk.salyk.kg:30040 [02:01:20]ConnectInit lk.salyk.kg [02:01:20]written 0, free lines is 4095 [02:01:20]Connected sock=9 [02:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FB 46 07 01 C7 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6F 31 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 83 02 00 35 04 06 00 70 34 82 5F D4 1A A1 3B 69 0C E3 A8 44 DE [02:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 60 47 00 F6 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 34 37 31 38 10 04 04 00 CA 83 02 00 F4 03 04 00 FE D7 92 66 B6 04 01 00 00 12 30 00 5E 03 2B E6 07 [02:01:21]CommunicateWithHost err = 0 [02:01:21]CheckOFDResponse [02:01:21]1017 (14) - 77093643461234 [02:01:21]1041 (16) - 0000000000874718 [02:01:21]1040 (4) - 164810 [02:01:21]1012 (4) - 13.07.2024 19:39 [02:01:21]1206 (1) - 0 [02:01:21]OFD Sender: Remove packet 164810 [02:01:21]ProducePacketName [02:01:21]name=ofd_packets/00164810 [02:01:21]NVStorageDeleteData [02:01:21]Write to MH i2c: 01 00 00 B1 03 B4 [02:01:21]Write i2c OK [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: 01 [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: 01 07 00 [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 04 0D CC [02:01:21]RasterBufferAndPrint [02:01:21]line [02:01:21]line [02:01:21]line [02:01:21]line [02:01:21]line [02:01:21]written 0, free lines is 3338 [02:01:21]MH_Cut [02:01:21]Write to MH i2c: D1 01 00 B8 03 01 8D [02:01:21]Write i2c OK [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: D1 [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: D1 01 00 [02:01:21]MH_I2C_Read... [02:01:21]Read from MH i2c: D1 01 00 B8 03 00 8C [02:01:21]Write to MH i2c: 01 00 00 B9 03 BC [02:01:21]Write i2c OK [02:01:21]MH_I2C_Read... [02:01:21]OFD Sender: No OFD packet to send [02:01:21]*** Cut start [02:01:21]*** Partial cut [02:01:21]*** CUTSNS_PIN = 1 [02:01:21]*** CUTSNS_PIN = 0 [02:01:22]*** Brake cut motor [02:01:22]Read from MH i2c: 01 [02:01:22]MH_I2C_Read... [02:01:22]*** Stop cut motor [02:01:22]*** Cut end [02:01:22]Read from MH i2c: 01 07 00 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FF 0F D1 [02:01:22]process_action close_receipt done [02:01:22]requested_data is exist [02:01:22]produce_requested_data [02:01:22]requested_item fm.sn is exist - process it [02:01:22]wFMCommunicate request_size=4 [02:01:22]MH_SAM_APDU [02:01:22]CAPDU: 80 11 00 00 [02:01:22]Write to MH i2c: E2 08 00 BA 03 80 11 00 00 00 00 00 00 37 [02:01:22]Write i2c OK [02:01:22]MH_I2C_Read... [02:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:22]Read from MH i2c: E2 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 17 00 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 17 00 BA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [02:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:01:22]wFMCommunicate OK [02:01:22]requested_item fd.num is exist - process it [02:01:22]SAM_PROTO_GetFieldsCounters [02:01:22]wFMCommunicate request_size=4 [02:01:22]MH_SAM_APDU [02:01:22]CAPDU: 80 13 00 00 [02:01:22]Write to MH i2c: E2 08 00 BB 03 80 13 00 00 00 00 00 00 3A [02:01:22]Write i2c OK [02:01:22]MH_I2C_Read... [02:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:22]Read from MH i2c: E2 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 62 00 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 62 00 BB 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 83 02 00 0E 04 04 00 BF 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 88 [02:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 83 02 00 0E 04 04 00 BF 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 [02:01:22]wFMCommunicate OK [02:01:22]SAM_PROTO_GetFieldsCounters done [02:01:22]requested_item shift.num is exist - process it [02:01:22]requested_item shift.opened is exist - process it [02:01:22]req_shift_opened [02:01:22]FM_GetShiftState [02:01:22]SAM_PROTO_GetShiftState [02:01:22]wFMCommunicate request_size=4 [02:01:22]MH_SAM_APDU [02:01:22]CAPDU: 80 13 01 00 [02:01:22]Write to MH i2c: E2 08 00 BC 03 80 13 01 00 00 00 00 00 3C [02:01:22]Write i2c OK [02:01:22]MH_I2C_Read... [02:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:22]Read from MH i2c: E2 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 0E 00 [02:01:22]MH_I2C_Read... [02:01:22]Read from MH i2c: E2 0E 00 BC 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BC [02:01:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:01:22]wFMCommunicate OK [02:01:22]SAM_PROTO_GetShiftState done [02:01:22]FM_GetShiftState done [02:01:22]req_shift_opened done [02:01:22]requested_item shift.open_date is exist - process it [02:01:22]req_shift_open_date [02:01:22]req_shift_open_date done [02:01:22]produce_requested_data done [02:01:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164810,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [02:01:22]process_action_free close_receipt [02:01:22]json_value_free [02:01:22]json_value_free done [02:01:22]process_json_proto returns [02:01:22]Send response to host [02:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164810,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [02:01:22]free response buf [02:01:22]execute_script done [02:01:22]execute_script returns [02:01:22]free content buf [02:01:22]Sock 11.Close socket [02:01:22]Sock 11.Thread stoped [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:09]accept exits with 8 [02:24:09]New connection [02:24:09]New thread 3067571556 created [02:24:09]Thread 3067428196 joined [02:24:09]Waiting for new connection... [02:24:09] Sock 8.Parse request [02:24:09]Sock 8.Check first char [02:24:09]Sock 8.First char is OK [02:24:09]request: POST /json_proto HTTP/1.0 [02:24:09]Method: POST [02:24:09]URL: /json_proto [02:24:09]Method is POST - this is cgi request [02:24:09]url: /json_proto [02:24:09]query_string will be loaded in cgi processing [02:24:09]execute_cgi json_proto POST (null) [02:24:09]execute_cgi path=json_proto method=POST [02:24:09]POST find Content-Length [02:24:09]Host: 172.17.56.4:8080 [02:24:09]Content-Length: 677 [02:24:09]Content-Type: application/json [02:24:09] [02:24:09]POST finish read [02:24:09]Found Content-Length = 677 [02:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [02:24:09]execute_script... [02:24: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)458904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "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" ] } } [02:24:09]POST & json_proto [02:24:09]process_json_proto [02:24:09]json parsed OK: [02:24:09]protocol is kg_v1.0 [02:24:09]action value=close_receipt [02:24:09]process_action close_receipt [02:24:09]cmd_close_receipt [02:24:09]MH_GetDate [02:24:09]Write to MH i2c: F0 00 00 BD 03 AF [02:24:09]Write i2c OK [02:24:09]MH_I2C_Read... [02:24:09]Read from MH i2c: F0 [02:24:09]MH_I2C_Read... [02:24:09]Read from MH i2c: F0 09 00 [02:24:09]MH_I2C_Read... [02:24:09]Read from MH i2c: F0 09 00 BD 03 00 C9 36 93 66 C9 DC B2 64 6B [02:24:09]GetLastDocTimeStamp 1720922479 [02:24:09]current date 1720923849 [02:24:09]FM_GetShiftState [02:24:09]SAM_PROTO_GetShiftState [02:24:09]wFMCommunicate request_size=4 [02:24:09]MH_SAM_APDU [02:24:09]CAPDU: 80 13 01 00 [02:24:09]Write to MH i2c: E2 08 00 BE 03 80 13 01 00 00 00 00 00 3E [02:24:09]Write i2c OK [02:24:09]MH_I2C_Read... [02:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:09]Read from MH i2c: E2 [02:24:09]MH_I2C_Read... [02:24:09]Read from MH i2c: E2 0E 00 [02:24:09]MH_I2C_Read... [02:24:09]Read from MH i2c: E2 0E 00 BE 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BE [02:24:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:24:09]wFMCommunicate OK [02:24:09]SAM_PROTO_GetShiftState done [02:24:09]FM_GetShiftState done [02:24:09]opened in 1720917342 [02:24:09]opened+sec_in_day 1721003742 [02:24:09]quantity*price = 55008 [02:24:09]sum+1 = 55010 [02:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 9 14.07.2024 02:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164811 ФПД: 46767541299514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T022409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164811&fm=46767541299514&tin=02508201610067®Number=0000000000090829&sum=55000 [02:24:10]StoreToDocumentArchive [02:24:10]shift 447 fd 164811 [02:24:10]save to /storage/0447/doc_00164811 [02:24:10]save last doc name /storage/0447/doc_00164811 to /storage/kkm_last_doc_name [02:24:10]save OK [02:24:10]Clear old archive folders... [02:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:24:10]tlvbuf is 01621DF0 [02:24:10]SAM_PROTO_ClearQueue [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 09 00 00 [02:24:10]Write to MH i2c: E2 08 00 CB 03 80 09 00 00 00 00 00 00 40 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 CB 03 00 90 00 42 [02:24:10]RAPDU: 90 00 [02:24:10]wFMCommunicate OK [02:24:10]SAM_PROTO_ClearQueue done [02:24:10]KKMCreateOFDPacket [02:24:10]OFDProtocolAddRootSTLVToBuf [02:24:10]FM_MakeSignedData [02:24:10]FM_MakeSignedData [02:24:10]SAM_PROTO_SignData [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 0D 01 02 [02:24:10]Write to MH i2c: E2 08 00 CC 03 80 0D 01 02 00 00 00 00 48 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [02:24:10]RAPDU: 90 00 [02:24:10]wFMCommunicate OK [02:24:10]wFMCommunicate request_size=255 [02:24:10]MH_SAM_APDU [02:24: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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 09 00 00 00 F4 03 04 00 C9 36 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 83 02 00 35 04 06 00 2A [02:24:10]Write to MH i2c: E2 02 01 CD 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 09 00 00 00 F4 03 04 00 C9 36 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 83 02 00 35 04 06 00 2A 00 00 0B [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [02:24:10]RAPDU: 90 00 [02:24:10]wFMCommunicate OK [02:24:10]wFMCommunicate request_size=10 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 0D 02 02 05 88 EA AF A9 3A [02:24:10]Write to MH i2c: E2 0D 00 CE 03 80 0D 02 02 05 00 88 EA AF A9 3A 00 00 59 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [02:24:10]RAPDU: 90 00 [02:24:10]wFMCommunicate OK [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 0D 03 02 [02:24:10]Write to MH i2c: E2 08 00 CF 03 80 0D 03 02 00 00 00 00 4D [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 0B 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 0B 00 CF 03 00 17 F2 64 FF C1 CB B6 7B 90 00 77 [02:24:10]RAPDU: 17 F2 64 FF C1 CB B6 7B 90 00 [02:24:10]wFMCommunicate OK [02:24:10]SAM_PROTO_SignData done [02:24:10]FM_MakeSignedData done [02:24:10]CreateOFDProtocolMessage [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 11 00 00 [02:24:10]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 17 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [02:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:24:10]wFMCommunicate OK [02:24:10]CreateOFDProtocolMessage done [02:24:10]OFDSenderStorePacket 164811 [02:24:10]StoreOFDPacket docnum=164811 [02:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 7B 07 01 20 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 09 00 00 00 F4 03 04 00 C9 36 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 83 02 00 35 04 06 00 2A 88 EA AF A9 3A 17 F2 64 FF C1 CB B6 7B [02:24:10]CheckFolder [02:24:10]dirname=/storage/ofd_packets [02:24:10]CheckFolder done [02:24:10]ProducePacketName [02:24:10]name=ofd_packets/00164811 [02:24:10]NVStorageSaveData ofd_packets/00164811 [02:24:10]File name is /storage/ofd_packets/00164811 [02:24:10]Write 301 bytes [02:24:10]NVStorageSaveData done [02:24:10]OFDSenderStorePacket done [02:24:10]KKMCreateOFDPacket done [02:24:10]NVStorageSaveData kkm_last_timestamp [02:24:10]File name is /storage/kkm_last_timestamp [02:24:10]Write 4 bytes [02:24:10]NVStorageSaveData done [02:24:10]ExternCall_PrintAddStr [02:24:10]wPrintStart [02:24:10]Write to MH i2c: 01 00 00 D1 03 D4 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: 01 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: 01 07 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [02:24:10]RasterBufferAndPrint [02:24:10]line Счет N : (1)458904 [02:24:10]line ИНН: 02508201610067 [02:24:10]line Контрольно-Кассовый Чек [02:24:10]line ПРОДАЖА [02:24:10]line ТРК (МРК, ГНК) : 12 [02:24:10]line Товар: 2710124130 [02:24:10]line Аи-92-К-5 [02:24:10]line 8.360 * 65.80 [02:24:10]line = 550.09 [02:24:10]line НДС 12% НСП 1% [02:24:10]line > о реализуемом товаре [02:24:10]line ОКРУГЛЕНИЕ: -0.09 [02:24:10]line ИТОГО: 550.00 [02:24:10]line Внесено: 550.00 [02:24:10]line СДАЧА: 0.00 [02:24:10]line НСП 1% : 4.87 [02:24:10]line НДС 12% : 58.42 [02:24:10]line Наличными: 550.00 [02:24:10]line Безнал.: 0.00 [02:24:10]line Место: АЗС № 72 "Партнер Нефть" [02:24:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:24:10]line СНО: Общий режим [02:24:10]line Чек 9 14.07.2024 02:24 [02:24:10]line Смена: 447 ФФД: 1.0 [02:24:10]line ЗНМ: 0300000160 [02:24:10]line РНМ: 0000000000090829 [02:24:10]line Версия ККМ: 001 [02:24:10]line ФМ: 0000000000874718 [02:24:10]line ФД: 164811 [02:24:10]line ФПД: 46767541299514 [02:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T022409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164811&fm=46767541299514&tin=02508201610067®Number=0000000000090829&sum=55000 [02:24:11]OFD Sender: Processing packet 164811 [packets to send 104, broken 103] [02:24:11]ProducePacketName [02:24:11]name=ofd_packets/00164811 [02:24:11]OFD Sender: To server: pG, [02:24:11]CommunicateWithHost lk.salyk.kg:30040 [02:24:11]ConnectInit lk.salyk.kg [02:24:11]written 0, free lines is 4095 [02:24:11]Connected sock=10 [02:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 7B 07 01 20 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 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 D2 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 09 00 00 00 F4 03 04 00 C9 36 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 83 02 00 35 04 06 00 2A 88 EA AF A9 3A 17 F2 64 FF C1 CB B6 7B [02:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 91 47 00 A1 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 34 37 31 38 10 04 04 00 CB 83 02 00 F4 03 04 00 58 DD 92 66 B6 04 01 00 00 BD 78 11 E9 77 DF A9 2C [02:24:11]CommunicateWithHost err = 0 [02:24:11]CheckOFDResponse [02:24:11]1017 (14) - 77093643461234 [02:24:11]1041 (16) - 0000000000874718 [02:24:11]1040 (4) - 164811 [02:24:11]1012 (4) - 13.07.2024 20:02 [02:24:11]1206 (1) - 0 [02:24:11]OFD Sender: Remove packet 164811 [02:24:11]ProducePacketName [02:24:11]name=ofd_packets/00164811 [02:24:11]NVStorageDeleteData [02:24:11]Write to MH i2c: 01 00 00 FB 03 FE [02:24:11]Write i2c OK [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: 01 [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: 01 07 00 [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FE 0C 0F [02:24:11]RasterBufferAndPrint [02:24:11]line [02:24:11]line [02:24:11]line [02:24:11]line [02:24:11]line [02:24:11]written 0, free lines is 3332 [02:24:11]MH_Cut [02:24:11]Write to MH i2c: D1 01 00 02 04 01 D8 [02:24:11]Write i2c OK [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: D1 [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: D1 01 00 [02:24:11]MH_I2C_Read... [02:24:11]Read from MH i2c: D1 01 00 02 04 00 D7 [02:24:11]Write to MH i2c: 01 00 00 03 04 07 [02:24:11]Write i2c OK [02:24:11]MH_I2C_Read... [02:24:11]OFD Sender: No OFD packet to send [02:24:12]*** Cut start [02:24:12]*** Partial cut [02:24:12]*** CUTSNS_PIN = 1 [02:24:12]*** CUTSNS_PIN = 0 [02:24:12]*** Brake cut motor [02:24:12]Read from MH i2c: 01 [02:24:12]MH_I2C_Read... [02:24:12]*** Stop cut motor [02:24:12]*** Cut end [02:24:12]Read from MH i2c: 01 07 00 [02:24:12]MH_I2C_Read... [02:24:12]Read from MH i2c: 01 07 00 03 04 00 00 00 00 00 FF 0F 1C [02:24:12]process_action close_receipt done [02:24:12]requested_data is exist [02:24:12]produce_requested_data [02:24:12]requested_item fm.sn is exist - process it [02:24:12]wFMCommunicate request_size=4 [02:24:12]MH_SAM_APDU [02:24:12]CAPDU: 80 11 00 00 [02:24:12]Write to MH i2c: E2 08 00 04 04 80 11 00 00 00 00 00 00 82 [02:24:12]Write i2c OK [02:24:12]MH_I2C_Read... [02:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:12]Read from MH i2c: E2 [02:24:12]MH_I2C_Read... [02:24:12]Read from MH i2c: E2 17 00 [02:24:12]MH_I2C_Read... [02:24:12]Read from MH i2c: E2 17 00 04 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [02:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:24:12]wFMCommunicate OK [02:24:12]requested_item fd.num is exist - process it [02:24:12]SAM_PROTO_GetFieldsCounters [02:24:12]wFMCommunicate request_size=4 [02:24:12]MH_SAM_APDU [02:24:12]CAPDU: 80 13 00 00 [02:24:12]Write to MH i2c: E2 08 00 05 04 80 13 00 00 00 00 00 00 85 [02:24:12]Write i2c OK [02:24:12]MH_I2C_Read... [02:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:12]Read from MH i2c: E2 [02:24:12]MH_I2C_Read... [02:24:12]Read from MH i2c: E2 62 00 [02:24:12]MH_I2C_Read... [02:24:12]Read from MH i2c: E2 62 00 05 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 83 02 00 0E 04 04 00 BF 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 D7 [02:24: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 83 02 00 0E 04 04 00 BF 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 [02:24:13]wFMCommunicate OK [02:24:13]SAM_PROTO_GetFieldsCounters done [02:24:13]requested_item shift.num is exist - process it [02:24:13]requested_item shift.opened is exist - process it [02:24:13]req_shift_opened [02:24:13]FM_GetShiftState [02:24:13]SAM_PROTO_GetShiftState [02:24:13]wFMCommunicate request_size=4 [02:24:13]MH_SAM_APDU [02:24:13]CAPDU: 80 13 01 00 [02:24:13]Write to MH i2c: E2 08 00 06 04 80 13 01 00 00 00 00 00 87 [02:24:13]Write i2c OK [02:24:13]MH_I2C_Read... [02:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:13]Read from MH i2c: E2 [02:24:13]MH_I2C_Read... [02:24:13]Read from MH i2c: E2 0E 00 [02:24:13]MH_I2C_Read... [02:24:13]Read from MH i2c: E2 0E 00 06 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 07 [02:24:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:24:13]wFMCommunicate OK [02:24:13]SAM_PROTO_GetShiftState done [02:24:13]FM_GetShiftState done [02:24:13]req_shift_opened done [02:24:13]requested_item shift.open_date is exist - process it [02:24:13]req_shift_open_date [02:24:13]req_shift_open_date done [02:24:13]produce_requested_data done [02:24:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164811,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [02:24:13]process_action_free close_receipt [02:24:13]json_value_free [02:24:13]json_value_free done [02:24:13]process_json_proto returns [02:24:13]Send response to host [02:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164811,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [02:24:13]free response buf [02:24:13]execute_script done [02:24:13]execute_script returns [02:24:13]free content buf [02:24:13]Sock 8.Close socket [02:24:13]Sock 8.Thread stoped [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:15]accept exits with 9 [02:30:15]New connection [02:30:15]New thread 3067428196 created [02:30:15]Thread 3067571556 joined [02:30:15]Waiting for new connection... [02:30:15] Sock 9.Parse request [02:30:15]Sock 9.Check first char [02:30:15]Sock 9.First char is OK [02:30:15]request: POST /json_proto HTTP/1.0 [02:30:15]Method: POST [02:30:15]URL: /json_proto [02:30:15]Method is POST - this is cgi request [02:30:15]url: /json_proto [02:30:15]query_string will be loaded in cgi processing [02:30:15]execute_cgi json_proto POST (null) [02:30:15]execute_cgi path=json_proto method=POST [02:30:15]POST find Content-Length [02:30:15]Host: 172.17.56.4:8080 [02:30:15]Content-Length: 790 [02:30:15]Content-Type: application/json [02:30:15] [02:30:15]POST finish read [02:30:15]Found Content-Length = 790 [02:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.680, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:15]execute_script... [02:30: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)458905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.680, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:15]POST & json_proto [02:30:15]process_json_proto [02:30:15]json parsed OK: [02:30:15]protocol is kg_v1.0 [02:30:15]action value=close_receipt [02:30:15]process_action close_receipt [02:30:15]cmd_close_receipt [02:30:15]MH_GetDate [02:30:15]Write to MH i2c: F0 00 00 07 04 FA [02:30:15]Write i2c OK [02:30:15]MH_I2C_Read... [02:30:15]Read from MH i2c: F0 [02:30:15]MH_I2C_Read... [02:30:15]Read from MH i2c: F0 09 00 [02:30:15]MH_I2C_Read... [02:30:15]Read from MH i2c: F0 09 00 07 04 00 38 38 93 66 C9 DC B2 64 27 [02:30:15]GetLastDocTimeStamp 1720923849 [02:30:15]current date 1720924216 [02:30:15]FM_GetShiftState [02:30:15]SAM_PROTO_GetShiftState [02:30:15]wFMCommunicate request_size=4 [02:30:15]MH_SAM_APDU [02:30:15]CAPDU: 80 13 01 00 [02:30:15]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [02:30:15]Write i2c OK [02:30:15]MH_I2C_Read... [02:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:15]Read from MH i2c: E2 [02:30:15]MH_I2C_Read... [02:30:15]Read from MH i2c: E2 0E 00 [02:30:15]MH_I2C_Read... [02:30:15]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 09 [02:30:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:30:15]wFMCommunicate OK [02:30:15]SAM_PROTO_GetShiftState done [02:30:15]FM_GetShiftState done [02:30:15]opened in 1720917342 [02:30:15]opened+sec_in_day 1721003742 [02:30:15]quantity*price = 24000 [02:30:15]sum+1 = 24002 [02:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.01 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 0.00 Безнал.: 240.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 10 14.07.2024 02:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164812 ФПД: 182289332634822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T023016&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164812&fm=182289332634822&tin=02508201610067®Number=0000000000090829&sum=24001 [02:30:17]StoreToDocumentArchive [02:30:17]shift 447 fd 164812 [02:30:17]save to /storage/0447/doc_00164812 [02:30:17]save last doc name /storage/0447/doc_00164812 to /storage/kkm_last_doc_name [02:30:17]save OK [02:30:17]Clear old archive folders... [02:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:30:17]tlvbuf is 01645CF0 [02:30:17]SAM_PROTO_ClearQueue [02:30:17]wFMCommunicate request_size=4 [02:30:17]MH_SAM_APDU [02:30:17]CAPDU: 80 09 00 00 [02:30:17]Write to MH i2c: E2 08 00 15 04 80 09 00 00 00 00 00 00 8B [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [02:30:17]RAPDU: 90 00 [02:30:17]wFMCommunicate OK [02:30:17]SAM_PROTO_ClearQueue done [02:30:17]KKMCreateOFDPacket [02:30:17]OFDProtocolAddRootSTLVToBuf [02:30:17]FM_MakeSignedData [02:30:17]FM_MakeSignedData [02:30:17]SAM_PROTO_SignData [02:30:17]wFMCommunicate request_size=4 [02:30:17]MH_SAM_APDU [02:30:17]CAPDU: 80 0D 01 02 [02:30:17]Write to MH i2c: E2 08 00 16 04 80 0D 01 02 00 00 00 00 93 [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [02:30:17]RAPDU: 90 00 [02:30:17]wFMCommunicate OK [02:30:17]wFMCommunicate request_size=255 [02:30:17]MH_SAM_APDU [02:30: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 60 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 38 38 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 83 02 00 35 04 06 00 A5 [02:30:17]Write to MH i2c: E2 02 01 17 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 60 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 38 38 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 83 02 00 35 04 06 00 A5 00 00 F9 [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]OFD Sender: No OFD packet to send [02:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [02:30:17]RAPDU: 90 00 [02:30:17]wFMCommunicate OK [02:30:17]wFMCommunicate request_size=10 [02:30:17]MH_SAM_APDU [02:30:17]CAPDU: 80 0D 02 02 05 CA 8A EB 04 C6 [02:30:17]Write to MH i2c: E2 0D 00 18 04 80 0D 02 02 05 00 CA 8A EB 04 C6 00 00 A9 [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [02:30:17]RAPDU: 90 00 [02:30:17]wFMCommunicate OK [02:30:17]wFMCommunicate request_size=4 [02:30:17]MH_SAM_APDU [02:30:17]CAPDU: 80 0D 03 02 [02:30:17]Write to MH i2c: E2 08 00 19 04 80 0D 03 02 00 00 00 00 98 [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 0B 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 0B 00 19 04 00 97 5A A5 F8 4E D9 62 F3 90 00 A3 [02:30:17]RAPDU: 97 5A A5 F8 4E D9 62 F3 90 00 [02:30:17]wFMCommunicate OK [02:30:17]SAM_PROTO_SignData done [02:30:17]FM_MakeSignedData done [02:30:17]CreateOFDProtocolMessage [02:30:17]wFMCommunicate request_size=4 [02:30:17]MH_SAM_APDU [02:30:17]CAPDU: 80 11 00 00 [02:30:17]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:17]Read from MH i2c: E2 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 17 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [02:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:30:17]wFMCommunicate OK [02:30:17]CreateOFDProtocolMessage done [02:30:17]OFDSenderStorePacket 164812 [02:30:17]StoreOFDPacket docnum=164812 [02:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8E 78 07 01 67 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 38 38 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 83 02 00 35 04 06 00 A5 CA 8A EB 04 C6 97 5A A5 F8 4E D9 62 F3 [02:30:17]CheckFolder [02:30:17]dirname=/storage/ofd_packets [02:30:17]CheckFolder done [02:30:17]ProducePacketName [02:30:17]name=ofd_packets/00164812 [02:30:17]NVStorageSaveData ofd_packets/00164812 [02:30:17]File name is /storage/ofd_packets/00164812 [02:30:17]Write 301 bytes [02:30:17]NVStorageSaveData done [02:30:17]OFDSenderStorePacket done [02:30:17]KKMCreateOFDPacket done [02:30:17]NVStorageSaveData kkm_last_timestamp [02:30:17]File name is /storage/kkm_last_timestamp [02:30:17]Write 4 bytes [02:30:17]NVStorageSaveData done [02:30:17]ExternCall_PrintAddStr [02:30:17]wPrintStart [02:30:17]Write to MH i2c: 01 00 00 1B 04 1F [02:30:17]Write i2c OK [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: 01 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: 01 07 00 [02:30:17]MH_I2C_Read... [02:30:17]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [02:30:17]RasterBufferAndPrint [02:30:17]line Счет N : (1)458905 [02:30:17]line ИНН: 02508201610067 [02:30:17]line Контрольно-Кассовый Чек [02:30:17]line ПРОДАЖА [02:30:17]line ТРК (МРК, ГНК) : 22 [02:30:17]line Товар: 2710124130 [02:30:17]line Аи-92-К-5 [02:30:17]line 3.680 * 65.22 [02:30:17]line = 240.01 [02:30:17]line НДС 12% НСП 1% [02:30:17]line > о реализуемом товаре [02:30:17]line ИТОГО: 240.01 [02:30:17]line НСП 1% : 2.12 [02:30:17]line НДС 12% : 25.49 [02:30:17]line Наличными: 0.00 [02:30:17]line Безнал.: 240.01 [02:30:17]line Место: АЗС № 72 "Партнер Нефть" [02:30:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:30:17]line СНО: Общий режим [02:30:17]line Чек 10 14.07.2024 02:30 [02:30:17]line Смена: 447 ФФД: 1.0 [02:30:17]line ЗНМ: 0300000160 [02:30:17]line РНМ: 0000000000090829 [02:30:17]line Версия ККМ: 001 [02:30:17]line Платежная система: KICB Банк [02:30:17]line ФМ: 0000000000874718 [02:30:17]line ФД: 164812 [02:30:17]line ФПД: 182289332634822 [02:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T023016&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164812&fm=182289332634822&tin=02508201610067®Number=0000000000090829&sum=24001 [02:30:17]written 0, free lines is 4095 [02:30:17]OFD Sender: Processing packet 164812 [packets to send 104, broken 103] [02:30:17]ProducePacketName [02:30:17]name=ofd_packets/00164812 [02:30:17]OFD Sender: To server: pG, [02:30:17]CommunicateWithHost lk.salyk.kg:30040 [02:30:17]ConnectInit lk.salyk.kg [02:30:18]Connected sock=10 [02:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8E 78 07 01 67 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 38 38 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 83 02 00 35 04 06 00 A5 CA 8A EB 04 C6 97 5A A5 F8 4E D9 62 F3 [02:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 68 10 47 00 C7 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 83 02 00 F4 03 04 00 C7 DE 92 66 B6 04 01 00 00 58 D2 D0 10 83 4E 27 23 [02:30:18]CommunicateWithHost err = 0 [02:30:18]CheckOFDResponse [02:30:18]1017 (14) - 77093643461234 [02:30:18]1041 (16) - 0000000000874718 [02:30:18]1040 (4) - 164812 [02:30:18]1012 (4) - 13.07.2024 20:08 [02:30:18]1206 (1) - 0 [02:30:18]OFD Sender: Remove packet 164812 [02:30:18]ProducePacketName [02:30:18]name=ofd_packets/00164812 [02:30:18]NVStorageDeleteData [02:30:18]Write to MH i2c: 01 00 00 44 04 48 [02:30:18]Write i2c OK [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: 01 [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: 01 07 00 [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 09 0D 65 [02:30:18]RasterBufferAndPrint [02:30:18]line [02:30:18]line [02:30:18]line [02:30:18]line [02:30:18]line [02:30:18]written 0, free lines is 3343 [02:30:18]MH_Cut [02:30:18]Write to MH i2c: D1 01 00 4B 04 01 21 [02:30:18]Write i2c OK [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: D1 [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: D1 01 00 [02:30:18]MH_I2C_Read... [02:30:18]Read from MH i2c: D1 01 00 4B 04 00 20 [02:30:18]Write to MH i2c: 01 00 00 4C 04 50 [02:30:18]Write i2c OK [02:30:18]MH_I2C_Read... [02:30:18]OFD Sender: No OFD packet to send [02:30:19]*** Cut start [02:30:19]*** Partial cut [02:30:19]*** CUTSNS_PIN = 1 [02:30:19]*** CUTSNS_PIN = 0 [02:30:19]*** Brake cut motor [02:30:19]Read from MH i2c: 01 [02:30:19]MH_I2C_Read... [02:30:19]*** Stop cut motor [02:30:19]*** Cut end [02:30:19]Read from MH i2c: 01 07 00 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FF 0F 65 [02:30:19]process_action close_receipt done [02:30:19]requested_data is exist [02:30:19]produce_requested_data [02:30:19]requested_item fm.sn is exist - process it [02:30:19]wFMCommunicate request_size=4 [02:30:19]MH_SAM_APDU [02:30:19]CAPDU: 80 11 00 00 [02:30:19]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [02:30:19]Write i2c OK [02:30:19]MH_I2C_Read... [02:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:19]Read from MH i2c: E2 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 17 00 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [02:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:30:19]wFMCommunicate OK [02:30:19]requested_item fd.num is exist - process it [02:30:19]SAM_PROTO_GetFieldsCounters [02:30:19]wFMCommunicate request_size=4 [02:30:19]MH_SAM_APDU [02:30:19]CAPDU: 80 13 00 00 [02:30:19]Write to MH i2c: E2 08 00 4E 04 80 13 00 00 00 00 00 00 CE [02:30:19]Write i2c OK [02:30:19]MH_I2C_Read... [02:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:19]Read from MH i2c: E2 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 62 00 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 62 00 4E 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 83 02 00 0E 04 04 00 BF 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 24 [02:30: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 83 02 00 0E 04 04 00 BF 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 [02:30:19]wFMCommunicate OK [02:30:19]SAM_PROTO_GetFieldsCounters done [02:30:19]requested_item shift.num is exist - process it [02:30:19]requested_item shift.opened is exist - process it [02:30:19]req_shift_opened [02:30:19]FM_GetShiftState [02:30:19]SAM_PROTO_GetShiftState [02:30:19]wFMCommunicate request_size=4 [02:30:19]MH_SAM_APDU [02:30:19]CAPDU: 80 13 01 00 [02:30:19]Write to MH i2c: E2 08 00 4F 04 80 13 01 00 00 00 00 00 D0 [02:30:19]Write i2c OK [02:30:19]MH_I2C_Read... [02:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:19]Read from MH i2c: E2 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 0E 00 [02:30:19]MH_I2C_Read... [02:30:19]Read from MH i2c: E2 0E 00 4F 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 50 [02:30:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [02:30:19]wFMCommunicate OK [02:30:19]SAM_PROTO_GetShiftState done [02:30:19]FM_GetShiftState done [02:30:19]req_shift_opened done [02:30:19]requested_item shift.open_date is exist - process it [02:30:19]req_shift_open_date [02:30:19]req_shift_open_date done [02:30:19]produce_requested_data done [02:30:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164812,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [02:30:19]process_action_free close_receipt [02:30:19]json_value_free [02:30:19]json_value_free done [02:30:19]process_json_proto returns [02:30:19]Send response to host [02:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164812,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [02:30:19]free response buf [02:30:19]execute_script done [02:30:19]execute_script returns [02:30:19]free content buf [02:30:19]Sock 9.Close socket [02:30:19]Sock 9.Thread stoped [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:45]accept exits with 8 [03:09:45]New connection [03:09:45]New thread 3067571556 created [03:09:45]Thread 3067428196 joined [03:09:45]Waiting for new connection... [03:09:45] Sock 8.Parse request [03:09:45]Sock 8.Check first char [03:09:45]Sock 8.First char is OK [03:09:45]request: POST /json_proto HTTP/1.0 [03:09:45]Method: POST [03:09:45]URL: /json_proto [03:09:45]Method is POST - this is cgi request [03:09:45]url: /json_proto [03:09:45]query_string will be loaded in cgi processing [03:09:45]execute_cgi json_proto POST (null) [03:09:45]execute_cgi path=json_proto method=POST [03:09:45]POST find Content-Length [03:09:45]Host: 172.17.56.4:8080 [03:09:45]Content-Length: 790 [03:09:45]Content-Type: application/json [03:09:45] [03:09:45]POST finish read [03:09:45]Found Content-Length = 790 [03:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:45]execute_script... [03:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:09:45]POST & json_proto [03:09:45]process_json_proto [03:09:45]json parsed OK: [03:09:45]protocol is kg_v1.0 [03:09:45]action value=close_receipt [03:09:45]process_action close_receipt [03:09:45]cmd_close_receipt [03:09:45]MH_GetDate [03:09:45]Write to MH i2c: F0 00 00 50 04 43 [03:09:45]Write i2c OK [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 09 00 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: F0 09 00 50 04 00 7A 41 93 66 C9 DC B2 64 BB [03:09:45]GetLastDocTimeStamp 1720924216 [03:09:45]current date 1720926586 [03:09:45]FM_GetShiftState [03:09:45]SAM_PROTO_GetShiftState [03:09:45]wFMCommunicate request_size=4 [03:09:45]MH_SAM_APDU [03:09:45]CAPDU: 80 13 01 00 [03:09:45]Write to MH i2c: E2 08 00 51 04 80 13 01 00 00 00 00 00 D2 [03:09:45]Write i2c OK [03:09:45]MH_I2C_Read... [03:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:45]Read from MH i2c: E2 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: E2 0E 00 [03:09:45]MH_I2C_Read... [03:09:45]Read from MH i2c: E2 0E 00 51 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 52 [03:09:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [03:09:45]wFMCommunicate OK [03:09:45]SAM_PROTO_GetShiftState done [03:09:45]FM_GetShiftState done [03:09:45]opened in 1720917342 [03:09:45]opened+sec_in_day 1721003742 [03:09:45]quantity*price = 50023 [03:09:45]sum+1 = 50025 [03:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 11 14.07.2024 03:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164813 ФПД: 223345311675726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T030946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164813&fm=223345311675726&tin=02508201610067®Number=0000000000090829&sum=50024 [03:09:46]StoreToDocumentArchive [03:09:46]shift 447 fd 164813 [03:09:46]save to /storage/0447/doc_00164813 [03:09:46]save last doc name /storage/0447/doc_00164813 to /storage/kkm_last_doc_name [03:09:46]save OK [03:09:46]Clear old archive folders... [03:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:09:46]tlvbuf is 01653DF0 [03:09:46]SAM_PROTO_ClearQueue [03:09:46]wFMCommunicate request_size=4 [03:09:46]MH_SAM_APDU [03:09:46]CAPDU: 80 09 00 00 [03:09:46]Write to MH i2c: E2 08 00 5E 04 80 09 00 00 00 00 00 00 D4 [03:09:46]Write i2c OK [03:09:46]MH_I2C_Read... [03:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:09:46]Read from MH i2c: E2 [03:09:46]MH_I2C_Read... [03:09:46]Read from MH i2c: E2 03 00 [03:09:46]MH_I2C_Read... [03:09:46]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [03:09:46]RAPDU: 90 00 [03:09:46]wFMCommunicate OK [03:09:46]SAM_PROTO_ClearQueue done [03:09:46]KKMCreateOFDPacket [03:09:46]OFDProtocolAddRootSTLVToBuf [03:09:46]FM_MakeSignedData [03:09:46]FM_MakeSignedData [03:09:46]SAM_PROTO_SignData [03:09:46]wFMCommunicate request_size=4 [03:09:46]MH_SAM_APDU [03:09:46]CAPDU: 80 0D 01 02 [03:09:46]Write to MH i2c: E2 08 00 5F 04 80 0D 01 02 00 00 00 00 DC [03:09:46]Write i2c OK [03:09:46]MH_I2C_Read... [03:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:09:46]Read from MH i2c: E2 [03:09:46]MH_I2C_Read... [03:09:46]Read from MH i2c: E2 03 00 [03:09:46]MH_I2C_Read... [03:09:46]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [03:09:46]RAPDU: 90 00 [03:09:46]wFMCommunicate OK [03:09:46]wFMCommunicate request_size=255 [03:09:46]MH_SAM_APDU [03:09: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 7A 41 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 83 02 00 35 04 06 00 CB [03:09:46]Write to MH i2c: E2 02 01 60 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 7A 41 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 83 02 00 35 04 06 00 CB 00 00 3F [03:09:46]Write i2c OK [03:09:46]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]wFMCommunicate request_size=10 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 02 02 05 21 A1 F6 F5 4E [03:09:47]Write to MH i2c: E2 0D 00 61 04 80 0D 02 02 05 00 21 A1 F6 F5 4E 00 00 E4 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [03:09:47]RAPDU: 90 00 [03:09:47]wFMCommunicate OK [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 0D 03 02 [03:09:47]Write to MH i2c: E2 08 00 62 04 80 0D 03 02 00 00 00 00 E1 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 0B 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 0B 00 62 04 00 01 06 E0 02 2A 99 94 EB 90 00 0D [03:09:47]RAPDU: 01 06 E0 02 2A 99 94 EB 90 00 [03:09:47]wFMCommunicate OK [03:09:47]SAM_PROTO_SignData done [03:09:47]FM_MakeSignedData done [03:09:47]CreateOFDProtocolMessage [03:09:47]wFMCommunicate request_size=4 [03:09:47]MH_SAM_APDU [03:09:47]CAPDU: 80 11 00 00 [03:09:47]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:47]Read from MH i2c: E2 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 17 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [03:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:09:47]wFMCommunicate OK [03:09:47]CreateOFDProtocolMessage done [03:09:47]OFDSenderStorePacket 164813 [03:09:47]StoreOFDPacket docnum=164813 [03:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 5A 07 01 3A 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 7A 41 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 83 02 00 35 04 06 00 CB 21 A1 F6 F5 4E 01 06 E0 02 2A 99 94 EB [03:09:47]CheckFolder [03:09:47]dirname=/storage/ofd_packets [03:09:47]CheckFolder done [03:09:47]ProducePacketName [03:09:47]name=ofd_packets/00164813 [03:09:47]NVStorageSaveData ofd_packets/00164813 [03:09:47]File name is /storage/ofd_packets/00164813 [03:09:47]Write 301 bytes [03:09:47]NVStorageSaveData done [03:09:47]OFDSenderStorePacket done [03:09:47]KKMCreateOFDPacket done [03:09:47]NVStorageSaveData kkm_last_timestamp [03:09:47]File name is /storage/kkm_last_timestamp [03:09:47]Write 4 bytes [03:09:47]NVStorageSaveData done [03:09:47]ExternCall_PrintAddStr [03:09:47]wPrintStart [03:09:47]Write to MH i2c: 01 00 00 64 04 68 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 FF 0F 7D [03:09:47]RasterBufferAndPrint [03:09:47]line Счет N : (1)458906 [03:09:47]line ИНН: 02508201610067 [03:09:47]line Контрольно-Кассовый Чек [03:09:47]line ПРОДАЖА [03:09:47]line ТРК (МРК, ГНК) : 12 [03:09:47]line Товар: 2710124130 [03:09:47]line Аи-92-К-5 [03:09:47]line 7.670 * 65.22 [03:09:47]line = 500.24 [03:09:47]line НДС 12% НСП 1% [03:09:47]line > о реализуемом товаре [03:09:47]line ИТОГО: 500.24 [03:09:47]line НСП 1% : 4.43 [03:09:47]line НДС 12% : 53.12 [03:09:47]line Наличными: 0.00 [03:09:47]line Безнал.: 500.24 [03:09:47]line Место: АЗС № 72 "Партнер Нефть" [03:09:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [03:09:47]line СНО: Общий режим [03:09:47]line Чек 11 14.07.2024 03:09 [03:09:47]line Смена: 447 ФФД: 1.0 [03:09:47]line ЗНМ: 0300000160 [03:09:47]line РНМ: 0000000000090829 [03:09:47]line Версия ККМ: 001 [03:09:47]line Платежная система: KICB Банк [03:09:47]line ФМ: 0000000000874718 [03:09:47]line ФД: 164813 [03:09:47]line ФПД: 223345311675726 [03:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T030946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164813&fm=223345311675726&tin=02508201610067®Number=0000000000090829&sum=50024 [03:09:47]written 0, free lines is 4095 [03:09:47]OFD Sender: Processing packet 164813 [packets to send 104, broken 103] [03:09:47]ProducePacketName [03:09:47]name=ofd_packets/00164813 [03:09:47]OFD Sender: To server: pG, [03:09:47]CommunicateWithHost lk.salyk.kg:30040 [03:09:47]ConnectInit lk.salyk.kg [03:09:47]Connected sock=10 [03:09:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 5A 07 01 3A 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 7A 41 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 83 02 00 35 04 06 00 CB 21 A1 F6 F5 4E 01 06 E0 02 2A 99 94 EB [03:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 34 29 47 00 BB 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 34 37 31 38 10 04 04 00 CD 83 02 00 F4 03 04 00 09 E8 92 66 B6 04 01 00 00 F5 EB 0D 3A D0 AC E2 4E [03:09:47]CommunicateWithHost err = 0 [03:09:47]CheckOFDResponse [03:09:47]1017 (14) - 77093643461234 [03:09:47]1041 (16) - 0000000000874718 [03:09:47]1040 (4) - 164813 [03:09:47]1012 (4) - 13.07.2024 20:48 [03:09:47]1206 (1) - 0 [03:09:47]OFD Sender: Remove packet 164813 [03:09:47]ProducePacketName [03:09:47]name=ofd_packets/00164813 [03:09:47]NVStorageDeleteData [03:09:47]Write to MH i2c: 01 00 00 8D 04 91 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 13 0D B8 [03:09:47]RasterBufferAndPrint [03:09:47]line [03:09:47]line [03:09:47]line [03:09:47]line [03:09:47]line [03:09:47]written 0, free lines is 3354 [03:09:47]MH_Cut [03:09:47]Write to MH i2c: D1 01 00 94 04 01 6A [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: D1 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: D1 01 00 [03:09:47]MH_I2C_Read... [03:09:47]Read from MH i2c: D1 01 00 94 04 00 69 [03:09:47]Write to MH i2c: 01 00 00 95 04 99 [03:09:47]Write i2c OK [03:09:47]MH_I2C_Read... [03:09:48]OFD Sender: No OFD packet to send [03:09:48]*** Cut start [03:09:48]*** Partial cut [03:09:48]*** CUTSNS_PIN = 1 [03:09:48]*** CUTSNS_PIN = 0 [03:09:48]*** Brake cut motor [03:09:48]Read from MH i2c: 01 [03:09:48]MH_I2C_Read... [03:09:48]*** Stop cut motor [03:09:48]*** Cut end [03:09:48]Read from MH i2c: 01 07 00 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [03:09:48]process_action close_receipt done [03:09:48]requested_data is exist [03:09:48]produce_requested_data [03:09:48]requested_item fm.sn is exist - process it [03:09:48]wFMCommunicate request_size=4 [03:09:48]MH_SAM_APDU [03:09:48]CAPDU: 80 11 00 00 [03:09:48]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [03:09:48]Write i2c OK [03:09:48]MH_I2C_Read... [03:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:48]Read from MH i2c: E2 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: E2 17 00 [03:09:48]MH_I2C_Read... [03:09:48]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [03:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:09:48]wFMCommunicate OK [03:09:48]requested_item fd.num is exist - process it [03:09:48]SAM_PROTO_GetFieldsCounters [03:09:48]wFMCommunicate request_size=4 [03:09:48]MH_SAM_APDU [03:09:48]CAPDU: 80 13 00 00 [03:09:48]Write to MH i2c: E2 08 00 97 04 80 13 00 00 00 00 00 00 17 [03:09:49]Write i2c OK [03:09:49]MH_I2C_Read... [03:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:49]Read from MH i2c: E2 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 62 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 62 00 97 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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 83 02 00 0E 04 04 00 BF 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 71 [03:09: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 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 83 02 00 0E 04 04 00 BF 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 [03:09:49]wFMCommunicate OK [03:09:49]SAM_PROTO_GetFieldsCounters done [03:09:49]requested_item shift.num is exist - process it [03:09:49]requested_item shift.opened is exist - process it [03:09:49]req_shift_opened [03:09:49]FM_GetShiftState [03:09:49]SAM_PROTO_GetShiftState [03:09:49]wFMCommunicate request_size=4 [03:09:49]MH_SAM_APDU [03:09:49]CAPDU: 80 13 01 00 [03:09:49]Write to MH i2c: E2 08 00 98 04 80 13 01 00 00 00 00 00 19 [03:09:49]Write i2c OK [03:09:49]MH_I2C_Read... [03:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:49]Read from MH i2c: E2 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 0E 00 [03:09:49]MH_I2C_Read... [03:09:49]Read from MH i2c: E2 0E 00 98 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 99 [03:09:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [03:09:49]wFMCommunicate OK [03:09:49]SAM_PROTO_GetShiftState done [03:09:49]FM_GetShiftState done [03:09:49]req_shift_opened done [03:09:49]requested_item shift.open_date is exist - process it [03:09:49]req_shift_open_date [03:09:49]req_shift_open_date done [03:09:49]produce_requested_data done [03:09:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164813,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [03:09:49]process_action_free close_receipt [03:09:49]json_value_free [03:09:49]json_value_free done [03:09:49]process_json_proto returns [03:09:49]Send response to host [03:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164813,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [03:09:49]free response buf [03:09:49]execute_script done [03:09:49]execute_script returns [03:09:49]free content buf [03:09:49]Sock 8.Close socket [03:09:49]Sock 8.Thread stoped [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send